!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://snaggys3static.snaggy.netdna-cdn.com/",n(n.s=305)}([function(e,t,n){"use strict";e.exports=n(150)},function(e,t,n){"use strict";t.__esModule=!0,t.createMemoryHistory=t.hashHistory=t.browserHistory=t.applyRouterMiddleware=t.formatPattern=t.useRouterHistory=t.match=t.routerShape=t.locationShape=t.PropTypes=t.RoutingContext=t.RouterContext=t.createRoutes=t.useRoutes=t.RouteContext=t.Lifecycle=t.History=t.Route=t.Redirect=t.IndexRoute=t.IndexRedirect=t.withRouter=t.IndexLink=t.Link=t.Router=void 0;var r=n(28);Object.defineProperty(t,"createRoutes",{enumerable:!0,get:function(){return r.createRoutes}});var o=n(78);Object.defineProperty(t,"locationShape",{enumerable:!0,get:function(){return o.locationShape}}),Object.defineProperty(t,"routerShape",{enumerable:!0,get:function(){return o.routerShape}});var i=n(36);Object.defineProperty(t,"formatPattern",{enumerable:!0,get:function(){return i.formatPattern}});var a=D(n(217)),s=D(n(130)),l=D(n(231)),u=D(n(232)),c=D(n(233)),p=D(n(234)),d=D(n(132)),h=D(n(235)),f=D(n(236)),m=D(n(237)),g=D(n(238)),v=D(n(239)),y=D(n(56)),b=D(n(240)),E=D(o),C=D(n(241)),w=D(n(135)),_=D(n(243)),x=D(n(244)),P=D(n(246)),k=D(n(133));function D(e){return e&&e.__esModule?e:{default:e}}t.Router=a.default,t.Link=s.default,t.IndexLink=l.default,t.withRouter=u.default,t.IndexRedirect=c.default,t.IndexRoute=p.default,t.Redirect=d.default,t.Route=h.default,t.History=f.default,t.Lifecycle=m.default,t.RouteContext=g.default,t.useRoutes=v.default,t.RouterContext=y.default,t.RoutingContext=b.default,t.PropTypes=E.default,t.match=C.default,t.useRouterHistory=w.default,t.applyRouterMiddleware=_.default,t.browserHistory=x.default,t.hashHistory=P.default,t.createMemoryHistory=k.default},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=n(22);e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o2?n-2:0),a=2;a1){for(var p=Array(c),d=0;d1){for(var h=Array(d),f=0;f should not have a "'+t+'" prop')};var r=n(0),o=r.PropTypes.func,i=r.PropTypes.object,a=r.PropTypes.arrayOf,s=r.PropTypes.oneOfType,l=r.PropTypes.element,u=r.PropTypes.shape,c=r.PropTypes.string;t.history=u({listen:o.isRequired,push:o.isRequired,replace:o.isRequired,go:o.isRequired,goBack:o.isRequired,goForward:o.isRequired});var p=t.component=s([o,c]),d=(t.components=s([p,i]),t.route=s([i,l]));t.routes=s([d,a(d)])},function(e,t,n){"use strict";t.__esModule=!0,t.extractPath=r,t.parsePath=function(e){var t=r(e),n="",o="";var i=t.indexOf("#");-1!==i&&(o=t.substring(i),t=t.substring(0,i));var a=t.indexOf("?");-1!==a&&(n=t.substring(a),t=t.substring(0,a));""===t&&(t="/");return{pathname:t,search:n,hash:o}};!function(e){e&&e.__esModule}(n(17));function r(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}},function(e,t,n){"use strict";var r=n(2);function o(e,t){return(e&t)===t}var 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 t=i,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},l=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};for(var p in e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute),n){s.properties.hasOwnProperty(p)&&r(!1);var d=p.toLowerCase(),h=n[p],f={attributeName:d,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseAttribute:o(h,t.MUST_USE_ATTRIBUTE),mustUseProperty:o(h,t.MUST_USE_PROPERTY),hasSideEffects:o(h,t.HAS_SIDE_EFFECTS),hasBooleanValue:o(h,t.HAS_BOOLEAN_VALUE),hasNumericValue:o(h,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:o(h,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:o(h,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(f.mustUseAttribute&&f.mustUseProperty&&r(!1),!f.mustUseProperty&&f.hasSideEffects&&r(!1),f.hasBooleanValue+f.hasNumericValue+f.hasOverloadedBooleanValue<=1||r(!1),l.hasOwnProperty(p)){var m=l[p];f.attributeName=m}a.hasOwnProperty(p)&&(f.attributeNamespace=a[p]),u.hasOwnProperty(p)&&(f.propertyName=u[p]),c.hasOwnProperty(p)&&(f.mutationMethod=c[p]),s.properties[p]=f}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t1){var t=e.indexOf(i,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=h(e,t);i!==e&&f(e,i,n,r,!1,!0),i!==t&&f(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(f("",e,t,n,!0,!1),f(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(f("",e,t,n,!0,!0),f(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){f("",e,t,n,!0,!1)},getFirstCommonAncestorID:h,_getNextDescendantID:d,isAncestorIDOf:c,SEPARATOR:i};e.exports=m},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";t.__esModule=!0,t.compilePattern=a,t.matchPattern=s,t.getParamNames=function(e){return a(e).paramNames},t.getParams=function(e,t){var n=s(e,t);if(!n)return null;var r=n.paramNames,o=n.paramValues,i={};return r.forEach(function(e,t){i[e]=o[t]}),i},t.formatPattern=function(e,t){t=t||{};for(var n=a(e).tokens,o=0,i="",s=0,l=void 0,u=void 0,c=void 0,p=0,d=n.length;p0||(0,r.default)(!1),null!=c&&(i+=encodeURI(c))):"("===l?o+=1:")"===l?o-=1:":"===l.charAt(0)?(u=l.substring(1),null!=(c=t[u])||o>0||(0,r.default)(!1),null!=c&&(i+=encodeURIComponent(c))):i+=l;return i.replace(/\/+/g,"/")};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var i=Object.create(null);function a(e){return i[e]||(i[e]=function(e){for(var t="",n=[],r=[],i=void 0,a=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;i=s.exec(e);)i.index!==a&&(r.push(e.slice(a,i.index)),t+=o(e.slice(a,i.index))),i[1]?(t+="([^/]+)",n.push(i[1])):"**"===i[0]?(t+="(.*)",n.push("splat")):"*"===i[0]?(t+="(.*?)",n.push("splat")):"("===i[0]?t+="(?:":")"===i[0]&&(t+=")?"),r.push(i[0]),a=s.lastIndex;return a!==e.length&&(r.push(e.slice(a,e.length)),t+=o(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}(e)),i[e]}function s(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=a(e),r=n.regexpSource,o=n.paramNames,i=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===i[i.length-1]&&(r+="$");var s=t.match(new RegExp("^"+r,"i"));if(null==s)return null;var l=s[0],u=t.substr(l.length);if(u){if("/"!==l.charAt(l.length-1))return null;u="/"+u}return{remainingPathname:u,paramNames:o,paramValues:s.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}},function(e,t,n){"use strict";t.__esModule=!0;t.PUSH="PUSH";t.REPLACE="REPLACE";t.POP="POP",t.default={PUSH:"PUSH",REPLACE:"REPLACE",POP:"POP"}},function(e,t,n){"use strict";n.r(t);var r=n(142),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,a=Object.prototype,s=a.hasOwnProperty,l=a.toString,u=i?i.toStringTag:void 0;var c=function(e){var t=s.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=l.call(e);return r&&(t?e[u]=n:delete e[u]),o},p=Object.prototype.toString;var d=function(e){return p.call(e)},h="[object Null]",f="[object Undefined]",m=i?i.toStringTag:void 0;var g=function(e){return null==e?void 0===e?f:h:m&&m in Object(e)?c(e):d(e)};var v=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var y=function(e){return null!=e&&"object"==typeof e},b="[object Object]",E=Function.prototype,C=Object.prototype,w=E.toString,_=C.hasOwnProperty,x=w.call(Object);var P=function(e){if(!y(e)||g(e)!=b)return!1;var t=v(e);if(null===t)return!0;var n=_.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&w.call(n)==x},k=n(86),D={INIT:"@@redux/INIT"};function S(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(S)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){return i}function p(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return u(),s.push(e),function(){if(t){t=!1,u();var n=s.indexOf(e);s.splice(n,1)}}}function d(e){if(!P(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var r=!1,o={},s=0;s]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=a},function(e,t,n){"use strict";var r={"&":"&",">":">","<":"<",'"':""","'":"'"},o=/[&><"']/g;function i(e){return r[e]}e.exports=function(e){return(""+e).replace(o,i)}},function(e,t,n){"use strict";var r=n(25),o=n(40),i=n(95),a=n(157),s=n(15),l=n(99),u=n(4),c=n(63),p={},d=!1,h=0,f={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2);var g=u({},a,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=e}},setEnabled:function(e){g.ReactEventListener&&g.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=function(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=h++,p[e[m]]={}),p[e[m]]}(n),a=i.registrationNameDependencies[e],s=r.topLevelTypes,l=0;l1?t-1:0),o=1;o=32||13===t?t:0}},function(e,t,n){"use strict";e.exports="0.14.9"},function(e,t,n){"use strict";t.__esModule=!0,t.router=t.routes=t.route=t.components=t.component=t.location=t.history=t.falsy=t.locationShape=t.routerShape=void 0;var r=n(0),o=(i(n(53)),function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(31)));i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}var a=r.PropTypes.func,s=r.PropTypes.object,l=r.PropTypes.shape,u=r.PropTypes.string,c=t.routerShape=l({push:a.isRequired,replace:a.isRequired,go:a.isRequired,goBack:a.isRequired,goForward:a.isRequired,setRouteLeaveHook:a.isRequired,isActive:a.isRequired}),p=t.locationShape=l({pathname:u.isRequired,search:u.isRequired,state:s,action:u.isRequired,key:u}),d=t.falsy=o.falsy,h=t.history=o.history,f=t.location=p,m=t.component=o.component,g=t.components=o.components,v=t.route=o.route;t.routes=o.routes;var y={falsy:d,history:h,location:f,component:m,components:g,route:v,router:t.router=c};t.default=y},function(e,t,n){"use strict";t.__esModule=!0,t.addEventListener=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getHashPath=function(){return window.location.href.split("#")[1]||""},t.replaceHashPath=function(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)},t.getWindowPath=function(){return window.location.pathname+window.location.search+window.location.hash},t.go=function(e){e&&window.history.go(e)},t.getUserConfirmation=function(e,t){t(window.confirm(e))},t.supportsHistory=function(){var e=navigator.userAgent;if((-1!==e.indexOf("Android 2.")||-1!==e.indexOf("Android 4.0"))&&-1!==e.indexOf("Mobile Safari")&&-1===e.indexOf("Chrome")&&-1===e.indexOf("Windows Phone"))return!1;return window.history&&"pushState"in window.history},t.supportsGoWithoutReloadUsingHash=function(){return-1===navigator.userAgent.indexOf("Firefox")}},function(e,t,n){"use strict";t.__esModule=!0;!function(e){e&&e.__esModule}(n(17));t.default=function(e,t,n){var r=e(t,n);e.length<2&&n(r)},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;!function(e){e&&e.__esModule}(n(17));t.default=function(e,t){return function(){return e.apply(this,arguments)}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=e&&a&&(o=!0,n())}()},t.mapAsync=function(e,t,n){var r=e.length,o=[];if(0===r)return n(null,o);var i=!1,a=0;e.forEach(function(e,s){t(e,s,function(e,t){!function(e,t,s){if(i)return;t?(i=!0,n(t)):(o[e]=s,(i=++a===r)&&n(null,o))}(s,e,t)})})}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){},function(e,t,n){"use strict";(function(e,r){var o,i=n(141);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(84),n(247)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t * Released under the MIT license * Author: Miller Medeiros * Version: 1.0.0 - Build: 268 (2012/11/29 05:48 PM) */ /** @license * JS Signals * Released under the MIT license * Author: Miller Medeiros * Version: 1.0.0 - Build: 268 (2012/11/29 05:48 PM) */ !function(o){function i(e,t,n,r,o){this._listener=t,this._isOnce=n,this.context=r,this._signal=e,this._priority=o||0}function a(e,t){if("function"!=typeof e)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function s(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){s.prototype.dispatch.apply(e,arguments)}}i.prototype={active:!0,params:null,execute:function(e){var t,n;return this.active&&this._listener&&(n=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,n),this._isOnce&&this.detach()),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},s.prototype={VERSION:"1.0.0",memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(e,t,n,r){var o,a=this._indexOfListener(e,n);if(-1!==a){if((o=this._bindings[a]).isOnce()!==t)throw new Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without removing the relationship first.")}else o=new i(this,e,t,n,r),this._addBinding(o);return this.memorize&&this._prevParams&&o.execute(this._prevParams),o},_addBinding:function(e){var t=this._bindings.length;do{--t}while(this._bindings[t]&&e._priority<=this._bindings[t]._priority);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,r=this._bindings.length;r--;)if((n=this._bindings[r])._listener===e&&n.context===t)return r;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return a(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return a(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){a(e,"remove");var n=this._indexOfListener(e,t);return-1!==n&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,n=Array.prototype.slice.call(arguments),r=this._bindings.length;if(this.memorize&&(this._prevParams=n),r){t=this._bindings.slice(),this._shouldPropagate=!0;do{r--}while(t[r]&&this._shouldPropagate&&!1!==t[r].execute(n))}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var l=s;l.Signal=s,void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";var r=n(24),o=n(91),i=n(107),a=n(34),s=n(9),l=n(15),u=n(29),c=n(16),p=n(77),d=n(72),h=n(207);n(3);i.inject();var f={findDOMNode:d,render:l.measure("React","render",s.render),unmountComponentAtNode:s.unmountComponentAtNode,version:p,unstable_batchedUpdates:c.batchedUpdates,unstable_renderSubtreeIntoContainer:h};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:a,Mount:s,Reconciler:u,TextComponent:o}),e.exports=f},function(e,t,n){"use strict";var r=n(92),o=n(60),i=n(61),a=n(9),s=n(4),l=n(46),u=n(59),c=(n(69),function(e){});s(c.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){if(this._rootNodeID=e,t.useCreateElement){var r=n[a.ownerDocumentContextKey].createElement("span");return o.setAttributeForID(r,e),a.getID(r),u(r,this._stringText),r}var i=l(this._stringText);return t.renderToStaticMarkup?i:""+i+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=a.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){i.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=c},function(e,t,n){"use strict";var r=n(151),o=n(94),i=n(15),a=n(45),s=n(59),l=n(2);function u(e,t,n){var r=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var c={dangerouslyReplaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup,updateTextContent:s,processUpdates:function(e,t){for(var n,i,c=null,p=null,d=0;d',""],l=[1,"","
"],u=[3,"","
"],c=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:u,th:u};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=c,a[e]=!0}),e.exports=function(e){return i||o(!1),p.hasOwnProperty(e)||(e="*"),a.hasOwnProperty(e)||(i.innerHTML="*"===e?"":"<"+e+">",a[e]=!i.firstChild),a[e]?p[e]:null}},function(e,t,n){"use strict";var r=n(44)({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=r},function(e,t,n){"use strict";var r=n(2),o=null,i={};function a(){if(o)for(var e in i){var t=i[e],n=o.indexOf(e);if(n>-1||r(!1),!u.plugins[n]){t.extractEvents||r(!1),u.plugins[n]=t;var a=t.eventTypes;for(var l in a)s(a[l],t,l)||r(!1)}}}function s(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&r(!1),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var i in o){if(o.hasOwnProperty(i))l(o[i],t,n)}return!0}return!!e.registrationName&&(l(e.registrationName,t,n),!0)}function l(e,t,n){u.registrationNameModules[e]&&r(!1),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){o&&r(!1),o=Array.prototype.slice.call(e),a()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];i.hasOwnProperty(n)&&i[n]===o||(i[n]&&r(!1),i[n]=o,t=!0)}t&&a()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){for(var e in o=null,i)i.hasOwnProperty(e)&&delete i[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=u},function(e,t,n){"use strict";var r=null;function o(e,t,n,o){try{return t(n,o)}catch(e){return void(null===r&&(r=e))}}var i={invokeGuardedCallback:o,invokeGuardedCallbackWithCatch:o,rethrowCaughtError:function(){if(r){var e=r;throw r=null,e}}};e.exports=i},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){if(null==t&&r(!1),null==e)return t;var n=Array.isArray(e),o=Array.isArray(t);return n&&o?(e.push.apply(e,t),e):n?(e.push(t),e):o?[e].concat(t):[e,t]}},function(e,t,n){"use strict";e.exports=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.exports=r},function(e,t,n){"use strict";e.exports={useCreateElement:!1}},function(e,t,n){"use strict";var r={};var o={isNullComponentID:function(e){return!!r[e]},registerNullComponentID:function(e){r[e]=!0},deregisterNullComponentID:function(e){delete r[e]}};e.exports=o},function(e,t,n){"use strict";var r={createReactRootIndex:null,injection:{injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}}};e.exports=r},function(e,t,n){"use strict";var r=n(158),o=/\/?>/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=i},function(e,t,n){"use strict";var r=n(161);e.exports=function(e,t){var n=!0;e:for(;n;){var o=e,i=t;if(n=!1,o&&i){if(o===i)return!0;if(r(o))return!1;if(r(i)){e=o,t=i.parentNode,n=!0;continue e}return o.contains?o.contains(i):!!o.compareDocumentPosition&&!!(16&o.compareDocumentPosition(i))}return!1}}},function(e,t,n){"use strict";var r,o=n(10),i=n(101),a=n(29),s={injectEmptyComponent:function(e){r=o.createElement(e)}};function l(){i.registerNullComponentID(this._rootNodeID)}var u=function(e){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=e(r)};n(4)(u.prototype,{construct:function(e){},mountComponent:function(e,t,n){return t.getReactMountReady().enqueue(l,this),this._rootNodeID=e,a.mountComponent(this._renderedComponent,e,t,n)},receiveComponent:function(){},unmountComponent:function(e,t,n){a.unmountComponent(this._renderedComponent),i.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),u.injection=s,e.exports=u},function(e,t,n){"use strict";var r=n(4),o=n(2),i=null,a=null,s={},l=null;var u={getComponentClassForElement:function(e){if("function"==typeof e.type)return e.type;var t=e.type,n=s[t];return null==n&&(s[t]=n=i(t)),n},createInternalComponent:function(e){return a||o(!1),new a(e.type,e.props)},createInstanceForText:function(e){return new l(e)},isTextComponent:function(e){return e instanceof l},injection:{injectGenericComponentClass:function(e){a=e},injectTextComponentClass:function(e){l=e},injectComponentClasses:function(e){r(s,e)}}};e.exports=u},function(e,t,n){"use strict";var r=n(164),o=n(168),i=n(169),a=n(170),s=n(171),l=n(8),u=n(172),c=n(173),p=n(61),d=n(110),h=n(174),f=n(91),m=n(190),g=n(192),v=n(34),y=n(9),b=n(193),E=n(196),C=n(197),w=n(198),_=n(206),x=!1;e.exports={inject:function(){x||(x=!0,g.EventEmitter.injectReactEventListener(m),g.EventPluginHub.injectEventPluginOrder(a),g.EventPluginHub.injectInstanceHandle(v),g.EventPluginHub.injectMount(y),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:w,EnterLeaveEventPlugin:s,ChangeEventPlugin:o,SelectEventPlugin:E,BeforeInputEventPlugin:r}),g.NativeComponent.injectGenericComponentClass(h),g.NativeComponent.injectTextComponentClass(f),g.Class.injectMixin(c),g.DOMProperty.injectDOMPropertyConfig(u),g.DOMProperty.injectDOMPropertyConfig(_),g.EmptyComponent.injectEmptyComponent("noscript"),g.Updates.injectReconcileTransaction(b),g.Updates.injectBatchingStrategy(d),g.RootIndex.injectCreateReactRootIndex(l.canUseDOM?i.createReactRootIndex:C.createReactRootIndex),g.Component.injectEnvironment(p))}}},function(e,t,n){"use strict";var r=n(8),o=null;e.exports=function(){return!o&&r.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}},function(e,t,n){"use strict";var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}},function(e,t,n){"use strict";var r=n(16),o=n(49),i=n(4),a=n(22),s={initialize:a,close:function(){p.isBatchingUpdates=!1}},l=[{initialize:a,close:r.flushBatchedUpdates.bind(r)},s];function u(){this.reinitializeTransaction()}i(u.prototype,o.Mixin,{getTransactionWrappers:function(){return l}});var c=new u,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?e(t,n,r,o,i):c.perform(e,null,t,n,r,o,i)}};e.exports=p},function(e,t,n){"use strict";e.exports=function(e){try{e.focus()}catch(e){}}},function(e,t,n){"use strict";var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};var o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=r[e]})});var i={isUnitlessNumber:r,shorthandPropertyExpansions:{background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}}};e.exports=i},function(e,t,n){"use strict";var r=n(10),o=n(51),i=n(22),a=n(74),s="<>",l={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),any:u(i.thatReturns(null)),arrayOf:function(e){return u(function(t,n,r,i,a){var s=t[n];if(!Array.isArray(s)){var l=o[i],u=d(s);return new Error("Invalid "+l+" `"+a+"` of type `"+u+"` supplied to `"+r+"`, expected an array.")}for(var c=0;c>";return e.constructor.name}(t[n]);return new Error("Invalid "+l+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected instance of `"+u+"`.")}return null})},node:function(){return u(function(e,t,n,r,i){if(!p(e[t])){var a=o[r];return new Error("Invalid "+a+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")}return null})}(),objectOf:function(e){return u(function(t,n,r,i,a){var s=t[n],l=d(s);if("object"!==l){var u=o[i];return new Error("Invalid "+u+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected an object.")}for(var c in s)if(s.hasOwnProperty(c)){var p=e(s,c,r,i,a+"."+c,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");if(p instanceof Error)return p}return null})},oneOf:function(e){if(!Array.isArray(e))return u(function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")});return u(function(t,n,r,i,a){for(var s=t[n],l=0;l.")}var a=u[e]||(u[e]={});if(a[r])return null;a[r]=!0;var s={parentOrOwner:r,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};t&&t._owner&&t._owner!==i.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+".")})("uniqueKey",e,t)}}function d(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n=0&&0===window.sessionStorage.length)return;throw e}},t.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(a(e))}catch(e){if(e.name===i)return null}if(t)try{return JSON.parse(t)}catch(e){}return null};!function(e){e&&e.__esModule}(n(17));var r="@@History/",o=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],i="SecurityError";function a(e){return r+e}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]),p=this.context.router;if(p){if(null==t)return o.default.createElement("a",c);var d=f(t,{query:n,hash:i,state:a});c.href=p.createHref(d),(s||null!=l&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(l))&&p.isActive(d,u)&&(s&&(c.className?c.className+=" "+s:c.className=s),l&&(c.style=r({},c.style,l)))}return o.default.createElement("a",r({},c,{onClick:this.handleClick}))}});t.default=m,e.exports=t.default},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,c=u&&u(Object);e.exports=function e(t,n,p){if("string"!=typeof n){if(c){var d=u(n);d&&d!==c&&e(t,d,p)}var h=a(n);s&&(h=h.concat(s(n)));for(var f=0;f=0;r--){var o=e[r].path||"";if(n=o.replace(/\/*$/,"/")+n,0===o.indexOf("/"))break}return"/"+n}},propTypes:{path:c,from:c,to:c.isRequired,query:p,state:p,onEnter:s.falsy,children:s.falsy},render:function(){(0,o.default)(!1)}});t.default=d,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e),n=(0,r.default)((0,o.default)(function(){return t}))(e);return n.__v2_compatible__=!0,n};var r=a(n(55)),o=a(n(134)),i=a(n(242));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t1?t-1:0),o=1;o=0?t:0,c.from?c.from(e).slice(t):B.call(e,t)}function X(e){return"string"==typeof e&&(e=e.trim?e.trim():e.replace(b,"$1")),e}function G(e,t){var n,r;if(e&&V(t))if(function(e){return c.isArray?c.isArray(e):"array"===W(e)}(e)||H(e.length))for(r=0,n=e.length;r1){if(t=K(arguments),u.assign)return u.assign.apply(u,t);t.shift(),G(t,function(t){G(t,function(t,n){e[n]=t})})}return e}function Z(e,t){var n=K(arguments,2);return function(){return e.apply(t,n.concat(K(arguments)))}}function J(e,t){var n=e.style;G(t,function(e,t){v.test(t)&&H(e)&&(e+="px"),n[t]=e})}function $(e,t){var n;return H(e.length)?G(e,function(e){$(e,t)}):e.classList?e.classList.add(t):void((n=X(e.className))?n.indexOf(t)<0&&(e.className=n+" "+t):e.className=t)}function ee(e,t){return H(e.length)?G(e,function(e){ee(e,t)}):e.classList?e.classList.remove(t):void(e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function te(e,t,n){if(H(e.length))return G(e,function(e){te(e,t,n)});n?$(e,t):ee(e,t)}function ne(e){return e.replace(x,"$1-$2").toLowerCase()}function re(e,t){return q(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-"+ne(t))}function oe(e,t,n){q(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-"+ne(t),n)}function ie(e,t){q(e[t])?delete e[t]:e.dataset?delete e.dataset[t]:e.removeAttribute("data-"+ne(t))}function ae(e,t,n){var r=X(t).split(E);if(r.length>1)return G(r,function(t){ae(e,t,n)});e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)}function se(e,t,n,r){var o=X(t).split(E),i=n;if(o.length>1)return G(o,function(t){se(e,t,n)});r&&(n=function(){return ae(e,t,n),i.apply(e,arguments)}),e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function le(e,t,n){var r;return e.dispatchEvent?(V(Event)&&V(CustomEvent)?r=z(n)?new Event(t,{bubbles:!0,cancelable:!0}):new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):z(n)?(r=i.createEvent("Event")).initEvent(t,!0,!0):(r=i.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)):e.fireEvent?e.fireEvent("on"+t):void 0}function ue(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ce(e){var t,r=e||n.event;return r.target||(r.target=r.srcElement||i),H(r.pageX)||(t=i.documentElement,r.pageX=r.clientX+(n.scrollX||t&&t.scrollLeft||0)-(t&&t.clientLeft||0),r.pageY=r.clientY+(n.scrollY||t&&t.scrollTop||0)-(t&&t.clientTop||0)),r}function pe(e){var t=i.documentElement,r=e.getBoundingClientRect();return{left:r.left+(n.scrollX||t&&t.scrollLeft||0)-(t&&t.clientLeft||0),top:r.top+(n.scrollY||t&&t.scrollTop||0)-(t&&t.clientTop||0)}}function de(e,t){return e.getElementsByTagName(t)}function he(e,t){return e.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t)}function fe(e){return i.createElement(e)}function me(e,t){e.appendChild(t)}function ge(e){e.parentNode&&e.parentNode.removeChild(e)}function ve(e){var t=e.match(y);return t&&(t[1]!==a.protocol||t[2]!==a.hostname||t[3]!==a.port)}function ye(e){var t="timestamp="+(new Date).getTime();return e+(-1===e.indexOf("?")?"?":"&")+t}function be(e){var t=[],n=e.rotate,r=e.scaleX,o=e.scaleY;return H(r)&&H(o)&&t.push("scale("+r+","+o+")"),H(n)&&t.push("rotate("+n+"deg)"),t.length?t.join(" "):"none"}function Ee(e,t){var n,r,o=T(e.degree)%180,i=(o>90?180-o:o)*M/180,a=A(i),s=R(i),l=e.width,u=e.height,c=e.aspectRatio;return t?r=(n=l/(s+a/c))/c:(n=l*s+u*a,r=l*a+u*s),{width:n,height:r}}function Ce(e,t){var n,r,o,i=fe("canvas"),a=i.getContext("2d"),s=0,l=0,u=t.naturalWidth,c=t.naturalHeight,p=t.rotate,d=t.scaleX,h=t.scaleY,f=H(d)&&H(h)&&(1!==d||1!==h),m=H(p)&&0!==p,g=m||f,v=u*T(d||1),y=c*T(h||1);return f&&(n=v/2,r=y/2),m&&(n=(v=(o=Ee({width:v,height:y,degree:p})).width)/2,r=(y=o.height)/2),i.width=v,i.height=y,g&&(s=-u/2,l=-c/2,a.save(),a.translate(n,r)),f&&a.scale(d,h),m&&a.rotate(p*M/180),a.drawImage(e,O(s),O(l),O(u),O(c)),g&&a.restore(),i}function we(e){var t,n,r,o,i,a,s,l,u,c=new DataView(e),p=c.byteLength;if(255===c.getUint8(0)&&216===c.getUint8(1))for(l=2;l=8&&(s=n+r)),s)for(p=c.getUint16(s,o),u=0;u1)switch(this.url=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;tn.width?3===t?l=n.height*s:u=n.width/s:3===t?u=n.width/s:l=n.height*s,(e={naturalWidth:i,naturalHeight:a,aspectRatio:s,width:l,height:u}).oldLeft=e.left=(n.width-l)/2,e.oldTop=e.top=(n.height-u)/2,this.canvasData=e,this.limited=1===t||2===t,this.limitCanvas(!0,!0),this.initialImageData=Q({},r),this.initialCanvasData=Q({},e)},limitCanvas:function(e,t){var n,r,o,i,a=this.options,s=a.viewMode,l=this.containerData,u=this.canvasData,c=u.aspectRatio,p=this.cropBoxData,h=this.cropped&&p;e&&(n=d(a.minCanvasWidth)||0,r=d(a.minCanvasHeight)||0,s>1?(n=S(n,l.width),r=S(r,l.height),3===s&&(r*c>n?n=r*c:r=n/c)):s>0&&(n?n=S(n,h?p.width:0):r?r=S(r,h?p.height:0):h&&(n=p.width,(r=p.height)*c>n?n=r*c:r=n/c)),n&&r?r*c>n?r=n/c:n=r*c:n?r=n/c:r&&(n=r*c),u.minWidth=n,u.minHeight=r,u.maxWidth=1/0,u.maxHeight=1/0),t&&(s?(o=l.width-u.width,i=l.height-u.height,u.minLeft=D(0,o),u.minTop=D(0,i),u.maxLeft=S(0,o),u.maxTop=S(0,i),h&&this.limited&&(u.minLeft=D(p.left,p.left+p.width-u.width),u.minTop=D(p.top,p.top+p.height-u.height),u.maxLeft=p.left,u.maxTop=p.top,2===s&&(u.width>=l.width&&(u.minLeft=D(0,o),u.maxLeft=S(0,o)),u.height>=l.height&&(u.minTop=D(0,i),u.maxTop=S(0,i))))):(u.minLeft=-u.width,u.minTop=-u.height,u.maxLeft=l.width,u.maxTop=l.height))},renderCanvas:function(e){var t,n,r=this.canvasData,o=this.imageData,i=o.rotate;this.rotated&&(this.rotated=!1,(t=(n=Ee({width:o.width,height:o.height,degree:i})).width/n.height)!==r.aspectRatio&&(r.left-=(n.width-r.width)/2,r.top-=(n.height-r.height)/2,r.width=n.width,r.height=n.height,r.aspectRatio=t,r.naturalWidth=o.naturalWidth,r.naturalHeight=o.naturalHeight,i%180&&(n=Ee({width:o.naturalWidth,height:o.naturalHeight,degree:i}),r.naturalWidth=n.width,r.naturalHeight=n.height),this.limitCanvas(!0,!1))),(r.width>r.maxWidth||r.widthr.maxHeight||r.heightr.width?o.height=o.width/t:o.width=o.height*t),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=D(S(o.width,o.minWidth),o.maxWidth),o.height=D(S(o.height,o.minHeight),o.maxHeight),o.width=S(o.minWidth,o.width*n),o.height=S(o.minHeight,o.height*n),o.oldLeft=o.left=r.left+(r.width-o.width)/2,o.oldTop=o.top=r.top+(r.height-o.height)/2,this.initialCropBoxData=Q({},o)},limitCropBox:function(e,t){var n,r,o,i,a=this.options,s=a.aspectRatio,l=this.containerData,u=this.canvasData,c=this.cropBoxData,p=this.limited;e&&(n=d(a.minCropBoxWidth)||0,r=d(a.minCropBoxHeight)||0,n=D(n,l.width),r=D(r,l.height),o=D(l.width,p?u.width:l.width),i=D(l.height,p?u.height:l.height),s&&(n&&r?r*s>n?r=n/s:n=r*s:n?r=n/s:r&&(n=r*s),i*s>o?i=o/s:o=i*s),c.minWidth=D(n,o),c.minHeight=D(r,i),c.maxWidth=o,c.maxHeight=i),t&&(p?(c.minLeft=S(0,u.left),c.minTop=S(0,u.top),c.maxLeft=D(l.width,u.left+u.width)-c.width,c.maxTop=D(l.height,u.top+u.height)-c.height):(c.minLeft=0,c.minTop=0,c.maxLeft=l.width-c.width,c.maxTop=l.height-c.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.heightu&&(p=r*(h=u/o),d=u),J(e,{width:p,height:d}),J(de(e,"img")[0],Q({width:i*h,height:a*h,marginLeft:-s*h,marginTop:-l*h},c))}))},bind:function(){var e=this.options,t=this.element,r=this.cropper;V(e.cropstart)&&se(t,"cropstart",e.cropstart),V(e.cropmove)&&se(t,"cropmove",e.cropmove),V(e.cropend)&&se(t,"cropend",e.cropend),V(e.crop)&&se(t,"crop",e.crop),V(e.zoom)&&se(t,"zoom",e.zoom),se(r,"mousedown touchstart pointerdown MSPointerDown",this._cropStart=Z(this.cropStart,this)),e.zoomable&&e.zoomOnWheel&&se(r,"wheel mousewheel DOMMouseScroll",this._wheel=Z(this.wheel,this)),e.toggleDragModeOnDblclick&&se(r,"dblclick",this._dblclick=Z(this.dblclick,this)),se(i,"mousemove touchmove pointermove MSPointerMove",this._cropMove=Z(this.cropMove,this)),se(i,m,this._cropEnd=Z(this.cropEnd,this)),e.responsive&&se(n,"resize",this._resize=Z(this.resize,this))},unbind:function(){var e=this.options,t=this.element,r=this.cropper;V(e.cropstart)&&ae(t,"cropstart",e.cropstart),V(e.cropmove)&&ae(t,"cropmove",e.cropmove),V(e.cropend)&&ae(t,"cropend",e.cropend),V(e.crop)&&ae(t,"crop",e.crop),V(e.zoom)&&ae(t,"zoom",e.zoom),ae(r,"mousedown touchstart pointerdown MSPointerDown",this._cropStart),e.zoomable&&e.zoomOnWheel&&ae(r,"wheel mousewheel DOMMouseScroll",this._wheel),e.toggleDragModeOnDblclick&&ae(r,"dblclick",this._dblclick),ae(i,"mousemove touchmove pointermove MSPointerMove",this._cropMove),ae(i,m,this._cropEnd),e.responsive&&ae(n,"resize",this._resize)},resize:function(){var e,t,n,r=this.options.restore,o=this.container,i=this.containerData;!this.disabled&&i&&(1===(n=o.offsetWidth/i.width)&&o.offsetHeight===i.height||(r&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),r&&(this.setCanvasData(G(e,function(t,r){e[r]=t*n})),this.setCropBoxData(G(t,function(e,r){t[r]=e*n})))))},dblclick:function(){this.disabled||this.setDragMode(function(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}(this.dragBox,"cropper-crop")?"move":"crop")},wheel:function(e){var t=this,n=ce(e),r=d(t.options.wheelZoomRatio)||.1,o=1;t.disabled||(ue(n),t.wheeling||(t.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),n.deltaY?o=n.deltaY>0?1:-1:n.wheelDelta?o=-n.wheelDelta/120:n.detail&&(o=n.detail>0?1:-1),t.zoom(-o*r,n)))},cropStart:function(e){var t,n,r,o=this.options,i=ce(e),a=i.touches;if(!this.disabled){if(a){if((t=a.length)>1){if(!o.zoomable||!o.zoomOnTouch||2!==t)return;n=a[1],this.startX2=n.pageX,this.startY2=n.pageY,r="zoom"}n=a[0]}if(r=r||re(i.target,"action"),g.test(r)){if(!1===le(this.element,"cropstart",{originalEvent:i,action:r}))return;ue(i),this.action=r,this.cropping=!1,this.startX=n?n.pageX:i.pageX,this.startY=n?n.pageY:i.pageY,"crop"===r&&(this.cropping=!0,$(this.dragBox,"cropper-modal"))}}},cropMove:function(e){var t,n,r=this.options,o=ce(e),i=o.touches,a=this.action;if(!this.disabled){if(i){if((t=i.length)>1){if(!r.zoomable||!r.zoomOnTouch||2!==t)return;n=i[1],this.endX2=n.pageX,this.endY2=n.pageY}n=i[0]}if(a){if(!1===le(this.element,"cropmove",{originalEvent:o,action:a}))return;ue(o),this.endX=n?n.pageX:o.pageX,this.endY=n?n.pageY:o.pageY,this.change(o.shiftKey,"zoom"===a?o:null)}}},cropEnd:function(e){var t=this.options,n=ce(e),r=this.action;this.disabled||r&&(ue(n),this.cropping&&(this.cropping=!1,te(this.dragBox,"cropper-modal",this.cropped&&t.modal)),this.action="",le(this.element,"cropend",{originalEvent:n,action:r}))},change:function(e,t){var n,r,o=this.options.aspectRatio,i=this.action,a=this.containerData,s=this.canvasData,l=this.cropBoxData,u=l.width,c=l.height,p=l.left,d=l.top,h=p+u,m=d+c,g=0,v=0,y=a.width,b=a.height,E=!0;switch(!o&&e&&(o=u&&c?u/c:1),this.limited&&(g=l.minLeft,v=l.minTop,y=g+D(a.width,s.left+s.width),b=v+D(a.height,s.top+s.height)),r={x:this.endX-this.startX,y:this.endY-this.startY},o&&(r.X=r.y*o,r.Y=r.x/o),i){case"all":p+=r.x,d+=r.y;break;case"e":if(r.x>=0&&(h>=y||o&&(d<=v||m>=b))){E=!1;break}u+=r.x,o&&(c=u/o,d-=r.Y/2),u<0&&(i="w",u=0);break;case"n":if(r.y<=0&&(d<=v||o&&(p<=g||h>=y))){E=!1;break}c-=r.y,d+=r.y,o&&(u=c*o,p+=r.X/2),c<0&&(i="s",c=0);break;case"w":if(r.x<=0&&(p<=g||o&&(d<=v||m>=b))){E=!1;break}u-=r.x,p+=r.x,o&&(c=u/o,d+=r.Y/2),u<0&&(i="e",u=0);break;case"s":if(r.y>=0&&(m>=b||o&&(p<=g||h>=y))){E=!1;break}c+=r.y,o&&(u=c*o,p-=r.X/2),c<0&&(i="n",c=0);break;case"ne":if(o){if(r.y<=0&&(d<=v||h>=y)){E=!1;break}c-=r.y,d+=r.y,u=c*o}else r.x>=0?hv&&(c-=r.y,d+=r.y):(c-=r.y,d+=r.y);u<0&&c<0?(i="sw",c=0,u=0):u<0?(i="nw",u=0):c<0&&(i="se",c=0);break;case"nw":if(o){if(r.y<=0&&(d<=v||p<=g)){E=!1;break}c-=r.y,d+=r.y,u=c*o,p+=r.X}else r.x<=0?p>g?(u-=r.x,p+=r.x):r.y<=0&&d<=v&&(E=!1):(u-=r.x,p+=r.x),r.y<=0?d>v&&(c-=r.y,d+=r.y):(c-=r.y,d+=r.y);u<0&&c<0?(i="se",c=0,u=0):u<0?(i="ne",u=0):c<0&&(i="sw",c=0);break;case"sw":if(o){if(r.x<=0&&(p<=g||m>=b)){E=!1;break}u-=r.x,p+=r.x,c=u/o}else r.x<=0?p>g?(u-=r.x,p+=r.x):r.y>=0&&m>=b&&(E=!1):(u-=r.x,p+=r.x),r.y>=0?m=0&&(h>=y||m>=b)){E=!1;break}c=(u+=r.x)/o}else r.x>=0?h=0&&m>=b&&(E=!1):u+=r.x,r.y>=0?m0?i=r.y>0?"se":"ne":r.x<0&&(p-=u,i=r.y>0?"sw":"nw"),r.y<0&&(d-=c),this.cropped||(ee(this.cropBox,f),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}E&&(l.width=u,l.height=c,l.left=p,l.top=d,this.action=i,this.renderCropBox()),this.startX=this.endX,this.startY=this.endY},crop:function(){return this.built&&!this.disabled&&(this.cropped||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&$(this.dragBox,"cropper-modal"),ee(this.cropBox,f)),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.built&&!this.disabled&&(this.imageData=Q({},this.initialImageData),this.canvasData=Q({},this.initialCanvasData),this.cropBoxData=Q({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Q(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(),this.renderCanvas(),ee(this.dragBox,"cropper-modal"),$(this.cropBox,f)),this},replace:function(e,t){return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.built&&(this.image2.src=e,G(this.previews,function(t){de(t,"img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.load(e))),this},enable:function(){return this.built&&(this.disabled=!1,ee(this.cropper,"cropper-disabled")),this},disable:function(){return this.built&&(this.disabled=!0,$(this.cropper,"cropper-disabled")),this},destroy:function(){var e=this.element,t=this.image;return this.ready?(this.isImg&&this.replaced&&(e.src=this.originalUrl),this.unbuild(),ee(e,f)):this.isImg?ae(e,"load",this.start):t&&ge(t),ie(e,"cropper"),this},move:function(e,t){var n=this.canvasData;return this.moveTo(z(e)?e:n.left+d(e),z(t)?t:n.top+d(t))},moveTo:function(e,t){var n=this.canvasData,r=!1;return z(t)&&(t=e),e=d(e),t=d(t),this.built&&!this.disabled&&this.options.movable&&(H(e)&&(n.left=e,r=!0),H(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=d(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,t)},zoomTo:function(e,t){var n,r,o,i,a=this.options,s=this.canvasData,l=s.width,u=s.height,c=s.naturalWidth,p=s.naturalHeight;if((e=d(e))>=0&&this.built&&!this.disabled&&a.zoomable){if(n=c*e,r=p*e,!1===le(this.element,"zoom",{originalEvent:t,oldRatio:l/c,ratio:n/c}))return this;t?(o=pe(this.cropper),i=t.touches?function(e){var t=e.length,n=0,r=0;return t&&(G(e,function(e){n+=e.pageX,r+=e.pageY}),n/=t,r/=t),{pageX:n,pageY:r}}(t.touches):{pageX:t.pageX,pageY:t.pageY},s.left-=(n-l)*((i.pageX-o.left-s.left)/l),s.top-=(r-u)*((i.pageY-o.top-s.top)/u)):(s.left-=(n-l)/2,s.top-=(r-u)/2),s.width=n,s.height=r,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+d(e))},rotateTo:function(e){return H(e=d(e))&&this.built&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.rotated=!0,this.renderCanvas(!0)),this},scale:function(e,t){var n=this.imageData,r=!1;return z(t)&&(t=e),e=d(e),t=d(t),this.built&&!this.disabled&&this.options.scalable&&(H(e)&&(n.scaleX=e,r=!0),H(t)&&(n.scaleY=t,r=!0),r&&this.renderImage(!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,H(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(H(t)?t:1,e)},getData:function(e){var t,n,r=this.options,o=this.imageData,i=this.canvasData,a=this.cropBoxData;return this.built&&this.cropped?(n={x:a.left-i.left,y:a.top-i.top,width:a.width,height:a.height},t=o.width/o.naturalWidth,G(n,function(r,o){r/=t,n[o]=e?N(r):r})):n={x:0,y:0,width:0,height:0},r.rotatable&&(n.rotate=o.rotate||0),r.scalable&&(n.scaleX=o.scaleX||1,n.scaleY=o.scaleY||1),n},setData:function(e){var t,n,r,o=this.options,i=this.imageData,a=this.canvasData,s={};return V(e)&&(e=e.call(this.element)),this.built&&!this.disabled&&Y(e)&&(o.rotatable&&H(e.rotate)&&e.rotate!==i.rotate&&(i.rotate=e.rotate,this.rotated=t=!0),o.scalable&&(H(e.scaleX)&&e.scaleX!==i.scaleX&&(i.scaleX=e.scaleX,n=!0),H(e.scaleY)&&e.scaleY!==i.scaleY&&(i.scaleY=e.scaleY,n=!0)),t?this.renderCanvas():n&&this.renderImage(),r=i.width/i.naturalWidth,H(e.x)&&(s.left=e.x*r+a.left),H(e.y)&&(s.top=e.y*r+a.top),H(e.width)&&(s.width=e.width*r),H(e.height)&&(s.height=e.height*r),this.setCropBoxData(s)),this},getContainerData:function(){return this.built?this.containerData:{}},getImageData:function(){return this.ready?this.imageData:{}},getCanvasData:function(){var e=this.canvasData,t={};return this.built&&G(["left","top","width","height","naturalWidth","naturalHeight"],function(n){t[n]=e[n]}),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return V(e)&&(e=e.call(this.element)),this.built&&!this.disabled&&Y(e)&&(H(e.left)&&(t.left=e.left),H(e.top)&&(t.top=e.top),H(e.width)?(t.width=e.width,t.height=e.width/n):H(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.built&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,o=this.options.aspectRatio;return V(e)&&(e=e.call(this.element)),this.built&&this.cropped&&!this.disabled&&Y(e)&&(H(e.left)&&(r.left=e.left),H(e.top)&&(r.top=e.top),H(e.width)&&(t=!0,r.width=e.width),H(e.height)&&(n=!0,r.height=e.height),o&&(t?r.height=r.width/o:n&&(r.width=r.height*o)),this.renderCropBox()),this},getCroppedCanvas:function(e){var t,n,r,o,i,a,s,l,u,c,p,d=this;if(d.built&&P)return d.cropped?(Y(e)||(e={}),p=d.getData(),t=p.width,n=p.height,l=t/n,Y(e)&&(i=e.width,a=e.height,i?(a=i/l,s=i/t):a&&(i=a*l,s=a/n)),r=O(i||t),o=O(a||n),(u=fe("canvas")).width=r,u.height=o,c=u.getContext("2d"),e.fillColor&&(c.fillStyle=e.fillColor,c.fillRect(0,0,r,o)),c.drawImage.apply(c,function(){var e,r,o,i,a,l,u=Ce(d.image,d.imageData),c=u.width,h=u.height,f=d.canvasData,m=[u],g=p.x+f.naturalWidth*(T(p.scaleX||1)-1)/2,v=p.y+f.naturalHeight*(T(p.scaleY||1)-1)/2;return g<=-t||g>c?g=e=o=a=0:g<=0?(o=-g,e=a=D(c,t+(g=0))):g<=c&&(o=0,e=a=D(t,c-g)),e<=0||v<=-n||v>h?v=r=i=l=0:v<=0?(i=-v,r=l=D(h,n+(v=0))):v<=h&&(i=0,r=l=D(n,h-v)),m.push(O(g),O(v),O(e),O(r)),s&&(o*=s,i*=s,a*=s,l*=s),a>0&&l>0&&m.push(O(o),O(i),O(a),O(l)),m}.call(d)),u):Ce(d.image,d.imageData)},setAspectRatio:function(e){var t=this.options;return this.disabled||z(e)||(t.aspectRatio=S(0,e)||NaN,this.built&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t,n,r=this.options,o=this.dragBox,i=this.face;return this.ready&&!this.disabled&&(t="crop"===e,n=r.movable&&"move"===e,oe(o,"action",e=t||n?e:"none"),te(o,"cropper-crop",t),te(o,"cropper-move",n),r.cropBoxMovable||(oe(i,"action",e),te(i,"cropper-crop",t),te(i,"cropper-move",n))),this}},_e.DEFAULTS={viewMode:0,dragMode:"crop",aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,build:null,built:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},_e.TEMPLATE=function(e,t){return t=t.split(","),'<0 6="5-container"><0 6="5-wrap-9"><0 6="5-canvas"><0 6="5-drag-9"><0 6="5-crop-9"><1 6="5-view-9"><1 6="5-8 8-h"><1 6="5-8 8-v"><1 6="5-center"><1 6="5-face"><1 6="5-7 7-e" 3-2="e"><1 6="5-7 7-n" 3-2="n"><1 6="5-7 7-w" 3-2="w"><1 6="5-7 7-s" 3-2="s"><1 6="5-4 4-e" 3-2="e"><1 6="5-4 4-n" 3-2="n"><1 6="5-4 4-w" 3-2="w"><1 6="5-4 4-s" 3-2="s"><1 6="5-4 4-ne" 3-2="ne"><1 6="5-4 4-nw" 3-2="nw"><1 6="5-4 4-sw" 3-2="sw"><1 6="5-4 4-se" 3-2="se">'.replace(/\d+/g,function(e){return t[e]})}(0,"div,span,action,data,point,cropper,class,line,dashed,box");var xe=n.Cropper;return _e.noConflict=function(){return n.Cropper=xe,_e},_e.setDefaults=function(e){Q(_e.DEFAULTS,e)},void 0===(r=function(){return _e}.apply(t,[]))||(e.exports=r),o||(n.Cropper=_e),_e})},function(e,t,n){"use strict";var r=n(286).CopyToClipboard;e.exports=r},function(e,t,n){},function(e,t,n){"use strict";var r=n(90),o=n(208),i=n(212),a=n(4),s=n(216),l={};a(l,i),a(l,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),l.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,l.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,e.exports=l},function(e,t,n){"use strict";var r=n(8),o=n(152),i=n(22),a=n(93),s=n(2),l=/^(<[^ \/>]+)/;function u(e){return e.substring(1,e.indexOf(" "))}var c={dangerouslyRenderMarkup:function(e){var t;r.canUseDOM||s(!1);for(var n={},c=0;c8&&h<=11);var g=32,v=String.fromCharCode(g),y=r.topLevelTypes,b={beforeInput:{phasedRegistrationNames:{bubbled:u({onBeforeInput:null}),captured:u({onBeforeInputCapture:null})},dependencies:[y.topCompositionEnd,y.topKeyPress,y.topTextInput,y.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:u({onCompositionEnd:null}),captured:u({onCompositionEndCapture:null})},dependencies:[y.topBlur,y.topCompositionEnd,y.topKeyDown,y.topKeyPress,y.topKeyUp,y.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:u({onCompositionStart:null}),captured:u({onCompositionStartCapture:null})},dependencies:[y.topBlur,y.topCompositionStart,y.topKeyDown,y.topKeyPress,y.topKeyUp,y.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:u({onCompositionUpdate:null}),captured:u({onCompositionUpdateCapture:null})},dependencies:[y.topBlur,y.topCompositionUpdate,y.topKeyDown,y.topKeyPress,y.topKeyUp,y.topMouseDown]}},E=!1;function C(e,t){switch(e){case y.topKeyUp:return-1!==c.indexOf(t.keyCode);case y.topKeyDown:return t.keyCode!==p;case y.topKeyPress:case y.topMouseDown:case y.topBlur:return!0;default:return!1}}function w(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}var _=null;function x(e,t,n,r,i){var l,u;if(d?l=function(e){switch(e){case y.topCompositionStart:return b.compositionStart;case y.topCompositionEnd:return b.compositionEnd;case y.topCompositionUpdate:return b.compositionUpdate}}(e):_?C(e,r)&&(l=b.compositionEnd):function(e,t){return e===y.topKeyDown&&t.keyCode===p}(e,r)&&(l=b.compositionStart),!l)return null;m&&(_||l!==b.compositionStart?l===b.compositionEnd&&_&&(u=_.getData()):_=a.getPooled(t));var c=s.getPooled(l,n,r,i);if(u)c.data=u;else{var h=w(r);null!==h&&(c.data=h)}return o.accumulateTwoPhaseDispatches(c),c}function P(e,t,n,r,i){var s;if(!(s=f?function(e,t){switch(e){case y.topCompositionEnd:return w(t);case y.topKeyPress:return t.which!==g?null:(E=!0,v);case y.topTextInput:var n=t.data;return n===v&&E?null:n;default:return null}}(e,r):function(e,t){if(_){if(e===y.topCompositionEnd||C(e,t)){var n=_.getData();return a.release(_),_=null,n}return null}switch(e){case y.topPaste:return null;case y.topKeyPress:return t.which&&!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)?String.fromCharCode(t.which):null;case y.topCompositionEnd:return m?null:t.data;default:return null}}(e,r)))return null;var u=l.getPooled(b.beforeInput,n,r,i);return u.data=s,o.accumulateTwoPhaseDispatches(u),u}var k={eventTypes:b,extractEvents:function(e,t,n,r,o){return[x(e,t,n,r,o),P(e,0,n,r,o)]}};e.exports=k},function(e,t,n){"use strict";var r=n(26),o=n(4),i=n(108);function a(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}o(a.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;e1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),r.addPoolingTo(a),e.exports=a},function(e,t,n){"use strict";var r=n(30);function o(e,t,n,o){r.call(this,e,t,n,o)}r.augmentClass(o,{data:null}),e.exports=o},function(e,t,n){"use strict";var r=n(30);function o(e,t,n,o){r.call(this,e,t,n,o)}r.augmentClass(o,{data:null}),e.exports=o},function(e,t,n){"use strict";var r=n(25),o=n(40),i=n(42),a=n(8),s=n(16),l=n(30),u=n(70),c=n(63),p=n(109),d=n(27),h=r.topLevelTypes,f={change:{phasedRegistrationNames:{bubbled:d({onChange:null}),captured:d({onChangeCapture:null})},dependencies:[h.topBlur,h.topChange,h.topClick,h.topFocus,h.topInput,h.topKeyDown,h.topKeyUp,h.topSelectionChange]}},m=null,g=null,v=null,y=null;var b=!1;function E(e){var t=l.getPooled(f.change,g,e,u(e));i.accumulateTwoPhaseDispatches(t),s.batchedUpdates(C,t)}function C(e){o.enqueueEvents(e),o.processEventQueue(!1)}function w(){m&&(m.detachEvent("onchange",E),m=null,g=null)}function _(e,t,n){if(e===h.topChange)return n}function x(e,t,n){e===h.topFocus?(w(),function(e,t){g=t,(m=e).attachEvent("onchange",E)}(t,n)):e===h.topBlur&&w()}a.canUseDOM&&(b=c("change")&&(!("documentMode"in document)||document.documentMode>8));var P=!1;a.canUseDOM&&(P=c("input")&&(!("documentMode"in document)||document.documentMode>9));var k={get:function(){return y.get.call(this)},set:function(e){v=""+e,y.set.call(this,e)}};function D(){m&&(delete m.value,m.detachEvent("onpropertychange",S),m=null,g=null,v=null,y=null)}function S(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==v&&(v=t,E(e))}}function T(e,t,n){if(e===h.topInput)return n}function A(e,t,n){e===h.topFocus?(D(),function(e,t){m=e,g=t,v=e.value,y=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(m,"value",k),m.attachEvent("onpropertychange",S)}(t,n)):e===h.topBlur&&D()}function R(e,t,n){if((e===h.topSelectionChange||e===h.topKeyUp||e===h.topKeyDown)&&m&&m.value!==v)return v=m.value,g}function I(e,t,n){if(e===h.topClick)return n}var N={eventTypes:f,extractEvents:function(e,t,n,r,o){var a,s;if(!function(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}(t)?p(t)?P?a=T:(a=R,s=A):function(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(t)&&(a=I):b?a=_:s=x,a){var u=a(e,t,n);if(u){var c=l.getPooled(f.change,u,r,o);return c.type="change",i.accumulateTwoPhaseDispatches(c),c}}s&&s(e,t,n)}};e.exports=N},function(e,t,n){"use strict";var r=0,o={createReactRootIndex:function(){return r++}};e.exports=o},function(e,t,n){"use strict";var r=n(27),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];e.exports=o},function(e,t,n){"use strict";var r=n(25),o=n(42),i=n(52),a=n(9),s=n(27),l=r.topLevelTypes,u=a.getFirstReactDOM,c={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[l.topMouseOut,l.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[l.topMouseOut,l.topMouseOver]}},p=[null,null],d={eventTypes:c,extractEvents:function(e,t,n,r,s){if(e===l.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==l.topMouseOut&&e!==l.topMouseOver)return null;var d,h,f;if(t.window===t)d=t;else{var m=t.ownerDocument;d=m?m.defaultView||m.parentWindow:window}var g="",v="";if(e===l.topMouseOut?(h=t,g=n,(f=u(r.relatedTarget||r.toElement))?v=a.getID(f):f=d,f=f||d):(h=d,f=t,v=n),h===f)return null;var y=i.getPooled(c.mouseLeave,g,r,s);y.type="mouseleave",y.target=h,y.relatedTarget=f;var b=i.getPooled(c.mouseEnter,v,r,s);return b.type="mouseenter",b.target=f,b.relatedTarget=h,o.accumulateEnterLeaveDispatches(y,b,g,v),p[0]=y,p[1]=b,p}};e.exports=d},function(e,t,n){"use strict";var r,o=n(33),i=n(8),a=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,l=o.injection.HAS_BOOLEAN_VALUE,u=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,p=o.injection.HAS_POSITIVE_NUMERIC_VALUE,d=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var h=document.implementation;r=h&&h.hasFeature&&h.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var f={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|l,allowTransparency:a,alt:null,async:l,autoComplete:null,autoPlay:l,capture:a|l,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:s|l,classID:a,className:r?a:s,cols:a|p,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|l,coords:null,crossOrigin:null,data:null,dateTime:a,default:l,defer:l,dir:null,disabled:a|l,download:d,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:l,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|l,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:s|l,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:s|l,muted:s|l,name:null,nonce:a,noValidate:l,open:l,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|l,rel:null,required:l,reversed:l,role:a,rows:a|p,rowSpan:null,sandbox:null,scope:null,scoped:l,scrolling:null,seamless:a|l,selected:s|l,shape:null,size:a|p,sizes:a,span:p,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:a,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|u,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,typeof:a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|l,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=f},function(e,t,n){"use strict";n(41);var r=n(72),o=(n(3),{getDOMNode:function(){return this.constructor._getDOMNodeDidWarn=!0,r(this)}});e.exports=o},function(e,t,n){"use strict";var r=n(175),o=n(176),i=n(33),a=n(60),s=n(25),l=n(47),u=n(61),c=n(183),p=n(184),d=n(185),h=n(115),f=n(186),m=n(9),g=n(187),v=n(15),y=n(64),b=n(4),E=n(48),C=n(46),w=n(2),_=(n(63),n(27)),x=n(45),P=n(59),k=(n(116),n(69),n(3),l.deleteListener),D=l.listenTo,S=l.registrationNameModules,T={string:!0,number:!0},A=_({children:null}),R=_({style:null}),I=_({__html:null}),N=1;function O(){return this}function M(){return!!this._reactInternalComponent}function L(){}function U(e,t){var n=this._reactInternalComponent;n&&(y.enqueueSetPropsInternal(n,e),t&&y.enqueueCallbackInternal(n,t))}function j(e,t){var n=this._reactInternalComponent;n&&(y.enqueueReplacePropsInternal(n,e),t&&y.enqueueCallbackInternal(n,t))}function B(e,t){t&&(null!=t.dangerouslySetInnerHTML&&(null!=t.children&&w(!1),"object"==typeof t.dangerouslySetInnerHTML&&I in t.dangerouslySetInnerHTML||w(!1)),null!=t.style&&"object"!=typeof t.style&&w(!1))}function F(e,t,n,r){var o=m.findReactContainerForID(e);if(o){var i=o.nodeType===N?o.ownerDocument:o;D(t,i)}r.getReactMountReady().enqueue(W,{id:e,registrationName:t,listener:n})}function W(){l.putListener(this.id,this.registrationName,this.listener)}var H={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"};function z(){this._rootNodeID||w(!1);var e=m.getNode(this._rootNodeID);switch(e||w(!1),this._tag){case"iframe":this._wrapperState.listeners=[l.trapBubbledEvent(s.topLevelTypes.topLoad,"load",e)];break;case"video":case"audio":for(var t in this._wrapperState.listeners=[],H)H.hasOwnProperty(t)&&this._wrapperState.listeners.push(l.trapBubbledEvent(s.topLevelTypes[t],H[t],e));break;case"img":this._wrapperState.listeners=[l.trapBubbledEvent(s.topLevelTypes.topError,"error",e),l.trapBubbledEvent(s.topLevelTypes.topLoad,"load",e)];break;case"form":this._wrapperState.listeners=[l.trapBubbledEvent(s.topLevelTypes.topReset,"reset",e),l.trapBubbledEvent(s.topLevelTypes.topSubmit,"submit",e)]}}function q(){p.mountReadyWrapper(this)}function Y(){h.postUpdateWrapper(this)}var V={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},X=(b({menuitem:!0},V),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),G={},Q={}.hasOwnProperty;function Z(e,t){return e.indexOf("-")>=0||null!=t.is}function J(e){!function(e){Q.call(G,e)||(X.test(e)||w(!1),G[e]=!0)}(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}J.displayName="ReactDOMComponent",J.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var o,i=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(z,this);break;case"button":i=c.getNativeProps(this,i,n);break;case"input":p.mountWrapper(this,i,n),i=p.getNativeProps(this,i,n);break;case"option":d.mountWrapper(this,i,n),i=d.getNativeProps(this,i,n);break;case"select":h.mountWrapper(this,i,n),i=h.getNativeProps(this,i,n),n=h.processChildContext(this,i,n);break;case"textarea":f.mountWrapper(this,i,n),i=f.getNativeProps(this,i,n)}if(B(0,i),t.useCreateElement){var s=n[m.ownerDocumentContextKey].createElement(this._currentElement.type);a.setAttributeForID(s,this._rootNodeID),m.getID(s),this._updateDOMProperties({},i,t,s),this._createInitialChildren(t,i,n,s),o=s}else{var l=this._createOpenTagMarkupAndPutListeners(t,i),u=this._createContentMarkup(t,i,n);o=!u&&V[this._tag]?l+"/>":l+">"+u+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(q,this);case"button":case"select":case"textarea":i.autoFocus&&t.getReactMountReady().enqueue(r.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(S.hasOwnProperty(r))i&&F(this._rootNodeID,r,i,e);else{r===R&&(i&&(i=this._previousStyleCopy=b({},t.style)),i=o.createMarkupForStyles(i));var s=null;null!=this._tag&&Z(this._tag,t)?r!==A&&(s=a.createMarkupForCustomAttribute(r,i)):s=a.createMarkupForProperty(r,i),s&&(n+=" "+s)}}return e.renderToStaticMarkup?n:n+" "+a.createMarkupForID(this._rootNodeID)},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=T[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=C(i);else if(null!=a){r=this.mountChildren(a,e,n).join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&x(r,o.__html);else{var i=T[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)P(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),l=0;lt.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}:function(e,t){if(window.getSelection){var n=window.getSelection(),r=e[i()].length,a=Math.min(t.start,r),s=void 0===t.end?a:Math.min(t.end,r);if(!n.extend&&a>s){var l=s;s=a,a=l}var u=o(e,a),c=o(e,s);if(u&&c){var p=document.createRange();p.setStart(u.node,u.offset),n.removeAllRanges(),a>s?(n.addRange(p),n.extend(c.node,c.offset)):(p.setEnd(c.node,c.offset),n.addRange(p))}}}};e.exports=l},function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}e.exports=function(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}},function(e,t,n){"use strict";var r=n(25),o=n(42),i=n(8),a=n(121),s=n(30),l=n(122),u=n(109),c=n(27),p=n(116),d=r.topLevelTypes,h=i.canUseDOM&&"documentMode"in document&&document.documentMode<=11,f={select:{phasedRegistrationNames:{bubbled:c({onSelect:null}),captured:c({onSelectCapture:null})},dependencies:[d.topBlur,d.topContextMenu,d.topFocus,d.topKeyDown,d.topMouseDown,d.topMouseUp,d.topSelectionChange]}},m=null,g=null,v=null,y=!1,b=!1,E=c({onSelect:null});function C(e,t){if(y||null==m||m!==l())return null;var n=function(e){if("selectionStart"in e&&a.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}(m);if(!v||!p(v,n)){v=n;var r=s.getPooled(f.select,g,e,t);return r.type="select",r.target=m,o.accumulateTwoPhaseDispatches(r),r}return null}var w={eventTypes:f,extractEvents:function(e,t,n,r,o){if(!b)return null;switch(e){case d.topFocus:(u(t)||"true"===t.contentEditable)&&(m=t,g=n,v=null);break;case d.topBlur:m=null,g=null,v=null;break;case d.topMouseDown:y=!0;break;case d.topContextMenu:case d.topMouseUp:return y=!1,C(r,o);case d.topSelectionChange:if(h)break;case d.topKeyDown:case d.topKeyUp:return C(r,o)}return null},didPutListener:function(e,t,n){t===E&&(b=!0)}};e.exports=w},function(e,t,n){"use strict";var r=Math.pow(2,53),o={createReactRootIndex:function(){return Math.ceil(Math.random()*r)}};e.exports=o},function(e,t,n){"use strict";var r=n(25),o=n(117),i=n(42),a=n(9),s=n(199),l=n(30),u=n(200),c=n(201),p=n(52),d=n(203),h=n(204),f=n(43),m=n(205),g=n(22),v=n(76),y=n(2),b=n(27),E=r.topLevelTypes,C={abort:{phasedRegistrationNames:{bubbled:b({onAbort:!0}),captured:b({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:b({onBlur:!0}),captured:b({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:b({onCanPlay:!0}),captured:b({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:b({onCanPlayThrough:!0}),captured:b({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:b({onClick:!0}),captured:b({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:b({onContextMenu:!0}),captured:b({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:b({onCopy:!0}),captured:b({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:b({onCut:!0}),captured:b({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:b({onDoubleClick:!0}),captured:b({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:b({onDrag:!0}),captured:b({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:b({onDragEnd:!0}),captured:b({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:b({onDragEnter:!0}),captured:b({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:b({onDragExit:!0}),captured:b({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:b({onDragLeave:!0}),captured:b({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:b({onDragOver:!0}),captured:b({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:b({onDragStart:!0}),captured:b({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:b({onDrop:!0}),captured:b({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:b({onDurationChange:!0}),captured:b({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:b({onEmptied:!0}),captured:b({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:b({onEncrypted:!0}),captured:b({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:b({onEnded:!0}),captured:b({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:b({onError:!0}),captured:b({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:b({onFocus:!0}),captured:b({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:b({onInput:!0}),captured:b({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:b({onKeyDown:!0}),captured:b({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:b({onKeyPress:!0}),captured:b({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:b({onKeyUp:!0}),captured:b({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:b({onLoad:!0}),captured:b({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:b({onLoadedData:!0}),captured:b({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:b({onLoadedMetadata:!0}),captured:b({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:b({onLoadStart:!0}),captured:b({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:b({onMouseDown:!0}),captured:b({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:b({onMouseMove:!0}),captured:b({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:b({onMouseOut:!0}),captured:b({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:b({onMouseOver:!0}),captured:b({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:b({onMouseUp:!0}),captured:b({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:b({onPaste:!0}),captured:b({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:b({onPause:!0}),captured:b({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:b({onPlay:!0}),captured:b({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:b({onPlaying:!0}),captured:b({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:b({onProgress:!0}),captured:b({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:b({onRateChange:!0}),captured:b({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:b({onReset:!0}),captured:b({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:b({onScroll:!0}),captured:b({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:b({onSeeked:!0}),captured:b({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:b({onSeeking:!0}),captured:b({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:b({onStalled:!0}),captured:b({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:b({onSubmit:!0}),captured:b({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:b({onSuspend:!0}),captured:b({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:b({onTimeUpdate:!0}),captured:b({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:b({onTouchCancel:!0}),captured:b({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:b({onTouchEnd:!0}),captured:b({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:b({onTouchMove:!0}),captured:b({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:b({onTouchStart:!0}),captured:b({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:b({onVolumeChange:!0}),captured:b({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:b({onWaiting:!0}),captured:b({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:b({onWheel:!0}),captured:b({onWheelCapture:!0})}}},w={topAbort:C.abort,topBlur:C.blur,topCanPlay:C.canPlay,topCanPlayThrough:C.canPlayThrough,topClick:C.click,topContextMenu:C.contextMenu,topCopy:C.copy,topCut:C.cut,topDoubleClick:C.doubleClick,topDrag:C.drag,topDragEnd:C.dragEnd,topDragEnter:C.dragEnter,topDragExit:C.dragExit,topDragLeave:C.dragLeave,topDragOver:C.dragOver,topDragStart:C.dragStart,topDrop:C.drop,topDurationChange:C.durationChange,topEmptied:C.emptied,topEncrypted:C.encrypted,topEnded:C.ended,topError:C.error,topFocus:C.focus,topInput:C.input,topKeyDown:C.keyDown,topKeyPress:C.keyPress,topKeyUp:C.keyUp,topLoad:C.load,topLoadedData:C.loadedData,topLoadedMetadata:C.loadedMetadata,topLoadStart:C.loadStart,topMouseDown:C.mouseDown,topMouseMove:C.mouseMove,topMouseOut:C.mouseOut,topMouseOver:C.mouseOver,topMouseUp:C.mouseUp,topPaste:C.paste,topPause:C.pause,topPlay:C.play,topPlaying:C.playing,topProgress:C.progress,topRateChange:C.rateChange,topReset:C.reset,topScroll:C.scroll,topSeeked:C.seeked,topSeeking:C.seeking,topStalled:C.stalled,topSubmit:C.submit,topSuspend:C.suspend,topTimeUpdate:C.timeUpdate,topTouchCancel:C.touchCancel,topTouchEnd:C.touchEnd,topTouchMove:C.touchMove,topTouchStart:C.touchStart,topVolumeChange:C.volumeChange,topWaiting:C.waiting,topWheel:C.wheel};for(var _ in w)w[_].dependencies=[_];var x=b({onClick:null}),P={},k={eventTypes:C,extractEvents:function(e,t,n,r,o){var a,g=w[e];if(!g)return null;switch(e){case E.topAbort:case E.topCanPlay:case E.topCanPlayThrough:case E.topDurationChange:case E.topEmptied:case E.topEncrypted:case E.topEnded:case E.topError:case E.topInput:case E.topLoad:case E.topLoadedData:case E.topLoadedMetadata:case E.topLoadStart:case E.topPause:case E.topPlay:case E.topPlaying:case E.topProgress:case E.topRateChange:case E.topReset:case E.topSeeked:case E.topSeeking:case E.topStalled:case E.topSubmit:case E.topSuspend:case E.topTimeUpdate:case E.topVolumeChange:case E.topWaiting:a=l;break;case E.topKeyPress:if(0===v(r))return null;case E.topKeyDown:case E.topKeyUp:a=c;break;case E.topBlur:case E.topFocus:a=u;break;case E.topClick:if(2===r.button)return null;case E.topContextMenu:case E.topDoubleClick:case E.topMouseDown:case E.topMouseMove:case E.topMouseOut:case E.topMouseOver:case E.topMouseUp:a=p;break;case E.topDrag:case E.topDragEnd:case E.topDragEnter:case E.topDragExit:case E.topDragLeave:case E.topDragOver:case E.topDragStart:case E.topDrop:a=d;break;case E.topTouchCancel:case E.topTouchEnd:case E.topTouchMove:case E.topTouchStart:a=h;break;case E.topScroll:a=f;break;case E.topWheel:a=m;break;case E.topCopy:case E.topCut:case E.topPaste:a=s}a||y(!1);var b=a.getPooled(g,n,r,o);return i.accumulateTwoPhaseDispatches(b),b},didPutListener:function(e,t,n){if(t===x){var r=a.getNode(e);P[e]||(P[e]=o.listen(r,"click",g))}},willDeleteListener:function(e,t){t===x&&(P[e].remove(),delete P[e])}};e.exports=k},function(e,t,n){"use strict";var r=n(30),o={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};function i(e,t,n,o){r.call(this,e,t,n,o)}r.augmentClass(i,o),e.exports=i},function(e,t,n){"use strict";var r=n(43);function o(e,t,n,o){r.call(this,e,t,n,o)}r.augmentClass(o,{relatedTarget:null}),e.exports=o},function(e,t,n){"use strict";var r=n(43),o=n(76),i={key:n(202),location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:n(71),charCode:function(e){return"keypress"===e.type?o(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?o(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};function a(e,t,n,o){r.call(this,e,t,n,o)}r.augmentClass(a,i),e.exports=a},function(e,t,n){"use strict";var r=n(76),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=function(e){if(e.key){var t=o[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=r(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?i[e.keyCode]||"Unidentified":""}},function(e,t,n){"use strict";var r=n(52);function o(e,t,n,o){r.call(this,e,t,n,o)}r.augmentClass(o,{dataTransfer:null}),e.exports=o},function(e,t,n){"use strict";var r=n(43),o={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:n(71)};function i(e,t,n,o){r.call(this,e,t,n,o)}r.augmentClass(i,o),e.exports=i},function(e,t,n){"use strict";var r=n(52);function o(e,t,n,o){r.call(this,e,t,n,o)}r.augmentClass(o,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),e.exports=o},function(e,t,n){"use strict";var r=n(33).injection.MUST_USE_ATTRIBUTE,o="http://www.w3.org/1999/xlink",i="http://www.w3.org/XML/1998/namespace",a={Properties:{clipPath:r,cx:r,cy:r,d:r,dx:r,dy:r,fill:r,fillOpacity:r,fontFamily:r,fontSize:r,fx:r,fy:r,gradientTransform:r,gradientUnits:r,markerEnd:r,markerMid:r,markerStart:r,offset:r,opacity:r,patternContentUnits:r,patternUnits:r,points:r,preserveAspectRatio:r,r:r,rx:r,ry:r,spreadMethod:r,stopColor:r,stopOpacity:r,stroke:r,strokeDasharray:r,strokeLinecap:r,strokeOpacity:r,strokeWidth:r,textAnchor:r,transform:r,version:r,viewBox:r,x1:r,x2:r,x:r,xlinkActuate:r,xlinkArcrole:r,xlinkHref:r,xlinkRole:r,xlinkShow:r,xlinkTitle:r,xlinkType:r,xmlBase:r,xmlLang:r,xmlSpace:r,y1:r,y2:r,y:r},DOMAttributeNamespaces:{xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:i,xmlLang:i,xmlSpace:i},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};e.exports=a},function(e,t,n){"use strict";var r=n(9);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";var r=n(107),o=n(209),i=n(77);r.inject();var a={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:i};e.exports=a},function(e,t,n){"use strict";var r=n(110),o=n(10),i=n(34),a=n(103),s=n(210),l=n(211),u=n(16),c=n(35),p=n(66),d=n(2);e.exports={renderToString:function(e){var t;o.isValidElement(e)||d(!1);try{u.injection.injectBatchingStrategy(s);var n=i.createReactRootID();return(t=l.getPooled(!1)).perform(function(){var r=p(e,null).mountComponent(n,t,c);return a.addChecksumToMarkup(r)},null)}finally{l.release(t),u.injection.injectBatchingStrategy(r)}},renderToStaticMarkup:function(e){var t;o.isValidElement(e)||d(!1);try{u.injection.injectBatchingStrategy(s);var n=i.createReactRootID();return(t=l.getPooled(!0)).perform(function(){return p(e,null).mountComponent(n,t,c)},null)}finally{l.release(t),u.injection.injectBatchingStrategy(r)}}}},function(e,t,n){"use strict";e.exports={isBatchingUpdates:!1,batchedUpdates:function(e){}}},function(e,t,n){"use strict";var r=n(26),o=n(65),i=n(49),a=n(4),s=[{initialize:function(){this.reactMountReady.reset()},close:n(22)}];function l(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=o.getPooled(null),this.useCreateElement=!1}var u={getTransactionWrappers:function(){return s},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};a(l.prototype,i.Mixin,u),r.addPoolingTo(l),e.exports=l},function(e,t,n){"use strict";var r=n(114),o=n(119),i=n(118),a=n(213),s=n(10),l=(n(123),n(113)),u=n(77),c=n(4),p=n(215),d=s.createElement,h=s.createFactory,f=s.cloneElement;var m={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:p},Component:o,createElement:d,cloneElement:f,isValidElement:s.isValidElement,PropTypes:l,createClass:i.createClass,createFactory:h,createMixin:function(e){return e},DOM:a,version:u,__spread:c};e.exports=m},function(e,t,n){"use strict";var r=n(10);n(123);var o=n(214)({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},function(e){return r.createFactory(e)});e.exports=o},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}},function(e,t,n){"use strict";var r=n(10),o=n(2);e.exports=function(e){return r.isValidElement(e)||o(!1),e}},function(e,t,n){"use strict";n(4),n(3);e.exports=function(e,t,n,r,o){return o}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(a,["createElement","render"]);return null==t?null:(Object.keys(v.propTypes).forEach(function(e){return delete u[e]}),l(r({},u,{history:this.history,router:this.router,location:t,routes:n,params:o,components:i,createElement:s})))}});t.default=v,e.exports=t.default},function(e,t,n){var r=Array.prototype.slice,o=n(219),i=n(220),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u=0;u--)if(p[u]!=d[u])return!1;for(u=p.length-1;u>=0;u--)if(c=p[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t,n){"use strict";t.__esModule=!0;var r=Array.prototype.slice;t.loopAsync=function(e,t,n){var o=0,i=!1,a=!1,s=!1,l=void 0;function u(){i=!0,a?l=[].concat(r.call(arguments)):n.apply(this,arguments)}!function r(){if(i)return;s=!0;if(a)return;a=!0;for(;!i&&o=e&&s&&(i=!0,n())}()}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["routes"]),s=(0,o.default)(e)(a),l=(0,i.default)(s,n);return r({},s,l)}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(0)),o=i(n(56));i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}var a=r.default.createClass({displayName:"RoutingContext",componentWillMount:function(){},render:function(){return r.default.createElement(o.default,this.props)}});t.default=a,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["history","routes","location"]);n||p||(0,i.default)(!1),n=n||(0,a.default)(d);var h=(0,s.default)(n,(0,l.createRoutes)(c)),f=void 0;p?p=n.createLocation(p):f=n.listen(function(e){p=e});var m=(0,u.createRouterObject)(n,h);n=(0,u.createRoutingHistory)(n,h),h.match(p,function(e,i,a){t(e,i&&m.createLocation(i,o.REPLACE),a&&r({},a,{history:n,router:m,matchContext:{history:n,transitionManager:h,router:m}})),f&&f()})},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=0&&t=0&&u3&&void 0!==arguments[3]?arguments[3]:{},g=Boolean(e),v=e||p,y=void 0;y="function"==typeof t?t:t?(0,s.default)(t):d;var b=n||h,E=c.pure,C=void 0===E||E,w=c.withRef,_=void 0!==w&&w,x=C&&b!==h,P=m++;return function(e){var t="Connect("+function(e){return e.displayName||e.name||"Component"}(e)+")";var n=function(n){function i(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,r));o.version=P,o.store=e.store||r.store,(0,u.default)(o.store,'Could not find "store" in either the context or props of "'+t+'". Either wrap the root component in a , or explicitly pass "store" as a prop to "'+t+'".');var a=o.store.getState();return o.state={storeState:a},o.clearCache(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),i.prototype.shouldComponentUpdate=function(){return!C||this.haveOwnPropsChanged||this.hasStoreStateChanged},i.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},i.prototype.configureFinalMapState=function(e,t){var n=v(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:v,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},i.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},i.prototype.configureFinalMapDispatch=function(e,t){var n=y(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:y,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},i.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,a.default)(e,this.stateProps))&&(this.stateProps=e,!0)},i.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,a.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},i.prototype.updateMergedPropsIfNeeded=function(){var e=function(e,t,n){var r=b(e,t,n);0;return r}(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&x&&(0,a.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},i.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},i.prototype.trySubscribe=function(){g&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},i.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},i.prototype.componentDidMount=function(){this.trySubscribe()},i.prototype.componentWillReceiveProps=function(e){C&&(0,a.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},i.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},i.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},i.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!C||t!==e){if(C&&!this.doStatePropsDependOnOwnProps){var n=function(e,t){try{return e.apply(t)}catch(e){return f.value=e,f}}(this.updateStatePropsIfNeeded,this);if(!n)return;n===f&&(this.statePropsPrecalculationError=f.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},i.prototype.getWrappedInstance=function(){return(0,u.default)(_,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},i.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,i=this.haveStatePropsBeenPrecalculated,a=this.statePropsPrecalculationError,s=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,a)throw a;var l=!0,u=!0;C&&s&&(l=n||t&&this.doStatePropsDependOnOwnProps,u=t&&this.doDispatchPropsDependOnOwnProps);var c=!1,p=!1;i?c=!0:l&&(c=this.updateStatePropsIfNeeded()),u&&(p=this.updateDispatchPropsIfNeeded());return!(!!(c||p||t)&&this.updateMergedPropsIfNeeded())&&s?s:(this.renderedElement=_?(0,o.createElement)(e,r({},this.mergedProps,{ref:"wrappedInstance"})):(0,o.createElement)(e,this.mergedProps),this.renderedElement)},i}(o.Component);return n.displayName=t,n.WrappedComponent=e,n.contextTypes={store:i.default},n.propTypes={store:i.default},(0,l.default)(n,e)}};var o=n(0),i=c(n(137)),a=c(n(252)),s=c(n(253)),l=(c(n(138)),c(n(254)),c(n(131))),u=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){return{}},d=function(e){return{dispatch:e}},h=function(e,t,n){return r({},n,e,t)};var f={value:null};var m=0},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(268),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag",u="object"==typeof e,c=t.regeneratorRuntime;if(c)u&&(e.exports=c);else{(c=t.regeneratorRuntime=u?e.exports:{}).wrap=E;var p="suspendedStart",d="suspendedYield",h="executing",f="completed",m={},g={};g[a]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(R([])));y&&y!==r&&o.call(y,a)&&(g=y);var b=x.prototype=w.prototype=Object.create(g);_.prototype=b.constructor=x,x.constructor=_,x[l]=_.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},c.awrap=function(e){return{__await:e}},P(k.prototype),k.prototype[s]=function(){return this},c.AsyncIterator=k,c.async=function(e,t,n,r){var o=new k(E(e,t,n,r));return c.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},P(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:R(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function E(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(e,t,n){var r=p;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=D(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=C(e,t,n);if("normal"===l.type){if(r=n.done?f:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function C(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function w(){}function _(){}function x(){}function P(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var s=C(e[n],e,r);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){l.value=e,i(l)},function(e){return t("throw",e,i,a)})}a(s.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function D(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,D(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=C(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["text","onCopy","options","children"]),i=o.default.Children.only(t);return o.default.cloneElement(i,r({},n,{onClick:this.onClick}))}})},function(e,t,n){"use strict";var r=n(0),o=n(288);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t,n){"use strict";var r=n(289),o=n(35),i=n(2),a="mixins";e.exports=function(e,t,n){var s=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},u={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n0}},{key:"firstErrorMessage",value:function(){return this._form.errors[Object.keys(this._form.errors)[0]][0].message}}]),e}();function P(){return/Mobi/.test(navigator.userAgent)}var k=o.a.createClass({displayName:"Login",render:function(){var e="Log into your account to see your pasted images.",t=".";"#pro_monthly"===window.location.hash&&(e="Log into your account to sign up for Snipboard Pro.",t=".?next=/accounts/pro#subscribe_monthly"),"#pro_yearly"===window.location.hash&&(e="Log into your account to sign up for Snipboard Pro.",t=".?next=/accounts/pro#subscribe_yearly");var n=new x(pagevars.form);return n.hasErrors()&&(e=o.a.createElement("i",null,n.firstErrorMessage())),o.a.createElement("div",{className:"account-form content center-block"},o.a.createElement("form",{method:"POST",action:t},o.a.createElement("input",{type:"hidden",name:"csrfmiddlewaretoken",value:csrf_token}),o.a.createElement("h1",null,e),o.a.createElement("p",null,o.a.createElement("input",{autofocus:"autofocus",id:"id_login",name:"login",placeholder:"Email",type:"email"})),o.a.createElement("p",null,o.a.createElement("input",{id:"id_password",name:"password",placeholder:"Password",type:"password"})),o.a.createElement("div",{style:{marginTop:"2px"}},o.a.createElement(b.a,{sitekey:recaptcha.key})),o.a.createElement("button",{type:"submit"},o.a.createElement("span",null,"Log in"))),o.a.createElement(s.Link,{to:"/accounts/password/reset/"},"Forgot your password?"))}}),D=o.a.createClass({displayName:"Signup",render:function(){var e="Create an account to keep track of your pasted images.",t="/accounts/login/",n=".?next=/accounts/pro";"#pro_monthly"===window.location.hash&&(e="Create an account to sign up for Snipboard Pro.",t="/accounts/login/#pro_monthly",n=".?next=/accounts/pro#subscribe_monthly"),"#pro_yearly"===window.location.hash&&(e="Create an account to sign up for Snipboard Pro.",t="/accounts/login/#pro_yearly",n=".?next=/accounts/pro#subscribe_yearly");var r=new x(pagevars.form);return r.hasErrors()&&(e=o.a.createElement("i",null,r.firstErrorMessage())),o.a.createElement("div",{className:"account-form content center-block"},o.a.createElement("form",{method:"POST",action:n},o.a.createElement("input",{type:"hidden",name:"csrfmiddlewaretoken",value:csrf_token}),o.a.createElement("h1",null,e),o.a.createElement("p",null,o.a.createElement("input",{autofocus:"autofocus",id:"id_email",name:"email",placeholder:"Email",type:"email"})),o.a.createElement("p",null,o.a.createElement("input",{id:"id_password1",name:"password1",placeholder:"Password",type:"password"})),o.a.createElement("button",{type:"submit"},o.a.createElement("span",null,"Sign up"))),o.a.createElement(s.Link,{to:t},"Already have an account?"))}}),S=o.a.createClass({displayName:"ResetPassword",render:function(){var e="Enter your email address to reset your account password.",t=new x(pagevars.form);return t.hasErrors()&&(e=o.a.createElement("i",null,t.firstErrorMessage())),o.a.createElement("div",{className:"account-form content center-block"},o.a.createElement("form",{method:"POST",action:"."},o.a.createElement("input",{type:"hidden",name:"csrfmiddlewaretoken",value:csrf_token}),o.a.createElement("h1",null,e),o.a.createElement("p",null,o.a.createElement("input",{autofocus:"autofocus",id:"id_email",name:"email",size:"30",type:"email",placeholder:"Email"})),o.a.createElement("button",{type:"submit"},o.a.createElement("span",null,"Reset"))))}}),T=o.a.createClass({displayName:"ResetPasswordDone",render:function(){return o.a.createElement("div",{className:"account-form content center-block"},o.a.createElement("form",null,o.a.createElement("h1",null,"Check your email for reset instructions.")))}}),A=o.a.createClass({displayName:"ResetPasswordFromKey",render:function(){var e;if(pagevars.token_fail)e=o.a.createElement("form",null,o.a.createElement("h1",null,o.a.createElement("i",null,"This password reset link is invalid, possibly because it has already been used. Please request a ",o.a.createElement(s.Link,{to:"/accounts/password/reset/"},"new password reset"),".")));else if(pagevars.form){var t="Enter a new password.",n=new x(pagevars.form);n.hasErrors()&&(t=o.a.createElement("i",null,n.firstErrorMessage())),e=o.a.createElement("form",{method:"POST",action:"."},o.a.createElement("input",{type:"hidden",name:"csrfmiddlewaretoken",value:csrf_token}),o.a.createElement("h1",null,t),o.a.createElement("p",null,o.a.createElement("input",{autofocus:"autofocus",id:"id_password1",name:"password1",placeholder:"Password",type:"password"})),o.a.createElement("p",null,o.a.createElement("input",{id:"id_password2",name:"password2",placeholder:"Confirm password",type:"password"})),o.a.createElement("button",{type:"submit"},o.a.createElement("span",null,"Submit")))}else e=o.a.createElement("form",null,o.a.createElement("h1",null,"Your password has been changed. You may now ",o.a.createElement(s.Link,{to:"/accounts/login/"},"log in"),"."));return o.a.createElement("div",{className:"account-form content center-block"},e)}}),R=(o.a.createClass({displayName:"ResetPasswordFromKeyDone",render:function(){return o.a.createElement("div",{className:"account-form content center-block"},o.a.createElement("form",null,o.a.createElement("h1",null,"Your password has been changed. You may now ",o.a.createElement(s.Link,{to:"/accounts/login/"},"log in"),".")))}}),o.a.createClass({displayName:"EmailConfirmationSuccessAnonymous",render:function(){return o.a.createElement("div",{className:"account-form content center-block"},o.a.createElement("form",null,o.a.createElement("h1",null,"Thanks for confirming your email! You may now ",o.a.createElement(s.Link,{to:"/accounts/login/"},"log in"),".")))}})),I=o.a.createClass({displayName:"EmailConfirmationSuccessAuthenticated",render:function(){return o.a.createElement("div",{className:"account-form content center-block"},o.a.createElement("form",null,o.a.createElement("h1",null,"Thanks for confirming your email!")))}}),N=n(21),O=n.n(N),M=n(39),L=n.n(M),U=n(18),j=n.n(U),B=n(19),F=n.n(B),W=n(20),H=n.n(W),z=n(5),q=n.n(z),Y=n(14),V=n.n(Y),K=(n(271),n(85),n(87)),X=n.n(K),G=n(88),Q=n.n(G),Z=(n(272),function(e){function t(){var e,n;C()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i=e.mobile_size?n.nitro_desktop_sizes:n.nitro_mobile_sizes).length)continue;"undefined"==typeof nads||null===nads?(console.log("Nitro ads failed loading."),ne=!1):nads.createAd(n.id,{floor:.05,refreshLimit:10,refreshTime:30,sizes:r,report:{enabled:!1,wording:"Report Ad",position:"fixed-bottom-right"}})}}};ne?t():(ne=!0,fe(te,t))}(e):ge(e)}},ye=function(e){function t(){return C()(this,t),j()(this,F()(t).apply(this,arguments))}return H()(t,e),_()(t,[{key:"componentDidMount",value:function(){var e=this.props.type;if("empty"!=e){var t=function(e){for(var t in pe)if(pe[t].name==e)return pe[t]}(me(e).group);ve(t)}else ne||(ne=!0,fe(te,null))}},{key:"render",value:function(){var e=this.props.type,t=me(e);return t?o.a.createElement("div",{className:"ad-main",id:t.id}):o.a.createElement("div",null)}}]),t}(o.a.Component);((function(e){function t(){var e,n;C()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0?o.a.createElement("div",{className:"drop-zone showing"}):null,o.a.createElement("div",{className:"row top-row"},o.a.createElement("div",{className:"col-md-5 text-center"},o.a.createElement(m,null)),o.a.createElement("div",{className:"col-md-7 blurb instructional center-block"},o.a.createElement("h1",null,"The easiest way to share screenshots and images."))),o.a.createElement("div",{className:"row bottom-row"},o.a.createElement("div",{className:"col-md-12"},o.a.createElement("div",{className:"center-block instructional"},e)),o.a.createElement("div",{className:"switch-platform",onClick:this.props.onClickSwitchPlatform},"> instructions for ","mac"===this.props.platform?"Windows":"Mac")),o.a.createElement("div",{className:"row other-options"},"Other upload options: ",o.a.createElement("strong",null,"drag and drop")," image files onto this page, or ",o.a.createElement("label",null,o.a.createElement("input",{type:"file",id:"filepicker",name:"filepicker",accept:"image/png, image/jpeg",onChange:this.onPickedFile}),"pick a file")," from your computer."))}}),Ce=(n(278),n(145)),we=n.n(Ce),_e=n(146),xe=n.n(_e),Pe=o.a.createClass({displayName:"TipsBox",propTypes:{onClickSwitchPlatform:r.PropTypes.func.isRequired,platform:r.PropTypes.string.isRequired},render:function(){var e=o.a.createElement("div",null);return e="mac"===this.props.platform?o.a.createElement("div",null,o.a.createElement("p",null,"For Mac users, the screen capture shortcut is ",o.a.createElement("span",{className:"key"},"Command + Control + Shift + 3"),"."),o.a.createElement("br",null),o.a.createElement("img",{src:we.a})):o.a.createElement("div",null,o.a.createElement("p",null,"The ",o.a.createElement("span",{className:"key"},"Print Screen")," key is your universal screen capture button. It’s located near the top right area of your keyboard, and is sometimes abbreviated to something like “",o.a.createElement("span",{className:"key"},"Prt Scr"),"”."),o.a.createElement("img",{src:xe.a})),o.a.createElement("div",{className:"tips-box container-fluid"},o.a.createElement("div",{className:"tips-box-content container-fluid"},user.is_pro?null:o.a.createElement("div",{className:"ad-container"},o.a.createElement(ye,{type:"home"})),o.a.createElement("div",{className:"tips-box-content"},o.a.createElement("h2",null,"About Snipboard.io"),o.a.createElement("p",null,"Snipboard.io is the fastest way to share a screenshot without needing to download or install anything. It’s designed with your workflow in mind by using only a minimum number of keypresses to share your images."),o.a.createElement("br",null),o.a.createElement("h2",null,"Capturing your screen"),e,o.a.createElement("p",null,"You can use it anywhere - you don’t need the Snipboard.io website open. Just press it once and it’ll take a snapshot of whatever is currently on your screen and store it in your clipboard. Then, just open up Snipboard.io and paste it by pressing ",o.a.createElement("span",{className:"key"},"Ctrl + V"),"."),o.a.createElement("div",{className:"switch-platform",onClick:this.props.onClickSwitchPlatform},"> instructions for ","mac"===this.props.platform?"Windows":"Mac"),o.a.createElement("br",null),o.a.createElement("h2",null,"Features"),o.a.createElement("ul",null,o.a.createElement("li",null,"Crop and edit your images with the simple, built-in editor."),o.a.createElement("li",null,o.a.createElement(s.Link,{to:"/accounts/signup/"},"Register an account")," to manage and delete your old images."),o.a.createElement("li",null,"Designed with power-users in mind, Snipboard.io has a fast workflow that requires only the minimum number of keypresses.")),o.a.createElement("a",{name:"pro",style:{position:"relative",top:"-64px"}}),o.a.createElement("br",null),o.a.createElement(Z,null),o.a.createElement("br",null),o.a.createElement("h2",null,"Tips"),o.a.createElement("ul",null,o.a.createElement("li",null,"Pressing ",o.a.createElement("span",{className:"key"},"Print Screen")," captures the whole screen, while ",o.a.createElement("span",{className:"key"},"Alt + Print Screen")," captures just the currently active window."),o.a.createElement("li",null,"As soon as you press ",o.a.createElement("span",{className:"key"},"Ctrl + V"),", you can press ",o.a.createElement("span",{className:"key"},"Ctrl + C")," to copy the image’s URL to your clipboard."),o.a.createElement("li",null,"You can paste any kind of image data from your clipboard, such as marquee selections from Photoshop or other editors."),o.a.createElement("li",null,"Take advantage of shortcut keys when using the editor. Hover your mouse over the editor’s tool icons to learn the hotkeys.")),o.a.createElement("br",null),o.a.createElement("h2",null,"FAQ"),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("p",null,o.a.createElement("b",null,"How do I get rid of ads?")),o.a.createElement(s.Link,{to:"/accounts/pro"},"Sign up for a Snipboard Pro account")," to remove advertisements site-wide. In addition, images from Pro users will be ad-free for everyone, so you can share them with friends and clients for a fast and clean professional experience. Note that viral images with over 10,000 views will have ads re-enabled."),o.a.createElement("br",null),o.a.createElement("li",null,o.a.createElement("p",null,o.a.createElement("b",null,"How long will my images last?")),"Your images will be stored as long as they have been viewed at least once in the last 6 months. ",o.a.createElement(s.Link,{to:"/accounts/pro"},"Pro accounts")," have unlimited storage lifetime."),o.a.createElement("br",null),o.a.createElement("li",null,o.a.createElement("p",null,o.a.createElement("b",null,"How do I delete an image?")),"Your ",o.a.createElement(s.Link,{to:"/accounts/profile"},"profile page")," will keep track of all your pasted images. Click on the trash can button to delete it."))),o.a.createElement("span",{"data-ccpa-link":"1"})))}}),ke=(n(279),o.a.Component,n(280),n(140),function(e,t){this.x=e,this.y=t});ke.prototype.add=function(e){return new ke(this.x+e.x,this.y+e.y)},ke.prototype.subtract=function(e){return new ke(this.x-e.x,this.y-e.y)};var De=function(e,t){this.min=e,this.max=t,this.width=this.max.x-this.min.x,this.height=this.max.y-this.min.y},Se=function(e){this.bounds=e};Se.prototype.perform=function(e){e.setBounds(this.bounds)};var Te=function(e,t){this.pencilDrawing=new Ae(e,t)};Te.prototype.begin=function(e,t){this.pencilDrawing.begin(e,t)},Te.prototype.addPoint=function(e,t){this.pencilDrawing.addPoint(e,t)},Te.prototype.finish=function(e){this.pencilDrawing.finish(e),e.objects.push(this.pencilDrawing.duplicate())},Te.prototype.perform=function(e){e.objects.push(this.pencilDrawing.duplicate())};var Ae=function(e,t){this.color=e,this.size=t,this.points=[]};Ae.prototype.begin=function(e,t){this.points.push(e),this.prepContext(t),t.imageCtx.lineTo(e.x+.001,e.y),t.imageCtx.stroke()},Ae.prototype.prepContext=function(e){e.imageCtx.beginPath(),e.imageCtx.strokeStyle=this.color,e.imageCtx.lineWidth=this.size,e.imageCtx.lineCap="round",e.imageCtx.lineJoin="round",e.imageCtx.moveTo(this.points[0].x,this.points[0].y)},Ae.prototype.addPoint=function(e,t){this.points.push(e),t.imageCtx.lineTo(e.x,e.y),t.imageCtx.stroke()},Ae.prototype.finish=function(e){},Ae.prototype.duplicate=function(e){var t=new Ae(this.color,this.size);return t.points=this.points.slice(0),t},Ae.prototype.draw=function(e){this.prepContext(e),e.imageCtx.lineTo(this.points[0].x+.001,this.points[0].y);for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:1,n=$("")[0];return n.width=this.imageCanvas.width,n.height=this.imageCanvas.height,n.getContext("2d").putImageData(this.imageCtx.getImageData(0,0,n.width,n.height),0,0),n.toDataURL(e,t)},setBounds:function(e){for(var t in this.objects)this.objects[t].offsetBy(new ke(e.min.x-this.bounds.min.x,e.min.y-this.bounds.min.y));this.bounds=e,this.imageCanvas.width=e.width,this.imageCanvas.height=e.height},pagePointToCanvasPoint:function(e){var t=new ke(e.x,e.y);return t.x*=this.imageCanvas.width/this.parent.width(),t.y*=this.imageCanvas.height/this.parent.height(),t},canvasPointToPagePoint:function(e){var t=new ke(e.x,e.y);return t.x*=this.parent.width()/this.imageCanvas.width,t.y*=this.parent.height()/this.imageCanvas.height,t},beginPencilAction:function(e,t,n){this.pencilAction=new Te(e,t),this.pencilAction.begin(this.pagePointToCanvasPoint(n),this),this.changeCallback&&this.changeCallback()},addPencilPoint:function(e){this.pencilAction.addPoint(this.pagePointToCanvasPoint(e),this)},endPencilAction:function(){this.pencilAction&&(this.pencilAction.finish(this),this.pushAction(this.pencilAction,!1),this.pencilAction=null,this.draw())},beginTextAction:function(e,t,n,r){this.endTextAction(),this.textAction=new Re(e,t,n,this.pagePointToCanvasPoint(r)),this.changeCallback&&this.changeCallback()},backspace:function(){this.textAction&&(this.textAction.backspace(this),this.changeCallback&&this.changeCallback())},addText:function(e){this.textAction&&(this.textAction.addText(e,this),this.changeCallback&&this.changeCallback())},endTextAction:function(){this.textAction&&(this.textAction.finish(this)&&this.pushAction(this.textAction,!1),this.textAction=null,this.changeCallback&&this.changeCallback())},getCursorPos:function(){if(!this.textAction)return null;var e=this.textAction.getCursorPos();return this.canvasPointToPagePoint(e)},getLineHeight:function(){return this.textAction?this.textAction.getLineHeight()*this.parent.height()/this.imageCanvas.height:null},resetState:function(){this.setBounds(new De(new ke(0,0),new ke(this.imageSize.x,this.imageSize.y))),this.objects=[]},getCurrentActionID:function(){return-1===this.actionPointer?-1:this.actions[this.actionPointer].actionID},pushAction:function(e,t){this.actions=this.actions.slice(0,this.actionPointer+1),this.actions.push({action:e,actionID:Date.now()}),this.actionPointer++,t&&(e.perform(this),this.draw()),this.changeCallback&&this.changeCallback()},replayActions:function(){this.resetState();for(var e=0;e=0||null!==this.pencilAction||null!==this.textAction&&""!==this.textAction.text.text},canRedo:function(){return null===this.pencilAction&&(null===this.textAction||""===this.textAction.text.text)&&this.actionPointer!==this.actions.length-1},undo:function(){this.canUndo()?(this.endTextAction(),this.actionPointer--,this.replayActions(),this.changeCallback&&this.changeCallback()):null!==this.textAction&&""===this.textAction.text.text&&this.endTextAction()},redo:function(){this.canRedo()&&(this.endTextAction(),this.actionPointer++,this.replayActions(),this.changeCallback&&this.changeCallback())},crop:function(e,t,n,r){if(e+=this.bounds.min.x,t+=this.bounds.min.y,ethis.bounds.max.x||t+r>this.bounds.max.y)console.log("Illegal crop.");else if(e!=this.bounds.min.x||t!=this.bounds.min.y||n!=this.bounds.width||r!=this.bounds.height){var o=new ke(e,t),i=o.add(new ke(n,r));this.pushAction(new Se(new De(o,i)),!0)}else console.log("Nothing to crop.")},drawImage:function(){this.imageCtx.drawImage(this.image,this.bounds.min.x,this.bounds.min.y,this.bounds.width,this.bounds.height,0,0,this.imageCanvas.width,this.imageCanvas.height)},drawObjects:function(){for(var e in this.objects)this.objects[e].draw(this)},draw:function(){this.drawImage(),this.drawObjects()}};Ne.Vector2=ke,Ne.Bounds=De;var Oe=Ne,Me=(n(281),o.a.createClass({displayName:"LoadFailed",render:function(){return o.a.createElement("div",{className:"load-failed",title:"The image failed to load."},"×")}})),Le=(n(282),n(147)),Ue=n.n(Le),je=o.a.createClass({displayName:"Cropper",propTypes:{isEnabled:r.PropTypes.bool.isRequired,width:r.PropTypes.number.isRequired,height:r.PropTypes.number.isRequired},_cropper:null,componentDidMount:function(){this.props.isEnabled&&this._addCropper()},componentDidUpdate:function(e){this.props.isEnabled?this._cropper?e.width===this.props.width&&e.height===this.props.height||this.resetCropper():this._addCropper():this._removeCropper()},getCropBounds:function(e){if(!this._cropper)return null;var t=this._cropper.getData(!1);if(!t)return null;var n=new e.Vector2(t.x,t.y),r=new e.Vector2(t.x+t.width,t.y+t.height);return n.x<0&&(n.x=0),n.y<0&&(n.y=0),r.x>this.props.width&&(r.x=this.props.width),r.y>this.props.height&&(r.y=this.props.height),new e.Bounds(n,r)},resetCropper:function(){this._cropper&&(this._removeCropper(),this._addCropper())},_addCropper:function(){var e=this;if(!this._cropper){var t=a.a.findDOMNode(this);t.width=this.props.width,t.height=this.props.height;var n=new Ue.a(t,{autoCrop:!1,background:!1,zoomable:!1,minContainerWidth:1,minContainerHeight:1,responsive:!0,rotatable:!1,doubleClickToggle:!1,touchDragZoom:!1,checkCrossOrigin:!1,built:function(){e.props.isEnabled?($(".cropper-drag-box").mousedown(function(t){e._cropper&&(e._cropper._blurTest={x:t.pageX,y:t.pageY})}),$(".cropper-drag-box").mouseup(function(t){e._cropper&&e._cropper._blurTest.x===t.pageX&&e._cropper._blurTest.y===t.pageY&&e._cropper.clear()})):e._cropper?e._removeCropper():n.destroy()}});this._cropper=n}},_removeCropper:function(){this._cropper&&(this._cropper.destroy(),this._cropper=null)},componentWillUnmount:function(){this._removeCropper()},render:function(){return o.a.createElement("canvas",{className:"crop-canvas",width:this.props.width,height:this.props.height})}}),Be=(n(283),n(89)),Fe=n.n(Be),We=new Fe.a.Signal,He=new Fe.a.Signal,ze="paste",qe="backspace",Ye="esc",Ve="enter",Ke="undo",Xe="redo",Ge="copy",Qe="save",Ze="space",Je="space_up",$e=o.a.createClass({displayName:"KeyDispatcher",_textarea:null,propTypes:{captureText:r.PropTypes.bool},onDocumentKeyDown:function(e){var t=String.fromCharCode(e.which);if(27===e.which)We.dispatch(Ye);else if(8===e.which)We.dispatch(qe);else if(e.ctrlKey||e.metaKey){if("v"===t||"V"===t){if(this.props.captureText)return void this._textarea.focus();We.dispatch(ze)}else if("z"===t||"Z"===t)e.shiftKey?We.dispatch(Xe):We.dispatch(Ke);else if("c"===t||"C"===t)We.dispatch(Ge);else if("s"===t||"S"===t)return We.dispatch(Qe),e.preventDefault(),!1}else this.props.captureText&&this._textarea.focus()},onDocumentKeyPress:function(e){if(!e.ctrlKey&&!e.metaKey)if(this.props.captureText)this._textarea.focus();else if(13===e.which)We.dispatch(Ve);else{if(32===e.which)return We.dispatch(Ze),e.preventDefault(),!1;var t=String.fromCharCode(e.which);We.dispatch(t)}},onDocumentKeyUp:function(e){this.props.captureText||32===e.which&&We.dispatch(Je)},onTextAreaInput:function(){if(this.props.captureText){var e=$(".keycodes").val();$(".keycodes").val(""),He.dispatch(e)}},componentDidMount:function(){document.addEventListener("keypress",this.onDocumentKeyPress),document.addEventListener("keydown",this.onDocumentKeyDown),document.addEventListener("keyup",this.onDocumentKeyUp)},componentWillUnmount:function(){document.removeEventListener("keypress",this.onDocumentKeyPress),document.removeEventListener("keydown",this.onDocumentKeyDown),document.removeEventListener("keyup",this.onDocumentKeyUp)},render:function(){var e=this;return o.a.createElement("div",{className:"keycodes-parent"},o.a.createElement("textarea",{className:"keycodes",rows:"2",onChange:this.onTextAreaInput,ref:function(t){e._textarea=t},value:""}))}}),et=o.a.createClass({displayName:"ImageEditor",_div:null,_imageCanvas:null,_cropper:null,_image:null,_imageWasCompressedALot:!1,_minPencilSize:1,_maxPencilSize:30,_minTextSize:8,_maxTextSize:50,_textFont:"lato regular",propTypes:{imageURL:r.PropTypes.string,isDeleting:r.PropTypes.bool,isZoomed:r.PropTypes.bool,onLoaded:r.PropTypes.func.isRequired,onToggleZoom:r.PropTypes.func.isRequired,activeTool:r.PropTypes.string.isRequired,onChange:r.PropTypes.func.isRequired,pencilColor:r.PropTypes.string.isRequired,pencilSize:r.PropTypes.number.isRequired,textColor:r.PropTypes.string.isRequired,textSize:r.PropTypes.number.isRequired,onDragAction:r.PropTypes.func.isRequired},getInitialState:function(){return{width:0,height:0,loaded:!1,loadFailed:!1,contextMenu:!1}},componentDidMount:function(){window.addEventListener("mouseup",this.onWindowMouseUp),document.addEventListener("mousedown",this.onDocumentMouseDown),He.add(this.onTextEntered),We.add(this.onHotkeyPressed),this.props.imageURL&&this._loadImage()},componentWillUnmount:function(){window.removeEventListener("mouseup",this.onWindowMouseUp),document.removeEventListener("mousedown",this.onDocumentMouseDown),He.remove(this.onTextEntered),We.remove(this.onHotkeyPressed)},componentDidUpdate:function(e){this.state.loaded&&this.props.activeTool!==e.activeTool&&Oe.endTextAction(),!this.state.loaded&&this.props.imageURL&&this.props.imageURL!==e.imageURL&&this._loadImage()},_getTextSize:function(){var e=this._maxTextSize-this._minTextSize;return this.props.textSize*e+this._minTextSize+"pt"},_getPencilSize:function(){var e=this._maxPencilSize-this._minPencilSize;return this.props.pencilSize*e+this._minPencilSize},_imageURLIsDataURL:function(){var e=this.props.imageURL;return 0===e.indexOf("blob")||0===e.indexOf("data")},_loadImage:function(){this.setState({loaded:!1,loadFailed:!1}),this._imageURLIsDataURL()?this._loadImageFromDataURL(this.props.imageURL,this._onImageLoaded):this._loadImageFromURL(this.props.imageURL,this._onImageLoaded)},_onImageLoaded:function(){Oe.changeCallback=this.onEditorChange,Oe.initialize(this._div,this._image,this._imageCanvas,this._imageURLIsDataURL()),this.setState({loaded:!0}),this.onEditorChange(),this.props.onLoaded()},_loadImageFromDataURL:function(e,t){var n=this;this._image.crossOrigin=null,this._image.onload=function(){n.isMounted()&&t()},this._image.src=e},_loadImageFromURL:function(e,t){var n=this;this._image.crossOrigin="",this._image.onload=function(){n.isMounted()&&t()};var r=Date.now()+1e4;this._image.onerror=function(){if(n.isMounted()){if(console.log("Image load failed."),Date.now()>=r)return console.log("Giving up."),void n.setState({loadFailed:!0});-1==n._image.src.indexOf("?nocache=")&&(console.log("Adding nocache query param..."),e+="?nocache="+Date.now()),setTimeout(function(){console.log("Retrying..."),n._image.src=e},1e3)}},this._image.src=e},getImageBlob:function(){for(var e=user.is_pro?3145728:524288,t="image/png",n=user.is_pro?1:.5;;){for(var r=Oe.getImageData(t,n),o=atob(r.split(",")[1]),i=[],a=0;a").css({position:"absolute",top:0,width:t,height:10});n.appendTo($("body")),$(window).scrollLeft((t-$(window).width())/2),setTimeout(function(){n.remove()},0)}this.props.onToggleZoom()}else if("pencil"===this.props.activeTool){this.props.onDragAction(!0);var r=$(e.target).offset(),o=new Oe.Vector2(e.pageX-r.left,e.pageY-r.top);Oe.beginPencilAction(this.props.pencilColor,this._getPencilSize(),o)}else if("text"===this.props.activeTool){r=$(e.target).offset(),o=new Oe.Vector2(e.pageX-r.left,e.pageY-r.top);Oe.beginTextAction(this._textFont,this.props.textColor,this._getTextSize(),o),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}else"move"===this.props.activeTool&&(this.props.onDragAction(!0),this._dragPoint=new Oe.Vector2(e.pageX,e.pageY),this.onEditorChange());else 2===e.button&&this.setState({contextMenu:!0})},onWindowMouseUp:function(e){this.props.onDragAction(!1),Oe.pencilAction&&Oe.endPencilAction(),this._dragPoint&&(this._dragPoint=null,this.onEditorChange()),this.setState({contextMenu:!1})},onMouseMove:function(e){if("pencil"===this.props.activeTool&&Oe.pencilAction){var t=$(e.target).offset(),n=new Oe.Vector2(e.pageX-t.left,e.pageY-t.top);Oe.addPencilPoint(n)}else"move"===this.props.activeTool&&this._dragPoint&&($(window).scrollTop($(window).scrollTop()+(this._dragPoint.y-e.pageY)),$(window).scrollLeft($(window).scrollLeft()+(this._dragPoint.x-e.pageX)))},onTextEntered:function(e){"text"===this.props.activeTool&&Oe.textAction&&Oe.addText(e)},onHotkeyPressed:function(e){"text"!==!this.props.activeTool&&Oe.textAction&&(e===qe?Oe.backspace():e===Ye&&Oe.endTextAction())},_getCursor:function(){if("zoom"===this.props.activeTool)return this.props.isZoomed?"zoom-out":"zoom-in";if("crop"===this.props.activeTool);else{if("pencil"===this.props.activeTool)return"crosshair";if("text"===this.props.activeTool)return"text";if("move"===this.props.activeTool)return"move"}return"initial"},_renderTextCursor:function(){var e=Oe.getCursorPos(),t=Oe.getLineHeight(),n={left:e.x+"px",top:e.y-t/2+2+"px",height:Oe.getLineHeight()};return o.a.createElement("div",{className:"text-cursor",style:n})},render:function(){var e=this;if(this.state.loadFailed)return o.a.createElement(Me,null);var t="image-editor";t+=this.props.isDeleting?" deleting":"",t+=this.props.isZoomed?" zoomed":"",t+=this.state.loaded?" loaded":"";var n={width:this.props.isZoomed?this.state.width+"px":"auto",maxWidth:this.state.width+"px",cursor:this._getCursor()},r=null;"text"===this.props.activeTool&&Oe.textAction&&(r=this._renderTextCursor());var i={pointerEvents:this.state.contextMenu?"auto":"none"};return o.a.createElement("div",{className:t,style:n},this.state.loaded?null:o.a.createElement(J,{delay:500}),o.a.createElement("div",{className:"image-editor-inner",ref:function(t){e._div=t},onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onContextMenu:this.onContextMenu},r,o.a.createElement("canvas",{className:"image-canvas",ref:function(t){e._imageCanvas=t}}),o.a.createElement(je,{ref:function(t){e._cropper=t},isEnabled:"crop"===this.props.activeTool&&this.state.loaded&&!this.state.contextMenu,width:this.state.width,height:this.state.height}),o.a.createElement("img",{className:"source-image",style:i,ref:function(t){e._image=t}})))}}),tt=(n(284),o.a.createClass({displayName:"PasteCaptureArea",_area:null,_isPolling:!1,propTypes:{onImagePasted:r.PropTypes.func.isRequired},componentDidMount:function(){We.add(this.onHotkeyPressed)},componentWillUnmount:function(){We.remove(this.onHotkeyPressed)},onHotkeyPressed:function(e){e===ze&&(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&alert("Warning: Your browser may not support pasting image data. Supported browsers are Chrome, Firefox and IE. (E001)"),a.a.findDOMNode(this._area).focus())},_pollCaptureArea:function(e,t){var n=this;this._isPolling=!0;var r=$(this._area);if(r.html().length>0){if(this._isPolling=!1,!r.find("img").length)return void alert("Image data was not found on your clipboard. Please read the home page for instructions.\n\n(E002)");var o=r.find("img:first").attr("src");return 0===o.indexOf("webkit-fake-url://")?void alert("No image data found. Your browser may not support pasting image data. Supported browsers are Chrome, Firefox and IE. (E003)"):void this.props.onImagePasted(o)}e>1?setTimeout(function(){n._pollCaptureArea(e-1,t)},t):(alert("Image data was not found on your clipboard. Please read the home page for instructions.\n\n(E004)"),this._isPolling=!1)},onPaste:function(e){if(!this._isPolling)if(e.clipboardData)if(e.clipboardData.items){if(0==e.clipboardData.items.length)return void alert("Image data was not found on your clipboard. Please read the home page for instructions.\n\n(E006)");var t=e.clipboardData.items[0];if(!t||-1===t.type.indexOf("image/"))return void alert("Image data was not found on your clipboard. Please read the home page for instructions.\n\n(E007)");var n=t.getAsFile(),r=window.URL.createObjectURL(n);this.props.onImagePasted(r)}else if(e.clipboardData.files&&e.clipboardData.files[0]){var o=e.clipboardData.files[0];r=URL.createObjectURL(o);this.props.onImagePasted(r)}else{if(e.clipboardData.getData("text/html")||e.clipboardData.getData("text/plain"))return void alert("Image data was not found on your clipboard. Please read the home page for instructions.\n\n(E008)");$(this._area).html(""),this._pollCaptureArea(10,50)}else alert("No image data found. Your browser may not support pasting image data. Supported browsers are Chrome, Firefox and IE. (E005)")},render:function(){var e=this;return o.a.createElement("div",{className:"paste-capture-parent"},o.a.createElement("div",{className:"paste-capture-area",contentEditable:"true",ref:function(t){e._area=t},onPaste:this.onPaste}))}})),nt=(n(285),n(148)),rt=n.n(nt),ot="STORE_IMAGE",it="UPDATE_IMAGE";function at(e,t,n){return function(r,o){var i=lt(o().images,e);return i?i.token&&t&&t!==i.token?(console.log("Error: Trying to assign a new token to image with ID "+i.imageID),i):i.token||t||!n?i.token!==t||n?(r({type:it,imageID:e,token:t,imageInfo:n}),lt(o().images,e)):i:(console.log("Error: Trying to assign imageInfo with no token for ID "+e),i):(console.log("Error: No image found in updateImage for ID "+e),null)}}function st(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,o){var i=e?function(e,t){return e.find(function(e){return e.token===t})}(o().images,e):null;return(e||i&&i.token)&&t&&console.log("Warning: pasteDataURL will be ignored when token is present."),i?r(at(i.imageID,e,n)):(r({type:ot,token:e,pasteDataURL:t,imageInfo:n}),o().images[o().images.length-1])}}function lt(e,t){return e[t]}var ut={INITIAL:0,PASTED:1,FETCHING:2,FETCHED:3,FAILED:4},ct="IMAGE_FETCH_BEGIN",pt="IMAGE_FETCH_FAIL";function dt(e,t){return{type:pt,imageID:e,message:t}}function ht(e,t){return function(n,r){t.success?n(at(e,null,t.info)):n(dt(e,t.message))}}function ft(e){return function(t,n){var r=lt(n().images,e);r&&r.canFetch()?(t(function(e){return{type:ct,imageID:e}}(e)),$.ajax({url:"/api/getImageInfo/"+r.token,type:"get"}).done(function(n){t(ht(e,n))}).fail(function(n){t(dt(e,n))})):console.log("Warning: fetchImage called when not in a state to be fetched.")}}var mt={INITIAL:0,PREPARING:1,UPLOADING:2,FAILED:3},gt="IMAGE_UPLOAD_BEGIN",vt="IMAGE_UPLOAD_SEND",yt="IMAGE_UPLOAD_SUCCEED",bt="IMAGE_UPLOAD_FAIL",Et="IMAGE_UPLOAD_SET_PERCENTAGE";function Ct(e,t,n){return function(r,o){var i=new $.Deferred,a=lt(o().images,e);if(!a.canUpload())return console.log("Warning: saveImage called when not in a state to be uploaded."),i.reject(),i.promise();var s=a.isPasted();return r(function(e){return{type:gt,imageID:e}}(e)),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=new $.Deferred;return $.ajax({url:"/api/prepareForImageUpload",type:"post",cache:!1,data:{token:t,type:e,csrfmiddlewaretoken:csrf_token}}).done(function(e){e.error?n.reject(e.error):n.resolve(e.form,e.token,e.info)}).fail(function(e){n.reject(e)}),n.promise()}(t.type,a.token).then(function(o,i,a){return r(at(e,i,a)),n(i),r(function(e){return{type:vt,imageID:e}}(e)),function(e,t,n,r){var o=new FormData;for(var i in e.fields)o.append(i,e.fields[i]);o.append("file",n);var a=new $.Deferred;return $.ajax({url:e.url,type:"post",data:o,contentType:!1,processData:!1,xhr:function(){var e=$.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){e.lengthComputable&&r(e.loaded/e.total*100)}),e},success:function(){a.resolve()},error:function(e,t){a.reject(t)}}).fail(a.reject),a.promise()}(o,0,t,function(t){r(function(e,t){return{type:Et,imageID:e,percentage:t}}(e,t))})}).then(function(){s||function(e){var t=new $.Deferred;$.ajax({url:"/api/purgeImage",type:"post",cache:!1,data:{token:e,csrfmiddlewaretoken:csrf_token}}).done(function(e){e.success?t.resolve():t.reject(e.error)}).fail(function(e){t.reject(e)}),t.promise()}(lt(o().images,e).token);i.resolve().done(function(){r(function(e){return{type:yt,imageID:e}}(e))})}).fail(function(t){i.reject(),r(function(e,t){return{type:bt,imageID:e,message:t}}(e,t))}),i.promise()}}var wt={INITIAL:0,DELETING:1,DELETED:2,FAILED:3},_t="IMAGE_DELETE_BEGIN",xt="IMAGE_DELETE_SUCCEED",Pt="IMAGE_DELETE_FAIL";function kt(e){return{type:xt,imageID:e}}function Dt(e){return function(t,n){var r=new $.Deferred,o=lt(n().images,e);return o.canDelete()?o.fetchState===ut.PASTED?(t(kt(e)),r.resolve(),r.promise()):(t(function(e){return{type:_t,imageID:e}}(e)),function(e){var t=new $.Deferred;return $.ajax({url:"/api/deleteImage",type:"post",cache:!1,data:{token:e,csrfmiddlewaretoken:csrf_token}}).done(function(e){e.success?t.resolve(e.url):t.reject(e.error)}).fail(function(e){t.reject(e)}),t.promise()}(o.token).then(function(n){t(kt(e)),r.resolve()}).fail(function(n){t(function(e,t){return{type:Pt,imageID:e,message:t}}(e,n)),r.reject(n)}),r.promise()):(console.log("Warning: deleteImage called when not in a state to be deleted."),r.reject("The image is not in a state where it can be deleted."),r.promise())}}var St="SET_CURRENT_IMAGE",Tt="SELECT_TOOL",At="ZOOM_IMAGE",Rt="SET_IS_EDITING",It="RESET_MAIN_PAGE",Nt="SET_EDITOR_OPS",Ot="SET_PENCIL_COLOR",Mt="SET_PENCIL_SIZE",Lt="SET_TEXT_COLOR",Ut="SET_TEXT_SIZE",jt="SHOW_COLOR_WIDGET",Bt="SHOW_SIZE_WIDGET",Ft="UPDATE_STATUS";function Wt(){return{type:It}}function Ht(e){return{type:St,imageID:e}}function zt(e){return function(t,n){(n().mainPage.isEditing||"zoom"===e||"move"===e)&&t({type:Tt,tool:e})}}function qt(e){return function(t,n){e||"crop"===n().mainPage.activeTool||"move"===n().mainPage.activeTool||t(zt("zoom")),t({type:Rt,isEditing:e}),e&&t(zt("crop"))}}function Yt(e,t){return function(n,r){if("pencil"===e||"text"===e){r();n({type:jt,tool:e,show:t})}}}function Vt(e,t){return function(n,r){if("pencil"===e||"text"===e){r();n({type:Bt,tool:e,show:t})}}}function Kt(e){return e>1&&(e=1),e<0&&(e=0),{type:Ut,size:e}}function Xt(e){return e>1&&(e=1),e<0&&(e=0),{type:Mt,size:e}}function Gt(e){return function(t,n){t(Ht(t(st(null,e,null)).imageID),!0),t(qt(!0))}}function Qt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:Ft,message:e,flash:t}}var Zt={INITIAL:0,FETCHING:1,FETCHED:2,FAILED:3},Jt="PROFILE_FETCH_BEGIN",$t="PROFILE_FETCH_SUCCEED",en="PROFILE_FETCH_FAIL";function tn(e){return{type:en,message:e}}function nn(e){return function(t,n){if(n().profile.fetchState!==Zt.FETCHING){e=parseInt(e)?parseInt(e):1,t(function(e){return{type:Jt,page:e}}(e));var r=$.ajax({url:"/api/getProfilePage",type:"get",data:{page:e}}).done(function(e){if(e.success){var n=e.images.map(function(e){return t(st(e.token,null,e.info)).imageID});t(function(e,t,n){return{type:$t,page:e,numPages:t,imageIDs:n}}(e.page,e.num_pages,n))}else t(tn(e.message))}).fail(function(e){t(tn(e))});return{cancel:function(){r.abort(),t(tn("Canceled."))}}}console.log("Warning: Attempt to call setProfilePage with outstanding request.")}}n(292);var rn=o.a.createClass({displayName:"StatusBar",propTypes:{message:r.PropTypes.any,messageID:r.PropTypes.number,percentage:r.PropTypes.number,flashCounter:r.PropTypes.number},getInitialState:function(){return{flash:0,progressBarKey:0}},componentDidUpdate:function(e){e.flashCounter!==this.props.flashCounter&&this.setState({flash:1===this.state.flash?2:1}),e.percentage>this.props.percentage&&this.setState({progressBarKey:this.state.progressBarKey+1})},render:function(){var e={width:this.props.percentage+"%"},t="progress-bar progress-bar-striped active";100===this.props.percentage&&(t+=" fill-then-hide");var n="progress";return 1===this.state.flash?n+=" flash-1":2===this.state.flash&&(n+=" flash-2"),o.a.createElement("div",{className:"status-bar"},o.a.createElement("div",{className:n,key:this.state.progressBarKey},o.a.createElement("div",{className:t,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100",style:e})),o.a.createElement("div",{key:"m"+this.props.messageID,className:"status-message"},this.props.message))}}),on=(n(293),n(294),o.a.createClass({displayName:"ColorPicker",props:{onChange:r.PropTypes.func.isRequired,onBlur:r.PropTypes.func.isRequired},componentDidMount:function(){a.a.findDOMNode(this).focus()},render:function(){var e=this,t=["#19bc9c","#2ecd71","#3398dc","#9b59b6","#33485e","#15a085","#27ae60","#2880b9","#8e44ad","#2b3e50","#f1c40e","#e67e22","#e74b3b","#ecf0f1","#95a5a6","#f39c0f","#d35400","#c0392a","#bdc3c7","#7f8c8d"].map(function(t){var n={backgroundColor:t};return o.a.createElement("var",{className:"color-picker-color",style:n,onClick:function(n){e.props.onChange(t)},key:t})});return o.a.createElement("div",{className:"color-picker",tabIndex:"0",onBlur:this.props.onBlur,onClick:function(e){e.stopPropagation()}},t)}})),an=(n(295),o.a.createClass({displayName:"SizePicker",_sizer:null,_height:57,props:{onChange:r.PropTypes.func.isRequired,onBlur:r.PropTypes.func.isRequired,size:r.PropTypes.number.isRequired},getInitialState:function(){return{clicked:!1}},componentDidMount:function(){a.a.findDOMNode(this).focus()},_handleMouse:function(e){var t=this._sizer.getBoundingClientRect(),n=e.clientY-t.top;n<0&&(n=0),n>this._height&&(n=this._height);var r=1-n/this._height;this.props.onChange(r)},_onDocumentMouseDown:function(e){e.target!==a.a.findDOMNode(this)&&this.props.onBlur()},_onMouseDown:function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,document.addEventListener("mouseup",this._onMouseUp),this.setState({clicked:!0}),this._handleMouse(e))},_onMouseMove:function(e){this.state.clicked&&this._handleMouse(e)},_onMouseUp:function(e){0===e.button&&(document.removeEventListener("mouseup",this._onMouseUp),this.setState({clicked:!1}))},render:function(){var e=this,t=this._height*this.props.size+"px";return o.a.createElement("div",{className:"size-picker",tabIndex:"0",onBlur:this.props.onBlur,onClick:function(e){e.stopPropagation()},onMouseDown:this._onMouseDown,onMouseMove:this._onMouseMove},o.a.createElement("div",{className:"sizer",ref:function(t){e._sizer=t}},o.a.createElement("div",{className:"marker",style:{bottom:t}})))}})),sn=o.a.createClass({displayName:"ToolbarDivider",render:function(){return o.a.createElement("div",{className:"toolbar-divider"},o.a.createElement("div",{className:"toolbar-divider-bar"}))}}),ln=o.a.createClass({displayName:"ToolbarButton",propTypes:{isHeader:r.PropTypes.bool,icon:r.PropTypes.string.isRequired,tooltip:r.PropTypes.string,onClick:r.PropTypes.func,isDisabled:r.PropTypes.bool,url:r.PropTypes.string,flip:r.PropTypes.bool},render:function(){var e="toolbar-button";this.props.isHeader&&(e+=" toolbar-menu-button"),this.props.isDisabled&&(e+=" disabled");var t="";return this.props.flip&&(t=" flip-horizontally"),this.props.url?o.a.createElement(s.Link,{to:this.props.url,className:e,title:this.props.tooltip,onClick:this.props.onClick},o.a.createElement("i",{className:"fa "+this.props.icon+t})):o.a.createElement("div",{className:e,title:this.props.tooltip,onClick:this.props.onClick},o.a.createElement("i",{className:"fa "+this.props.icon+t}))}}),un=o.a.createClass({displayName:"ToolbarColorPicker",propTypes:{color:r.PropTypes.string.isRequired,tooltip:r.PropTypes.string,onChange:r.PropTypes.func.isRequired,onClick:r.PropTypes.func.isRequired,onBlur:r.PropTypes.func.isRequired,isShowing:r.PropTypes.bool},render:function(){var e={backgroundColor:this.props.color};return o.a.createElement("div",{className:"toolbar-button toolbar-color-picker",title:this.props.tooltip,onClick:this.props.onClick},o.a.createElement("span",{className:"toolbar-color-picker-icon",style:e}),this.props.isShowing?o.a.createElement(on,{onChange:this.props.onChange,onBlur:this.props.onBlur}):null)}}),cn=o.a.createClass({displayName:"ToolbarSizePicker",propTypes:{size:r.PropTypes.number.isRequired,tooltip:r.PropTypes.string,onChange:r.PropTypes.func.isRequired,onClick:r.PropTypes.func.isRequired,onBlur:r.PropTypes.func.isRequired,isShowing:r.PropTypes.bool},render:function(){return o.a.createElement("div",{className:"toolbar-button toolbar-size-picker",title:this.props.tooltip,onClick:this.props.onClick},o.a.createElement("i",{className:"fa fa-arrows-h"}),this.props.isShowing?o.a.createElement(an,{onChange:this.props.onChange,onBlur:this.props.onBlur,size:this.props.size}):null)}}),pn=o.a.createClass({displayName:"ToolbarMenuDrawer",propTypes:{icon:r.PropTypes.string.isRequired,tooltip:r.PropTypes.string,onExpandRequested:r.PropTypes.func,isExpanded:r.PropTypes.bool},render:function(){var e=o.a.Children.toArray(this.props.children),t={};this.props.isExpanded&&(t.width=50+50*e.length+"px");var n="toolbar-menu-drawer"+(this.props.isExpanded?" expanded":" closed");return o.a.createElement("div",{className:n,style:t},o.a.createElement(ln,{onClick:this.props.onExpandRequested,isHeader:!0,icon:this.props.icon,tooltip:this.props.tooltip}),e)}}),dn=o.a.createClass({displayName:"ToolbarMenu",render:function(){return o.a.createElement("div",{className:"toolbar-menu"},this.props.children)}}),hn=o.a.createClass({displayName:"Toolbar",propTypes:{dispatch:r.PropTypes.func.isRequired,mainPage:r.PropTypes.object.isRequired,onClickSave:r.PropTypes.func.isRequired,onClickPerformCrop:r.PropTypes.func.isRequired,onClickUndo:r.PropTypes.func.isRequired,onClickRedo:r.PropTypes.func.isRequired,onClickDelete:r.PropTypes.func.isRequired,urlToCopy:r.PropTypes.string.isRequired,onURLCopied:r.PropTypes.func.isRequired,allowPointerEvents:r.PropTypes.bool.isRequired},componentDidMount:function(){},componentWillUnmount:function(){},onButtonClicked:function(e){this.props.dispatch(zt(e))},_canUndo:function(){return this.props.mainPage.canUndo},_canRedo:function(){return this.props.mainPage.canRedo},_canSave:function(){return this.props.image.canUpload()&&this.props.mainPage.isDirty},_canDelete:function(){return this.props.image.canDelete()},_onChangeTextColor:function(e){this.props.dispatch(function(e){return{type:Lt,color:e}}(e)),this.props.dispatch(Yt("text",!1))},_onChangePencilColor:function(e){this.props.dispatch(function(e){return{type:Ot,color:e}}(e)),this.props.dispatch(Yt("pencil",!1))},_onChangeTextSize:function(e){this.props.dispatch(Kt(e))},_onChangePencilSize:function(e){this.props.dispatch(Xt(e))},_onClickPencilColorWidget:function(){this.props.dispatch(Yt("pencil",!0))},_onClickTextColorWidget:function(){this.props.dispatch(Yt("text",!0))},_onClickPencilSizeWidget:function(){this.props.dispatch(Vt("pencil",!0))},_onClickTextSizeWidget:function(){this.props.dispatch(Vt("text",!0))},_onBlurPencilColorWidget:function(){this.props.dispatch(Yt("pencil",!1))},_onBlurTextColorWidget:function(){this.props.dispatch(Yt("text",!1))},_onBlurPencilSizeWidget:function(){this.props.dispatch(Vt("pencil",!1))},_onBlurTextSizeWidget:function(){this.props.dispatch(Vt("text",!1))},_getStatusPercentage:function(){return this.props.image.uploadPercentage},render:function(){var e=this,t=this.props.mainPage.openTool,n="toolbar container-fluid";this.props.mainPage.isZoomed&&(n+=" pinned"),this.props.allowPointerEvents||(n+=" ignore-pointer");var r="pencil"===t&&this.props.mainPage.isShowingSizeWidget,i="text"===t&&this.props.mainPage.isShowingSizeWidget,a="pencil"===t&&this.props.mainPage.isShowingColorWidget,s="text"===t&&this.props.mainPage.isShowingColorWidget;return o.a.createElement("div",{className:n},o.a.createElement("div",{className:"status-container"},o.a.createElement(rn,{message:this.props.mainPage.statusMessage,percentage:this._getStatusPercentage(),flashCounter:this.props.mainPage.statusFlash,messageID:this.props.mainPage.statusMessageID}),o.a.createElement(dn,null,o.a.createElement(rt.a,{text:this.props.urlToCopy,onCopy:this.props.onURLCopied},o.a.createElement(ln,{tooltip:"Copy the image URL. (Hotkey: 'Ctrl+C')",icon:"fa-copy",isDisabled:""===this.props.urlToCopy})))),o.a.createElement(dn,null,o.a.createElement(pn,{isExpanded:"crop"===t,onExpandRequested:function(){e.onButtonClicked("crop")},tooltip:"Crop tool. (Hotkey: 'C' or 'M')",icon:"fa-crop"},o.a.createElement(ln,{tooltip:"Perform the crop. (Hotkey: 'Enter')",icon:"fa-check",onClick:this.props.onClickPerformCrop})),o.a.createElement(pn,{isExpanded:"pencil"===t,onExpandRequested:function(){e.onButtonClicked("pencil")},tooltip:"Pencil tool. (Hotkey: 'P' or 'B')",icon:"fa-pencil"},o.a.createElement(cn,{tooltip:"Change pencil size. (Hotkey: '[' or ']')",onChange:this._onChangePencilSize,size:this.props.mainPage.pencilSize,isShowing:r,onClick:this._onClickPencilSizeWidget,onBlur:this._onBlurPencilSizeWidget}),o.a.createElement(un,{tooltip:"Color picker. (Hotkey: 'D')",onChange:this._onChangePencilColor,color:this.props.mainPage.pencilColor,isShowing:a,onClick:this._onClickPencilColorWidget,onBlur:this._onBlurPencilColorWidget})),o.a.createElement(pn,{isExpanded:"text"===t,onExpandRequested:function(){e.onButtonClicked("text")},tooltip:"Text tool. (Hotkey: 'T')",icon:"fa-font"},o.a.createElement(cn,{tooltip:"Change text size. (Hotkey: '[' or ']')",onChange:this._onChangeTextSize,size:this.props.mainPage.textSize,isShowing:i,onClick:this._onClickTextSizeWidget,onBlur:this._onBlurTextSizeWidget}),o.a.createElement(un,{tooltip:"Color picker. (Hotkey: 'D')",onChange:this._onChangeTextColor,color:this.props.mainPage.textColor,isShowing:s,onClick:this._onClickTextColorWidget,onBlur:this._onBlurTextColorWidget})),o.a.createElement(pn,{isExpanded:"zoom"===t||"move"===t,onExpandRequested:function(){e.onButtonClicked("zoom")},tooltip:"View the image in full-size or fit-to-screen. (Hotkey: 'Z')",icon:"fa-search"},o.a.createElement(ln,{tooltip:"Move around the image when viewed in full-size. (Hotkey: 'Space')",icon:"fa-arrows",onClick:function(){e.onButtonClicked("move")}})),o.a.createElement(sn,null),o.a.createElement(ln,{tooltip:"Undo. (Hotkey: 'Ctrl+Z')",icon:"fa-undo",onClick:this.props.onClickUndo,isDisabled:!this._canUndo()}),o.a.createElement(ln,{tooltip:"Redo. (Hotkey: 'Ctrl+Y' or 'Ctrl+Shift+Z')",icon:"fa-undo",flip:!0,onClick:this.props.onClickRedo,isDisabled:!this._canRedo()}),o.a.createElement(ln,{tooltip:"Save your changes. (Hotkey: 'Ctrl+S')",icon:"fa-save",onClick:this.props.onClickSave,isDisabled:!this._canSave()}),o.a.createElement(ln,{tooltip:"Delete this image permanently.",icon:"fa-trash",onClick:this.props.onClickDelete,isDisabled:!this._canDelete()})))}}),fn=Object(d.connect)(function(e){return{mainPage:e.mainPage,image:e.images[e.mainPage.imageID]}})(hn),mn=(n(296),o.a.createClass({displayName:"Minibar",propTypes:{dispatch:r.PropTypes.func.isRequired,mainPage:r.PropTypes.object.isRequired,onClickEditImage:r.PropTypes.func.isRequired,onClickDelete:r.PropTypes.func.isRequired},_canDelete:function(){return this.props.image.canDelete()},render:function(){return o.a.createElement("div",{className:"minibar"},o.a.createElement(dn,null,o.a.createElement(ln,{tooltip:"Edit this image.",icon:"fa-edit",onClick:this.props.onClickEditImage,isDisabled:!this._canDelete()}),o.a.createElement(ln,{tooltip:"Delete this image permanently.",icon:"fa-trash",onClick:this.props.onClickDelete,isDisabled:!this._canDelete()})))}})),gn=Object(d.connect)(function(e){return{mainPage:e.mainPage,image:e.images[e.mainPage.imageID]}})(mn),vn=(n(297),o.a.createClass({displayName:"Clipboard",focusAndSelect:function(e){var t=$(".clipboard");t.text(e),t[0].focus(),t[0].select()},render:function(){return o.a.createElement("textarea",{className:"clipboard",rows:"1"})}})),yn=o.a.createClass({displayName:"MainPage",propTypes:{dispatch:r.PropTypes.func.isRequired,mainPage:r.PropTypes.object.isRequired,image:r.PropTypes.object,history:r.PropTypes.object.isRequired,params:r.PropTypes.object.isRequired},_imageEditor:null,_ignoreURLChanges:!1,_stopListening:null,_previousTool:null,_clipboard:null,_adBlockEnabled:!1,_setImageEditorRef:function(e){this._imageEditor=e},getInitialState:function(){return{imageWidth:null,isDragging:!1,platform:"MacIntel"===window.navigator.platform?"mac":"windows"}},componentDidMount:function(){window.onbeforeunload=this.confirmPageExit,this._stopListening=this.props.history.listenBefore(this.routerWillLeave),We.add(this.onHotkeyPressed),this._setImageFromURL();var e=this;e._adBlockEnabled=!1;var t=document.createElement("div");t.innerHTML=" ",t.className="adsbox",document.body.appendChild(t),window.setTimeout(function(){0===t.offsetHeight&&(e._adBlockEnabled=!0,e.forceUpdate()),t.remove(),console.log("AdBlock Enabled? ",e._adBlockEnabled)},100)},componentWillUnmount:function(){window.onbeforeunload===this.confirmPageExit&&(window.onbeforeunload=null),this._stopListening(),We.remove(this.onHotkeyPressed),this.props.dispatch(Wt())},componentDidUpdate:function(e){this.props.params.token!==e.params.token&&this._setImageFromURL()},confirmPageExit:function(){if(this._imageEditor&&this._imageEditor.isDirty()&&!this.props.image.isDeleted())return"Leaving this page will cause you to lose any unsaved changes."},routerWillLeave:function(e){return!(this._imageEditor&&this._imageEditor.isDirty()&&!this.props.image.isDeleted())||(e.pathname===this.props.image.getLink()||"Leaving this page will cause you to lose any unsaved changes.")},_parseTokenFromURLParam:function(e){return e.replace(".jpg","")},_setImageFromURL:function(){if(this.props.params.token){var e=this._parseTokenFromURLParam(this.props.params.token);this.props.image&&this.props.image.token===e||(this.props.dispatch(Wt()),this.props.dispatch(function(e){return function(t,n){var r=t(st(e));t(Ht(r.imageID)),r.isFetched()||t(ft(r.imageID))}}(e)))}else{if(this.props.image&&this.props.image.isPasted())return;this.props.dispatch(function(e,t){e(Ht(null))})}},onImageEditorLoaded:function(){this.props.image.isPasted()?this.onClickSave():function(e){var t=new $.Deferred;$.ajax({url:"/api/updateImageViews",type:"post",cache:!1,data:{token:e,csrfmiddlewaretoken:csrf_token}}).done(function(e){e.success?t.resolve():t.reject(e.error)}).fail(function(e){t.reject(e)}),t.promise()}(this.props.image.token)},onToggleZoom:function(){this.props.dispatch(function(e){return{type:At,isZoomed:e}}(!this.props.mainPage.isZoomed))},onClickSwitchPlatform:function(){this.setState({platform:"mac"===this.state.platform?"windows":"mac"})},onClickSave:function(){var e=this;if(this.props.image.canUpload()&&this._imageEditor.isDirty()){var t=this._imageEditor.prepareForSave();this.props.dispatch(function(e,t){return function(n,r){var i=r().mainPage.imageID;if(null!==i){var a=lt(r().images,i);if(r().mainPage.isDirty){var s=a.isPasted();return n(Qt("Preparing to upload...")),n(Ct(i,e,function(e){var a=lt(r().images,i),l=r().mainPage.imageID===i;s&&l&&t.pushState(null,a.getLink()),l&&n(Qt(o.a.createElement("div",null,"Uploading to: ",o.a.createElement("a",{href:a.getAbsoluteURL(),target:"_blank"},a.getShortURL()),"...")))})).done(function(){var e=lt(r().images,i);r().mainPage.imageID===i&&n(Qt(o.a.createElement("div",null,"Saved as: ",o.a.createElement("a",{href:e.getAbsoluteURL(),target:"_blank"},e.getShortURL()))))}).fail(function(){r().mainPage.imageID===i&&n(Qt(o.a.createElement("div",null,"Failed to upload.")))})}console.log("Error: Image is not dirty in call to saveCurrentImage")}else console.log("Error: No current image in call to saveCurrentImage")}}(this._imageEditor.getImageBlob(),this.props.history)).done(function(){e._imageEditor.markSaved(t)})}},onClickPerformCrop:function(){this._imageEditor.performCrop()},onClickUndo:function(){this._imageEditor.undo()},onClickRedo:function(){this._imageEditor.redo()},onClickDelete:function(){confirm("Delete this image permanently?")&&this.props.dispatch(function(e){return function(t,n){var r=n().mainPage.imageID;null!==r?(t(Qt(o.a.createElement("div",null,"Deleting image..."))),t(Dt(r)).done(function(){r===n().mainPage.imageID&&e.pushState(null,"/")}).fail(function(){t(Qt(o.a.createElement("div",null,"Failed to delete image.")))})):console.log("Error: No current image in call to deleteCurrentImage")}}(this.props.history))},onClickEditImage:function(){P()||this.props.dispatch(qt(!0))},onURLCopied:function(){this.props.dispatch(Qt("Copied URL to clipboard.",!0))},onHotkeyPressed:function(e){if("crop"!==this.props.mainPage.activeTool||e!==Ve)if(e===Ke)this.onClickUndo();else if(e===Xe)this.onClickRedo();else if(e===Qe)this.onClickSave();else if(e===Ze)"move"!==this.props.mainPage.activeTool&&(this._previousTool=this.props.mainPage.activeTool,this.props.dispatch(zt("move")));else if(e===Je)"move"===this.props.mainPage.activeTool&&this._previousTool&&(this.props.dispatch(zt(this._previousTool)),this._previousTool=null);else if(e===Ge){if(!this.props.image||!this.props.image.isFetched())return;this._clipboard.focusAndSelect(this.props.image.getAbsoluteURL()),this.onURLCopied()}else"c"===e||"m"===e?this.props.dispatch(zt("crop")):"p"===e||"b"===e?this.props.dispatch(zt("pencil")):"t"===e?this.props.dispatch(zt("text")):"z"===e?this.props.dispatch(zt("zoom")):"]"===e?"pencil"===this.props.mainPage.activeTool?(this.props.dispatch(Vt("pencil",!0)),this.props.dispatch(Xt(this.props.mainPage.pencilSize+.1))):"text"===this.props.mainPage.activeTool&&(this.props.dispatch(Vt("text",!0)),this.props.dispatch(Kt(this.props.mainPage.textSize+.1))):"["===e?"pencil"===this.props.mainPage.activeTool?(this.props.dispatch(Vt("pencil",!0)),this.props.dispatch(Xt(this.props.mainPage.pencilSize-.1))):"text"===this.props.mainPage.activeTool&&(this.props.dispatch(Vt("text",!0)),this.props.dispatch(Kt(this.props.mainPage.textSize-.1))):"d"===e?this.props.dispatch(Yt(this.props.mainPage.activeTool,!0)):e===Ye&&(this.props.dispatch(Vt(this.props.mainPage.activeTool,!1)),this.props.dispatch(Yt(this.props.mainPage.activeTool,!1)));else this.onClickPerformCrop()},onEditorChange:function(e,t){this.props.dispatch(function(e,t,n){return{type:Nt,canUndo:e,canRedo:t,isDirty:n}}(this._imageEditor.canUndo(),this._imageEditor.canRedo(),this._imageEditor.isDirty())),this.setState({imageWidth:e})},onImagePasted:function(e){if(!this._imageEditor){this.props.dispatch(Wt()),this.props.dispatch(Qt("Reading image data...")),this.props.dispatch(Gt(e));try{ga("send","event","upl-pasted","upload")}catch(e){}}},onImageDropped:function(e){this.props.dispatch(Wt()),this.props.dispatch(Qt("Reading image data...")),this.props.dispatch(Gt(e));try{ga("send","event","upl-dropped","upload")}catch(e){}},onImagePicked:function(e){this.props.dispatch(Wt()),this.props.dispatch(Qt("Reading image data...")),this.props.dispatch(Gt(e));try{ga("send","event","upl-picked","upload")}catch(e){}},onImageEditorDragAction:function(e){this.setState({isDragging:e}),e?document.body.className+=" no-select":document.body.className=document.body.className.replace(" no-select","")},_renderHome:function(){return o.a.createElement("div",{className:"main-page-parent"},o.a.createElement("div",{className:"main-page center-block"},o.a.createElement($e,null),o.a.createElement(tt,{onImagePasted:this.onImagePasted}),o.a.createElement(Ee,{onClickSwitchPlatform:this.onClickSwitchPlatform,platform:this.state.platform,onImageDropped:this.onImageDropped,onImagePicked:this.onImagePicked})),o.a.createElement(Pe,{onClickSwitchPlatform:this.onClickSwitchPlatform,platform:this.state.platform}))},_renderMessage:function(e){var t=user.is_pro;return o.a.createElement("div",{className:"main-page-parent"},t?null:o.a.createElement("div",null,o.a.createElement("div",{className:"ad-container header-fix"},o.a.createElement(ye,{type:"view-header"}))),o.a.createElement("div",{className:"message-box content center-block"},e))},render:function(){var e=this;if(!this.props.image)return this.props.params.token?o.a.createElement("div",null,"Loading..."):this._renderHome();if(this.props.image.failedToFetch())return this._renderMessage(this.props.image.fetchError);if(this.props.image.isDeleted())return this._renderMessage("This image has been deleted.");var t=null;this.props.image.fetchState===ut.PASTED?t=this.props.image.pasteDataURL:this.props.image.fetchState===ut.FETCHED&&(t=this.props.image.url);var n="";this.props.image&&this.props.image.isFetched()&&(n=this.props.image.getAbsoluteURL());var r=user.is_pro||this.props.image&&this.props.image.hideAds||this.props.mainPage.isEditing&&this.props.mainPage.isZoomed,i=!user.is_pro&&this._imageEditor&&this._imageEditor._imageWasCompressedALot,a="main-page center-block";a+=this.props.mainPage.isEditing?" edit-mode":" view-mode";var l={};return this.props.mainPage.isZoomed&&(a+=" zoomed",this.state.imageWidth&&(l.width=this.state.imageWidth+100+"px")),o.a.createElement("div",{className:"main-page-parent"},r?null:o.a.createElement("div",null,o.a.createElement("div",{className:"ad-container header-fix"},o.a.createElement(ye,{type:"view-header"})),this._adBlockEnabled?o.a.createElement(be,{event:"banner-blocker"},"Even though you are using an ad blocker, other people will still see ads on the images you share.",o.a.createElement("br",null),"Try out ",o.a.createElement(s.Link,{to:"/accounts/pro?ref=banner-blocker"},"Snipboard Pro")," to remove ads for everyone!"):o.a.createElement(be,{event:"banner-share"},"If you'd like to remove ads for both you and anyone you share images with, try out ",o.a.createElement(s.Link,{to:"/accounts/pro?ref=banner-share"},"Snipboard Pro"),".")),o.a.createElement("div",{className:a,style:l},r?null:o.a.createElement("div",null,o.a.createElement("div",{className:"side-ad-container left"},o.a.createElement(ye,{type:"view-left"})),o.a.createElement("div",{className:"side-ad-container right"},o.a.createElement(ye,{type:"view-right"}))),o.a.createElement($e,{captureText:!!this._imageEditor&&this._imageEditor.isTextEditing()}),o.a.createElement(tt,{onImagePasted:this.onImagePasted}),o.a.createElement(vn,{ref:function(t){e._clipboard=t}}),this.props.mainPage.isEditing?o.a.createElement(fn,{onClickSave:this.onClickSave,onClickPerformCrop:this.onClickPerformCrop,onClickUndo:this.onClickUndo,onClickRedo:this.onClickRedo,onClickDelete:this.onClickDelete,urlToCopy:n,onURLCopied:this.onURLCopied,allowPointerEvents:!this.state.isDragging}):null,o.a.createElement(et,{ref:this._setImageEditorRef,imageURL:t,onChange:this.onEditorChange,isDeleting:this.props.image.isDeleting(),activeTool:this.props.mainPage.activeTool,isZoomed:this.props.mainPage.isZoomed,onLoaded:this.onImageEditorLoaded,onToggleZoom:this.onToggleZoom,pencilColor:this.props.mainPage.pencilColor,textColor:this.props.mainPage.textColor,pencilSize:this.props.mainPage.pencilSize,textSize:this.props.mainPage.textSize,onDragAction:this.onImageEditorDragAction}),!P()&&this._imageEditor&&this._imageEditor.isLoaded()&&!this.props.mainPage.isEditing&&this.props.image.canEdit?o.a.createElement(gn,{onClickEditImage:this.onClickEditImage,onClickDelete:this.onClickDelete}):null),r?null:o.a.createElement("div",{className:"ad-container"}),i?o.a.createElement(be,{event:"quality"},"You can increase the quality of your image by using ",o.a.createElement(s.Link,{to:"/accounts/pro?ref=quality"},"Snipboard Pro"),"."):null,o.a.createElement("div",{className:"last-child-padding"}))}}),bn=Object(d.connect)(function(e){var t=null===e.mainPage.imageID?null:e.images[e.mainPage.imageID];return{mainPage:e.mainPage,image:t}})(yn),En=(n(298),n(299),o.a.createClass({displayName:"Pager",propTypes:{numPages:r.PropTypes.number.isRequired,page:r.PropTypes.number.isRequired,pageURL:r.PropTypes.string.isRequired},render:function(){var e=this.props.pageURL.replace("$page",this.props.page-1),t=this.props.pageURL.replace("$page",this.props.page+1);return o.a.createElement("div",{className:"pager center-block"},o.a.createElement(dn,null,o.a.createElement(ln,{url:e,tooltip:"Previous page.",icon:"fa fa-chevron-left",isDisabled:this.props.page<=1}),o.a.createElement("span",{className:"page"},this.props.page,"  /  ",this.props.numPages),o.a.createElement(ln,{url:t,tooltip:"Next page.",icon:"fa fa-chevron-right",isDisabled:this.props.page>=this.props.numPages})))}})),Cn=o.a.createClass({displayName:"ImageCardMenuButton",propTypes:{icon:r.PropTypes.string.isRequired,onClick:r.PropTypes.func.isRequired,tooltip:r.PropTypes.string},render:function(){return o.a.createElement("i",{className:"image-card-menu-button "+this.props.icon,title:this.props.tooltip,onClick:this.props.onClick})}}),wn=o.a.createClass({displayName:"ImageCardMenu",propTypes:{onClickEdit:r.PropTypes.func.isRequired,onClickDelete:r.PropTypes.func.isRequired},render:function(){return o.a.createElement("div",{className:"image-card-menu"},o.a.createElement(Cn,{icon:"fa fa-trash",tooltip:"Delete",onClick:this.props.onClickDelete}),P()?null:o.a.createElement(Cn,{icon:"fa fa-edit",tooltip:"Edit",onClick:this.props.onClickEdit}))}}),_n=o.a.createClass({displayName:"ImageCard",propTypes:{link:r.PropTypes.string,src:r.PropTypes.string,onClickEdit:r.PropTypes.func,onClickDelete:r.PropTypes.func,isDeleting:r.PropTypes.bool},getDefaultProps:function(){return{link:"",src:""}},getInitialState:function(){return{loaded:!1,load_failed:!1,retries:0}},onImageLoaded:function(){var e=this;setTimeout(function(){e.isMounted()&&e.setState({loaded:!0})},0)},onImageLoadError:function(){this.isMounted()&&this.setState({loadFailed:!0})},render:function(){var e=this;if(!this.props.link)return o.a.createElement("div",{className:"image-card empty"},o.a.createElement("div",{className:"image-card-image",key:0}));var t="image-card",n={};return this.state.loaded&&(t+=" loaded",n.backgroundImage="url("+this.props.src+")",this.props.isDeleting&&(t+=" deleting")),o.a.createElement(s.Link,{to:this.props.link,className:t},o.a.createElement("img",{style:{display:"none"},onLoad:this.onImageLoaded,onError:this.onImageLoadError,ref:function(t){null!==t&&t.src!==e.props.src&&(t.src=e.props.src)}}),o.a.createElement("div",{className:"image-card-image",key:0,style:n}),this.state.loadFailed?o.a.createElement(Me,null):!this.state.loaded||this.props.isDeleting?o.a.createElement(J,{delay:500}):null,o.a.createElement(wn,{onClickEdit:this.props.onClickEdit,onClickDelete:this.props.onClickDelete}))}}),xn=o.a.createClass({displayName:"Profile",propTypes:{dispatch:r.PropTypes.func.isRequired,profile:r.PropTypes.object.isRequired,images:r.PropTypes.array.isRequired,params:r.PropTypes.object.isRequired},componentWillUnmount:function(){this._request&&this._request.cancel()},componentDidMount:function(){this._loadPage(this.props.params.page)},componentDidUpdate:function(e){e.params.page!==this.props.params.page&&this._loadPage(this.props.params.page)},_loadPage:function(e){this._request&&this._request.cancel(),this._request=this.props.dispatch(nn(this.props.params.page))},onClickEdit:function(e,t){var n=this;e.preventDefault();var r=lt(this.props.images,t);this.props.history.pushState(null,r.getLink()),setTimeout(function(){n.props.dispatch(qt(!0))},0)},onClickDelete:function(e,t){var n=this;if(e.preventDefault(),confirm("Delete this image permanently?")){lt(this.props.images,t);this.props.dispatch(Dt(t)).done(function(){n.isMounted()&&n._loadPage()}).fail(function(e){var t="Unknown error.";e&&e.statusText?t=e.statusText:"string"==typeof e&&(t=e),alert("Failed to delete image: "+t)})}},render:function(){var e=this;if(!this.props.profile.fetchedOnce)return o.a.createElement("div",{className:"profile"},o.a.createElement(J,{delay:500}));if(0===this.props.profile.numPages)return o.a.createElement("div",{className:"profile"},o.a.createElement("div",{className:"message-box content center-block"},"You haven't pasted any images yet. Go to the ",o.a.createElement(s.Link,{to:"/"},"Snipboard.io homepage")," and paste your picture."));for(var t={numPages:this.props.profile.numPages,page:this.props.profile.page,pageURL:"/accounts/profile/$page"},n=this.props.profile.imageIDs.map(function(t){var n=lt(e.props.images,t);return o.a.createElement(_n,{key:t,link:n.getLink(),src:n.url,onClickEdit:function(n){e.onClickEdit(n,t)},onClickDelete:function(n){e.onClickDelete(n,t)},isDeleting:n.isDeleting()})}),r=n.length;r<9;r++)n=n.concat(o.a.createElement(_n,{key:"_"+r}));var i=[n.filter(function(e,t){return t%3==0}),n.filter(function(e,t){return(t-1)%3==0}),n.filter(function(e,t){return(t-2)%3==0})],a=[o.a.createElement("div",{className:"image-column col-sm-4",key:"1"},i[0]),o.a.createElement("div",{className:"image-column col-sm-4",key:"2"},i[1]),o.a.createElement("div",{className:"image-column col-sm-4",key:"3"},i[2])];return o.a.createElement("div",{className:"profile"},user.is_pro?null:o.a.createElement("div",null,o.a.createElement("div",{className:"ad-container"},o.a.createElement(ye,{type:"profile"})),o.a.createElement(be,{event:"expire"},"Each image will expire 6 months after not being viewed. Try out ",o.a.createElement(s.Link,{to:"/accounts/pro?ref=expire"},"Snipboard Pro")," to get unlimited image lifetime!")),o.a.createElement(En,t),o.a.createElement("div",{className:"images container"},o.a.createElement("div",{className:"row"},a)),o.a.createElement(En,t))}}),Pn=Object(d.connect)(function(e){return{profile:e.profile,images:e.images}})(xn),kn=n(58),Dn=n.n(kn);function Sn(e,t){for(var n=[],r=2;r0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ot:return Dn()(e).concat([new function(e,t,n,r){this.imageID=e,this.token=t,this.url=n?n.url:null,this.canEdit=!!n&&n.canEdit,this.hideAds=!!n&&n.hideAds,this.pasteDataURL=r,this.fetchError=null,this.uploadState=mt.INITIAL,this.uploadPercentage=0,this.uploadError=null,this.deleteState=wt.INITIAL,this.deleteError=null,this.fetchState=ut.INITIAL,t&&n?this.fetchState=ut.FETCHED:this.pasteDataURL&&(this.fetchState=ut.PASTED),this.getAbsoluteURL=function(){return this.token?document.location.protocol+"//"+document.location.host+this.getLink():null},this.getShortURL=function(){return this.token?document.location.host+this.getLink():null},this.getLink=function(){return this.token?"/"+this.token+".jpg":null},this.isPasted=function(){return this.fetchState===ut.PASTED},this.canFetch=function(){return!(this.fetchState!==ut.INITIAL&&this.fetchState!==ut.FAILED||this.isDeleting()||this.isDeleted()||this.isUploading())},this.isFetched=function(){return this.fetchState===ut.FETCHED},this.failedToFetch=function(){return this.fetchState===ut.FAILED},this.isFetching=function(){return this.fetchState===ut.FETCHING},this.isUploading=function(){return this.uploadState!==mt.INITIAL&&this.uploadState!==mt.FAILED},this.canUpload=function(){return!this.isDeleted()&&!this.isDeleting()&&!this.isUploading()&&(this.isFetched()||this.fetchState===ut.PASTED)},this.canDelete=function(){return!(this.deleteState!==wt.INITIAL&&this.deleteState!==wt.FAILED||this.isUploading()||this.isFetching())},this.isDeleted=function(){return this.deleteState===wt.DELETED},this.isDeleting=function(){return this.deleteState===wt.DELETING}}(e.length,t.token,t.imageInfo?{url:t.imageInfo.url,canEdit:t.imageInfo.can_edit,hideAds:t.imageInfo.hide_ads}:null,t.pasteDataURL)]);case it:var n={fetchState:ut.FETCHED,url:t.imageInfo.url,canEdit:t.imageInfo.can_edit,hideAds:t.imageInfo.hide_ads};return t.token&&(n.token=t.token),Sn(e,t.imageID,n);case gt:return Sn(e,t.imageID,{uploadPercentage:0,uploadState:mt.PREPARING});case vt:return Sn(e,t.imageID,{uploadState:mt.UPLOADING});case Et:return Sn(e,t.imageID,{uploadPercentage:t.percentage});case yt:return Sn(e,t.imageID,{uploadState:mt.INITIAL});case bt:return Sn(e,t.imageID,{uploadState:mt.FAILED,uploadError:t.message});case ct:return Sn(e,t.imageID,{fetchState:ut.FETCHING});case pt:return Sn(e,t.imageID,{fetchState:ut.FAILED,fetchError:t.message});case _t:return Sn(e,t.imageID,{deleteState:wt.DELETING});case xt:return Sn(e,t.imageID,{deleteState:wt.DELETED});case Pt:return Sn(e,t.imageID,{deleteState:wt.FAILED,deleteError:t.message});default:return e}},mainPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case It:return Tn;case Nt:return Object.assign({},e,{canUndo:t.canUndo,canRedo:t.canRedo,isDirty:t.isDirty});case Tt:var n=e.openTool===t.tool?null:t.tool;return("move"===t.tool||"move"===e.activeTool&&e.openTool===t.tool)&&(n=e.openTool),null===n||t.tool!==e.activeTool?Object.assign({},e,{activeTool:t.tool,openTool:n,isShowingColorWidget:!1,isShowingSizeWidget:!1}):Object.assign({},e,{activeTool:t.tool,openTool:n});case At:return Object.assign({},e,{isZoomed:t.isZoomed});case Ot:return Object.assign({},e,{pencilColor:t.color});case Lt:return Object.assign({},e,{textColor:t.color});case Mt:return Object.assign({},e,{pencilSize:t.size});case Ut:return Object.assign({},e,{textSize:t.size});case Rt:return Object.assign({},e,{isEditing:t.isEditing});case St:return Object.assign({},e,{imageID:t.imageID});case Bt:return n=t.show?e.activeTool:e.openTool,Object.assign({},e,{isShowingSizeWidget:t.show,openTool:n});case jt:return n=t.show?e.activeTool:e.openTool,Object.assign({},e,{isShowingColorWidget:t.show,openTool:n});case Ft:return Object.assign({},e,{statusMessage:t.message,statusMessageID:e.statusMessageID+1,statusFlash:t.flash?e.statusFlash+1:e.statusFlash});default:return e}},profile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:An,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Jt:return t.page!==e.page?Object.assign({},e,{fetchState:Zt.FETCHING,page:t.page,imageIDs:[]}):Object.assign({},e,{fetchState:Zt.FETCHING,page:t.page});case $t:return Object.assign({},e,{fetchState:Zt.INITIAL,page:t.page,numPages:t.numPages,imageIDs:t.imageIDs,fetchedOnce:!0});case en:return Object.assign({},e,{fetchState:Zt.FAILED,fetchError:t.message});default:return e}}}),In=(n(303),o.a.createClass({displayName:"Terms",componentDidMount:function(){window.nitroAds&&window.nitroAds.loaded?document.getElementById("consent-box").style.display=window.__cmp?"":"none":document.addEventListener("nitroAds.loaded",function(){return document.getElementById("consent-box").style.display=window.__cmp?"":"none"})},render:function(){return o.a.createElement("div",{className:"terms"},o.a.createElement(ye,{type:"empty"}),o.a.createElement("h2",null,"Snipboard.io Terms of Service"),o.a.createElement("h3",null,"1. Terms"),o.a.createElement("p",null,"By accessing the website at ",o.a.createElement("a",{href:"https://snipboard.io"},"https://snipboard.io"),", you are agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing this site. The materials contained in this website are protected by applicable copyright and trademark law. Snipboard.io is a service provided by Snipboard LLC."),o.a.createElement("h3",null,"2. Use License"),o.a.createElement("ol",{type:"a"},o.a.createElement("li",null,"Permission is granted to temporarily download one copy of the materials (information or software) on Snipboard.io's website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:",o.a.createElement("ol",{type:"i"},o.a.createElement("li",null,"modify or copy the materials;"),o.a.createElement("li",null,"use the materials for any commercial purpose, or for any public display (commercial or non-commercial);"),o.a.createElement("li",null,"attempt to decompile or reverse engineer any software contained on Snipboard.io's website;"),o.a.createElement("li",null,"remove any copyright or other proprietary notations from the materials; or"),o.a.createElement("li",null,'transfer the materials to another person or "mirror" the materials on any other server.'))),o.a.createElement("li",null,"This license shall automatically terminate if you violate any of these restrictions and may be terminated by Snipboard.io at any time. Upon terminating your viewing of these materials or upon the termination of this license, you must destroy any downloaded materials in your possession whether in electronic or printed format.")),o.a.createElement("h3",null,"3. Disclaimer"),o.a.createElement("ol",{type:"a"},o.a.createElement("li",null,"The materials on Snipboard.io's website are provided on an 'as is' basis. Snipboard.io makes no warranties, expressed or implied, and hereby disclaims and negates all other warranties including, without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights."),o.a.createElement("li",null,"Further, Snipboard.io does not warrant or make any representations concerning the accuracy, likely results, or reliability of the use of the materials on its website or otherwise relating to such materials or on any sites linked to this site."),o.a.createElement("li",null,'Snipboard LLC and the content of this website are in no way affiliated, sponsored, or endorsed by TechSmith Corporation, who is the owner of the registered mark "Snagit" and has a website located at www.snagit.com.')),o.a.createElement("h3",null,"4. Limitations"),o.a.createElement("p",null,"In no event shall Snipboard.io or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials on Snipboard.io's website, even if Snipboard.io or a Snipboard.io authorized representative has been notified orally or in writing of the possibility of such damage. Because some jurisdictions do not allow limitations on implied warranties, or limitations of liability for consequential or incidental damages, these limitations may not apply to you."),o.a.createElement("h3",null,"5. Accuracy of materials"),o.a.createElement("p",null,"The materials appearing on Snipboard.io's website could include technical, typographical, or photographic errors. Snipboard.io does not warrant that any of the materials on its website are accurate, complete or current. Snipboard.io may make changes to the materials contained on its website at any time without notice. However Snipboard.io does not make any commitment to update the materials."),o.a.createElement("h3",null,"6. Links"),o.a.createElement("p",null,"Snipboard.io has not reviewed all of the sites linked to its website and is not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement by Snipboard.io of the site. Use of any such linked website is at the user's own risk."),o.a.createElement("h3",null,"7. Modifications"),o.a.createElement("p",null,"Snipboard.io may revise these terms of service for its website at any time without notice. By using this website you are agreeing to be bound by the then current version of these terms of service."),o.a.createElement("h3",null,"8. Governing Law"),o.a.createElement("p",null,"These terms and conditions are governed by and construed in accordance with the laws of Oregon and you irrevocably submit to the exclusive jurisdiction of the courts in that State or location."),o.a.createElement("hr",null),o.a.createElement("h2",null,"Privacy Policy"),o.a.createElement("p",null,"Your privacy is important to us. It is Snipboard.io's policy to respect your privacy regarding any information we may collect from you across our website, ",o.a.createElement("a",{href:"https://snipboard.io"},"https://snipboard.io"),", and other sites we own and operate."),o.a.createElement("h3",null,"1. Information we collect"),o.a.createElement("h4",null,"Log data"),o.a.createElement("p",null,"When you visit our website, our servers may automatically log the standard data provided by your web browser. It may include your computer’s Internet Protocol (IP) address, your browser type and version, the pages you visit, the time and date of your visit, the time spent on each page, and other details."),o.a.createElement("h4",null,"Personal information"),o.a.createElement("p",null,"We may ask for personal information, such as your:"),o.a.createElement("ul",null,o.a.createElement("li",null,"Email"),o.a.createElement("li",null,"Payment information")),o.a.createElement("h3",null,"2. Legal bases for processing"),o.a.createElement("p",null,"We will process your personal information lawfully, fairly and in a transparent manner. We collect and process information about you only where we have legal bases for doing so."),o.a.createElement("p",null,"These legal bases depend on the services you use and how you use them, meaning we collect and use your information only where:"),o.a.createElement("ul",null,o.a.createElement("li",null,"it’s necessary for the performance of a contract to which you are a party or to take steps at your request before entering into such a contract (for example, when we provide a service you request from us);"),o.a.createElement("li",null,"it satisfies a legitimate interest (which is not overridden by your data protection interests), such as for research and development, to market and promote our services, and to protect our legal rights and interests;"),o.a.createElement("li",null,"you give us consent to do so for a specific purpose (for example, you might consent to us sending you our newsletter); or"),o.a.createElement("li",null,"we need to process your data to comply with a legal obligation.")),o.a.createElement("p",null,"Where you consent to our use of information about you for a specific purpose, you have the right to change your mind at any time (but this will not affect any processing that has already taken place)."),o.a.createElement("p",null,"We don’t keep personal information for longer than is necessary. While we retain this information, we will protect it within commercially acceptable means to prevent loss and theft, as well as unauthorised access, disclosure, copying, use or modification. That said, we advise that no method of electronic transmission or storage is 100% secure and cannot guarantee absolute data security. If necessary, we may retain your personal information for our compliance with a legal obligation or in order to protect your vital interests or the vital interests of another natural person."),o.a.createElement("h3",null,"3. Collection and use of information"),o.a.createElement("p",null,"We may collect, hold, use and disclose information for the following purposes and personal information will not be further processed in a manner that is incompatible with these purposes:"),o.a.createElement("ul",null,o.a.createElement("li",null,"to enable you to customise or personalise your experience of our website;"),o.a.createElement("li",null,"to enable you to access and use our website, associated applications and associated social media platforms;"),o.a.createElement("li",null,"to contact and communicate with you;"),o.a.createElement("li",null,"for internal record keeping and administrative purposes;"),o.a.createElement("li",null,"for analytics, market research and business development, including to operate and improve our website, associated applications and associated social media platforms;"),o.a.createElement("li",null,"for advertising and marketing, including to send you promotional information about our products and services and information about third parties that we consider may be of interest to you; and"),o.a.createElement("li",null,"to comply with our legal obligations and resolve any disputes that we may have.")),o.a.createElement("h3",null,"4. Disclosure of personal information to third parties"),o.a.createElement("p",null,"We may disclose personal information to:"),o.a.createElement("ul",null,o.a.createElement("li",null,"third party service providers for the purpose of enabling them to provide their services, including (without limitation) IT service providers, data storage, hosting and server providers, ad networks, analytics, error loggers, debt collectors, maintenance or problem-solving providers, marketing or advertising providers, professional advisors and payment systems operators;"),o.a.createElement("li",null,"our employees, contractors and/or related entities;"),o.a.createElement("li",null,"credit reporting agencies, courts, tribunals and regulatory authorities, in the event you fail to pay for goods or services we have provided to you;"),o.a.createElement("li",null,"courts, tribunals, regulatory authorities and law enforcement officers, as required by law, in connection with any actual or prospective legal proceedings, or in order to establish, exercise or defend our legal rights;"),o.a.createElement("li",null,"third parties, including agents or sub-contractors, who assist us in providing information, products, services or direct marketing to you; and"),o.a.createElement("li",null,"third parties to collect and process data.")),o.a.createElement("h3",null,"5. International transfers of personal information"),o.a.createElement("p",null,"The personal information we collect is stored and processed in United States, or where we or our partners, affiliates and third-party providers maintain facilities. By providing us with your personal information, you consent to the disclosure to these overseas third parties."),o.a.createElement("p",null,"We will ensure that any transfer of personal information from countries in the European Economic Area (EEA) to countries outside the EEA will be protected by appropriate safeguards, for example by using standard data protection clauses approved by the European Commission, or the use of binding corporate rules or other legally accepted means."),o.a.createElement("p",null,"Where we transfer personal information from a non-EEA country to another country, you acknowledge that third parties in other jurisdictions may not be subject to similar data protection laws to the ones in our jurisdiction. There are risks if any such third party engages in any act or practice that would contravene the data privacy laws in our jurisdiction and this might mean that you will not be able to seek redress under our jurisdiction’s privacy laws."),o.a.createElement("h3",null,"6. Your rights and controlling your personal information"),o.a.createElement("p",null,o.a.createElement("strong",null,"Choice and consent:")," By providing personal information to us, you consent to us collecting, holding, using and disclosing your personal information in accordance with this privacy policy. If you are under 16 years of age, you must have, and warrant to the extent permitted by law to us, that you have your parent or legal guardian’s permission to access and use the website and they (your parents or guardian) have consented to you providing us with your personal information. You do not have to provide personal information to us, however, if you do not, it may affect your use of this website or the products and/or services offered on or through it."),o.a.createElement("p",null,o.a.createElement("strong",null,"Information from third parties:")," If we receive personal information about you from a third party, we will protect it as set out in this privacy policy. If you are a third party providing personal information about somebody else, you represent and warrant that you have such person’s consent to provide the personal information to us."),o.a.createElement("p",null,o.a.createElement("strong",null,"Restrict:")," You may choose to restrict the collection or use of your personal information. If you have previously agreed to us using your personal information for direct marketing purposes, you may change your mind at any time by contacting us using the details below. If you ask us to restrict or limit how we process your personal information, we will let you know how the restriction affects your use of our website or products and services."),o.a.createElement("p",null,o.a.createElement("strong",null,"Access and data portability:")," You may request details of the personal information that we hold about you. You may request a copy of the personal information we hold about you. Where possible, we will provide this information in CSV format or other easily readable machine format. You may request that we erase the personal information we hold about you at any time. You may also request that we transfer this personal information to another third party."),o.a.createElement("p",null,o.a.createElement("strong",null,"Correction:")," If you believe that any information we hold about you is inaccurate, out of date, incomplete, irrelevant or misleading, please contact us using the details below. We will take reasonable steps to correct any information found to be inaccurate, incomplete, misleading or out of date."),o.a.createElement("p",null,o.a.createElement("strong",null,"Notification of data breaches:")," We will comply laws applicable to us in respect of any data breach."),o.a.createElement("p",null,o.a.createElement("strong",null,"Complaints:")," If you believe that we have breached a relevant data protection law and wish to make a complaint, please contact us using the details below and provide us with full details of the alleged breach. We will promptly investigate your complaint and respond to you, in writing, setting out the outcome of our investigation and the steps we will take to deal with your complaint. You also have the right to contact a regulatory body or data protection authority in relation to your complaint."),o.a.createElement("p",null,o.a.createElement("strong",null,"Unsubscribe:")," To unsubscribe from our e-mail database or opt-out of communications (including marketing communications), please contact us using the details below or opt-out using the opt-out facilities provided in the communication."),o.a.createElement("p",null,o.a.createElement("strong",null,"California Online Privacy Protection Act Compliance:")," We will not distribute any personal information to outside parties without your consent except as stated. Users covered under the California Online Privacy Protection Act can make changes to their information with this link: ",o.a.createElement("span",{"data-ccpa-link":"1"},o.a.createElement("em",null,"No link is provided, because the user is not in the affected region."))),o.a.createElement("h3",null,"7. Cookies"),o.a.createElement("p",null,"We use “cookies” to collect information about you and your activity across our site. A cookie is a small piece of data that our website stores on your computer, and accesses each time you visit, so we can understand how you use our site. This helps us serve you content based on preferences you have specified.  ",o.a.createElement("span",{id:"consent-box"},o.a.createElement("a",{onClick:function(){return window.__cmp("showModal")}},"Click here to update your cookie preferences."))),o.a.createElement("h3",null,"8. Business transfers"),o.a.createElement("p",null,"If we or our assets are acquired, or in the unlikely event that we go out of business or enter bankruptcy, we would include data among the assets transferred to any parties who acquire us. You acknowledge that such transfers may occur, and that any parties who acquire us may continue to use your personal information according to this policy."),o.a.createElement("h3",null,"9. Limits of our policy"),o.a.createElement("p",null,"Our website may link to external sites that are not operated by us. Please be aware that we have no control over the content and policies of those sites, and cannot accept responsibility or liability for their respective privacy practices."),o.a.createElement("h3",null,"10. Changes to this policy"),o.a.createElement("p",null,"At our discretion, we may change our privacy policy to reflect current acceptable practices. We will take reasonable steps to let users know about changes via our website. Your continued use of this site after any changes to this policy will be regarded as acceptance of our practices around privacy and personal information. "),o.a.createElement("p",null,"If we make a significant change to this privacy policy, for example changing a lawful basis on which we process your personal information, we will ask you to re-consent to the amended privacy policy."),o.a.createElement("p",null,o.a.createElement("strong",null,"Snipboard.io Data Controller"),o.a.createElement("br",null),"Terence Lee",o.a.createElement("br",null),"contact@snipboard.io"),o.a.createElement("p",null,"This policy is effective as of 28 October 2018."))}})),Nn=(n(304),o.a.createClass({displayName:"Contact",render:function(){return o.a.createElement("div",{className:"contact"},o.a.createElement("div",{className:"info"},o.a.createElement("h3",null,"General Inquiries"),o.a.createElement("p",null,"Do you have any questions or comments about Snipboard?",o.a.createElement("br",null),"Email us: ",o.a.createElement("a",{href:"mailto:contact@snipboard.io"},"contact@snipboard.io")),o.a.createElement("br",null),o.a.createElement("h3",null,"Advertising"),o.a.createElement("p",null,"For information on advertising on Snipboard.io, please get in touch with our sales representatives: ",o.a.createElement("a",{href:"mailto:sales@ggsoftware.io"},"sales@ggsoftware.io"))))}})),On=o.a.createClass({displayName:"Error403",render:function(){return o.a.createElement("div",{className:"main-page-parent"},o.a.createElement("div",{className:"message-box content center-block"},"Error 403: Forbidden. You may need to ",o.a.createElement("a",{href:"/"},"refresh your browser session"),"."))}}),Mn=o.a.createClass({displayName:"Error404",render:function(){return o.a.createElement("div",{className:"main-page-parent"},o.a.createElement("div",{className:"message-box content center-block"},"Error 404: Document not found."))}}),Ln=o.a.createClass({displayName:"Error500",render:function(){return o.a.createElement("div",{className:"main-page-parent"},o.a.createElement("div",{className:"message-box content center-block"},"Error 500: Unknown server error. If this problem persists, please let us know at ",o.a.createElement("a",{href:"mailto:contact@snipboard.io"},"contact@snipboard.io"),"."))}}),Un=Object(l.applyMiddleware)(p)(l.createStore)(Rn);if(pagevars.image){var jn=Un.dispatch(st(pagevars.image.token));Un.dispatch(ht(jn.imageID,pagevars.image.getImageInfoResponse))}var Bn=o.a.createClass({displayName:"App",_stopListening:null,componentDidMount:function(){this._stopListening=this.props.history.listen(this.locationDidChange)},locationDidChange:function(e){try{ga("send","pageview")}catch(e){}},componentWillUnmount:function(){this._stopListening()},render:function(){var e="app-children";return user.is_pro||(e+=" non-pro"),o.a.createElement("div",{className:"app-content"},o.a.createElement(g,null),o.a.createElement("div",{className:e},this.props.children),o.a.createElement(v,null))}});a.a.render(o.a.createElement(d.Provider,{store:Un},o.a.createElement(s.Router,{onUpdate:function(){return window.scrollTo(0,0)},history:s.browserHistory},o.a.createElement(s.Route,{path:"/",component:Bn},o.a.createElement(s.IndexRoute,{component:bn}),o.a.createElement(s.Route,{path:"errors/403",component:On}),o.a.createElement(s.Route,{path:"errors/404",component:Mn}),o.a.createElement(s.Route,{path:"errors/500",component:Ln}),o.a.createElement(s.Route,{path:"terms",component:In}),o.a.createElement(s.Route,{path:"contact",component:Nn}),o.a.createElement(s.Route,{path:"accounts/login/",component:k}),o.a.createElement(s.Route,{path:"accounts/signup/",component:D}),o.a.createElement(s.Route,{path:"accounts/password/reset/",component:S}),o.a.createElement(s.Route,{path:"accounts/password/reset/done/",component:T}),o.a.createElement(s.Route,{path:"accounts/password/reset/key/*/",component:A}),o.a.createElement(s.Route,{path:"accounts/email/confirmed/anonymous/",component:R}),o.a.createElement(s.Route,{path:"accounts/email/confirmed/authenticated/",component:I}),o.a.createElement(s.Route,{path:"accounts/profile(/:page)",component:Pn}),o.a.createElement(s.Route,{path:"accounts/pro",component:ee}),o.a.createElement(s.Route,{path:":token",component:bn})))),document.getElementById("app")),pagevars={}}]);