Gaëtan Renaudeau e4ceac580e build
2015-10-09 21:39:16 +02:00

12 lines
335 KiB
JavaScript

!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},s=e("react"),u=e("gl-react"),c=u.Shaders.create({helloGL:{frag:"\nprecision highp float;\nvarying vec2 uv;\n\nuniform float value;\n\nvoid main () {\n gl_FragColor = vec4(uv.x, uv.y, value, 1.0);\n}\n "}}),l=function(e){function t(e){r(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={value:0}}return o(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this,t=function n(t){requestAnimationFrame(n),e.setState({value:(1+Math.cos(t/1e3))/2})};requestAnimationFrame(t)}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=this.state.value;return s.createElement(u.View,{shader:c.helloGL,width:t,height:n,uniforms:{value:r}})}}]),t}(s.Component);t.exports=l},{"gl-react":67,react:261}],2:[function(e,t,n){"use strict";var r=e("react"),o=e("gl-react"),i=e("./Blur1D");t.exports=o.createComponent(function(e){var t=e.width,n=e.height,o=e.factor,a=e.children;return r.createElement(i,{width:t,height:n,direction:[o,0]},r.createElement(i,{width:t,height:n,direction:[0,o]},a))},{displayName:"Blur"})},{"./Blur1D":3,"gl-react":67,react:261}],3:[function(e,t,n){"use strict";var r=e("react"),o=e("gl-react"),i=o.Shaders.create({blur1D:{frag:"\nprecision highp float;\nvarying vec2 uv;\nuniform sampler2D t;\nuniform vec2 direction;\nuniform vec2 resolution;\n\n// from https://github.com/Jam3/glsl-fast-gaussian-blur\nvec4 blur13(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.411764705882353) * direction;\n vec2 off2 = vec2(3.2941176470588234) * direction;\n vec2 off3 = vec2(5.176470588235294) * direction;\n color += texture2D(image, uv) * 0.1964825501511404;\n color += texture2D(image, uv + (off1 / resolution)) * 0.2969069646728344;\n color += texture2D(image, uv - (off1 / resolution)) * 0.2969069646728344;\n color += texture2D(image, uv + (off2 / resolution)) * 0.09447039785044732;\n color += texture2D(image, uv - (off2 / resolution)) * 0.09447039785044732;\n color += texture2D(image, uv + (off3 / resolution)) * 0.010381362401148057;\n color += texture2D(image, uv - (off3 / resolution)) * 0.010381362401148057;\n return color;\n}\n\nvoid main () {\n gl_FragColor = blur13(t, uv, resolution, direction);\n}\n "}});t.exports=o.createComponent(function(e){var t=e.width,n=e.height,a=e.direction,s=e.children;return r.createElement(o.View,{shader:i.blur1D,width:t,height:n,uniforms:{direction:a,resolution:[t,n]}},r.createElement(o.Uniform,{name:"t"},s))},{displayName:"Blur1D"})},{"gl-react":67,react:261}],4:[function(e,t,n){"use strict";var r=e("react"),o=e("gl-react"),i=o.Shaders.create({colorify:{frag:"\nprecision highp float;\nvarying vec2 uv;\nuniform sampler2D image;\nuniform sampler2D colorScale; // used as a lookup texture\nuniform float legend;\n\nfloat monochrome (vec3 c) {\n return 0.2125 * c.r + 0.7154 * c.g + 0.0721 * c.b;\n}\n\nvoid main () {\n vec4 imgC = texture2D(image, uv / vec2(1.0, 1.0 - legend) - vec2(0.0, legend));\n vec4 scaleC = texture2D(colorScale, vec2(monochrome(imgC.rgb), 0.5));\n float legendArea = step(uv.y, legend);\n gl_FragColor = step(uv.y, legend - 0.02) * texture2D(colorScale, uv) +\n step(legend, uv.y) * vec4(scaleC.rgb, imgC.a * scaleC.a);\n}\n "}});t.exports=o.createComponent(function(e){var t=e.width,n=e.height,a=e.children,s=e.colorScale,u=e.legend,c=e.disableLinearInterpolation;return r.createElement(o.View,{shader:i.colorify,width:t,height:n,uniforms:{image:a,legend:u},opaque:!1},r.createElement(o.Uniform,{name:"colorScale",disableLinearInterpolation:c},s))},{displayName:"Colorify",defaultProps:{legend:.06}})},{"gl-react":67,react:261}],5:[function(e,t,n){"use strict";var r=e("react"),o=e("gl-react"),i=o.Shaders.create({helloGL:{frag:"\nprecision highp float;\nvarying vec2 uv; // This variable vary in all pixel position (normalized from vec2(0.0,0.0) to vec2(1.0,1.0))\n\nvoid main () { // This function is called FOR EACH PIXEL\n gl_FragColor = vec4(uv.x, uv.y, 0.5, 1.0); // red vary over X, green vary over Y, blue is 50%, alpha is 100%.\n}\n "}});t.exports=o.createComponent(function(e){var t=e.width,n=e.height;return r.createElement(o.View,{shader:i.helloGL,width:t,height:n})},{displayName:"HelloGL"})},{"gl-react":67,react:261}],6:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=e("react"),a=e("gl-react"),s=a.Shaders.create({hueRotate:{frag:"\nprecision highp float;\nvarying vec2 uv;\nuniform sampler2D tex;\nuniform float hue;\n\nconst mat3 rgb2yiq = mat3(0.299, 0.587, 0.114, 0.595716, -0.274453, -0.321263, 0.211456, -0.522591, 0.311135);\nconst mat3 yiq2rgb = mat3(1.0, 0.9563, 0.6210, 1.0, -0.2721, -0.6474, 1.0, -1.1070, 1.7046);\n\nvoid main() {\n vec3 yColor = rgb2yiq * texture2D(tex, uv).rgb;\n float originalHue = atan(yColor.b, yColor.g);\n float finalHue = originalHue + hue;\n float chroma = sqrt(yColor.b*yColor.b+yColor.g*yColor.g);\n vec3 yFinalColor = vec3(yColor.r, chroma * cos(finalHue), chroma * sin(finalHue));\n gl_FragColor = vec4(yiq2rgb*yFinalColor, 1.0);\n}\n "}});t.exports=a.createComponent(function(e){var t=e.hue,n=e.children,u=r(e,["hue","children"]);return i.createElement(a.View,o({},u,{shader:s.hueRotate,uniforms:{hue:t}}),i.createElement(a.Uniform,{name:"tex"},n))},{displayName:"HueRotate"})},{"gl-react":67,react:261}],7:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},s=e("react"),u=e("gl-react"),c=u.Shaders.create({oneFingerResponse:{frag:"\nprecision mediump float;\nvarying vec2 uv;\n\nuniform float pressed;\nuniform vec2 position;\n\nvoid main () {\n float dist = pow(1.0 - distance(position, uv), 4.0);\n float edgeDistX = pow(1.0 - distance(position.x, uv.x), 24.0);\n float edgeDistY = pow(1.0 - distance(position.y, uv.y), 24.0);\n gl_FragColor = vec4(pressed * vec3(0.8 * dist + edgeDistX, 0.7 * dist + edgeDistY, 0.6 * dist), 1.0);\n}\n "}}),l=function(e){function t(e){r(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={pressed:0,position:[0,0]},this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return o(t,e),i(t,[{key:"onMouseDown",value:function(e){this.setState({pressed:1}),this.onMouseMove(e)}},{key:"onMouseMove",value:function(e){var t=this.props,n=t.width,r=t.height,o=e.clientX,i=e.clientY,a=s.findDOMNode(this.refs.view).getBoundingClientRect(),u=a.left,c=a.top,l=o-u,p=i-c;this.setState({position:[l/n,1-p/r]})}},{key:"onMouseUp",value:function(){this.setState({pressed:0})}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=this.state,o=r.pressed,i=r.position;return s.createElement(u.View,{ref:"view",onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,width:t,height:n,shader:c.oneFingerResponse,uniforms:{pressed:o,position:i}})}}]),t}(s.Component);t.exports=l},{"gl-react":67,react:261}],8:[function(e,t,n){"use strict";var r=e("react"),o=e("gl-react"),i=o.Shaders.create({pieProgress:{frag:"\nprecision mediump float;\nvarying vec2 uv;\n\nuniform vec4 colorInside, colorOutside;\nuniform float radius;\nuniform float progress;\nuniform vec2 dim;\n\nconst vec2 center = vec2(0.5);\nconst float PI = 3.14159;\n\nvoid main () {\n vec2 norm = dim / min(dim.x, dim.y);\n vec2 p = uv * norm - (norm-1.0)/2.0;\n vec2 delta = p - center;\n float inside =\n step(length(delta), radius) *\n step((PI + atan(delta.y, -1.0 * delta.x)) / (2.0 * PI), progress);\n gl_FragColor = mix(\n colorOutside,\n colorInside,\n inside\n );\n}\n "}});t.exports=o.createComponent(function(e){var t=e.width,n=e.height,a=e.progress,s=e.colorInside,u=e.colorOutside,c=e.radius;return r.createElement(o.View,{width:t,height:n,shader:i.pieProgress,opaque:!1,uniforms:{dim:[t,n],progress:a,colorInside:s,colorOutside:u,radius:c}})},{displayName:"PieProgress",defaultProps:{colorInside:[0,0,0,0],colorOutside:[0,0,0,.5],radius:.4}})},{"gl-react":67,react:261}],9:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},s=e("react"),u=e("react-canvas"),c=u.Surface,l=u.Image,p=u.Text,h={demospan1:{top:0,left:0,width:256,height:40,textAlign:"center",color:"#f16",fontWeight:"400",fontSize:20,letterSpacing:0},demospan2:{top:120,left:0,width:256,height:40,textAlign:"center",color:"#7bf",fontWeight:"300",fontSize:20,letterSpacing:-1},demospan3:{top:150,left:0,width:256,height:40,textAlign:"center",color:"#7bf",fontWeight:"300",fontSize:20,letterSpacing:-1}},f=function(e){function t(){r(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.text;return s.createElement(c,{width:t,height:n,top:0,left:0},s.createElement(l,{crossOrigin:!0,src:"http://i.imgur.com/qVxHrkY.jpg",style:{width:t,height:244*t/256,top:0,left:0}}),s.createElement(p,{style:h.demospan1},"Throw me to the wolves"),s.createElement(p,{style:h.demospan2},"and I will return"),s.createElement(p,{style:h.demospan3},r))}}]),t}(s.Component);t.exports=f},{react:261,"react-canvas":89}],10:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=e("react"),a=e("gl-react"),s=a.Shaders.create({saturation:{frag:"\nprecision highp float;\nvarying vec2 uv;\nuniform sampler2D image;\nuniform float factor;\n\nvoid main () {\n vec4 c = texture2D(image, uv);\n // Algorithm from Chapter 16 of OpenGL Shading Language\n const vec3 W = vec3(0.2125, 0.7154, 0.0721);\n gl_FragColor = vec4(mix(vec3(dot(c.rgb, W)), c.rgb, factor), c.a);\n}\n "}});t.exports=a.createComponent(function(e){var t=e.factor,n=e.image,u=r(e,["factor","image"]);return i.createElement(a.View,o({},u,{shader:s.saturation,uniforms:{factor:t,image:n}}))},{displayName:"Saturation"})},{"gl-react":67,react:261}],11:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},s=e("react"),u=function(e){function t(){r(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.minimumValue,n=e.maximumValue,r=e.value,o=e.onValueChange;return s.createElement("input",{type:"range",min:t,max:n,step:(n-t)/1e3,value:r,onChange:function(e){return o(parseFloat(e.target.value))}})}}]),t}(s.Component);u.defaultProps={minimumValue:0,maximumValue:1,value:0},t.exports=u},{react:261}],12:[function(e,t,n){"use strict";var r=e("ndarray");t.exports={classical:r(new Float64Array([0,0,1,.1,.7,1,.4,1,.4,1,.6,0,1,0,0]),[5,1,3]),reversedMonochrome:r(new Float64Array([1,1,1,.1,.2,.3]),[2,1,3]),opacityFading:r(new Float64Array([1,0]),[2,1,1]),OrRd:r(new Float64Array([1,.97,.93,1,.91,.78,.99,.83,.62,.99,.73,.52,.99,.55,.35,.94,.4,.28,.84,.19,.12,.7,0,0,.5,0,0]),[9,1,3]),PuBu:r(new Float64Array([1,.97,.98,.93,.91,.95,.82,.82,.9,.65,.74,.86,.45,.66,.81,.21,.56,.75,.02,.44,.69,.02,.35,.55,.01,.22,.35]),[9,1,3]),BuPu:r(new Float64Array([.97,.99,.99,.88,.93,.96,.75,.83,.9,.62,.74,.85,.55,.59,.78,.55,.42,.69,.53,.25,.62,.51,.06,.49,.3,0,.29]),[9,1,3]),Oranges:r(new Float64Array([1,.96,.92,1,.9,.81,.99,.82,.64,.99,.68,.42,.99,.55,.24,.95,.41,.07,.85,.28,0,.65,.21,.01,.5,.15,.02]),[9,1,3]),BuGn:r(new Float64Array([.97,.99,.99,.9,.96,.98,.8,.93,.9,.6,.85,.79,.4,.76,.64,.25,.68,.46,.14,.55,.27,0,.43,.17,0,.27,.11]),[9,1,3]),YlOrBr:r(new Float64Array([1,1,.9,1,.97,.74,1,.89,.57,1,.77,.31,1,.6,.16,.93,.44,.08,.8,.3,.01,.6,.2,.02,.4,.15,.02]),[9,1,3]),YlGn:r(new Float64Array([1,1,.9,.97,.99,.73,.85,.94,.64,.68,.87,.56,.47,.78,.47,.25,.67,.36,.14,.52,.26,0,.41,.22,0,.27,.16]),[9,1,3]),Reds:r(new Float64Array([1,.96,.94,1,.88,.82,.99,.73,.63,.99,.57,.45,.98,.42,.29,.94,.23,.17,.8,.09,.11,.65,.06,.08,.4,0,.05]),[9,1,3]),RdPu:r(new Float64Array([1,.97,.95,.99,.88,.87,.99,.77,.75,.98,.62,.71,.97,.41,.63,.87,.2,.59,.68,0,.49,.48,0,.47,.29,0,.42]),[9,1,3]),Greens:r(new Float64Array([.97,.99,.96,.9,.96,.88,.78,.91,.75,.63,.85,.61,.45,.77,.46,.25,.67,.36,.14,.55,.27,0,.43,.17,0,.27,.11]),[9,1,3]),YlGnBu:r(new Float64Array([1,1,.85,.93,.97,.69,.78,.91,.71,.5,.8,.73,.25,.71,.77,.11,.57,.75,.13,.37,.66,.15,.2,.58,.03,.11,.35]),[9,1,3]),Purples:r(new Float64Array([.99,.98,.99,.94,.93,.96,.85,.85,.92,.74,.74,.86,.62,.6,.78,.5,.49,.73,.42,.32,.64,.33,.15,.56,.25,0,.49]),[9,1,3]),GnBu:r(new Float64Array([.97,.99,.94,.88,.95,.86,.8,.92,.77,.66,.87,.71,.48,.8,.77,.31,.7,.83,.17,.55,.75,.03,.41,.67,.03,.25,.51]),[9,1,3]),Greys:r(new Float64Array([1,1,1,.94,.94,.94,.85,.85,.85,.74,.74,.74,.59,.59,.59,.45,.45,.45,.32,.32,.32,.15,.15,.15,0,0,0]),[9,1,3]),YlOrRd:r(new Float64Array([1,1,.8,1,.93,.63,1,.85,.46,1,.7,.3,.99,.55,.24,.99,.31,.16,.89,.1,.11,.74,0,.15,.5,0,.15]),[9,1,3]),PuRd:r(new Float64Array([.97,.96,.98,.91,.88,.94,.83,.73,.85,.79,.58,.78,.87,.4,.69,.91,.16,.54,.81,.07,.34,.6,0,.26,.4,0,.12]),[9,1,3]),Blues:r(new Float64Array([.97,.98,1,.87,.92,.97,.78,.86,.94,.62,.79,.88,.42,.68,.84,.26,.57,.78,.13,.44,.71,.03,.32,.61,.03,.19,.42]),[9,1,3]),PuBuGn:r(new Float64Array([1,.97,.98,.93,.89,.94,.82,.82,.9,.65,.74,.86,.4,.66,.81,.21,.56,.75,.01,.51,.54,0,.42,.35,0,.27,.21]),[9,1,3]),Spectral:r(new Float64Array([.62,0,.26,.84,.24,.31,.96,.43,.26,.99,.68,.38,1,.88,.55,1,1,.75,.9,.96,.6,.67,.87,.64,.4,.76,.65,.2,.53,.74,.37,.31,.64]),[11,1,3]),RdYlGn:r(new Float64Array([.65,0,.15,.84,.19,.15,.96,.43,.26,.99,.68,.38,1,.88,.55,1,1,.75,.85,.94,.55,.65,.85,.42,.4,.74,.39,.1,.6,.31,0,.41,.22]),[11,1,3]),RdBu:r(new Float64Array([.4,0,.12,.7,.09,.17,.84,.38,.3,.96,.65,.51,.99,.86,.78,.97,.97,.97,.82,.9,.94,.57,.77,.87,.26,.58,.76,.13,.4,.67,.02,.19,.38]),[11,1,3]),PiYG:r(new Float64Array([.56,0,.32,.77,.11,.49,.87,.47,.68,.95,.71,.85,.99,.88,.94,.97,.97,.97,.9,.96,.82,.72,.88,.53,.5,.74,.25,.3,.57,.13,.15,.39,.1]),[11,1,3]),PRGn:r(new Float64Array([.25,0,.29,.46,.16,.51,.6,.44,.67,.76,.65,.81,.91,.83,.91,.97,.97,.97,.85,.94,.83,.65,.86,.63,.35,.68,.38,.11,.47,.22,0,.27,.11]),[11,1,3]),RdYlBu:r(new Float64Array([.65,0,.15,.84,.19,.15,.96,.43,.26,.99,.68,.38,1,.88,.56,1,1,.75,.88,.95,.97,.67,.85,.91,.45,.68,.82,.27,.46,.71,.19,.21,.58]),[11,1,3]),BrBG:r(new Float64Array([.33,.19,.02,.55,.32,.04,.75,.51,.18,.87,.76,.49,.96,.91,.76,.96,.96,.96,.78,.92,.9,.5,.8,.76,.21,.59,.56,0,.4,.37,0,.24,.19]),[11,1,3]),RdGy:r(new Float64Array([.4,0,.12,.7,.09,.17,.84,.38,.3,.96,.65,.51,.99,.86,.78,1,1,1,.88,.88,.88,.73,.73,.73,.53,.53,.53,.3,.3,.3,.1,.1,.1]),[11,1,3]),PuOr:r(new Float64Array([.5,.23,.03,.7,.35,.02,.88,.51,.08,.99,.72,.39,1,.88,.71,.97,.97,.97,.85,.85,.92,.7,.67,.82,.5,.45,.67,.33,.15,.53,.18,0,.29]),[11,1,3]),Set2:r(new Float64Array([.4,.76,.65,.99,.55,.38,.55,.63,.8,.91,.54,.76,.65,.85,.33,1,.85,.18,.9,.77,.58,.7,.7,.7]),[8,1,3]),Accent:r(new Float64Array([.5,.79,.5,.75,.68,.83,.99,.75,.53,1,1,.6,.22,.42,.69,.94,.01,.5,.75,.36,.09,.4,.4,.4]),[8,1,3]),Set1:r(new Float64Array([.89,.1,.11,.22,.49,.72,.3,.69,.29,.6,.31,.64,1,.5,0,1,1,.2,.65,.34,.16,.97,.51,.75,.6,.6,.6]),[9,1,3]),Set3:r(new Float64Array([.55,.83,.78,1,1,.7,.75,.73,.85,.98,.5,.45,.5,.69,.83,.99,.71,.38,.7,.87,.41,.99,.8,.9,.85,.85,.85,.74,.5,.74,.8,.92,.77,1,.93,.44]),[12,1,3]),Dark2:r(new Float64Array([.11,.62,.47,.85,.37,.01,.46,.44,.7,.91,.16,.54,.4,.65,.12,.9,.67,.01,.65,.46,.11,.4,.4,.4]),[8,1,3]),Paired:r(new Float64Array([.65,.81,.89,.12,.47,.71,.7,.87,.54,.2,.63,.17,.98,.6,.6,.89,.1,.11,.99,.75,.44,1,.5,0,.79,.7,.84,.42,.24,.6,1,1,.6,.69,.35,.16]),[12,1,3]),Pastel2:r(new Float64Array([.7,.89,.8,.99,.8,.67,.8,.84,.91,.96,.79,.89,.9,.96,.79,1,.95,.68,.95,.89,.8,.8,.8,.8]),[8,1,3]),Pastel1:r(new Float64Array([.98,.71,.68,.7,.8,.89,.8,.92,.77,.87,.8,.89,1,.85,.65,1,1,.8,.9,.85,.74,.99,.85,.93,.95,.95,.95]),[9,1,3])}},{ndarray:70}],13:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},s=e("react"),u=e("./Slider"),c=e("./HelloGL"),l=e("./Saturation"),p=e("./HueRotate"),h=e("./PieProgress"),f=e("./OneFingerResponse"),d=e("./AnimatedHelloGL"),m=e("./Colorify"),v=e("./Blur"),g=e("./ReactCanvasContentExample"),y=e("./colorScales"),_=function(e){function t(e){r(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={saturationFactor:1,hue:0,progress:.5,factor:1,text:"leading the pack",colorScale:"Spectral",disableLinearInterpolation:!1},this.onCapture1=this.onCapture1.bind(this)}return o(t,e),i(t,[{key:"onCapture1",value:function(){this.refs.helloGL.captureFrame(function(e){location.href=e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.saturationFactor,r=t.hue,o=t.text,i=t.progress,a=t.factor,_=t.colorScale,E=t.disableLinearInterpolation;return s.createElement("div",{style:b.container},s.createElement("h1",{style:b.title},"gl-react Simple demos"),s.createElement("div",{style:b.demos},s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"1. Hello GL"),s.createElement(c,{width:256,height:171,ref:"helloGL"}),s.createElement("p",null,s.createElement("button",{onClick:this.onCapture1},"captureFrame()"))),s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"2. Saturate an Image"),s.createElement(l,{width:256,height:171,factor:n,image:{uri:"http://i.imgur.com/iPKTONG.jpg"}}),s.createElement(u,{maximumValue:8,value:n,onValueChange:function(t){return e.setState({saturationFactor:t})}})),s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"3. Hue Rotate on a Canvas"),s.createElement(p,{autoRedraw:!0,width:256,height:180,hue:r},s.createElement(g,{width:256,height:180,text:o})),s.createElement(u,{maximumValue:2*Math.PI,value:r,onValueChange:function(t){return e.setState({hue:t})}}),s.createElement("input",{type:"text",onChange:function(t){return e.setState({text:t.target.value})},value:o})),s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"4. Progress Indicator"),s.createElement(h,{width:256,height:180,progress:i}),s.createElement(u,{value:i,onValueChange:function(t){return e.setState({progress:t})}})),s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"5. Mouse Responsive"),s.createElement(f,{width:256,height:180})),s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"6. Animation"),s.createElement(d,{width:256,height:180})),s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"7. Blur (2-pass)"),s.createElement(v,{width:256,height:180,factor:a},"http://i.imgur.com/3On9QEu.jpg"),s.createElement(u,{maximumValue:2,value:a,onValueChange:function(t){return e.setState({factor:t})}})),s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"8. Blur (2-pass) over UI"),"This example is not available because not possible to do with WebGL."),s.createElement("div",{style:b.demo},s.createElement("h2",{style:b.demoTitle},"9. Texture from array"),s.createElement(m,{width:256,height:190,colorScale:y[_],disableLinearInterpolation:E},"http://i.imgur.com/iPKTONG.jpg"),s.createElement("select",{style:b.select,value:_,onChange:function(t){var n=t.target.value;return e.setState({colorScale:n})}},Object.keys(y).map(function(e){return s.createElement("option",{value:e},e)})),s.createElement("label",null,s.createElement("input",{type:"checkbox",onChange:function(t){var n=t.target.checked;return e.setState({disableLinearInterpolation:n})}}),"Disable Linear Interpolation"))))}}]),t}(s.Component),b={container:{padding:"20px",background:"#f9f9f9 url(http://i.imgur.com/RE6MGrd.png) repeat",backgroundSize:"20px 20px"},title:{fontSize:"20px",textAlign:"center",margin:"0px",marginBottom:"20px",fontWeight:"bold"},demos:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-around"},demo:{width:"256px",margin:"10px 20px"},demoTitle:{marginBottom:"16px",color:"#999",fontWeight:300,fontSize:"20px"},select:{margin:"4px 0",width:"100%"}};s.render(s.createElement(_,null),document.getElementById("container"))},{"./AnimatedHelloGL":1,"./Blur":2,"./Colorify":4,"./HelloGL":5,"./HueRotate":6,"./OneFingerResponse":7,"./PieProgress":8,"./ReactCanvasContentExample":9,"./Saturation":10,"./Slider":11,"./colorScales":12,react:261}],14:[function(e,t,n){(function(t){function r(){function e(){}try{var t=new Uint8Array(1);return t.foo=function(){return 42},t.constructor=e,42===t.foo()&&t.constructor===e&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(n){return!1}}function o(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e){return this instanceof i?(this.length=0,this.parent=void 0,"number"==typeof e?a(this,e):"string"==typeof e?s(this,e,arguments.length>1?arguments[1]:"utf8"):u(this,e)):arguments.length>1?new i(e,arguments[1]):new i(e)}function a(e,t){if(e=m(e,0>t?0:0|v(t)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;n++)e[n]=0;return e}function s(e,t,n){("string"!=typeof n||""===n)&&(n="utf8");var r=0|y(t,n);return e=m(e,r),e.write(t,n),e}function u(e,t){if(i.isBuffer(t))return c(e,t);if(Q(t))return l(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(t.buffer instanceof ArrayBuffer)return p(e,t);if(t instanceof ArrayBuffer)return h(e,t)}return t.length?f(e,t):d(e,t)}function c(e,t){var n=0|v(t.length);return e=m(e,n),t.copy(e,0,0,n),e}function l(e,t){var n=0|v(t.length);e=m(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function p(e,t){var n=0|v(t.length);e=m(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function h(e,t){return i.TYPED_ARRAY_SUPPORT?(t.byteLength,e=i._augment(new Uint8Array(t))):e=p(e,new Uint8Array(t)),e}function f(e,t){var n=0|v(t.length);e=m(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function d(e,t){var n,r=0;"Buffer"===t.type&&Q(t.data)&&(n=t.data,r=0|v(n.length)),e=m(e,r);for(var o=0;r>o;o+=1)e[o]=255&n[o];return e}function m(e,t){i.TYPED_ARRAY_SUPPORT?(e=i._augment(new Uint8Array(t)),e.__proto__=i.prototype):(e.length=t,e._isBuffer=!0);var n=0!==t&&t<=i.poolSize>>>1;return n&&(e.parent=Z),e}function v(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function g(e,t){if(!(this instanceof g))return new g(e,t);var n=new i(e,t);return delete n.parent,n}function y(e,t){"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,n){var r=!1;if(t=0|t,n=void 0===n||n===1/0?this.length:0|n,e||(e="utf8"),0>t&&(t=0),n>this.length&&(n=this.length),t>=n)return"";for(;;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return I(this,t,n);case"binary":return A(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new Error("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;r>a;a++){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))throw new Error("Invalid hex string");e[n+a]=s}return a}function E(e,t,n,r){return z(q(t,e.length-n),e,n,r)}function w(e,t,n,r){return z(G(t),e,n,r)}function C(e,t,n,r){return w(e,t,n,r)}function x(e,t,n,r){return z(W(t),e,n,r)}function R(e,t,n,r){return z(Y(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?X.fromByteArray(e):X.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;n>o;){var i=e[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(n>=o+s){var u,c,l,p;switch(s){case 1:128>i&&(a=i);break;case 2:u=e[o+1],128===(192&u)&&(p=(31&i)<<6|63&u,p>127&&(a=p));break;case 3:u=e[o+1],c=e[o+2],128===(192&u)&&128===(192&c)&&(p=(15&i)<<12|(63&u)<<6|63&c,p>2047&&(55296>p||p>57343)&&(a=p));break;case 4:u=e[o+1],c=e[o+2],l=e[o+3],128===(192&u)&&128===(192&c)&&128===(192&l)&&(p=(15&i)<<18|(63&u)<<12|(63&c)<<6|63&l,p>65535&&1114112>p&&(a=p))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return M(r)}function M(e){var t=e.length;if(J>=t)return String.fromCharCode.apply(String,e);for(var n="",r=0;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=J));return n}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;n>o;o++)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;n>o;o++)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var o="",i=t;n>i;i++)o+=H(e[i]);return o}function D(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function S(e,t,n){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>o||a>t)throw new RangeError("value is out of bounds");if(n+r>e.length)throw new RangeError("index out of range")}function N(e,t,n,r){0>t&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);i>o;o++)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function U(e,t,n,r){0>t&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);i>o;o++)e[n+o]=t>>>8*(r?o:3-o)&255}function k(e,t,n,r,o,i){if(t>o||i>t)throw new RangeError("value is out of bounds");if(n+r>e.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function F(e,t,n,r,o){return o||k(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||k(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,n,r,52,8),n+8}function B(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return 16>e?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;r>a;a++){if(n=e.charCodeAt(a),n>55295&&57344>n){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue;
}o=n;continue}if(56320>n){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=o-55296<<10|n-56320|65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,128>n){if((t-=1)<0)break;i.push(n)}else if(2048>n){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(65536>n){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function G(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function Y(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);a++)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function W(e){return X.toByteArray(B(e))}function z(e,t,n,r){for(var o=0;r>o&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}var X=e("base64-js"),K=e("ieee754"),Q=e("is-array");n.Buffer=i,n.SlowBuffer=g,n.INSPECT_MAX_BYTES=50,i.poolSize=8192;var Z={};i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array),i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);a>o&&e[o]===t[o];)++o;return o!==a&&(n=e[o],r=t[o]),r>n?-1:n>r?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Q(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new i(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new i(t),o=0;for(n=0;n<e.length;n++){var a=e[n];a.copy(r,o),o+=a.length}return r},i.byteLength=y,i.prototype.length=void 0,i.prototype.parent=void 0,i.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):_.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===i.compare(this,e)},i.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:i.compare(this,e)},i.prototype.indexOf=function(e,t){function n(e,t,n){for(var r=-1,o=0;n+o<e.length;o++)if(e[n+o]===t[-1===r?0:o-r]){if(-1===r&&(r=o),o-r+1===t.length)return n+r}else r=-1;return-1}if(t>2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(i.isBuffer(e))return n(this,e,t);if("number"==typeof e)return i.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):n(this,[e],t);throw new TypeError("val must be string, number or Buffer")},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var o=r;r=t,t=0|n,n=o}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return w(this,e,t,n);case"binary":return C(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),e>t&&(t=e);var r;if(i.TYPED_ARRAY_SUPPORT)r=i._augment(this.subarray(e,t));else{var o=t-e;r=new i(o,void 0);for(var a=0;o>a;a++)r[a]=this[a+e]}return r.length&&(r.parent=this.parent||this),r},i.prototype.readUIntLE=function(e,t,n){e=0|e,t=0|t,n||S(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},i.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||S(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||S(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||S(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||S(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||S(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||S(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||S(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||S(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||S(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||S(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||S(e,4,this.length),K.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||S(e,4,this.length),K.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||S(e,8,this.length),K.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||S(e,8,this.length),K.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||L(this,e,t,n,Math.pow(2,8*n),0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},i.prototype.writeUIntBE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||L(this,e,t,n,Math.pow(2,8*n),0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,s=0>e?1:0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=(e/a>>0)-s&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0>e?1:0;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=(e/a>>0)-s&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||L(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,a=r-n;if(this===e&&t>n&&r>t)for(o=a-1;o>=0;o--)e[o+t]=this[o+n];else if(1e3>a||!i.TYPED_ARRAY_SUPPORT)for(o=0;a>o;o++)e[o+t]=this[o+n];else e._set(this.subarray(n,n+a),t);return a},i.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),t>n)throw new RangeError("end < start");if(n!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof e)for(r=t;n>r;r++)this[r]=e;else{var o=q(e.toString()),i=o.length;for(r=t;n>r;r++)this[r]=o[r%i]}return this}},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i.TYPED_ARRAY_SUPPORT)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var $=i.prototype;i._augment=function(e){return e.constructor=i,e._isBuffer=!0,e._set=e.set,e.get=$.get,e.set=$.set,e.write=$.write,e.toString=$.toString,e.toLocaleString=$.toString,e.toJSON=$.toJSON,e.equals=$.equals,e.compare=$.compare,e.indexOf=$.indexOf,e.copy=$.copy,e.slice=$.slice,e.readUIntLE=$.readUIntLE,e.readUIntBE=$.readUIntBE,e.readUInt8=$.readUInt8,e.readUInt16LE=$.readUInt16LE,e.readUInt16BE=$.readUInt16BE,e.readUInt32LE=$.readUInt32LE,e.readUInt32BE=$.readUInt32BE,e.readIntLE=$.readIntLE,e.readIntBE=$.readIntBE,e.readInt8=$.readInt8,e.readInt16LE=$.readInt16LE,e.readInt16BE=$.readInt16BE,e.readInt32LE=$.readInt32LE,e.readInt32BE=$.readInt32BE,e.readFloatLE=$.readFloatLE,e.readFloatBE=$.readFloatBE,e.readDoubleLE=$.readDoubleLE,e.readDoubleBE=$.readDoubleBE,e.writeUInt8=$.writeUInt8,e.writeUIntLE=$.writeUIntLE,e.writeUIntBE=$.writeUIntBE,e.writeUInt16LE=$.writeUInt16LE,e.writeUInt16BE=$.writeUInt16BE,e.writeUInt32LE=$.writeUInt32LE,e.writeUInt32BE=$.writeUInt32BE,e.writeIntLE=$.writeIntLE,e.writeIntBE=$.writeIntBE,e.writeInt8=$.writeInt8,e.writeInt16LE=$.writeInt16LE,e.writeInt16BE=$.writeInt16BE,e.writeInt32LE=$.writeInt32LE,e.writeInt32BE=$.writeInt32BE,e.writeFloatLE=$.writeFloatLE,e.writeFloatBE=$.writeFloatBE,e.writeDoubleLE=$.writeDoubleLE,e.writeDoubleBE=$.writeDoubleBE,e.fill=$.fill,e.inspect=$.inspect,e.toArrayBuffer=$.toArrayBuffer,e};var ee=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":15,ieee754:16,"is-array":17}],15:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===a||t===p?62:t===s||t===h?63:u>t?-1:u+10>t?t-u+26+26:l+26>t?t-l:c+26>t?t-c+26:void 0}function n(e){function n(e){c[p++]=e}var r,o,a,s,u,c;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=e.length;u="="===e.charAt(l-2)?2:"="===e.charAt(l-1)?1:0,c=new i(3*e.length/4-u),a=u>0?e.length-4:e.length;var p=0;for(r=0,o=0;a>r;r+=4,o+=3)s=t(e.charAt(r))<<18|t(e.charAt(r+1))<<12|t(e.charAt(r+2))<<6|t(e.charAt(r+3)),n((16711680&s)>>16),n((65280&s)>>8),n(255&s);return 2===u?(s=t(e.charAt(r))<<2|t(e.charAt(r+1))>>4,n(255&s)):1===u&&(s=t(e.charAt(r))<<10|t(e.charAt(r+1))<<4|t(e.charAt(r+2))>>2,n(s>>8&255),n(255&s)),c}function o(e){function t(e){return r.charAt(e)}function n(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var o,i,a,s=e.length%3,u="";for(o=0,a=e.length-s;a>o;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],u+=n(i);switch(s){case 1:i=e[e.length-1],u+=t(i>>2),u+=t(i<<4&63),u+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],u+=t(i>>10),u+=t(i>>4&63),u+=t(i<<2&63),u+="="}return u}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),c="a".charCodeAt(0),l="A".charCodeAt(0),p="-".charCodeAt(0),h="_".charCodeAt(0);e.toByteArray=n,e.fromByteArray=o}("undefined"==typeof n?this.base64js={}:n)},{}],16:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,p=n?o-1:0,h=n?-1:1,f=e[t+p];for(p+=h,i=f&(1<<-l)-1,f>>=-l,l+=s;l>0;i=256*i+e[t+p],p+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+p],p+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:(f?-1:1)*(1/0);a+=Math.pow(2,r),i-=c}return(f?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,p=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,d=r?1:-1,m=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+p>=1?h/u:h*Math.pow(2,1-p),t*u>=2&&(a++,u/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(t*u-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+f]=255&a,f+=d,a/=256,c-=8);e[n+f-d]|=128*m}},{}],17:[function(e,t,n){var r=Array.isArray,o=Object.prototype.toString;t.exports=r||function(e){return!!e&&"[object Array]"==o.call(e)}},{}],18:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function i(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!i(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,i,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),u=1;r>u;u++)i[u-1]=arguments[u];n.apply(this,i)}else if(a(n)){for(r=arguments.length,i=new Array(r-1),u=1;r>u;u++)i[u-1]=arguments[u];for(c=n.slice(),r=c.length,u=0;r>u;u++)c[u].apply(this,i)}return!0},r.prototype.addListener=function(e,t){var n;if(!o(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned){var n;n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-->0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(0>r)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.listenerCount=function(e,t){var n;return n=e._events&&e._events[t]?o(e._events[t])?1:e._events[t].length:0}},{}],19:[function(e,t,n){function r(){l=!1,s.length?c=s.concat(c):p=-1,c.length&&o()}function o(){if(!l){var e=setTimeout(r);l=!0;for(var t=c.length;t;){for(s=c,c=[];++p<t;)s&&s[p].run();p=-1,t=c.length}s=null,l=!1,clearTimeout(e)}}function i(e,t){this.fun=e,this.array=t}function a(){}var s,u=t.exports={},c=[],l=!1,p=-1;u.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new i(e,t)),1!==c.length||l||setTimeout(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],20:[function(e,t,n){"use strict";function r(e){var t=e.getParameter(e.FRAMEBUFFER_BINDING),n=e.getParameter(e.RENDERBUFFER_BINDING),r=e.getParameter(e.TEXTURE_BINDING_2D);return[t,n,r]}function o(e,t){e.bindFramebuffer(e.FRAMEBUFFER,t[0]),e.bindRenderbuffer(e.RENDERBUFFER,t[1]),e.bindTexture(e.TEXTURE_2D,t[2])}function i(e,t){var n=e.getParameter(t.MAX_COLOR_ATTACHMENTS_WEBGL);y=new Array(n+1);for(var r=0;n>=r;++r){for(var o=new Array(n),i=0;r>i;++i)o[i]=e.COLOR_ATTACHMENT0+i;for(var i=r;n>i;++i)o[i]=e.NONE;y[r]=o}}function a(e){switch(e){case d:throw new Error("gl-fbo: Framebuffer unsupported");case m:throw new Error("gl-fbo: Framebuffer incomplete attachment");case v:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case g:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function s(e,t,n,r,o,i){if(!r)return null;var a=f(e,t,n,o,r);return a.magFilter=e.NEAREST,a.minFilter=e.NEAREST,a.mipSamples=1,a.bind(),e.framebufferTexture2D(e.FRAMEBUFFER,i,e.TEXTURE_2D,a.handle,0),a}function u(e,t,n,r,o){var i=e.createRenderbuffer();return e.bindRenderbuffer(e.RENDERBUFFER,i),e.renderbufferStorage(e.RENDERBUFFER,r,t,n),e.framebufferRenderbuffer(e.FRAMEBUFFER,o,e.RENDERBUFFER,i),i}function c(e){var t=r(e.gl),n=e.gl,i=e.handle=n.createFramebuffer(),c=e._shape[0],l=e._shape[1],p=e.color.length,h=e._ext,f=e._useStencil,d=e._useDepth,m=e._colorType;n.bindFramebuffer(n.FRAMEBUFFER,i);for(var v=0;p>v;++v)e.color[v]=s(n,c,l,m,n.RGBA,n.COLOR_ATTACHMENT0+v);0===p?(e._color_rb=u(n,c,l,n.RGBA4,n.COLOR_ATTACHMENT0),h&&h.drawBuffersWEBGL(y[0])):p>1&&h.drawBuffersWEBGL(y[p]);var g=n.getExtension("WEBGL_depth_texture");g?f?e.depth=s(n,c,l,g.UNSIGNED_INT_24_8_WEBGL,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):d&&(e.depth=s(n,c,l,n.UNSIGNED_SHORT,n.DEPTH_COMPONENT,n.DEPTH_ATTACHMENT)):d&&f?e._depth_rb=u(n,c,l,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):d?e._depth_rb=u(n,c,l,n.DEPTH_COMPONENT16,n.DEPTH_ATTACHMENT):f&&(e._depth_rb=u(n,c,l,n.STENCIL_INDEX,n.STENCIL_ATTACHMENT));var _=n.checkFramebufferStatus(n.FRAMEBUFFER);if(_!==n.FRAMEBUFFER_COMPLETE){e._destroyed=!0,n.bindFramebuffer(n.FRAMEBUFFER,null),n.deleteFramebuffer(e.handle),e.handle=null,e.depth&&(e.depth.dispose(),e.depth=null),e._depth_rb&&(n.deleteRenderbuffer(e._depth_rb),e._depth_rb=null);for(var v=0;v<e.color.length;++v)e.color[v].dispose(),e.color[v]=null;e._color_rb&&(n.deleteRenderbuffer(e._color_rb),e._color_rb=null),o(n,t),a(_)}o(n,t)}function l(e,t,n,r,o,i,a,s){this.gl=e,this._shape=[0|t,0|n],this._destroyed=!1,this._ext=s,this.color=new Array(o);for(var u=0;o>u;++u)this.color[u]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=r,this._useDepth=i,this._useStencil=a;var l=this,p=[0|t,0|n];Object.defineProperties(p,{0:{get:function(){return l._shape[0]},set:function(e){return l.width=e}},1:{get:function(){return l._shape[1]},set:function(e){return l.height=e}}}),this._shapeVector=p,c(this)}function p(e,t,n){if(e._destroyed)throw new Error("gl-fbo: Can't resize destroyed FBO");if(e._shape[0]!==t||e._shape[1]!==n){var i=e.gl,s=i.getParameter(i.MAX_RENDERBUFFER_SIZE);if(0>t||t>s||0>n||n>s)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");e._shape[0]=t,e._shape[1]=n;for(var u=r(i),c=0;c<e.color.length;++c)e.color[c].shape=e._shape;e._color_rb&&(i.bindRenderbuffer(i.RENDERBUFFER,e._color_rb),i.renderbufferStorage(i.RENDERBUFFER,i.RGBA4,e._shape[0],e._shape[1])),e.depth&&(e.depth.shape=e._shape),e._depth_rb&&(i.bindRenderbuffer(i.RENDERBUFFER,e._depth_rb),e._useDepth&&e._useStencil?i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,e._shape[0],e._shape[1]):e._useDepth?i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_COMPONENT16,e._shape[0],e._shape[1]):e._useStencil&&i.renderbufferStorage(i.RENDERBUFFER,i.STENCIL_INDEX,e._shape[0],e._shape[1])),i.bindFramebuffer(i.FRAMEBUFFER,e.handle);var l=i.checkFramebufferStatus(i.FRAMEBUFFER);l!==i.FRAMEBUFFER_COMPLETE&&(e.dispose(),o(i,u),a(l)),o(i,u)}}function h(e,t,n,r){d||(d=e.FRAMEBUFFER_UNSUPPORTED,m=e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,v=e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,g=e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var o=e.getExtension("WEBGL_draw_buffers");if(!y&&o&&i(e,o),Array.isArray(t)&&(r=n,n=0|t[1],t=0|t[0]),"number"!=typeof t)throw new Error("gl-fbo: Missing shape parameter");var a=e.getParameter(e.MAX_RENDERBUFFER_SIZE);if(0>t||t>a||0>n||n>a)throw new Error("gl-fbo: Parameters are too large for FBO");r=r||{};var s=1;if("color"in r){if(s=Math.max(0|r.color,0),0>s)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(s>1){if(!o)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(s>e.getParameter(o.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+s+" draw buffers")}}var u=e.UNSIGNED_BYTE,c=e.getExtension("OES_texture_float");if(r["float"]&&s>0){if(!c)throw new Error("gl-fbo: Context does not support floating point textures");u=e.FLOAT}else r.preferFloat&&s>0&&c&&(u=e.FLOAT);var p=!0;"depth"in r&&(p=!!r.depth);var h=!1;return"stencil"in r&&(h=!!r.stencil),new l(e,t,n,u,s,p,h,o)}var f=e("gl-texture2d");t.exports=h;var d,m,v,g,y=null,_=l.prototype;Object.defineProperties(_,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(e){if(Array.isArray(e)||(e=[0|e,0|e]),2!==e.length)throw new Error("gl-fbo: Shape vector must be length 2");var t=0|e[0],n=0|e[1];return p(this,t,n),[t,n]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(e){return e=0|e,p(this,e,this._shape[1]),e},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(e){return e=0|e,p(this,this._shape[0],e),e},enumerable:!1}}),_.bind=function(){if(!this._destroyed){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.handle),e.viewport(0,0,this._shape[0],this._shape[1])}},_.dispose=function(){if(!this._destroyed){this._destroyed=!0;var e=this.gl;e.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(e.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var t=0;t<this.color.length;++t)this.color[t].dispose(),this.color[t]=null;this._color_rb&&(e.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{"gl-texture2d":55}],21:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},u=e("invariant"),c=e("./glViewMethods");t.exports=function(e,t){function n(n,l){u("function"==typeof n,"GL.createComponent(props => glview) must have a function in parameter");var p=function(l){function p(e,t){r(this,p),s(Object.getPrototypeOf(p.prototype),"constructor",this).call(this,e,t),c.forEach(this._delegateMethod,this)}return o(p,l),a(p,[{key:"_delegateMethod",value:function(e){var t=this;this[e]=function(){var n=t.refs._;return u(n,"glView has been rendered"),n[e].apply(n,arguments)}}},{key:"render",value:function(){var r=n(this.props);return u(r&&(r.type===t||r.type.isGLComponent),"The GL.createComponent function parameter must return a GL.View or another GL Component"),e.cloneElement(r,i({},r.props,{ref:"_"}))}}]),p}(e.Component);if(p.isGLComponent=!0,p.displayName=n.name||"",l){u("object"==typeof l,"second parameter of createComponent must be an object of static fields to set in the React component. (example: propTypes, displayName)");for(var h in l)p[h]=l[h]}return p}return n}},{"./glViewMethods":36,invariant:56}],22:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},a=e("invariant"),s=e("./glViewMethods");t.exports=function(e){var t=function(e){function t(e,n){var o=this;r(this,t),i(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n),s.forEach(function(e){o[e]||(o[e]=function(){return a(!0,"'%s' method is not available in deprecated GL.Component. Use GL.createComponent(props => glView) instead")})})}return o(t,e),t}(e.Component);return t.isGLComponent=!0,t}},{"./glViewMethods":36,invariant:56}],23:[function(e,t,n){"use strict";var r=e("invariant");t.exports=function(e){var t=1,n={},o={create:function(o){r("object"==typeof o,"config must be an object");var i={};for(var a in o){var s=o[a];r("object"==typeof s&&"string"==typeof s.frag,"invalid shader given to Shaders.create(). A valid shader is a { frag: String }");var u=t++;s.name||(s.name=a),n[u]=s.name,e(u,s),i[a]=u}return i},getName:function(e){return n[e]},list:function(){return Object.keys(n)},exists:function(e){return"number"==typeof e&&e>=1&&t>e}};return o}},{invariant:56}],24:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},s=e("invariant");t.exports=function(e){var t=e.Component,n=e.PropTypes,u=function(e){function t(){r(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),i(t,[{key:"render",value:function(){s(!1,"GL.Uniform elements are for GL.View configuration only and should not be rendered")}}]),t}(t);return u.displayName="GL.Uniform",u.propTypes={children:n.any.isRequired,name:n.string.isRequired},u}},{invariant:56}],25:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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)}function a(e,t){"undefined"!=typeof console&&console.debug&&console.debug("GL.View rendered with",e,t)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);
}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},l=e("invariant"),p=e("./data"),h=p.fill,f=p.resolve,d=p.createBuild;t.exports=function(e,t,n,p,m,v){var g=e.Component,y=e.PropTypes,_=void 0,b=function(e){function t(e,n){o(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n),this._renderId=1}return i(t,e),u(t,[{key:"getGLCanvas",value:function(){return this.refs.canvas}},{key:"captureFrame",value:function(e){var t=this.getGLCanvas();return l(t&&t.captureFrame,"captureFrame() should be implemented by GLCanvas"),l("function"==typeof e,"captureFrame(cb) should have a callback function in first parameter"),t.captureFrame.call(t,e)}},{key:"render",value:function(){var e=this._renderId++,t=this.props,n=t.style,o=t.width,i=t.height,u=t.children,c=t.shader,d=t.uniforms,g=t.debug,y=t.preload,b=t.opaque,E=t.visibleContent,w=t.eventsThrough,C=r(t,["style","width","height","children","shader","uniforms","debug","preload","opaque","visibleContent","eventsThrough"]);l(o&&i&&o>0&&i>0,"width and height are required for the root GLView");var x=f(h(_(c,d,o,i,u,y||!1,[]))),R=x.data,T=x.contentsVDOM,O=x.imagesToPreload;return g&&a(R,T),p({width:o,height:i,style:n,visibleContent:E,eventsThrough:w},T.map(function(e,t){return m(R.width,R.height,t,e,{visibleContent:E})}),v(s({},C,{width:o,height:i,data:R,nbContentTextures:T.length,imagesToPreload:O,renderId:e,opaque:b,visibleContent:E,eventsThrough:w})))}}]),t}(g);return b.displayName="GL.View",b.propTypes={shader:y.number.isRequired,width:y.number,height:y.number,uniforms:y.object,opaque:y.bool,preload:y.bool,autoRedraw:y.bool,eventsThrough:y.bool,visibleContent:y.bool},b.defaultProps={opaque:!0},_=d(e,t,n,b),b}},{"./data":32,invariant:56}],26:[function(e,t,n){"use strict";function r(e){return{type:"content",id:e}}function o(e){return{type:"ndarray",ndarray:e}}function i(e){return u({type:"uri"},e)}function a(e){return{type:"fbo",id:e}}function s(e,t){return u({},e,{opts:t})}var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.exports={Content:r,NDArray:o,URI:i,Framebuffer:a,withOpts:s}},{}],27:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=e("invariant"),a=e("./TextureObjects"),s=e("./isNonSamplerUniformValue");t.exports=function(e,t,n,u){function c(t){return 1===e.Children.count(t)?t instanceof Array?t[0]:t:null}function l(e,t){var n=e.type;if(n.isGLComponent){var r=new n;r.props=e.props;var o=c(r.render()),i=n.displayName||n.name||"";return t.push(i),o}}function p(e){for(var t=[],n=e;n&&"function"==typeof n.type;n=l(n,t))if(n.type===u)return{childGLView:n,via:t}}return function h(u,c,l,f,d,m,v){i(t.exists(u),"Shader #%s does not exists",u);var g=t.getName(u),y=o({},c),_=[],b=[];return e.Children.forEach(d,function(e){i(e.type===n,"(Shader '%s') GL.View can only contains children of type GL.Uniform. Got '%s'",g,e.type&&e.type.displayName||e);var t=e.props,o=t.name,a=t.children,s=r(t,["name","children"]);i("string"==typeof o&&o,"(Shader '%s') GL.Uniform must define an name String",g),i(!(c&&o in c),"(Shader '%s') The uniform '%s' set by GL.Uniform must not be in {uniforms} props",g),i(!(o in y),"(Shader '%s') The uniform '%s' set by GL.Uniform must not be defined in another GL.Uniform",g),y[o]=!a||a.value?a:{value:a,opts:s}}),Object.keys(y).forEach(function(t){var n=y[t];if(!s(n)){var r=void 0,o=typeof n;if(n&&"object"===o&&!n.prototype&&"value"in n&&("object"==typeof n.opts&&(r=n.opts),n=n.value,o=typeof n),n)if("string"===o)y[t]=a.withOpts(a.URI({uri:n}),r);else if("object"===o&&"string"==typeof n.uri)y[t]=a.withOpts(a.URI(n),r);else if("object"===o&&n.data&&n.shape&&n.stride)y[t]=a.withOpts(a.NDArray(n),r);else if("object"===o&&(n instanceof Array?e.isValidElement(n[0]):e.isValidElement(n))){var c=p(n);if(c){var d=c.childGLView,v=c.via,g=d.props;_.push({vdom:n,uniform:t,data:h(g.shader,g.uniforms,g.width||l,g.height||f,g.children,"preload"in g?g.preload:m,v)})}else b.push({vdom:n,uniform:t,opts:r})}else delete y[t],"undefined"!=typeof console&&console.error&&console.error("invalid uniform '"+t+"' value:",n),i(!1,"Shader #%s: Unrecognized format for uniform '%s'",u,t);else y[t]=n}}),{shader:u,uniforms:y,width:l,height:f,children:_,contents:b,preload:m,via:v}}}},{"./TextureObjects":26,"./isNonSamplerUniformValue":33,invariant:56}],28:[function(e,t,n){"use strict";function r(e){var t=[];for(var n in e){var r=e[n];r&&"object"==typeof r&&"image"===r.type&&r.value&&"string"==typeof r.value.uri&&t.push(r.value)}return t}t.exports=r},{}],29:[function(e,t,n){"use strict";function r(e){function t(e){var n=[],r=[],i=e.data.children.map(function(e){var o=t(e);return-1===n.indexOf(o.vdom)&&(n.push(o.vdom),r.push(o.data)),o.descendantsVDOM.forEach(function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(o.descendantsVDOMData[t]))}),o});return o({},e,{data:o({},e.data,{children:i}),descendantsVDOM:n,descendantsVDOMData:r})}return t({data:e}).data}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.exports=r},{}],30:[function(e,t,n){"use strict";function r(e,t){var n=[],r=[];return e.children.map(function(e){n=n.concat(e.descendantsVDOM),r=r.concat(e.descendantsVDOMData)}),n.map(function(n,o){if(-1===t.indexOf(n))for(var i=0,a=0;a<e.children.length;a++)if(-1!==e.children[a].descendantsVDOM.indexOf(n)&&(i++,i>1))return{data:r[o],vdom:n}}).filter(function(e){return e})}t.exports=r},{}],31:[function(e,t,n){"use strict";function r(e){function t(e){e.contents.forEach(function(e){-1===n.indexOf(e.vdom)&&(n.push(e.vdom),r.push(e))}),e.children.forEach(function(e){t(e.data)})}var n=[],r=[];return t(e),r}t.exports=r},{}],32:[function(e,t,n){"use strict";t.exports={createBuild:e("./build"),fill:e("./fill"),resolve:e("./resolve")}},{"./build":27,"./fill":29,"./resolve":34}],33:[function(e,t,n){"use strict";function r(e){var t=typeof e;return"number"===t||"boolean"===t?!0:null!==e&&"object"===t&&e instanceof Array?(t=typeof e[0],"number"===t||"boolean"===t):!1}t.exports=r},{}],34:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){function t(e,o,s,p){var f=e.uniforms,d=e.children,m=e.contents,v=e.preload,g=r(e,["uniforms","children","contents","preload"]),y=i({},f),_=s.map(function(e){var t=e.vdom;return t}),b=function(e){return function(){for(e++;e===o||-1!==p.indexOf(e);)e++;return e}}(-1),E=u(e,_),w=E.map(function(e){var t=e.vdom,n=b();return{vdom:t,fboId:n}}),C=s.concat(w),x=C.map(function(e){var t=e.vdom;return t}),R=C.map(function(e){var t=e.fboId;return t}),T=[],O=[],M=d.concat(E).map(function(e){var t=e.uniform,n=e.vdom,r=e.data,o=x.indexOf(n),i=void 0,a=void 0;return-1===o?(i=b(),a=O):(i=C[o].fboId,o>=s.length&&(a=T)),t&&(y[t]=c.Framebuffer(i)),{data:r,fboId:i,addToCollection:a}}),I=M.map(function(e){var t=e.fboId;return t}),A=p.concat(R).concat(I),P=[];return M.forEach(function(e){var n=e.data,r=e.fboId,o=e.addToCollection;-1===P.indexOf(r)&&(P.push(r),o&&o.push(t(n,r,C,A)))}),m.forEach(function(e){var t=e.uniform,n=e.vdom,r=e.opts,o=h.indexOf(n);a(-1!==o,"contents was discovered by findContentsMeta"),y[t]=c.withOpts(c.Content(o),r)}),v&&(n=n.concat(l(f))),i({},g,{uniforms:y,contextChildren:T,children:O,fboId:o})}var n=[],o=s(e),h=o.map(function(e){var t=e.vdom;return t});return{data:t(e,-1,[],[]),contentsVDOM:h,imagesToPreload:p(n)}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=e("invariant"),s=e("./findContentsUniq"),u=e("./findChildrenDuplicates"),c=e("./TextureObjects"),l=e("./extractImages"),p=e("./uniqImages");t.exports=o},{"./TextureObjects":26,"./extractImages":28,"./findChildrenDuplicates":30,"./findContentsUniq":31,"./uniqImages":35,invariant:56}],35:[function(e,t,n){"use strict";function r(e){var t=[],n=[];return e.forEach(function(e){-1===t.indexOf(e.uri)&&(t.push(e.uri),n.push(e))}),n}t.exports=r},{}],36:[function(e,t,n){t.exports=["getGLCanvas","captureFrame"]},{}],37:[function(e,t,n){"use strict";var r=e("./createComponent"),o=e("./createComponentDeprecated"),i=e("./createShaders"),a=e("./createUniform"),s=e("./createView");t.exports={createComponent:r,createComponentDeprecated:o,createShaders:i,createUniform:a,createView:s}},{"./createComponent":21,"./createComponentDeprecated":22,"./createShaders":23,"./createUniform":24,"./createView":25}],38:[function(e,t,n){"use strict";function r(e){this.gl=e,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}function o(e,t){return e.name<t.name?-1:1}function i(e,t,n,o,i){var a=new r(e);return a.update(t,n,o,i),a}var a=e("./lib/create-uniforms"),s=e("./lib/create-attributes"),u=e("./lib/reflect"),c=e("./lib/shader-cache"),l=e("./lib/runtime-reflect"),p=r.prototype;p.bind=function(){this.program||this._relink(),this.gl.useProgram(this.program)},p.dispose=function(){this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},p.update=function(e,t,n,r){function i(){h.program=c.program(f,h._vref,h._fref,_,b);for(var e=0;e<n.length;++e)O[e]=f.getUniformLocation(h.program,n[e].name)}if(!t||1===arguments.length){var p=e;e=p.vertex,t=p.fragment,n=p.uniforms,r=p.attributes}var h=this,f=h.gl,d=h._vref;h._vref=c.shader(f,f.VERTEX_SHADER,e),d&&d.dispose(),h.vertShader=h._vref.shader;var m=this._fref;if(h._fref=c.shader(f,f.FRAGMENT_SHADER,t),m&&m.dispose(),h.fragShader=h._fref.shader,!n||!r){var v=f.createProgram();if(f.attachShader(v,h.fragShader),f.attachShader(v,h.vertShader),f.linkProgram(v),!f.getProgramParameter(v,f.LINK_STATUS)){var g=f.getProgramInfoLog(v);throw console.error("gl-shader: Error linking program:",g),new Error("gl-shader: Error linking program:"+g)}n=n||l.uniforms(f,v),r=r||l.attributes(f,v),f.deleteProgram(v)}r=r.slice(),r.sort(o);for(var y=[],_=[],b=[],E=0;E<r.length;++E){var w=r[E];if(w.type.indexOf("mat")>=0){for(var C=0|w.type.charAt(w.type.length-1),x=new Array(C),R=0;C>R;++R)x[R]=b.length,_.push(w.name+"["+R+"]"),"number"==typeof w.location?b.push(w.location+R):Array.isArray(w.location)&&w.location.length===C&&"number"==typeof w.location[R]?b.push(0|w.location[R]):b.push(-1);y.push({name:w.name,type:w.type,locations:x})}else y.push({name:w.name,type:w.type,locations:[b.length]}),_.push(w.name),"number"==typeof w.location?b.push(0|w.location):b.push(-1)}for(var T=0,E=0;E<b.length;++E)if(b[E]<0){for(;b.indexOf(T)>=0;)T+=1;b[E]=T}var O=new Array(n.length);i(),h._relink=i,h.types={uniforms:u(n),attributes:u(r)},h.attributes=s(f,h,y,b),Object.defineProperty(h,"uniforms",a(f,h,n,O))},t.exports=i},{"./lib/create-attributes":39,"./lib/create-uniforms":40,"./lib/reflect":41,"./lib/runtime-reflect":42,"./lib/shader-cache":43}],39:[function(e,t,n){"use strict";function r(e,t,n,r,o,i){this._gl=e,this._wrapper=t,this._index=n,this._locations=r,this._dimension=o,this._constFunc=i}function o(e,t,n,o,i,a,s){for(var u=["gl","v"],c=[],l=0;i>l;++l)u.push("x"+l),c.push("x"+l);u.push("if(x0.length===void 0){return gl.vertexAttrib"+i+"f(v,"+c.join()+")}else{return gl.vertexAttrib"+i+"fv(v,x0)}");var p=Function.apply(null,u),h=new r(e,t,n,o,i,p);Object.defineProperty(a,s,{set:function(t){return e.disableVertexAttribArray(o[n]),p(e,o[n],t),t},get:function(){return h},enumerable:!0})}function i(e,t,n,r,i,a,s){for(var u=new Array(i),c=new Array(i),l=0;i>l;++l)o(e,t,n[l],r,i,u,l),c[l]=u[l];Object.defineProperty(u,"location",{set:function(e){if(Array.isArray)for(var t=0;i>t;++t)c[t].location=e[t];else for(var t=0;i>t;++t)result[t]=c[t].location=e+t;return e},get:function(){for(var e=new Array(i),t=0;i>t;++t)e[t]=r[n[t]];return e},enumerable:!0}),u.pointer=function(t,o,a,s){t=t||e.FLOAT,o=!!o,a=a||i*i,s=s||0;for(var u=0;i>u;++u){var c=r[n[u]];e.vertexAttribPointer(c,i,t,o,a,s+u*i),e.enableVertexAttribArray(c)}};var p=new Array(i),h=e["vertexAttrib"+i+"fv"];Object.defineProperty(a,s,{set:function(t){for(var o=0;i>o;++o){var a=r[n[o]];if(e.disableVertexAttribArray(a),Array.isArray(t[0]))h.call(e,a,t[o]);else{for(var s=0;i>s;++s)p[s]=t[i*o+s];h.call(e,a,p)}}return t},get:function(){return u},enumerable:!0})}function a(e,t,n,r){for(var a={},s=0,u=n.length;u>s;++s){var c=n[s],l=c.name,p=c.type,h=c.locations;switch(p){case"bool":case"int":case"float":o(e,t,h[0],r,1,a,l);break;default:if(p.indexOf("vec")>=0){var f=p.charCodeAt(p.length-1)-48;if(2>f||f>4)throw new Error("gl-shader: Invalid data type for attribute "+l+": "+p);o(e,t,h[0],r,f,a,l)}else{if(!(p.indexOf("mat")>=0))throw new Error("gl-shader: Unknown data type for attribute "+l+": "+p);var f=p.charCodeAt(p.length-1)-48;if(2>f||f>4)throw new Error("gl-shader: Invalid data type for attribute "+l+": "+p);i(e,t,h,r,f,a,l)}}}return a}t.exports=a;var s=r.prototype;s.pointer=function(e,t,n,r){var o=this,i=o._gl,a=o._locations[o._index];i.vertexAttribPointer(a,o._dimension,e||i.FLOAT,!!t,n||0,r||0),i.enableVertexAttribArray(a)},s.set=function(e,t,n,r){return this._constFunc(this._locations[this._index],e,t,n,r)},Object.defineProperty(s,"location",{get:function(){return this._locations[this._index]},set:function(e){return e!==this._locations[this._index]&&(this._locations[this._index]=0|e,this._wrapper.program=null),0|e}})},{}],40:[function(e,t,n){"use strict";function r(e){var t=new Function("y","return function(){return y}");return t(e)}function o(e,t){for(var n=new Array(e),r=0;e>r;++r)n[r]=t;return n}function i(e,t,n,i){function s(n){var r=new Function("gl","wrapper","locations","return function(){return gl.getUniform(wrapper.program,locations["+n+"])}");return r(e,t,i)}function u(e,t,n){switch(n){case"bool":case"int":case"sampler2D":case"samplerCube":return"gl.uniform1i(locations["+t+"],obj"+e+")";case"float":return"gl.uniform1f(locations["+t+"],obj"+e+")";default:var r=n.indexOf("vec");if(!(r>=0&&1>=r&&n.length===4+r)){if(0===n.indexOf("mat")&&4===n.length){var o=n.charCodeAt(n.length-1)-48;if(2>o||o>4)throw new Error("gl-shader: Invalid uniform dimension type for matrix "+name+": "+n);return"gl.uniformMatrix"+o+"fv(locations["+t+"],false,obj"+e+")"}throw new Error("gl-shader: Unknown uniform data type for "+name+": "+n)}var o=n.charCodeAt(n.length-1)-48;if(2>o||o>4)throw new Error("gl-shader: Invalid data type");switch(n.charAt(0)){case"b":case"i":return"gl.uniform"+o+"iv(locations["+t+"],obj"+e+")";case"v":return"gl.uniform"+o+"fv(locations["+t+"],obj"+e+")";default:throw new Error("gl-shader: Unrecognized data type for vector "+name+": "+n)}}}function c(e,t){if("object"!=typeof t)return[[e,t]];var n=[];for(var r in t){var o=t[r],i=e;i+=parseInt(r)+""===r?"["+r+"]":"."+r,"object"==typeof o?n.push.apply(n,c(i,o)):n.push([i,o])}return n}function l(t){for(var r=["return function updateProperty(obj){"],o=c("",t),a=0;a<o.length;++a){var s=o[a],l=s[0],p=s[1];i[p]&&r.push(u(l,p,n[p].type))}r.push("return obj}");var h=new Function("gl","locations",r.join("\n"));return h(e,i)}function p(e){switch(e){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var t=e.indexOf("vec");if(t>=0&&1>=t&&e.length===4+t){var n=e.charCodeAt(e.length-1)-48;if(2>n||n>4)throw new Error("gl-shader: Invalid data type");return"b"===e.charAt(0)?o(n,!1):o(n,0)}if(0===e.indexOf("mat")&&4===e.length){var n=e.charCodeAt(e.length-1)-48;if(2>n||n>4)throw new Error("gl-shader: Invalid uniform dimension type for matrix "+name+": "+e);return o(n*n,0)}throw new Error("gl-shader: Unknown uniform data type for "+name+": "+e)}}function h(e,t,o){if("object"==typeof o){var a=f(o);Object.defineProperty(e,t,{get:r(a),set:l(o),enumerable:!0,configurable:!1})}else i[o]?Object.defineProperty(e,t,{get:s(o),set:l(o),enumerable:!0,configurable:!1}):e[t]=p(n[o].type)}function f(e){var t;if(Array.isArray(e)){t=new Array(e.length);for(var n=0;n<e.length;++n)h(t,n,e[n])}else{t={};for(var r in e)h(t,r,e[r])}return t}var d=a(n,!0);return{get:r(f(d)),set:l(d),enumerable:!0,configurable:!0}}var a=e("./reflect");t.exports=i},{"./reflect":41}],41:[function(e,t,n){"use strict";function r(e,t){for(var n={},r=0;r<e.length;++r)for(var o=e[r].name,i=o.split("."),a=n,s=0;s<i.length;++s){var u=i[s].split("[");if(u.length>1){u[0]in a||(a[u[0]]=[]),a=a[u[0]];for(var c=1;c<u.length;++c){var l=parseInt(u[c]);c<u.length-1||s<i.length-1?(l in a||(c<u.length-1?a[l]=[]:a[l]={}),a=a[l]):t?a[l]=r:a[l]=e[r].type}}else s<i.length-1?(u[0]in a||(a[u[0]]={}),a=a[u[0]]):t?a[u[0]]=r:a[u[0]]=e[r].type}return n}t.exports=r},{}],42:[function(e,t,n){"use strict";function r(e,t){if(!s){var n=Object.keys(a);s={};for(var r=0;r<n.length;++r){var o=n[r];s[e[o]]=a[o]}}return s[t]}function o(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),o=[],i=0;n>i;++i){var a=e.getActiveUniform(t,i);if(a){var s=r(e,a.type);if(a.size>1)for(var u=0;u<a.size;++u)o.push({name:a.name.replace("[0]","["+u+"]"),type:s});else o.push({name:a.name,type:s})}}return o}function i(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),o=[],i=0;n>i;++i){var a=e.getActiveAttrib(t,i);a&&o.push({name:a.name,type:r(e,a.type)})}return o}n.uniforms=o,n.attributes=i;var a={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube"},s=null},{}],43:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){this.id=e,this.src=t,this.type=n,this.shader=r,this.count=i,this.programs=[],this.cache=a}function o(e){this.gl=e,this.shaders=[{},{}],this.programs={}}function i(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var o=e.getShaderInfoLog(r);throw console.error("gl-shader: Error compiling shader:",o),new Error("gl-shader: Error compiling shader:"+o)}return r}function a(e,t,n,r,o){var i=e.createProgram();e.attachShader(i,t),e.attachShader(i,n);for(var a=0;a<r.length;++a)e.bindAttribLocation(i,o[a],r[a]);if(e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS)){var s=e.getProgramInfoLog(i);throw console.error("gl-shader: Error linking program:",s),new Error("gl-shader: Error linking program:"+s)}return i}function s(e){var t=p.get(e);return t||(t=new o(e),p.set(e,t)),t}function u(e,t,n){return s(e).getShaderReference(t,n)}function c(e,t,n,r,o){return s(e).getProgram(t,n,r,o)}n.shader=u,n.program=c;var l="undefined"==typeof WeakMap?e("weakmap-shim"):WeakMap,p=new l,h=0;r.prototype.dispose=function(){if(0===--this.count){for(var e=this.cache,t=e.gl,n=this.programs,r=0,o=n.length;o>r;++r){var i=e.programs[n[r]];i&&(delete e.programs[r],t.deleteProgram(i))}t.deleteShader(this.shader),delete e.shaders[this.type===t.FRAGMENT_SHADER|0][this.src]}};var f=o.prototype;f.getShaderReference=function(e,t){var n=this.gl,o=this.shaders[e===n.FRAGMENT_SHADER|0],a=o[t];if(a&&n.isShader(a.shader))a.count+=1;else{var s=i(n,e,t);a=o[t]=new r(h++,t,e,s,[],1,this)}return a},f.getProgram=function(e,t,n,r){var o=[e.id,t.id,n.join(":"),r.join(":")].join("@"),i=this.programs[o];return i&&this.gl.isProgram(i)||(this.programs[o]=i=a(this.gl,e.shader,t.shader,n,r),e.programs.push(o),t.programs.push(o)),i}},{"weakmap-shim":46}],44:[function(e,t,n){function r(){var e={};return function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)throw new Error("Weakmap-shim: Key must be object");var n=t.valueOf(e);return n&&n.identity===e?n:o(t,e)}}var o=e("./hidden-store.js");t.exports=r},{"./hidden-store.js":45}],45:[function(e,t,n){function r(e,t){var n={identity:t},r=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?r.apply(this,arguments):n},writable:!0}),n}t.exports=r},{}],46:[function(e,t,n){function r(){var e=o();return{get:function(t,n){var r=e(t);return r.hasOwnProperty("value")?r.value:n},set:function(t,n){e(t).value=n},has:function(t){return"value"in e(t)},"delete":function(t){return delete e(t).value}}}var o=e("./create-store.js");t.exports=r},{"./create-store.js":44}],47:[function(e,t,n){"use strict";function r(e){if(!e)return s;for(var t=0;t<e.args.length;++t){var n=e.args[t];0===t?e.args[t]={name:n,lvalue:!0,rvalue:!!e.rvalue,count:e.count||1}:e.args[t]={name:n,lvalue:!1,rvalue:!0,count:1}}return e.thisVars||(e.thisVars=[]),e.localVars||(e.localVars=[]),e}function o(e){return a({args:e.args,pre:r(e.pre),body:r(e.body),post:r(e.proc),funcName:e.funcName})}function i(e){for(var t=[],n=0;n<e.args.length;++n)t.push("a"+n);var r=new Function("P",["return function ",e.funcName,"_ndarrayops(",t.join(","),") {P(",t.join(","),");return a0}"].join(""));return r(o(e))}var a=e("cwise-compiler"),s={body:"",args:[],thisVars:[],localVars:[]},u={add:"+",sub:"-",mul:"*",div:"/",mod:"%",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"};!function(){for(var e in u){var t=u[e];n[e]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a"+t+"=b"},rvalue:!0,funcName:e+"eq"}),n[e+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a"+t+"=s"},rvalue:!0,funcName:e+"seq"})}}();var c={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var e in c){var t=c[e];n[e]=i({args:["array","array"],body:{args:["a","b"],body:"a="+t+"b"},funcName:e}),n[e+"eq"]=i({args:["array"],body:{args:["a"],body:"a="+t+"a"},rvalue:!0,count:2,funcName:e+"eq"})}}();var l={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var e in l){var t=l[e];n[e]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a=a"+t+"b"},rvalue:!0,count:2,funcName:e+"eq"}),n[e+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+t+"s"},rvalue:!0,count:2,funcName:e+"seq"})}}();var p=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var e=0;e<p.length;++e){var t=p[e];n[t]=i({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b)",thisVars:["this_f"]},funcName:t}),n[t+"eq"]=i({args:["array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a"],body:"a=this_f(a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"eq"})}}();var h=["max","min","atan2","pow"];!function(){for(var e=0;e<h.length;++e){var t=h[e];n[t]=i({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:t}),n[t+"s"]=i({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:t+"s"}),n[t+"eq"]=i({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"eq"}),n[t+"seq"]=i({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"seq"})}}();var f=["atan2","pow"];!function(){for(var e=0;e<f.length;++e){var t=f[e];n[t+"op"]=i({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:t+"op"}),n[t+"ops"]=i({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:t+"ops"}),n[t+"opeq"]=i({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"opeq"}),n[t+"opseq"]=i({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"opseq"})}}(),n.any=a({args:["array"],pre:s,body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"if(a){return true}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return false"},funcName:"any"}),n.all=a({args:["array"],pre:s,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1}],body:"if(!x){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"all"}),n.sum=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s+=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"sum"}),n.prod=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=1"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s*=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"prod"}),n.norm2squared=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm2squared"}),n.norm2=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return Math.sqrt(this_s)"},funcName:"norm2"}),n.norminf=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:4}],body:"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),n.norm1=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),n.sup=a({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.inf=a({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.argmin=a({args:["index","array","shape"],pre:{body:"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.argmax=a({args:["index","array","shape"],pre:{body:"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.random=i({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),n.assign=i({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),n.assigns=i({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),n.equals=a({args:["array","array"],pre:s,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},{"cwise-compiler":48}],48:[function(e,t,n){"use strict";function r(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName="",this.pre=null,this.body=null,this.post=null,this.debug=!1}function o(e){var t=new r;t.pre=e.pre,t.body=e.body,t.post=e.post;var n=e.args.slice(0);t.argTypes=n;for(var o=0;o<n.length;++o){var a=n[o];if("array"===a||"object"==typeof a&&a.blockIndices){if(t.argTypes[o]="array",t.arrayArgs.push(o),t.arrayBlockIndices.push(a.blockIndices?a.blockIndices:0),t.shimArgs.push("array"+o),o<t.pre.args.length&&t.pre.args[o].count>0)throw new Error("cwise: pre() block may not reference array args");if(o<t.post.args.length&&t.post.args[o].count>0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===a)t.scalarArgs.push(o),t.shimArgs.push("scalar"+o);else if("index"===a){if(t.indexArgs.push(o),o<t.pre.args.length&&t.pre.args[o].count>0)throw new Error("cwise: pre() block may not reference array index");if(o<t.body.args.length&&t.body.args[o].lvalue)throw new Error("cwise: body() block may not write to array index");if(o<t.post.args.length&&t.post.args[o].count>0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===a){if(t.shapeArgs.push(o),o<t.pre.args.length&&t.pre.args[o].lvalue)throw new Error("cwise: pre() block may not write to array shape");if(o<t.body.args.length&&t.body.args[o].lvalue)throw new Error("cwise: body() block may not write to array shape");if(o<t.post.args.length&&t.post.args[o].lvalue)throw new Error("cwise: post() block may not write to array shape");
}else{if("object"!=typeof a||!a.offset)throw new Error("cwise: Unknown argument type "+n[o]);t.argTypes[o]="offset",t.offsetArgs.push({array:a.array,offset:a.offset}),t.offsetArgIndex.push(o)}}if(t.arrayArgs.length<=0)throw new Error("cwise: No array arguments specified");if(t.pre.args.length>n.length)throw new Error("cwise: Too many arguments in pre() block");if(t.body.args.length>n.length)throw new Error("cwise: Too many arguments in body() block");if(t.post.args.length>n.length)throw new Error("cwise: Too many arguments in post() block");return t.debug=!!e.printCode||!!e.debug,t.funcName=e.funcName||"cwise",t.blockSize=e.blockSize||64,i(t)}var i=e("./lib/thunk.js");t.exports=o},{"./lib/thunk.js":50}],49:[function(e,t,n){"use strict";function r(e,t,n){var r,o,i=e.length,a=t.arrayArgs.length,s=t.indexArgs.length>0,u=[],c=[],l=0,p=0;for(r=0;i>r;++r)c.push(["i",r,"=0"].join(""));for(o=0;a>o;++o)for(r=0;i>r;++r)p=l,l=e[r],0===r?c.push(["d",o,"s",r,"=t",o,"p",l].join("")):c.push(["d",o,"s",r,"=(t",o,"p",l,"-s",p,"*t",o,"p",p,")"].join(""));for(u.push("var "+c.join(",")),r=i-1;r>=0;--r)l=e[r],u.push(["for(i",r,"=0;i",r,"<s",l,";++i",r,"){"].join(""));for(u.push(n),r=0;i>r;++r){for(p=l,l=e[r],o=0;a>o;++o)u.push(["p",o,"+=d",o,"s",r].join(""));s&&(r>0&&u.push(["index[",p,"]-=s",p].join("")),u.push(["++index[",l,"]"].join(""))),u.push("}")}return u.join("\n")}function o(e,t,n,o){for(var i=t.length,a=n.arrayArgs.length,s=n.blockSize,u=n.indexArgs.length>0,c=[],l=0;a>l;++l)c.push(["var offset",l,"=p",l].join(""));for(var l=e;i>l;++l)c.push(["for(var j"+l+"=SS[",t[l],"]|0;j",l,">0;){"].join("")),c.push(["if(j",l,"<",s,"){"].join("")),c.push(["s",t[l],"=j",l].join("")),c.push(["j",l,"=0"].join("")),c.push(["}else{s",t[l],"=",s].join("")),c.push(["j",l,"-=",s,"}"].join("")),u&&c.push(["index[",t[l],"]=j",l].join(""));for(var l=0;a>l;++l){for(var p=["offset"+l],h=e;i>h;++h)p.push(["j",h,"*t",l,"p",t[h]].join(""));c.push(["p",l,"=(",p.join("+"),")"].join(""))}c.push(r(t,n,o));for(var l=e;i>l;++l)c.push("}");return c.join("\n")}function i(e){for(var t=0,n=e[0].length;n>t;){for(var r=1;r<e.length;++r)if(e[r][t]!==e[0][t])return t;++t}return t}function a(e,t,n){for(var r=e.body,o=[],i=[],a=0;a<e.args.length;++a){var s=e.args[a];if(!(s.count<=0)){var u=new RegExp(s.name,"g"),c="",l=t.arrayArgs.indexOf(a);switch(t.argTypes[a]){case"offset":var p=t.offsetArgIndex.indexOf(a),h=t.offsetArgs[p];l=h.array,c="+q"+p;case"array":c="p"+l+c;var f="l"+a,d="a"+l;if(0===t.arrayBlockIndices[l])1===s.count?"generic"===n[l]?s.lvalue?(o.push(["var ",f,"=",d,".get(",c,")"].join("")),r=r.replace(u,f),i.push([d,".set(",c,",",f,")"].join(""))):r=r.replace(u,[d,".get(",c,")"].join("")):r=r.replace(u,[d,"[",c,"]"].join("")):"generic"===n[l]?(o.push(["var ",f,"=",d,".get(",c,")"].join("")),r=r.replace(u,f),s.lvalue&&i.push([d,".set(",c,",",f,")"].join(""))):(o.push(["var ",f,"=",d,"[",c,"]"].join("")),r=r.replace(u,f),s.lvalue&&i.push([d,"[",c,"]=",f].join("")));else{for(var m=[s.name],v=[c],g=0;g<Math.abs(t.arrayBlockIndices[l]);g++)m.push("\\s*\\[([^\\]]+)\\]"),v.push("$"+(g+1)+"*t"+l+"b"+g);if(u=new RegExp(m.join(""),"g"),c=v.join("+"),"generic"===n[l])throw new Error("cwise: Generic arrays not supported in combination with blocks!");r=r.replace(u,[d,"[",c,"]"].join(""))}break;case"scalar":r=r.replace(u,"Y"+t.scalarArgs.indexOf(a));break;case"index":r=r.replace(u,"index");break;case"shape":r=r.replace(u,"shape")}}}return[o.join("\n"),r,i.join("\n")].join("\n").trim()}function s(e){for(var t=new Array(e.length),n=!0,r=0;r<e.length;++r){var o=e[r],i=o.match(/\d+/);i=i?i[0]:"",0===o.charAt(0)?t[r]="u"+o.charAt(1)+i:t[r]=o.charAt(0)+i,r>0&&(n=n&&t[r]===t[r-1])}return n?t[0]:t.join("")}function u(e,t){for(var n=t[1].length-Math.abs(e.arrayBlockIndices[0])|0,u=new Array(e.arrayArgs.length),l=new Array(e.arrayArgs.length),p=0;p<e.arrayArgs.length;++p)l[p]=t[2*p],u[p]=t[2*p+1];for(var h=[],f=[],d=[],m=[],v=[],p=0;p<e.arrayArgs.length;++p){e.arrayBlockIndices[p]<0?(d.push(0),m.push(n),h.push(n),f.push(n+e.arrayBlockIndices[p])):(d.push(e.arrayBlockIndices[p]),m.push(e.arrayBlockIndices[p]+n),h.push(0),f.push(e.arrayBlockIndices[p]));for(var g=[],y=0;y<u[p].length;y++)d[p]<=u[p][y]&&u[p][y]<m[p]&&g.push(u[p][y]-d[p]);v.push(g)}for(var _=["SS"],b=["'use strict'"],E=[],y=0;n>y;++y)E.push(["s",y,"=SS[",y,"]"].join(""));for(var p=0;p<e.arrayArgs.length;++p){_.push("a"+p),_.push("t"+p),_.push("p"+p);for(var y=0;n>y;++y)E.push(["t",p,"p",y,"=t",p,"[",d[p]+y,"]"].join(""));for(var y=0;y<Math.abs(e.arrayBlockIndices[p]);++y)E.push(["t",p,"b",y,"=t",p,"[",h[p]+y,"]"].join(""))}for(var p=0;p<e.scalarArgs.length;++p)_.push("Y"+p);if(e.shapeArgs.length>0&&E.push("shape=SS.slice(0)"),e.indexArgs.length>0){for(var w=new Array(n),p=0;n>p;++p)w[p]="0";E.push(["index=[",w.join(","),"]"].join(""))}for(var p=0;p<e.offsetArgs.length;++p){for(var C=e.offsetArgs[p],x=[],y=0;y<C.offset.length;++y)0!==C.offset[y]&&(1===C.offset[y]?x.push(["t",C.array,"p",y].join("")):x.push([C.offset[y],"*t",C.array,"p",y].join("")));0===x.length?E.push("q"+p+"=0"):E.push(["q",p,"=",x.join("+")].join(""))}var R=c([].concat(e.pre.thisVars).concat(e.body.thisVars).concat(e.post.thisVars));E=E.concat(R),b.push("var "+E.join(","));for(var p=0;p<e.arrayArgs.length;++p)b.push("p"+p+"|=0");e.pre.body.length>3&&b.push(a(e.pre,e,l));var T=a(e.body,e,l),O=i(v);n>O?b.push(o(O,v[0],e,T)):b.push(r(v[0],e,T)),e.post.body.length>3&&b.push(a(e.post,e,l)),e.debug&&console.log("-----Generated cwise routine for ",t,":\n"+b.join("\n")+"\n----------");var M=[e.funcName||"unnamed","_cwise_loop_",u[0].join("s"),"m",O,s(l)].join(""),I=new Function(["function ",M,"(",_.join(","),"){",b.join("\n"),"} return ",M].join(""));return I()}var c=e("uniq");t.exports=u},{uniq:51}],50:[function(e,t,n){"use strict";function r(e){var t=["'use strict'","var CACHED={}"],n=[],r=e.funcName+"_cwise_thunk";t.push(["return function ",r,"(",e.shimArgs.join(","),"){"].join(""));for(var i=[],a=[],s=[["array",e.arrayArgs[0],".shape.slice(",Math.max(0,e.arrayBlockIndices[0]),e.arrayBlockIndices[0]<0?","+e.arrayBlockIndices[0]+")":")"].join("")],u=[],c=[],l=0;l<e.arrayArgs.length;++l){var p=e.arrayArgs[l];n.push(["t",p,"=array",p,".dtype,","r",p,"=array",p,".order"].join("")),i.push("t"+p),i.push("r"+p),a.push("t"+p),a.push("r"+p+".join()"),s.push("array"+p+".data"),s.push("array"+p+".stride"),s.push("array"+p+".offset|0"),l>0&&(u.push("array"+e.arrayArgs[0]+".shape.length===array"+p+".shape.length+"+(Math.abs(e.arrayBlockIndices[0])-Math.abs(e.arrayBlockIndices[l]))),c.push("array"+e.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[0])+"]===array"+p+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[l])+"]"))}e.arrayArgs.length>1&&(t.push("if (!("+u.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),t.push("for(var shapeIndex=array"+e.arrayArgs[0]+".shape.length-"+Math.abs(e.arrayBlockIndices[0])+"; shapeIndex-->0;) {"),t.push("if (!("+c.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),t.push("}"));for(var l=0;l<e.scalarArgs.length;++l)s.push("scalar"+e.scalarArgs[l]);n.push(["type=[",a.join(","),"].join()"].join("")),n.push("proc=CACHED[type]"),t.push("var "+n.join(",")),t.push(["if(!proc){","CACHED[type]=proc=compile([",i.join(","),"])}","return proc(",s.join(","),")}"].join("")),e.debug&&console.log("-----Generated thunk:\n"+t.join("\n")+"\n----------");var h=new Function("compile",t.join("\n"));return h(o.bind(void 0,e))}var o=e("./compile.js");t.exports=r},{"./compile.js":49}],51:[function(e,t,n){"use strict";function r(e,t){for(var n=1,r=e.length,o=e[0],i=e[0],a=1;r>a;++a)if(i=o,o=e[a],t(o,i)){if(a===n){n++;continue}e[n++]=o}return e.length=n,e}function o(e){for(var t=1,n=e.length,r=e[0],o=e[0],i=1;n>i;++i,o=r)if(o=r,r=e[i],r!==o){if(i===t){t++;continue}e[t++]=r}return e.length=t,e}function i(e,t,n){return 0===e.length?e:t?(n||e.sort(t),r(e,t)):(n||e.sort(),o(e))}t.exports=i},{}],52:[function(e,t,n){"use strict";"use restrict";function r(e){var t=32;return e&=-e,e&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}var o=32;n.INT_BITS=o,n.INT_MAX=2147483647,n.INT_MIN=-1<<o-1,n.sign=function(e){return(e>0)-(0>e)},n.abs=function(e){var t=e>>o-1;return(e^t)-t},n.min=function(e,t){return t^(e^t)&-(t>e)},n.max=function(e,t){return e^(e^t)&-(t>e)},n.isPow2=function(e){return!(e&e-1||!e)},n.log2=function(e){var t,n;return t=(e>65535)<<4,e>>>=t,n=(e>255)<<3,e>>>=n,t|=n,n=(e>15)<<2,e>>>=n,t|=n,n=(e>3)<<1,e>>>=n,t|=n,t|e>>1},n.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},n.popCount=function(e){return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24},n.countTrailingZeros=r,n.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1},n.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)},n.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var i=new Array(256);!function(e){for(var t=0;256>t;++t){var n=t,r=t,o=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--o;e[t]=r<<o&255}}(i),n.reverse=function(e){return i[255&e]<<24|i[e>>>8&255]<<16|i[e>>>16&255]<<8|i[e>>>24&255]},n.interleave2=function(e,t){return e&=65535,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t&=65535,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1},n.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=858993459&(e|e>>>1),e=252645135&(e|e>>>2),e=16711935&(e|e>>>4),e=65535&(e|e>>>16),e<<16>>16},n.interleave3=function(e,t,n){return e&=1023,e=4278190335&(e|e<<16),e=251719695&(e|e<<8),e=3272356035&(e|e<<4),e=1227133513&(e|e<<2),t&=1023,t=4278190335&(t|t<<16),t=251719695&(t|t<<8),t=3272356035&(t|t<<4),t=1227133513&(t|t<<2),e|=t<<1,n&=1023,n=4278190335&(n|n<<16),n=251719695&(n|n<<8),n=3272356035&(n|n<<4),n=1227133513&(n|n<<2),e|n<<2},n.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=3272356035&(e|e>>>2),e=251719695&(e|e>>>4),e=4278190335&(e|e>>>8),e=1023&(e|e>>>16),e<<22>>22},n.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>r(e)+1}},{}],53:[function(e,t,n){"use strict";function r(e,t,n){var o=0|e[n];if(0>=o)return[];var i,a=new Array(o);if(n===e.length-1)for(i=0;o>i;++i)a[i]=t;else for(i=0;o>i;++i)a[i]=r(e,t,n+1);return a}function o(e,t){var n,r;for(n=new Array(e),r=0;e>r;++r)n[r]=t;return n}function i(e,t){switch("undefined"==typeof t&&(t=0),typeof e){case"number":if(e>0)return o(0|e,t);break;case"object":if("number"==typeof e.length)return r(e,t,0)}return[]}t.exports=i},{}],54:[function(e,t,n){(function(t,r){"use strict";function o(e){if(e){var t=e.length||e.byteLength,n=y.log2(t);w[n].push(e)}}function i(e){o(e.buffer)}function a(e){var e=y.nextPow2(e),t=y.log2(e),n=w[t];return n.length>0?n.pop():new ArrayBuffer(e)}function s(e){return new Uint8Array(a(e),0,e)}function u(e){return new Uint16Array(a(2*e),0,e)}function c(e){return new Uint32Array(a(4*e),0,e)}function l(e){return new Int8Array(a(e),0,e)}function p(e){return new Int16Array(a(2*e),0,e)}function h(e){return new Int32Array(a(4*e),0,e)}function f(e){return new Float32Array(a(4*e),0,e)}function d(e){return new Float64Array(a(8*e),0,e)}function m(e){return b?new Uint8ClampedArray(a(e),0,e):s(e)}function v(e){return new DataView(a(e),0,e)}function g(e){e=y.nextPow2(e);var t=y.log2(e),n=C[t];return n.length>0?n.pop():new r(e)}var y=e("bit-twiddle"),_=e("dup");t.__TYPEDARRAY_POOL||(t.__TYPEDARRAY_POOL={UINT8:_([32,0]),UINT16:_([32,0]),UINT32:_([32,0]),INT8:_([32,0]),INT16:_([32,0]),INT32:_([32,0]),FLOAT:_([32,0]),DOUBLE:_([32,0]),DATA:_([32,0]),UINT8C:_([32,0]),BUFFER:_([32,0])});var b="undefined"!=typeof Uint8ClampedArray,E=t.__TYPEDARRAY_POOL;E.UINT8C||(E.UINT8C=_([32,0])),E.BUFFER||(E.BUFFER=_([32,0]));var w=E.DATA,C=E.BUFFER;n.free=function(e){if(r.isBuffer(e))C[y.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,n=0|y.log2(t);w[n].push(e)}},n.freeUint8=n.freeUint16=n.freeUint32=n.freeInt8=n.freeInt16=n.freeInt32=n.freeFloat32=n.freeFloat=n.freeFloat64=n.freeDouble=n.freeUint8Clamped=n.freeDataView=i,n.freeArrayBuffer=o,n.freeBuffer=function(e){C[y.log2(e.length)].push(e)},n.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return a(e);switch(t){case"uint8":return s(e);case"uint16":return u(e);case"uint32":return c(e);case"int8":return l(e);case"int16":return p(e);case"int32":return h(e);case"float":case"float32":return f(e);case"double":case"float64":return d(e);case"uint8_clamped":return m(e);case"buffer":return g(e);case"data":case"dataview":return v(e);default:return null}return null},n.mallocArrayBuffer=a,n.mallocUint8=s,n.mallocUint16=u,n.mallocUint32=c,n.mallocInt8=l,n.mallocInt16=p,n.mallocInt32=h,n.mallocFloat32=n.mallocFloat=f,n.mallocFloat64=n.mallocDouble=d,n.mallocUint8Clamped=m,n.mallocDataView=v,n.mallocBuffer=g,n.clearCache=function(){for(var e=0;32>e;++e)E.UINT8[e].length=0,E.UINT16[e].length=0,E.UINT32[e].length=0,E.INT8[e].length=0,E.INT16[e].length=0,E.INT32[e].length=0,E.FLOAT[e].length=0,E.DOUBLE[e].length=0,E.UINT8C[e].length=0,w[e].length=0,C[e].length=0}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"bit-twiddle":52,buffer:14,dup:53}],55:[function(e,t,n){"use strict";function r(e){v=[e.LINEAR,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_NEAREST],g=[e.NEAREST,e.LINEAR,e.NEAREST_MIPMAP_NEAREST,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_LINEAR],y=[e.REPEAT,e.CLAMP_TO_EDGE,e.MIRRORED_REPEAT]}function o(e,t,n){var r=e.gl,o=r.getParameter(r.MAX_TEXTURE_SIZE);if(0>t||t>o||0>n||n>o)throw new Error("gl-texture2d: Invalid texture size");return e._shape=[t,n],e.bind(),r.texImage2D(r.TEXTURE_2D,0,e.format,t,n,0,e.format,e.type,null),e._mipLevels=[0],e}function i(e,t,n,r,o,i){this.gl=e,this.handle=t,this.format=o,this.type=i,this._shape=[n,r],this._mipLevels=[0],this._magFilter=e.NEAREST,this._minFilter=e.NEAREST,this._wrapS=e.CLAMP_TO_EDGE,this._wrapT=e.CLAMP_TO_EDGE,this._anisoSamples=1;var a=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return a._wrapS},set:function(e){return a.wrapS=e}},{get:function(){return a._wrapT},set:function(e){return a.wrapT=e}}]),this._wrapVector=s;var u=[this._shape[0],this._shape[1]];Object.defineProperties(u,[{get:function(){return a._shape[0]},set:function(e){return a.width=e}},{get:function(){return a._shape[1]},set:function(e){return a.height=e}}]),this._shapeVector=u}function a(e,t){return 3===e.length?1===t[2]&&t[1]===e[0]*e[2]&&t[0]===e[2]:1===t[0]&&t[1]===e[0]}function s(e,t,n,r,o,i,s,u){var c=u.dtype,l=u.shape.slice();if(l.length<2||l.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var p=0,h=0,v=a(l,u.stride.slice());"float32"===c?p=e.FLOAT:"float64"===c?(p=e.FLOAT,v=!1,c="float32"):"uint8"===c?p=e.UNSIGNED_BYTE:(p=e.UNSIGNED_BYTE,v=!1,c="uint8");var g=1;if(2===l.length)h=e.LUMINANCE,l=[l[0],l[1],1],u=f(u.data,l,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==l.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===l[2])h=e.ALPHA;else if(2===l[2])h=e.LUMINANCE_ALPHA;else if(3===l[2])h=e.RGB;else{if(4!==l[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");h=e.RGBA}g=l[2]}if(h!==e.LUMINANCE&&h!==e.ALPHA||o!==e.LUMINANCE&&o!==e.ALPHA||(h=o),h!==o)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var y=u.size,b=s.indexOf(r)<0;if(b&&s.push(r),p===i&&v)0===u.offset&&u.data.length===y?b?e.texImage2D(e.TEXTURE_2D,r,o,l[0],l[1],0,o,i,u.data):e.texSubImage2D(e.TEXTURE_2D,r,t,n,l[0],l[1],o,i,u.data):b?e.texImage2D(e.TEXTURE_2D,r,o,l[0],l[1],0,o,i,u.data.subarray(u.offset,u.offset+y)):e.texSubImage2D(e.TEXTURE_2D,r,t,n,l[0],l[1],o,i,u.data.subarray(u.offset,u.offset+y));else{var E;E=i===e.FLOAT?m.mallocFloat32(y):m.mallocUint8(y);var w=f(E,l,[l[2],l[2]*l[0],1]);p===e.FLOAT&&i===e.UNSIGNED_BYTE?_(w,u):d.assign(w,u),b?e.texImage2D(e.TEXTURE_2D,r,o,l[0],l[1],0,o,i,E.subarray(0,y)):e.texSubImage2D(e.TEXTURE_2D,r,t,n,l[0],l[1],o,i,E.subarray(0,y)),i===e.FLOAT?m.freeFloat32(E):m.freeUint8(E)}}function u(e){var t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),t}function c(e,t,n,r,o){var a=e.getParameter(e.MAX_TEXTURE_SIZE);if(0>t||t>a||0>n||n>a)throw new Error("gl-texture2d: Invalid texture shape");if(o===e.FLOAT&&!e.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var s=u(e);return e.texImage2D(e.TEXTURE_2D,0,r,t,n,0,r,o,null),new i(e,s,t,n,r,o)}function l(e,t,n,r){var o=u(e);return e.texImage2D(e.TEXTURE_2D,0,n,n,r,t),new i(e,o,0|t.width,0|t.height,n,r)}function p(e,t){var n=t.dtype,r=t.shape.slice(),o=e.getParameter(e.MAX_TEXTURE_SIZE);if(r[0]<0||r[0]>o||r[1]<0||r[1]>o)throw new Error("gl-texture2d: Invalid texture size");var s=a(r,t.stride.slice()),c=0;"float32"===n?c=e.FLOAT:"float64"===n?(c=e.FLOAT,s=!1,n="float32"):"uint8"===n?c=e.UNSIGNED_BYTE:(c=e.UNSIGNED_BYTE,s=!1,n="uint8");var l=0;if(2===r.length)l=e.LUMINANCE,r=[r[0],r[1],1],t=f(t.data,r,[t.stride[0],t.stride[1],1],t.offset);else{if(3!==r.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===r[2])l=e.ALPHA;else if(2===r[2])l=e.LUMINANCE_ALPHA;else if(3===r[2])l=e.RGB;else{if(4!==r[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");l=e.RGBA}}c!==e.FLOAT||e.getExtension("OES_texture_float")||(c=e.UNSIGNED_BYTE,s=!1);var p,h,v=t.size;if(s)p=0===t.offset&&t.data.length===v?t.data:t.data.subarray(t.offset,t.offset+v);else{var g=[r[2],r[2]*r[0],1];h=m.malloc(v,n);var y=f(h,r,g,0);"float32"!==n&&"float64"!==n||c!==e.UNSIGNED_BYTE?d.assign(y,t):_(y,t),p=h.subarray(0,v)}var b=u(e);return e.texImage2D(e.TEXTURE_2D,0,l,r[0],r[1],0,l,c,p),s||m.free(h),new i(e,b,r[0],r[1],l,c)}function h(e){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(v||r(e),"number"==typeof arguments[1])return c(e,arguments[1],arguments[2],arguments[3]||e.RGBA,arguments[4]||e.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return c(e,0|arguments[1][0],0|arguments[1][1],arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if("object"==typeof arguments[1]){var t=arguments[1];if(t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof HTMLVideoElement||t instanceof ImageData)return l(e,t,arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if(t.shape&&t.data&&t.stride)return p(e,t)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}var f=e("ndarray"),d=e("ndarray-ops"),m=e("typedarray-pool");t.exports=h;var v=null,g=null,y=null,_=function(e,t){d.muls(e,t,255)},b=i.prototype;Object.defineProperties(b,{minFilter:{get:function(){return this._minFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&v.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),g.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),this._minFilter=e}},magFilter:{get:function(){return this._magFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&v.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),g.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),this._magFilter=e}},mipSamples:{get:function(){return this._anisoSamples},set:function(e){var t=this._anisoSamples;if(this._anisoSamples=0|Math.max(e,1),t!==this._anisoSamples){var n=gl.getExtension("EXT_texture_filter_anisotropic");n&&this.gl.texParameterf(this.gl.TEXTURE_2D,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(e){if(this.bind(),y.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,e),this._wrapS=e}},wrapT:{get:function(){return this._wrapT},set:function(e){if(this.bind(),y.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,e),this._wrapT=e}},wrap:{get:function(){return this._wrapVector},set:function(e){if(Array.isArray(e)||(e=[e,e]),2!==e.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var t=0;2>t;++t)if(y.indexOf(e[t])<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);this._wrapS=e[0],this._wrapT=e[1];var n=this.gl;return this.bind(),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,this._wrapS),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,this._wrapT),e}},shape:{get:function(){return this._shapeVector},set:function(e){if(Array.isArray(e)){if(2!==e.length)throw new Error("gl-texture2d: Invalid texture shape")}else e=[0|e,0|e];return o(this,0|e[0],0|e[1]),[0|e[0],0|e[1]]}},width:{get:function(){return this._shape[0]},set:function(e){return e=0|e,o(this,e,this._shape[1]),e}},height:{get:function(){return this._shape[1]},set:function(e){return e=0|e,o(this,this._shape[0],e),e}}}),b.bind=function(e){var t=this.gl;return void 0!==e&&t.activeTexture(t.TEXTURE0+(0|e)),t.bindTexture(t.TEXTURE_2D,this.handle),void 0!==e?0|e:t.getParameter(t.ACTIVE_TEXTURE)-t.TEXTURE0},b.dispose=function(){this.gl.deleteTexture(this.handle)},b.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var e=Math.min(this._shape[0],this._shape[1]),t=0;e>0;++t,e>>>=1)this._mipLevels.indexOf(t)<0&&this._mipLevels.push(t)},b.setPixels=function(e,t,n,r){var o=this.gl;if(this.bind(),Array.isArray(t)?(r=n,n=0|t[1],t=0|t[0]):(t=t||0,n=n||0),r=r||0,e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLImageElement||e instanceof HTMLVideoElement){var i=this._mipLevels.indexOf(r)<0;i?(o.texImage2D(o.TEXTURE_2D,0,this.format,this.format,this.type,e),this._mipLevels.push(r)):o.texSubImage2D(o.TEXTURE_2D,r,t,n,this.format,this.type,e)}else{if(!(e.shape&&e.stride&&e.data))throw new Error("gl-texture2d: Unsupported data type");if(e.shape.length<2||t+e.shape[1]>this._shape[1]>>>r||n+e.shape[0]>this._shape[0]>>>r||0>t||0>n)throw new Error("gl-texture2d: Texture dimensions are out of bounds");s(o,t,n,r,this.format,this.type,this._mipLevels,e)}}},{ndarray:70,"ndarray-ops":47,"typedarray-pool":54}],56:[function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return c[l++]}))}throw u.framesToPop=1,u}};t.exports=r},{}],57:[function(e,t,n){for(var r=e("performance-now"),o="undefined"==typeof window?{}:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],c=0;c<i.length&&!s;c++)s=o[i[c]+"Request"+a],u=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!u){var l=0,p=0,h=[],f=1e3/60;s=function(e){if(0===h.length){var t=r(),n=Math.max(0,f-(t-l));l=n+t,setTimeout(function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout(function(){throw n},0)}},Math.round(n))}return h.push({handle:++p,callback:e,cancelled:!1}),p},u=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}t.exports=function(e){return s.call(o,e)},t.exports.cancel=function(){u.apply(o,arguments)}},{"performance-now":58}],58:[function(e,t,n){(function(e){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-o)/1e6},r=e.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n()):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,e("_process"))},{_process:19}],59:[function(e,t,n){"use strict";function r(e){return e in l?l[e]:l[e]=o(e)}function o(e){var t,n=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),r=u.length;if(void 0!==s[n])return n;for(n=i(e);r--;)if(t=u[r]+n,void 0!==s[t])return t;throw new Error("unable to prefix "+e)}function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function a(e){var t=r(e),n=/([A-Z])/g;return n.test(t)&&(t=(c.test(t)?"-":"")+t.replace(n,"-$1")),t.toLowerCase()}var s=document.createElement("p").style,u="O ms Moz webkit".split(" "),c=/^(o|ms|moz|webkit)/,l={};t.exports=r,t.exports.dash=a},{}],60:[function(e,t,n){"use strict";var r=e("react"),o=e("gl-react-core"),i=o.createComponentDeprecated;t.exports=i(r)},{"gl-react-core":37,react:261}],61:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}function s(e,t){for(var n in t)n in e||t[n].dispose()}function u(e,t){(e.shape[0]!==t[0]||e.shape[1]!==t[1])&&(e.shape=t)}function c(e){return e.uri}function l(e,t){for(var n=0,r=0;r<t.length;r++)-1!==e.indexOf(c(t[r]))&&n++;return n}var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=a,r=!0}},d=e("invariant"),m=e("react"),v=m.Component,g=m.PropTypes,y=e("raf"),_=e("gl-shader"),b=e("gl-texture2d"),E=e("gl-fbo"),w=e("./Shaders"),C=e("./GLImage"),x=e("./static.vert"),R=e("./pointerEventsProperty"),T=function(e){function t(e){i(this,t),f(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={scale:window.devicePixelRatio},this.handleDraw=this.handleDraw.bind(this),this.handleSyncData=this.handleSyncData.bind(this),this.onImageLoad=this.onImageLoad.bind(this),this.getFBO=this.getFBO.bind(this),this._images={},this._shaders={},this._fbos={},this._contentTextures=[],this._standaloneTextures=[],e.imagesToPreload.length>0?this._preloading=[]:(this._preloading=null,this.props.onLoad&&this.props.onLoad()),this._autoredraw=this.props.autoRedraw,this._captureListeners=[]}return a(t,e),h(t,[{key:"captureFrame",value:function(e){this._captureListeners.push(e),this.requestDraw()}},{key:"render",value:function(){var e,t=this.props,n=t.width,i=t.height,a=(t.data,t.nbContentTextures,t.imagesToPreload,t.renderId,t.opaque),s=(t.onLoad,t.onProgress,t.autoRedraw,t.eventsThrough),u=(t.visibleContent,r(t,["width","height","data","nbContentTextures","imagesToPreload","renderId","opaque","onLoad","onProgress","autoRedraw","eventsThrough","visibleContent"])),c=this.state.scale,l=(e={width:n+"px",height:i+"px"},o(e,R,s?"none":"auto"),o(e,"position","relative"),o(e,"background",a?"#000":"transparent"),e);return m.createElement("canvas",p({},u,{ref:"render",style:l,width:n*c,height:i*c}))}},{key:"componentDidMount",value:function(){var e=m.findDOMNode(this.refs.render);this.canvas=e;var t={},n=e.getContext("webgl",t)||e.getContext("webgl-experimental",t)||e.getContext("experimental-webgl",t);if(n){this.gl=n,n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0);var r=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,r),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),n.STATIC_DRAW),this._buffer=r,this.resizeUniformContentTextures(this.props.nbContentTextures),this.syncData(this.props.data),this.checkAutoRedraw()}}},{key:"componentWillUnmount",value:function(){this._contentTextures.forEach(function(e){return e.dispose()}),this._standaloneTextures.forEach(function(e){return e.dispose()}),[this._shaders,this._images,this._fbos].forEach(function(e){for(var t in e)e[t].dispose(),delete e[t]}),this.gl&&this.gl.deleteBuffer(this._buffer),this.shader=null,this.gl=null,this._raf&&y.cancel(this._raf)}},{key:"componentWillReceiveProps",value:function(e){var t=window.devicePixelRatio;this.state.devicePixelRatio!==t&&this.setState({devicePixelRatio:t}),e.nbContentTextures!==this.props.nbContentTextures&&this.resizeUniformContentTextures(e.nbContentTextures),this._autoredraw=e.autoRedraw,this.checkAutoRedraw()}},{key:"componentDidUpdate",value:function(){var e=this.props.data;this.syncData(e)}},{key:"checkAutoRedraw",value:function(){var e=this;if(this._autoredraw&&!this._raf){var t=function n(){return e._autoredraw?(e._raf=y(n),void e.draw()):void delete e._raf};this._raf=y(t)}}},{key:"getFBO",value:function(e){var t=this._fbos;if(d(e>=0,"fbo id must be a positive integer"),e in t)return t[e];var n=E(this.gl,[2,2]);return t[e]=n,n}},{key:"syncData",value:function(e){function t(e){var s=e.shader,c=e.uniforms,f=e.children,m=e.contextChildren,v=e.width,g=e.height,y=e.fboId,E=m.map(t),R=f.map(t),T=void 0;if(s in l)T=l[s];else if(s in a)T=l[s]=a[s];else{var O=w.get(s);d(O,"Shader #%s does not exists",s),T=_(n,x,O.frag),T.name=O.name,T.attributes._p.pointer(),l[s]=T}var M={},I={},A=0;for(var P in c){var D=c[P],S=T.types.uniforms[P];if(d(S,"Shader '%s': Uniform '%s' is not defined/used",T.name,P),"sampler2D"===S||"samplerCube"===S)if(M[P]=A++,D)switch(D.type){case"content":I[P]=o[D.id];break;case"fbo":var L=i(D.id);I[P]=L.color[0];break;case"uri":var N=D.uri;d(N&&"string"==typeof N,"Shader '%s': An image src is defined for uniform '%s'",T.name,P);var U=void 0;N in p?U=p[N]:N in u?U=p[N]=u[N]:(U=new C(n,r),p[N]=U),U.src=N,I[P]=U.getTexture();break;case"ndarray":var k=b(n,D.ndarray),F=D.opts||{};F.disableLinearInterpolation||(k.minFilter=k.magFilter=n.LINEAR),I[P]=k,h.push(k);break;default:d(!1,"Shader '%s': invalid uniform '%s' value of type '%s'",T.name,P,D.type)}else{var j=b(n,[2,2]);I[P]=j,h.push(j)}else M[P]=D}var B=Object.keys(T.uniforms).filter(function(e){return!(e in M)});return d(0===B.length,"Shader '%s': All defined uniforms must be provided. Missing: '"+B.join("', '")+"'",T.name),{shader:T,uniforms:M,textures:I,children:R,contextChildren:E,width:v,height:g,fboId:y}}var n=this.gl;if(n){var r=this.onImageLoad,o=this._contentTextures,i=this.getFBO,a=this._shaders,u=this._images,c=this._standaloneTextures,l={},p={},h=[];this._renderData=t(e),s(l,a),s(p,u),c.forEach(function(e){return e.dispose()}),this._shaders=l,this._images=p,this._standaloneTextures=h,this._needsSyncData=!1,this.requestDraw()}}},{key:"draw",value:function(){function e(t){var r=t.shader,s=t.uniforms,c=t.textures,l=t.children,p=t.contextChildren,h=t.width,f=t.height,d=t.fboId,m=h*o,v=f*o;if(p.forEach(e),
l.forEach(e),-1===d)n.bindFramebuffer(n.FRAMEBUFFER,null),n.viewport(0,0,m,v);else{var g=i(d);u(g,[m,v]),g.bind()}r.bind(),n.bindBuffer(n.ARRAY_BUFFER,a);for(var y in c)c[y].bind(s[y]);for(var y in s)r.uniforms[y]=s[y];n.blendFunc(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLES,0,6)}var t=this;this._needsDraw=!1;var n=this.gl,r=this._renderData;if(n&&r){var o=this.state.scale,i=this.getFBO,a=this._buffer;this.syncUniformContentTextures(),n.enable(n.BLEND),e(r),n.disable(n.BLEND),this._captureListeners.length>0&&!function(){var e=t.canvas.toDataURL();t._captureListeners.forEach(function(t){return t(e)}),t._captureListeners=[]}()}}},{key:"onImageLoad",value:function(e){if(this._preloading){this._preloading.push(e);var t=this.props,n=t.imagesToPreload,r=t.onLoad,o=t.onProgress,i=l(this._preloading,n),a=n.length;o&&o({progress:i/a,loaded:i,total:a}),i==a&&(this._preloading=null,this.requestSyncData(),r&&r())}else this.requestSyncData()}},{key:"resizeUniformContentTextures",value:function(e){var t=this.gl,n=this._contentTextures,r=n.length;if(r!==e)if(r>e){for(var o=e;r>o;o++)n[o].dispose();n.length=e}else for(var o=n.length;e>o;o++){var i=b(t,[2,2]);i.minFilter=i.magFilter=t.LINEAR,n.push(i)}}},{key:"syncUniformContentTextures",value:function(){for(var e=this.getDrawingUniforms(),t=this._contentTextures,n=0;n<e.length;n++){var r=e[n];this.syncUniformTexture(t[n],r)}}},{key:"syncUniformTexture",value:function(e,t){var n=t.width||t.videoWidth,r=t.height||t.videoHeight;n&&r?(u(e,[n,r]),e.setPixels(t)):e.shape=[2,2]}},{key:"getDrawingUniforms",value:function(){var e=this.props.nbContentTextures;if(0===e)return[];for(var t=m.findDOMNode(this.refs.render).parentNode.children,n=[],r=0;e>r;r++)n[r]=t[r].firstChild;return n}},{key:"requestSyncData",value:function(){this._needsSyncData||(this._needsSyncData=!0,y(this.handleSyncData))}},{key:"handleSyncData",value:function(){this._needsSyncData&&this.syncData(this.props.data)}},{key:"requestDraw",value:function(){this._needsDraw||(this._needsDraw=!0,y(this.handleDraw))}},{key:"handleDraw",value:function(){this._needsDraw&&(this._needsDraw=!1,this._preloading||this.draw())}}]),t}(v);T.propTypes={width:g.number.isRequired,height:g.number.isRequired,data:g.object.isRequired,nbContentTextures:g.number.isRequired},t.exports=T},{"./GLImage":62,"./Shaders":63,"./pointerEventsProperty":68,"./static.vert":69,"gl-fbo":20,"gl-shader":38,"gl-texture2d":55,invariant:56,raf:57,react:261}],62:[function(e,t,n){"use strict";function r(e,t,n){var r=new window.Image;return r.crossOrigin=!0,r.onload=function(){t(r)},r.onabort=r.onerror=n,r.src=e,function(){r.onload=null,r.onerror=null,r.onabort=null,r.src="",r=null}}function o(e,t){this.gl=e,this.image=null,this._onload=t,this.texture=i(e,[2,2]),this.texture.minFilter=this.texture.magFilter=e.LINEAR,this._textureImg=null}var i=e("gl-texture2d");o.prototype={dispose:function(){this._loading&&this._loading(),this.texture.dispose(),this.texture=null},reloadImage:function(){var e=this,t=this._src;this._loading&&this._loading(),this._loading=null,t?this._loading=r(t,function(n){e.clearImage(),e._loading=null,e.image=n,e._onload&&e._onload(t)},function(){e._loading=null,e.clearImage()}):this.clearImage()},getTexture:function(){var e=this.image,t=this.texture;return e!==this._textureImg&&(this._textureImg=e,e?(t.shape=[e.width,e.height],t.setPixels(e)):t.shape=[2,2]),t},clearImage:function(){this.image=null}},Object.defineProperty(o.prototype,"src",{set:function(e){e!==this._src&&(this._src=e,this.reloadImage())},get:function(){return this._src}}),t.exports=o},{"gl-texture2d":55}],63:[function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=e("gl-react-core"),i=o.createShaders,a=function(){},s={},u=i(function(e,t){try{a(t)}catch(n){var r=new Error("Shader '"+t.name+"': "+n.message);throw r.stack=n.stack,r.name=n.name,r.original=n,r}s[e]=t});t.exports=r({},u,{get:function(e){return s[e]}})},{"./static.vert":69,"gl-react-core":37,"gl-shader":38}],64:[function(e,t,n){"use strict";var r=e("gl-react-core"),o=r.createUniform,i=e("react");t.exports=o(i)},{"gl-react-core":37,react:261}],65:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=e("react"),a=e("./Shaders"),s=e("./Uniform"),u=e("./GLCanvas"),c=e("gl-react-core"),l=c.createView,p=e("./pointerEventsProperty"),h=function(e,t,n,r,o){var a=o.visibleContent,s=i.Children.only(r),u={position:"absolute",top:0,left:0,width:e+"px",height:t+"px",visibility:a?"visible":"hidden"};return i.createElement("div",{key:"content-"+n,style:u},s)},f=function(e){return i.createElement(u,o({ref:"canvas"},e))},d=function(e,t,n){var a=e.style,s=e.visibleContent,u=e.eventsThrough,c=e.width,l=e.height,h=o({position:"relative"},a,r({width:c+"px",height:l+"px",overflow:"hidden"},p,!s&&u?"none":"auto"));return i.createElement("div",{style:h},t,n)};t.exports=l(i,a,s,d,h,f)},{"./GLCanvas":61,"./Shaders":63,"./Uniform":64,"./pointerEventsProperty":68,"gl-react-core":37,react:261}],66:[function(e,t,n){"use strict";var r=e("react"),o=e("./View"),i=e("gl-react-core"),a=i.createComponent;t.exports=a(r,o)},{"./View":65,"gl-react-core":37,react:261}],67:[function(e,t,n){"use strict";var r=e("./Shaders"),o=e("./View"),i=e("./Uniform"),a=e("./ComponentDeprecated"),s=e("./createComponent");t.exports={Shaders:r,View:o,Uniform:i,Component:a,createComponent:s}},{"./ComponentDeprecated":60,"./Shaders":63,"./Uniform":64,"./View":65,"./createComponent":66}],68:[function(e,t,n){"use strict";var r=e("vendor-prefix");t.exports=r("pointer-events")},{"vendor-prefix":59}],69:[function(e,t,n){"use strict";t.exports="\nattribute vec2 _p;\nvarying vec2 uv;\nvoid main() {\n gl_Position = vec4(_p,0.0,1.0);\n uv = vec2(0.5, 0.5) * (_p+vec2(1.0, 1.0));\n}\n"},{}],70:[function(e,t,n){function r(e,t){return e[0]-t[0]}function o(){var e,t=this.stride,n=new Array(t.length);for(e=0;e<n.length;++e)n[e]=[Math.abs(t[e]),e];n.sort(r);var o=new Array(n.length);for(e=0;e<o.length;++e)o[e]=n[e][1];return o}function i(e,t){var n=["View",t,"d",e].join("");0>t&&(n="View_Nil"+e);var r="generic"===e;if(-1===t){var i="function "+n+"(a){this.data=a;};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new "+n+"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_"+n+"(a){return new "+n+"(a);}",a=new Function(i);return a()}if(0===t){var i="function "+n+"(a,d) {this.data = a;this.offset = d};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function "+n+"_copy() {return new "+n+"(this.data,this.offset)};proto.pick=function "+n+"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function "+n+"_get(){return "+(r?"this.data.get(this.offset)":"this.data[this.offset]")+"};proto.set=function "+n+"_set(v){return "+(r?"this.data.set(this.offset,v)":"this.data[this.offset]=v")+"};return function construct_"+n+"(a,b,c,d){return new "+n+"(a,d)}",a=new Function("TrivialArray",i);return a(p[e][0])}var i=["'use strict'"],s=u(t),c=s.map(function(e){return"i"+e}),l="this.offset+"+s.map(function(e){return"this.stride["+e+"]*i"+e}).join("+"),h=s.map(function(e){return"b"+e}).join(","),f=s.map(function(e){return"c"+e}).join(",");i.push("function "+n+"(a,"+h+","+f+",d){this.data=a","this.shape=["+h+"]","this.stride=["+f+"]","this.offset=d|0}","var proto="+n+".prototype","proto.dtype='"+e+"'","proto.dimension="+t),i.push("Object.defineProperty(proto,'size',{get:function "+n+"_size(){return "+s.map(function(e){return"this.shape["+e+"]"}).join("*"),"}})"),1===t?i.push("proto.order=[0]"):(i.push("Object.defineProperty(proto,'order',{get:"),4>t?(i.push("function "+n+"_order(){"),2===t?i.push("return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===t&&i.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})")):i.push("ORDER})")),i.push("proto.set=function "+n+"_set("+c.join(",")+",v){"),r?i.push("return this.data.set("+l+",v)}"):i.push("return this.data["+l+"]=v}"),i.push("proto.get=function "+n+"_get("+c.join(",")+"){"),r?i.push("return this.data.get("+l+")}"):i.push("return this.data["+l+"]}"),i.push("proto.index=function "+n+"_index(",c.join(),"){return "+l+"}"),i.push("proto.hi=function "+n+"_hi("+c.join(",")+"){return new "+n+"(this.data,"+s.map(function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")}).join(",")+","+s.map(function(e){return"this.stride["+e+"]"}).join(",")+",this.offset)}");var d=s.map(function(e){return"a"+e+"=this.shape["+e+"]"}),m=s.map(function(e){return"c"+e+"=this.stride["+e+"]"});i.push("proto.lo=function "+n+"_lo("+c.join(",")+"){var b=this.offset,d=0,"+d.join(",")+","+m.join(","));for(var v=0;t>v;++v)i.push("if(typeof i"+v+"==='number'&&i"+v+">=0){d=i"+v+"|0;b+=c"+v+"*d;a"+v+"-=d}");i.push("return new "+n+"(this.data,"+s.map(function(e){return"a"+e}).join(",")+","+s.map(function(e){return"c"+e}).join(",")+",b)}"),i.push("proto.step=function "+n+"_step("+c.join(",")+"){var "+s.map(function(e){return"a"+e+"=this.shape["+e+"]"}).join(",")+","+s.map(function(e){return"b"+e+"=this.stride["+e+"]"}).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(var v=0;t>v;++v)i.push("if(typeof i"+v+"==='number'){d=i"+v+"|0;if(d<0){c+=b"+v+"*(a"+v+"-1);a"+v+"=ceil(-a"+v+"/d)}else{a"+v+"=ceil(a"+v+"/d)}b"+v+"*=d}");i.push("return new "+n+"(this.data,"+s.map(function(e){return"a"+e}).join(",")+","+s.map(function(e){return"b"+e}).join(",")+",c)}");for(var g=new Array(t),y=new Array(t),v=0;t>v;++v)g[v]="a[i"+v+"]",y[v]="b[i"+v+"]";i.push("proto.transpose=function "+n+"_transpose("+c+"){"+c.map(function(e,t){return e+"=("+e+"===undefined?"+t+":"+e+"|0)"}).join(";"),"var a=this.shape,b=this.stride;return new "+n+"(this.data,"+g.join(",")+","+y.join(",")+",this.offset)}"),i.push("proto.pick=function "+n+"_pick("+c+"){var a=[],b=[],c=this.offset");for(var v=0;t>v;++v)i.push("if(typeof i"+v+"==='number'&&i"+v+">=0){c=(c+this.stride["+v+"]*i"+v+")|0}else{a.push(this.shape["+v+"]);b.push(this.stride["+v+"])}");i.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),i.push("return function construct_"+n+"(data,shape,stride,offset){return new "+n+"(data,"+s.map(function(e){return"shape["+e+"]"}).join(",")+","+s.map(function(e){return"stride["+e+"]"}).join(",")+",offset)}");var a=new Function("CTOR_LIST","ORDER",i.join("\n"));return a(p[e],o)}function a(e){if(c(e))return"buffer";if(l)switch(Object.prototype.toString.call(e)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object Uint8ClampedArray]":return"uint8_clamped"}return Array.isArray(e)?"array":"generic"}function s(e,t,n,r){if(void 0===e){var o=p.array[0];return o([])}"number"==typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var s=t.length;if(void 0===n){n=new Array(s);for(var u=s-1,c=1;u>=0;--u)n[u]=c,c*=t[u]}if(void 0===r){r=0;for(var u=0;s>u;++u)n[u]<0&&(r-=(t[u]-1)*n[u])}for(var l=a(e),h=p[l];h.length<=s+1;)h.push(i(l,h.length-1));var o=h[s+1];return o(e,t,n,r)}var u=e("iota-array"),c=e("is-buffer"),l="undefined"!=typeof Float64Array,p={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],buffer:[],generic:[]};t.exports=s},{"iota-array":71,"is-buffer":72}],71:[function(e,t,n){"use strict";function r(e){for(var t=new Array(e),n=0;e>n;++n)t[n]=n;return t}t.exports=r},{}],72:[function(e,t,n){t.exports=function(e){return!(null==e||!(e._isBuffer||e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)))}},{}],73:[function(e,t,n){"use strict";function r(e,t,n){this._canvas||(this._canvas=document.createElement("canvas")),this.width=e,this.height=t,this.scale=n||window.devicePixelRatio,this._canvas.width=this.width*this.scale,this._canvas.height=this.height*this.scale,this._canvas.getContext("2d").scale(this.scale,this.scale)}var o=e("react/lib/Object.assign");o(r.prototype,{getRawCanvas:function(){return this._canvas},getContext:function(){return this._canvas.getContext("2d")}}),r.poolSize=30,t.exports=r},{"react/lib/Object.assign":132}],74:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){s=s||{},s.backgroundColor&&(e.save(),e.fillStyle=s.backgroundColor,e.fillRect(n,r,o,i),e.restore());var u,c,l,p=0,h=0,f=0,d=0,m=0,v=0,g=0,y=0,_=s.focusPoint;l={width:t.getWidth(),height:t.getHeight()},u=Math.max(o/l.width,i/l.height)||1,u=parseFloat(u.toFixed(4),10),c={width:l.width*u,height:l.height*u},_?s.originalHeight&&(_.x*=l.height/s.originalHeight,_.y*=l.height/s.originalHeight):_={x:.5*l.width,y:.5*l.height},m=Math.round(a(.5*o-_.x*u,o-c.width,0))*(-1/u),v=Math.round(a(.5*i-_.y*u,i-c.height,0))*(-1/u),g=Math.round(l.width-2*m),y=Math.round(l.height-2*v),f=Math.round(o),d=Math.round(i),p=Math.round(n),h=Math.round(r),e.drawImage(t.getRawImage(),m,v,g,y,p,h,f,d)}function o(e,t,n,r,o,i,a,u){var c,l,p=n,h=r,u=u||{};u.fontSize=u.fontSize||16,u.lineHeight=u.lineHeight||18,u.textAlign=u.textAlign||"left",u.backgroundColor=u.backgroundColor||"transparent",u.color=u.color||"#000",c=s(t,o,a,u.fontSize,u.lineHeight),e.save(),"transparent"!==u.backgroundColor&&(e.fillStyle=u.backgroundColor,e.fillRect(0,0,o,i)),e.fillStyle=u.color,e.font=a.attributes.style+" "+a.attributes.weight+" "+u.fontSize+"px "+a.family,c.lines.forEach(function(t,a){switch(l=t.text,h=0===a?r+u.fontSize:r+u.fontSize+u.lineHeight*a,u.textAlign){case"center":p=n+o/2-t.width/2;break;case"right":p=n+o-t.width;break;default:p=n}a<c.lines.length-1&&u.fontSize+u.lineHeight*(a+1)>i&&(l=l.replace(/\,?\s?\w+$/,"…")),i+r>=h&&e.fillText(l,p,h)}),e.restore()}function i(e,t,n,r,o,i,a,s,u,c){var l;e.save(),l=e.createLinearGradient(t,n,r,o),i.forEach(function(e){l.addColorStop(e.position,e.color)}),e.fillStyle=l,e.fillRect(a,s,u,c),e.restore()}var a=(e("./FontFace"),e("./clamp")),s=e("./measureText");t.exports={drawImage:r,drawText:o,drawGradient:i}},{"./FontFace":79,"./clamp":93,"./measureText":97}],75:[function(e,t,n){"use strict";var r=(e("react"),e("react/lib/ReactMultiChild")),o=e("react/lib/Object.assign"),i=e("react/lib/emptyObject"),a=o({},r.Mixin,{moveChild:function(e,t){var n=e._mountImage,r=this._mostRecentlyPlacedChild;null==r?n.previousSibling&&(this.node.firstChild?n.injectBefore(this.node.firstChild):n.inject(this.node)):r.nextSibling!==n&&(r.nextSibling?n.injectBefore(r.nextSibling):n.inject(this.node)),this._mostRecentlyPlacedChild=n},createChild:function(e,t){e._mountImage=t;var n=this._mostRecentlyPlacedChild;null==n?this.node.firstChild?t.injectBefore(this.node.firstChild):t.inject(this.node):n.nextSibling?t.injectBefore(n.nextSibling):t.inject(this.node),this._mostRecentlyPlacedChild=t},removeChild:function(e){e._mountImage.remove(),e._mountImage=null,this.node.invalidateLayout()},updateChildrenAtRoot:function(e,t){this.updateChildren(e,t,i)},mountAndInjectChildrenAtRoot:function(e,t){this.mountAndInjectChildren(e,t,i)},updateChildren:function(e,t,n){this._mostRecentlyPlacedChild=null,this._updateChildren(e,t,n)},mountAndInjectChildren:function(e,t,n){var r=this.mountChildren(e,t,n),o=0;for(var i in this._renderedChildren)if(this._renderedChildren.hasOwnProperty(i)){var a=this._renderedChildren[i];a._mountImage=r[o],r[o].inject(this.node),o++}}});t.exports=a},{react:261,"react/lib/Object.assign":132,"react/lib/ReactMultiChild":177,"react/lib/emptyObject":221}],76:[function(e,t,n){"use strict";function r(e){for(var t=0,n=w.length;n>t;t++)if(w[t].id===e)return w[t].canvas;return null}function o(e){for(var t=0,n=w.length;n>t;t++)if(w[t].id===e){w.splice(t,1);break}}function i(){w=[]}function a(e,t){if("image"===e.type&&e.imageUrl===t)return e;if(e.children)for(var n=0,r=e.children.length;r>n;n++)if(a(e.children[n],t))return e.children[n];return!1}function s(e,t){if("text"===e.type&&e.fontFace&&e.fontFace.id===t.id)return e;if(e.children)for(var n=0,r=e.children.length;r>n;n++)if(s(e.children[n],t))return e.children[n];return!1}function u(e){w.forEach(function(t){a(t.layer,e)&&o(t.id)})}function c(e){w.forEach(function(t){s(t.layer,e)&&o(t.id)})}function l(e,t){var n;if(!("number"==typeof t.alpha&&t.alpha<=0)){switch(t.type){case"image":n=d;break;case"text":n=m;break;case"gradient":n=v}var r=null!==t.alpha&&t.alpha<1||t.translateX||t.translateY;r&&(e.save(),null!==t.alpha&&t.alpha<1&&(e.globalAlpha=t.alpha),(t.translateX||t.translateY)&&e.translate(t.translateX||0,t.translateY||0)),t.backingStoreId?h(e,t,n):(e.save(),p(e,t),n&&n(e,t),e.restore(),t.children&&t.children.slice().sort(f).forEach(function(t){l(e,t)})),r&&e.restore()}}function p(e,t){var n=t.frame;t.borderRadius&&(e.beginPath(),e.moveTo(n.x+t.borderRadius,n.y),e.arcTo(n.x+n.width,n.y,n.x+n.width,n.y+n.height,t.borderRadius),e.arcTo(n.x+n.width,n.y+n.height,n.x,n.y+n.height,t.borderRadius),e.arcTo(n.x,n.y+n.height,n.x,n.y,t.borderRadius),e.arcTo(n.x,n.y,n.x+n.width,n.y,t.borderRadius),e.closePath(),"image"===t.type&&e.clip(),t.borderColor&&(e.lineWidth=t.borderWidth||1,e.strokeStyle=t.borderColor,e.stroke())),t.borderColor&&!t.borderRadius&&(e.lineWidth=t.borderWidth||1,e.strokeStyle=t.borderColor,e.strokeRect(n.x,n.y,n.width,n.height)),t.backgroundColor&&(e.fillStyle=t.backgroundColor,t.borderRadius?e.fill():e.fillRect(n.x,n.y,n.width,n.height))}function h(e,t,n){var o,i=r(t.backingStoreId),a=t.scale||window.devicePixelRatio,s=t.frame.y,u=t.frame.x;if(i||(w.length>=E.poolSize?(i=w[0].canvas,E.call(i,t.frame.width,t.frame.height,a),w[0].id=t.backingStoreId,w[0].canvas=i,w.push(w.shift())):(i=new E(t.frame.width,t.frame.height,a),w.push({id:t.backingStoreId,layer:t,canvas:i})),o=i.getContext("2d"),t.translate(-u,-s),o.save(),p(o,t),n&&n(o,t),o.restore(),t.children&&t.children.slice().sort(f).forEach(function(e){l(o,e)}),t.translate(u,s)),t.clipRect){var c=(t.clipRect.x-t.frame.x)*a,h=(t.clipRect.y-t.frame.y)*a,d=t.clipRect.width*a,m=t.clipRect.height*a,v=t.clipRect.x,g=t.clipRect.y,y=t.clipRect.width,_=t.clipRect.height;d>0&&m>0&&e.drawImage(i.getRawCanvas(),c,h,d,m,v,g,y,_)}else e.drawImage(i.getRawCanvas(),t.frame.x,t.frame.y,t.frame.width,t.frame.height)}function f(e,t){return(e.zIndex||0)-(t.zIndex||0)}function d(e,t){if(t.imageUrl){var n=g.get(t.imageUrl);n.isLoaded()&&b.drawImage(e,n,t.frame.x,t.frame.y,t.frame.width,t.frame.height)}}function m(e,t){var n=t.fontFace||_.Default();y.isFontLoaded(n)&&b.drawText(e,t.text,t.frame.x,t.frame.y,t.frame.width,t.frame.height,n,{fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:t.textAlign,color:t.color})}function v(e,t){var n=t.x1||t.frame.x,r=t.y1||t.frame.y,o=t.x2||t.frame.x,i=t.y2||t.frame.y+t.frame.height;b.drawGradient(e,n,r,o,i,t.colorStops,t.frame.x,t.frame.y,t.frame.width,t.frame.height)}var g=e("./ImageCache"),y=e("./FontUtils"),_=e("./FontFace"),b=(e("./FrameUtils"),e("./CanvasUtils")),E=e("./Canvas"),w=[];t.exports={drawRenderLayer:l,invalidateBackingStore:o,invalidateAllBackingStores:i,handleImageLoad:u,handleFontLoad:c,layerContainsImage:a,layerContainsFontFace:s}},{"./Canvas":73,"./CanvasUtils":74,"./FontFace":79,"./FontUtils":80,"./FrameUtils":81,"./ImageCache":84}],77:[function(e,t,n){var r={linear:function(e){return e},easeInQuad:function(e){return Math.pow(e,2)},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return.5>e?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return.5>e?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}};t.exports=r},{}],78:[function(e,t,n){"use strict";t.exports={onTouchStart:"touchstart",onTouchMove:"touchmove",onTouchEnd:"touchend",onTouchCancel:"touchcancel",onClick:"click"}},{}],79:[function(e,t,n){"use strict";function r(e,t,n){var r,a;return n=n||{},n.style=n.style||"normal",n.weight=n.weight||400,a=o(e,t,n),r=i[a],r||(r={},r.id=a,r.family=e,r.url=t,r.attributes=n,i[a]=r),r}function o(e,t,n){return e+t+Object.keys(n).sort().map(function(e){return n[e]})}var i={};r.Default=function(e){return r("sans-serif",null,{weight:e})},t.exports=r},{}],80:[function(e,t,n){"use strict";function r(e){return void 0!==l[e.id]||!e.url}function o(e,t){var n,r,o;return l[e.id]?t(null):p[e.id]?t(p[e.id]):e.url?c[e.id]?void c[e.id].callbacks.push(t):(n=a("Helvetica",e.attributes),r=a(e.family,e.attributes),document.body.appendChild(r),document.body.appendChild(n),c[e.id]={startTime:Date.now(),defaultNode:n,testNode:r,callbacks:[t]},o=function(){var t=r.getBoundingClientRect().width,i=n.getBoundingClientRect().width,a=t!==i;a?s(e,null):Date.now()-c[e.id].startTime>=h?s(e,!0):requestAnimationFrame(o)},void o()):t(null)}function i(e,t){var n;return l[e.id]?t(null):p[e.id]?t(p[e.id]):e.url?c[e.id]?void c[e.id].callbacks.push(t):(c[e.id]={startTime:Date.now(),callbacks:[t]},n=new window.FontFace(e.family,"url("+e.url+")",e.attributes),void n.load().then(function(){l[e.id]=!0,t(null)},function(n){p[e.id]=n,t(n)})):t(null)}function a(e,t){var n=document.createElement("span");return n.setAttribute("data-fontfamily",e),n.style.cssText='position:absolute; left:-5000px; top:-5000px; visibility:hidden;font-size:100px; font-family:"'+e+'", Helvetica;font-weight: '+t.weight+";font-style:"+t.style+";",n.innerHTML="BESs",n}function s(e,t){var n=t?"Exceeded load timeout of "+h+"ms":null;n?p[e.id]=n:l[e.id]=!0,c[e.id].callbacks.forEach(function(e){e(n)}),c[e.id].defaultNode&&document.body.removeChild(c[e.id].defaultNode),c[e.id].testNode&&document.body.removeChild(c[e.id].testNode),delete c[e.id]}var u=(e("./FontFace"),"undefined"!=typeof window.FontFace),c={},l={},p={},h=3e3;t.exports={isFontLoaded:r,loadFont:u?i:o}},{"./FontFace":79}],81:[function(e,t,n){"use strict";function r(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}function o(e,t,n,o){return new r(e,t,n,o)}function i(){return o(0,0,0,0)}function a(e){return o(e.x,e.y,e.width,e.height)}function s(e,t,n,r,o){var i=a(e);return"undefined"==typeof r&&(r=t,o=n),"undefined"==typeof n&&(n=r=o=t),i.x+=o,i.y+=t,i.height-=t+r,i.width-=o+n,i}function u(e,t){var n=Math.max(e.x,t.x),r=Math.min(e.x+e.width,t.x+t.width),i=Math.max(e.y,t.y),a=Math.min(e.y+e.height,t.y+t.height);return r>=n&&a>=i?o(n,i,r-n,a-i):null}function c(e,t){var n=Math.min(e.x,t.x),r=Math.max(e.x+e.width,t.x+t.width),i=Math.min(e.y,t.y),a=Math.max(e.y+e.height,t.y+t.height);return o(n,i,r-n,a-i)}function l(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}t.exports={make:o,zero:i,clone:a,inset:s,intersection:u,intersects:l,union:c}},{}],82:[function(e,t,n){"use strict";var r=e("./createComponent"),o=e("./ContainerMixin"),i=e("./LayerMixin"),a=(e("./RenderLayer"),r("Group",i,o,{mountComponent:function(e,t,n){var r=this._currentElement.props,o=this.node;return this.applyLayerProps({},r),this.mountAndInjectChildren(r.children,t,n),o},receiveComponent:function(e,t,n){var r=e.props,o=this._currentElement.props;this.applyLayerProps(o,r),this.updateChildren(r.children,t,n),this._currentElement=e,this.node.invalidateLayout()},unmountComponent:function(){i.unmountComponent.call(this),this.unmountChildren()}}));t.exports=a},{"./ContainerMixin":75,"./LayerMixin":86,"./RenderLayer":90,"./createComponent":94}],83:[function(e,t,n){"use strict";var r=e("react"),o=e("react/lib/Object.assign"),i=e("./createComponent"),a=e("./LayerMixin"),s=e("./Layer"),u=e("./Group"),c=e("./ImageCache"),l=e("./Easing"),p=e("./clamp"),h=200,f=i("Image",a,{applyImageProps:function(e,t){var n=this.node;n.type="image",n.imageUrl=t.src},mountComponent:function(e,t,n){var r=this._currentElement.props,o=this.node;return this.applyLayerProps({},r),this.applyImageProps({},r),o},receiveComponent:function(e,t,n){var r=this._currentElement.props,o=e.props;this.applyLayerProps(r,o),this._currentElement=e,this.node.invalidateLayout()}}),d=r.createClass({propTypes:{src:r.PropTypes.string.isRequired,style:r.PropTypes.object,useBackingStore:r.PropTypes.bool,fadeIn:r.PropTypes.bool,fadeInDuration:r.PropTypes.number},getInitialState:function(){var e=c.get(this.props.src).isLoaded();return{loaded:e,imageAlpha:e?1:0}},componentDidMount:function(){c.get(this.props.src).on("load",this.handleImageLoad)},componentWillUnmount:function(){this._pendingAnimationFrame&&cancelAnimationFrame(this._pendingAnimationFrame),c.get(this.props.src).removeListener("load",this.handleImageLoad)},componentDidUpdate:function(e,t){this.refs.image&&this.refs.image.invalidateLayout()},render:function(){var e=o({},this.props.style),t=o({},this.props.style),n=o({},this.props.style),i=this.state.loaded?this.props.useBackingStore:!1;return e.alpha=this.state.imageAlpha,t.backgroundColor=e.backgroundColor=null,n.alpha=p(1-this.state.imageAlpha,0,1),r.createElement(u,{ref:"main",style:t},r.createElement(s,{ref:"background",style:n}),r.createElement(f,{ref:"image",src:this.props.src,style:e,useBackingStore:i}))},handleImageLoad:function(){var e=1;this.props.fadeIn&&(e=0,this._animationStartTime=Date.now(),this._pendingAnimationFrame=requestAnimationFrame(this.stepThroughAnimation)),this.setState({loaded:!0,imageAlpha:e})},stepThroughAnimation:function(){var e=this.props.fadeInDuration||h,t=l.easeInCubic((Date.now()-this._animationStartTime)/e);t=p(t,0,1),this.setState({imageAlpha:t}),1>t&&(this._pendingAnimationFrame=requestAnimationFrame(this.stepThroughAnimation))}});t.exports=d},{"./Easing":77,"./Group":82,"./ImageCache":84,"./Layer":85,"./LayerMixin":86,"./clamp":93,"./createComponent":94,react:261,"react/lib/Object.assign":132}],84:[function(e,t,n){"use strict";function r(e){this._originalSrc=e,this._img=new Image,this._img.onload=this.emit.bind(this,"load"),this._img.onerror=this.emit.bind(this,"error"),this._img.crossOrigin=!0,this._img.src=e,this.on("error",a),this.setMaxListeners(100)}var o=e("events"),i=e("react/lib/Object.assign"),a=function(){};i(r.prototype,o.prototype,{destructor:function(){this.removeAllListeners()},getOriginalSrc:function(){return this._originalSrc},getRawImage:function(){return this._img},getWidth:function(){return this._img.naturalWidth},getHeight:function(){return this._img.naturalHeight},isLoaded:function(){return this._img.naturalHeight>0}});var s=300,u={length:0,elements:{},push:function(e,t){this.length++,this.elements[e]={hash:e,freq:0,data:t}},get:function(e){var t=this.elements[e];return t?(t.freq++,t.data):null},removeElement:function(e){var t=this.elements[e];return delete this.elements[e],this.length--,t},_reduceLeastUsed:function(e,t){var n=u.elements[t];return e.freq>n.freq?n:e},popLeastUsed:function(){var e=u._reduceLeastUsed,t=Object.keys(this.elements).reduce(e,{freq:1/0});return t.hash?this.removeElement(t.hash):null}},c={get:function(e){var t=u.get(e);return t||(t=new r(e),u.length>=s&&u.popLeastUsed().destructor(),u.push(t.getOriginalSrc(),t)),t}};t.exports=c},{events:18,"react/lib/Object.assign":132}],85:[function(e,t,n){"use strict";var r=e("./createComponent"),o=e("./LayerMixin"),i=r("Layer",o,{mountComponent:function(e,t,n){var r=this._currentElement.props,o=this.node;return this.applyLayerProps({},r),o},receiveComponent:function(e,t,n){var r=this._currentElement.props,o=e.props;this.applyLayerProps(r,o),this._currentElement=e,this.node.invalidateLayout()}});t.exports=i},{"./LayerMixin":86,"./createComponent":94}],86:[function(e,t,n){"use strict";var r=e("./FrameUtils"),o=(e("./DrawingUtils"),e("./EventTypes")),i=0,a={construct:function(e){this._currentElement=e,this._layerId=i++},getPublicInstance:function(){return this.node},putEventListener:function(e,t){var n=this.subscriptions||(this.subscriptions={}),r=this.listeners||(this.listeners={});r[e]=t,t?n[e]||(n[e]=this.node.subscribe(e,t,this)):n[e]&&(n[e](),delete n[e])},handleEvent:function(e){},destroyEventListeners:function(){},applyLayerProps:function(e,t){var n=this.node,i=t&&t.style?t.style:{};n._originalStyle=i,n.alpha=i.alpha,n.backgroundColor=i.backgroundColor,n.borderColor=i.borderColor,n.borderWidth=i.borderWidth,n.borderRadius=i.borderRadius,n.clipRect=i.clipRect,n.frame=r.make(i.left||0,i.top||0,i.width||0,i.height||0),n.scale=i.scale,n.translateX=i.translateX,n.translateY=i.translateY,n.zIndex=i.zIndex,t.useBackingStore&&(n.backingStoreId=this._layerId);for(var a in o)this.putEventListener(o[a],t[a])},mountComponentIntoNode:function(e,t){throw new Error("You cannot render a Canvas component standalone. You need to wrap it in a Surface.")},unmountComponent:function(){this.destroyEventListeners()}};t.exports=a},{"./DrawingUtils":76,"./EventTypes":78,"./FrameUtils":81}],87:[function(e,t,n){var r=function(){function e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function t(t,n,r,o){var i=n+e(o)+r;return i in t.style?t.style[i]:(i=n+r,i in t.style?t.style[i]:0)}function n(t,n,r,o){var i=n+e(o)+r;return i in t.style&&t.style[i]>=0?t.style[i]:(i=n+r,i in t.style&&t.style[i]>=0?t.style[i]:0)}function r(e){return void 0===e}function o(e,n){return t(e,"margin","",n)}function i(e,t){return n(e,"padding","",t)}function a(e,t){return n(e,"border","Width",t)}function s(e,t){return i(e,t)+a(e,t)}function u(e,t){return o(e,R[t])+o(e,T[t])}function c(e,t){return s(e,R[t])+s(e,T[t])}function l(e){return"justifyContent"in e.style?e.style.justifyContent:"flex-start"}function p(e,t){return"alignSelf"in t.style?t.style.alignSelf:"alignItems"in e.style?e.style.alignItems:"stretch"}function h(e){return"flexDirection"in e.style?e.style.flexDirection:"column"}function f(e){return"position"in e.style?e.style.position:"relative"}function d(e){return e.style.flex}function m(e){return f(e)===B&&d(e)>0}function v(e){return"wrap"===e.style.flexWrap}function g(e,t){return e.layout[M[t]]+u(e,t)}function y(e,t){return!r(e.style[M[t]])&&e.style[M[t]]>=0}function _(e,t){return!r(e.style[t])}function b(e){return"measure"in e.style}function E(e,t){return t in e.style?e.style[t]:0}function w(e,t){r(e.layout[M[t]])&&y(e,t)&&(e.layout[M[t]]=x(e.style[M[t]],c(e,t)))}function C(e,t){return R[t]in e.style?E(e,R[t]):-E(e,T[t])}function x(e,t){return e>t?e:t}var R={row:"left",column:"top"},T={row:"right",column:"bottom"},O={row:"left",column:"top"},M={row:"width",column:"height"},I=void 0,A="row",P="column",D="flex-start",S="center",L="flex-end",N="space-between",U="space-around",k="flex-start",F="center",j="stretch",B="relative",V="absolute";return function H(e,t){var n=h(e),i=n===A?P:A;if(w(e,n),w(e,i),e.layout[R[n]]+=o(e,R[n])+C(e,n),e.layout[R[i]]+=o(e,R[i])+C(e,i),b(e)){var q=I;q=y(e,A)?e.style.width:r(e.layout[M[A]])?t-u(e,A):e.layout[M[A]],q-=c(e,A);var G=!y(e,A)&&r(e.layout[M[A]]),Y=!y(e,P)&&r(e.layout[M[P]]);if(G||Y){var W=e.style.measure(q);G&&(e.layout.width=W.width+c(e,A)),Y&&(e.layout.height=W.height+c(e,P))}}else{for(var z=0;z<e.children.length;++z){var X=e.children[z];if(p(e,X)!==j||f(X)!==B||r(e.layout[M[i]])||y(X,i)){if(f(X)==V)for(var K=0;2>K;K++){var Q=0!=K?A:P;!r(e.layout[M[Q]])&&!y(X,Q)&&_(X,R[Q])&&_(X,T[Q])&&(X.layout[M[Q]]=x(e.layout[M[Q]]-c(e,Q)-u(X,Q)-E(X,R[Q])-E(X,T[Q]),c(X,Q)))}}else X.layout[M[i]]=x(e.layout[M[i]]-c(e,i)-u(X,i),c(X,i));
}var Z=I;r(e.layout[M[n]])||(Z=e.layout[M[n]]-c(e,n));for(var J=0,$=0,ee=0,te=0,ne=0;$<e.children.length;){for(var re=0,oe=0,ie=0,ae=0,z=J;z<e.children.length;++z){var X=e.children[z],se=0;if(!r(e.layout[M[n]])&&m(X))oe++,ie+=d(X),se=c(X,n)+u(X,n);else{var ue=I;n===A||(ue=y(e,A)?e.layout[M[A]]-c(e,A):t-u(e,A)-c(e,A)),0===ee&&H(X,ue),f(X)===B&&(ae++,se=g(X,n))}if(v(e)&&!r(e.layout[M[n]])&&re+se>Z&&z!==J){ee=1;break}ee=0,re+=se,$=z+1}var ce=0,le=0,pe=0;if(pe=r(e.layout[M[n]])?x(re,0)-re:Z-re,0!==oe){var he=pe/ie;0>he&&(he=0);for(var z=J;$>z;++z){var X=e.children[z];if(m(X)){X.layout[M[n]]=he*d(X)+c(X,n);var ue=I;n===A||(ue=y(e,A)?e.layout[M[A]]-c(e,A):t-u(e,A)-c(e,A)),H(X,ue)}}}else{var fe=l(e);fe===D||(fe===S?ce=pe/2:fe===L?ce=pe:fe===N?(pe=x(pe,0),le=oe+ae-1!==0?pe/(oe+ae-1):0):fe===U&&(le=pe/(oe+ae),ce=le/2))}for(var de=0,me=ce+s(e,R[n]),z=J;$>z;++z){var X=e.children[z];f(X)===V&&_(X,R[n])?X.layout[O[n]]=E(X,R[n])+a(e,R[n])+o(X,R[n]):X.layout[O[n]]+=me,f(X)===B&&(me+=le+g(X,n),de=x(de,g(X,i)))}var ve=e.layout[M[n]];r(e.layout[M[n]])&&(ve=x(me+s(e,T[n]),c(e,n)));var ge=e.layout[M[i]];r(e.layout[M[i]])&&(ge=x(de+c(e,i),c(e,i)));for(var z=J;$>z;++z){var X=e.children[z];if(f(X)===V&&_(X,R[i]))X.layout[O[i]]=E(X,R[i])+a(e,R[i])+o(X,R[i]);else{var ye=s(e,R[i]);if(f(X)===B){var _e=p(e,X);if(_e===k);else if(_e===j)y(X,i)||(X.layout[M[i]]=x(ge-c(e,i)-u(X,i),c(X,i)));else{var be=ge-c(e,i)-g(X,i);ye+=_e===F?be/2:be}}X.layout[O[i]]+=te+ye}}te+=de,ne=x(ne,me),J=$}r(e.layout[M[n]])&&(e.layout[M[n]]=x(ne+s(e,T[n]),c(e,n))),r(e.layout[M[i]])&&(e.layout[M[i]]=x(te+c(e,i),c(e,i)));for(var z=0;z<e.children.length;++z){var X=e.children[z];if(f(X)==V){for(var K=0;2>K;K++){var Q=0!==K?A:P;!r(e.layout[M[Q]])&&!y(X,Q)&&_(X,R[Q])&&_(X,T[Q])&&(X.layout[M[Q]]=x(e.layout[M[Q]]-c(e,Q)-u(X,Q)-E(X,R[Q])-E(X,T[Q]),c(X,Q)))}for(var K=0;2>K;K++){var Q=0!==K?A:P;_(X,T[Q])&&!_(X,R[Q])&&(X.layout[R[Q]]=e.layout[M[Q]]-X.layout[M[Q]]-E(X,T[Q]))}}}}}}();"object"==typeof t&&(t.exports=r)},{}],88:[function(e,t,n){"use strict";var r=e("react"),o=(e("react/lib/Object.assign"),e("scroller")),i=e("./Group"),a=(e("./clamp"),r.createClass({propTypes:{style:r.PropTypes.object,numberOfItemsGetter:r.PropTypes.func.isRequired,itemHeightGetter:r.PropTypes.func.isRequired,itemGetter:r.PropTypes.func.isRequired,snapping:r.PropTypes.bool,scrollingDeceleration:r.PropTypes.number,scrollingPenetrationAcceleration:r.PropTypes.number,onScroll:r.PropTypes.func},getDefaultProps:function(){return{style:{left:0,top:0,width:0,height:0},snapping:!1,scrollingDeceleration:.95,scrollingPenetrationAcceleration:.08}},getInitialState:function(){return{scrollTop:0}},componentDidMount:function(){this.createScroller(),this.updateScrollingDimensions()},render:function(){var e=this.getVisibleItemIndexes().map(this.renderItem);return r.createElement(i,{style:this.props.style,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onTouchCancel:this.handleTouchEnd},e)},renderItem:function(e){var t=this.props.itemGetter(e,this.state.scrollTop),n=this.props.itemHeightGetter(),o={top:0,left:0,width:this.props.style.width,height:n,translateY:e*n-this.state.scrollTop,zIndex:e};return r.createElement(i,{style:o,key:e},t)},handleTouchStart:function(e){this.scroller&&this.scroller.doTouchStart(e.touches,e.timeStamp)},handleTouchMove:function(e){this.scroller&&(e.preventDefault(),this.scroller.doTouchMove(e.touches,e.timeStamp,e.scale))},handleTouchEnd:function(e){this.scroller&&(this.scroller.doTouchEnd(e.timeStamp),this.props.snapping&&this.updateScrollingDeceleration())},handleScroll:function(e,t){this.setState({scrollTop:t}),this.props.onScroll&&this.props.onScroll(t)},createScroller:function(){var e={scrollingX:!1,scrollingY:!0,decelerationRate:this.props.scrollingDeceleration,penetrationAcceleration:this.props.scrollingPenetrationAcceleration};this.scroller=new o(this.handleScroll,e)},updateScrollingDimensions:function(){var e=this.props.style.width,t=this.props.style.height,n=e,r=this.props.numberOfItemsGetter()*this.props.itemHeightGetter();this.scroller.setDimensions(e,t,n,r)},getVisibleItemIndexes:function(){for(var e=[],t=this.props.itemHeightGetter(),n=this.props.numberOfItemsGetter(),r=this.state.scrollTop,o=0,i=0;n>i;i++)o=i*t-r,o>=this.props.style.height||o<=-this.props.style.height||e.push(i);return e},updateScrollingDeceleration:function(){for(var e=this.scroller.__decelerationVelocityY,t=this.state.scrollTop,n=0,r=t;Math.abs(e).toFixed(6)>0;)r+=e,e*=this.props.scrollingDeceleration;for(var o,i=1/0,a=this.props.itemHeightGetter(),s=this.props.numberOfItemsGetter(),u=0,c=s;c>u;u++)o=a*u-r,Math.abs(o)<i&&(i=Math.abs(o),n=a*u);this.scroller.__minDecelerationScrollTop=n,this.scroller.__maxDecelerationScrollTop=n}}));t.exports=a},{"./Group":82,"./clamp":93,react:261,"react/lib/Object.assign":132,scroller:104}],89:[function(e,t,n){"use strict";var r={Surface:e("./Surface"),Layer:e("./Layer"),Group:e("./Group"),Image:e("./Image"),Text:e("./Text"),ListView:e("./ListView"),FontFace:e("./FontFace"),measureText:e("./measureText")};t.exports=r},{"./FontFace":79,"./Group":82,"./Image":83,"./Layer":85,"./ListView":88,"./Surface":91,"./Text":92,"./measureText":97}],90:[function(e,t,n){"use strict";function r(){this.children=[],this.frame=o.zero()}var o=e("./FrameUtils"),i=e("./DrawingUtils"),a=e("./EventTypes");r.prototype={getRootLayer:function(){for(var e=this;e.parentLayer;)e=e.parentLayer;return e},inject:function(e){this.parentLayer&&this.parentLayer!==e&&this.remove(),this.parentLayer||e.addChild(this)},injectBefore:function(e,t){this.inject(e)},addChild:function(e){e.parentLayer=this,this.children.push(e)},remove:function(){this.parentLayer&&this.parentLayer.children.splice(this.parentLayer.children.indexOf(this),1)},subscribe:function(e,t,n){for(var r in a)a[r]===e&&(this[r]=t);return this.removeEventListener.bind(this,e,t,n)},addEventListener:function(e,t,n){for(var r in a)a[r]===e&&delete this[r]},removeEventListener:function(e,t,n){var r,o=this.eventListeners[e];if(o)for(var i=0,a=o.length;a>i;i++)if(r=o[i],r.callback===t&&r.callbackScope===n){o.splice(i,1);break}},translate:function(e,t){this.frame&&(this.frame.x+=e,this.frame.y+=t),this.clipRect&&(this.clipRect.x+=e,this.clipRect.y+=t),this.children&&this.children.forEach(function(n){n.translate(e,t)})},invalidateLayout:function(){this.getRootLayer().draw()},invalidateBackingStore:function(){this.backingStoreId&&i.invalidateBackingStore(this.backingStoreId),this.invalidateLayout()},draw:function(){}},t.exports=r},{"./DrawingUtils":76,"./EventTypes":78,"./FrameUtils":81}],91:[function(e,t,n){(function(n){"use strict";var r=e("react"),o=e("react/lib/ReactUpdates"),i=e("react/lib/invariant"),a=e("./ContainerMixin"),s=e("./RenderLayer"),u=e("./FrameUtils"),c=e("./DrawingUtils"),l=e("./hitTest"),p=e("./layoutNode"),h=r.createClass({mixins:[a],propTypes:{top:r.PropTypes.number.isRequired,left:r.PropTypes.number.isRequired,width:r.PropTypes.number.isRequired,height:r.PropTypes.number.isRequired,scale:r.PropTypes.number.isRequired,enableCSSLayout:r.PropTypes.bool},getDefaultProps:function(){return{scale:window.devicePixelRatio||1}},componentDidMount:function(){this.scale(),this.node=new s,this.node.frame=u.make(this.props.left,this.props.top,this.props.width,this.props.height),this.node.draw=this.batchedTick;var e=o.ReactReconcileTransaction.getPooled();e.perform(this.mountAndInjectChildrenAtRoot,this,this.props.children,e),o.ReactReconcileTransaction.release(e),this.node.draw()},componentWillUnmount:function(){this.unmountChildren()},componentDidUpdate:function(e,t){var n=o.ReactReconcileTransaction.getPooled();n.perform(this.updateChildrenAtRoot,this,this.props.children,n),o.ReactReconcileTransaction.release(n),(e.width!==this.props.width||e.height!==this.props.height)&&this.scale(),this.node&&this.node.draw()},render:function(){var e=this.props.width*this.props.scale,t=this.props.height*this.props.scale,n={width:this.props.width,height:this.props.height};return r.createElement("canvas",{ref:"canvas",width:e,height:t,style:n,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onTouchCancel:this.handleTouchEnd,onClick:this.handleClick})},getContext:function(){return"production"!==n.env.NODE_ENV?i(this.isMounted(),"Tried to access drawing context on an unmounted Surface."):i(this.isMounted()),this.refs.canvas.getDOMNode().getContext("2d")},scale:function(){this.getContext().scale(this.props.scale,this.props.scale)},batchedTick:function(){return this._frameReady===!1?void(this._pendingTick=!0):void this.tick()},tick:function(){this._frameReady=!1,this.clear(),this.draw(),requestAnimationFrame(this.afterTick)},afterTick:function(){this._frameReady=!0,this._pendingTick&&(this._pendingTick=!1,this.batchedTick())},clear:function(){this.getContext().clearRect(0,0,this.props.width,this.props.height)},draw:function(){var e;this.node&&(this.props.enableCSSLayout&&(e=p(this.node)),c.drawRenderLayer(this.getContext(),this.node))},hitTest:function(e){var t=l(e,this.node,this.getDOMNode());t&&t[l.getHitHandle(e.type)](e)},handleTouchStart:function(e){var t,n=l(e,this.node,this.getDOMNode());if(n){this._touches=this._touches||{};for(var r=0,o=e.touches.length;o>r;r++)t=e.touches[r],this._touches[t.identifier]=n;n[l.getHitHandle(e.type)](e)}},handleTouchMove:function(e){this.hitTest(e)},handleTouchEnd:function(e){if(this._touches)for(var t,n=l.getHitHandle(e.type),r=0,o=e.changedTouches.length;o>r;r++)t=this._touches[e.changedTouches[r].identifier],t&&t[n]&&t[n](e),delete this._touches[e.changedTouches[r].identifier]},handleClick:function(e){this.hitTest(e)}});t.exports=h}).call(this,e("_process"))},{"./ContainerMixin":75,"./DrawingUtils":76,"./FrameUtils":81,"./RenderLayer":90,"./hitTest":95,"./layoutNode":96,_process:19,react:261,"react/lib/ReactUpdates":193,"react/lib/invariant":241}],92:[function(e,t,n){"use strict";function r(e){return e?"string"==typeof e?e:e.length?e.join("\n"):"":""}var o=e("./createComponent"),i=e("./LayerMixin"),a=o("Text",i,{applyTextProps:function(e,t){var n=t&&t.style?t.style:{},o=this.node;o.type="text",o.text=r(t.children),o.color=n.color,o.fontFace=n.fontFace,o.fontSize=n.fontSize,o.lineHeight=n.lineHeight,o.textAlign=n.textAlign},mountComponent:function(e,t,n){var r=this._currentElement.props,o=this.node;return this.applyLayerProps({},r),this.applyTextProps({},r),o},receiveComponent:function(e,t,n){var r=e.props,o=this._currentElement.props;this.applyLayerProps(o,r),this.applyTextProps(o,r),this._currentElement=e,this.node.invalidateLayout()}});t.exports=a},{"./LayerMixin":86,"./createComponent":94}],93:[function(e,t,n){"use strict";t.exports=function(e,t,n){return Math.min(Math.max(e,t),n)}},{}],94:[function(e,t,n){"use strict";function r(e){var t=function(e){this.node=null,this.subscriptions=null,this.listeners=null,this.node=new i,this._mountImage=null,this._renderedChildren=null,this._mostRecentlyPlacedChild=null};t.displayName=e;for(var n=1,r=arguments.length;r>n;n++)o(t.prototype,arguments[n]);return t}var o=e("react/lib/Object.assign"),i=e("./RenderLayer");t.exports=r},{"./RenderLayer":90,"react/lib/Object.assign":132}],95:[function(e,t,n){"use strict";function r(e,t,n){var r,o=e.touches?e.touches[0]:e,i=o.pageX,u=o.pageY;return n&&(r=n.getBoundingClientRect(),i-=r.left,u-=r.top),a(t,e.type,s.make(i,u,1,1),t.translateX||0,t.translateY||0)}function o(e,t){return(t.zIndex||0)-(e.zIndex||0)}function i(e){var t;for(var n in u)if(u[n]===e){t=n;break}return t}function a(e,t,n,r,u){var c,l=null,p=i(t),h=s.clone(e.frame);if("number"==typeof e.alpha&&e.alpha<.01)return null;if(e.children){c=e.children.slice().reverse().sort(o);for(var f=0,d=c.length;d>f&&!(l=a(c[f],t,n,r+(e.translateX||0),u+(e.translateY||0)));f++);}return e.hitOutsets&&(h=s.inset(s.clone(h),-e.hitOutsets[0],-e.hitOutsets[1],-e.hitOutsets[2],-e.hitOutsets[3])),r&&(h.x+=r),u&&(h.y+=u),!l&&e[p]&&s.intersects(h,n)&&(l=e),l}var s=e("./FrameUtils"),u=e("./EventTypes");t.exports=r,t.exports.getHitHandle=i},{"./EventTypes":78,"./FrameUtils":81}],96:[function(e,t,n){"use strict";function r(e){var t=o(e);return a(t),i(t),t}function o(e){return{layer:e,layout:{width:void 0,height:void 0,top:0,left:0},style:e._originalStyle||{},children:(e.children||[]).map(o)}}function i(e,t,n){e.layer.frame.x=e.layout.left+(t||0),e.layer.frame.y=e.layout.top+(n||0),e.layer.frame.width=e.layout.width,e.layer.frame.height=e.layout.height,e.children&&e.children.length>0&&e.children.forEach(function(t){i(t,e.layer.frame.x,e.layer.frame.y)})}var a=e("./Layout");t.exports=r},{"./Layout":87}],97:[function(e,t,n){"use strict";function r(e,t,n,r,o){return e+t+n.id+r+o}var o=(e("./FontFace"),e("./FontUtils")),i=e("linebreak"),a=document.createElement("canvas"),s=a.getContext("2d"),u={},c={width:0,height:0,lines:[]};t.exports=function(e,t,n,a,l){var p=r(e,t,n,a,l),h=u[p];if(h)return h;if(!o.isFontLoaded(n))return c;var f,d,m,v,g,y,_,b={};if(s.font=n.attributes.style+" "+n.attributes.weight+" "+a+"px "+n.family,f=s.measureText(e),b.width=f.width,b.height=l,b.lines=[],b.width<=t)b.lines.push({width:b.width,text:e});else{for(b.width=t,v="",g=new i(e);y=g.nextBreak();){var E=e.slice(_?_.position:0,y.position);m=v+E,f=s.measureText(m),f.width>t||_&&_.required?(b.height+=l,b.lines.push({width:d,text:v.trim()}),v=E,d=s.measureText(v.trim()).width):(v=m,d=f.width),_=y}v=v.trim(),v.length>0&&(f=s.measureText(v),b.lines.push({width:f,text:v}))}return u[p]=b,b}},{"./FontFace":79,"./FontUtils":80,linebreak:102}],98:[function(e,t,n){arguments[4][15][0].apply(n,arguments)},{dup:15}],99:[function(e,t,n){var r,o;o=e("tiny-inflate"),r=function(){function e(e){var t,n,r;t="function"==typeof e.readUInt32BE&&"function"==typeof e.slice,t||e instanceof Uint8Array?(t?(this.highStart=e.readUInt32BE(0),this.errorValue=e.readUInt32BE(4),n=e.readUInt32BE(8),e=e.slice(12)):(r=new DataView(e.buffer),this.highStart=r.getUint32(0),this.errorValue=r.getUint32(4),n=r.getUint32(8),e=e.subarray(12)),e=o(e,new Uint8Array(n)),e=o(e,new Uint8Array(n)),this.data=new Uint32Array(e.buffer)):(this.data=e.data,this.highStart=e.highStart,this.errorValue=e.errorValue)}var t,n,r,i,a,s,u,c,l,p,h,f,d,m,v,g;return f=11,m=5,d=f-m,h=65536>>f,a=1<<d,u=a-1,c=2,t=1<<m,r=t-1,p=65536>>m,l=1024>>m,s=p+l,g=s,v=32,i=g+v,n=1<<c,e.prototype.get=function(e){var t;return 0>e||e>1114111?this.errorValue:55296>e||e>56319&&65535>=e?(t=(this.data[e>>m]<<c)+(e&r),this.data[t]):65535>=e?(t=(this.data[p+(e-55296>>m)]<<c)+(e&r),this.data[t]):e<this.highStart?(t=this.data[i-h+(e>>f)],t=this.data[t+(e>>m&u)],t=(t<<c)+(e&r),this.data[t]):this.data[this.data.length-n]},e}(),t.exports=r},{"tiny-inflate":100}],100:[function(e,t,n){function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function o(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}function i(e,t,n,r){var o,i;for(o=0;n>o;++o)e[o]=0;for(o=0;30-n>o;++o)e[o+n]=o/n|0;for(i=r,o=0;30>o;++o)t[o]=i,i+=1<<e[o]}function a(e,t){var n;for(n=0;7>n;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;24>n;++n)e.trans[n]=256+n;for(n=0;144>n;++n)e.trans[24+n]=n;for(n=0;8>n;++n)e.trans[168+n]=280+n;for(n=0;112>n;++n)e.trans[176+n]=144+n;for(n=0;5>n;++n)t.table[n]=0;for(t.table[5]=32,n=0;32>n;++n)t.trans[n]=n}function s(e,t,n,r){var o,i;for(o=0;16>o;++o)e.table[o]=0;for(o=0;r>o;++o)e.table[t[n+o]]++;for(e.table[0]=0,i=0,o=0;16>o;++o)T[o]=i,i+=e.table[o];for(o=0;r>o;++o)t[n+o]&&(e.trans[T[t[n+o]]++]=o)}function u(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function c(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function l(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,o=0,i=e.tag;do r=2*r+(1&i),i>>>=1,++o,n+=t.table[o],r-=t.table[o];while(r>=0);return e.tag=i,e.bitcount-=o,t.trans[n+r]}function p(e,t,n){var r,o,i,a,u,p;for(r=c(e,5,257),o=c(e,5,1),i=c(e,4,4),a=0;19>a;++a)R[a]=0;for(a=0;i>a;++a){var h=c(e,3,0);R[C[a]]=h}for(s(x,R,0,19),u=0;r+o>u;){var f=l(e,x);switch(f){case 16:var d=R[u-1];for(p=c(e,2,3);p;--p)R[u++]=d;break;case 17:for(p=c(e,3,3);p;--p)R[u++]=0;break;case 18:for(p=c(e,7,11);p;--p)R[u++]=0;break;default:R[u++]=f}}s(t,R,0,r),s(n,R,r,o)}function h(e,t,n){for(;;){var r=l(e,t);if(256===r)return m;if(256>r)e.dest[e.destLen++]=r;else{var o,i,a,s;for(r-=257,o=c(e,_[r],b[r]),i=l(e,n),a=e.destLen-c(e,E[i],w[i]),s=a;a+o>s;++s)e.dest[e.destLen++]=e.dest[s]}}}function f(e){for(var t,n,r;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],n=e.source[e.sourceIndex+3],n=256*n+e.source[e.sourceIndex+2],t!==(65535&~n))return v;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,m}function d(e,t){var n,r,i=new o(e,t);do{switch(n=u(i),btype=c(i,2,0),btype){case 0:r=f(i);break;case 1:r=h(i,g,y);break;case 2:p(i,i.ltree,i.dtree),r=h(i,i.ltree,i.dtree);break;default:r=v}if(r!==m)throw new Error("Data error")}while(!n);return i.destLen<i.dest.length?"function"==typeof i.dest.slice?i.dest.slice(0,i.destLen):i.dest.subarray(0,i.destLen):i.dest}var m=0,v=-3,g=new r,y=new r,_=new Uint8Array(30),b=new Uint16Array(30),E=new Uint8Array(30),w=new Uint16Array(30),C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),x=new r,R=new Uint8Array(320),T=new Uint16Array(16);a(g,y),i(_,b,4,3),i(E,w,2,1),_[28]=0,b[28]=258,t.exports=d},{}],101:[function(e,t,n){(function(){var e,t,r,o,i,a,s,u,c,l,p,h,f,d,m,v,g,y,_,b,E,w,C,x,R,T,O,M,I,A,P,D,S,L,N,U,k,F,j,B;n.OP=I=0,n.CL=c=1,n.CP=p=2,n.QU=D=3,n.GL=d=4,n.NS=O=5,n.EX=f=6,n.SY=k=7,n.IS=E=8,n.PR=P=9,n.PO=A=10,n.NU=M=11,n.AL=t=12,n.HL=g=13,n.ID=_=14,n.IN=b=15,n.HY=y=16,n.BA=o=17,n.BB=i=18,n.B2=r=19,n.ZW=B=20,n.CM=l=21,n.WJ=F=22,n.H2=m=23,n.H3=v=24,n.JL=w=25,n.JV=x=26,n.JT=C=27,n.RI=S=28,n.AI=e=29,n.BK=a=30,n.CB=s=31,n.CJ=u=32,n.CR=h=33,n.LF=R=34,n.NL=T=35,n.SA=L=36,n.SG=N=37,n.SP=U=38,n.XX=j=39}).call(this)},{}],102:[function(e,t,n){(function(){var n,r,o,i,a,s,u,c,l,p,h,f,d,m,v,g,y,_,b,E,w,C,x,R,T,O,M,I,A,P;w=e("unicode-trie"),R=e("base64-js"),A=e("./classes"),i=A.BK,l=A.CR,d=A.LF,v=A.NL,a=A.CB,o=A.BA,E=A.SP,C=A.WJ,E=A.SP,i=A.BK,d=A.LF,v=A.NL,n=A.AI,r=A.AL,_=A.SA,b=A.SG,x=A.XX,u=A.CJ,h=A.ID,g=A.NS,T=A.characterClasses,P=e("./pairs"),p=P.DI_BRK,f=P.IN_BRK,s=P.CI_BRK,c=P.CP_BRK,y=P.PR_BRK,I=P.pairTable,M=R.toByteArray("AA4IAAAAAAAAAhqg5VV7NJtZvz7fTC8zU5deplUlMrQoWqmqahD5So0aipYWrUhVFSVBQ10iSTtUtW6nKDVF6k7d75eQfEUbFcQ9KiFS90tQEolcP23nrLPmO+esr/+f39rr/a293t/e7/P8nmfvlz0O6RvrBJADtbBNaD88IOKTOmOrCqhu9zE770vc1pBV/xL5dxj2V7Zj4FGSomFKStCWNlV7hG1VabZfZ1LaHbFrRwzzLjzPoi1UHDnlV/lWbhgIIJvLBp/pu7AHEdRnIY+ROdXxg4fNpMdTxVnnm08OjozejAVsBqwqz8kddGRlRxsd8c55dNZoPuex6a7Dt6L0NNb03sqgTlR2/OT7eTt0Y0WnpUXxLsp5SMANc4DsmX4zJUBQvznwexm9tsMH+C9uRYMPOd96ZHB29NZjCIM2nfO7tsmQveX3l2r7ft0N4/SRJ7kO6Y8ZCaeuUQ4gMTZ67cp7TgxvlNDsPgOBdZi2YTam5Q7m3+00l+XG7PrDe6YoPmHgK+yLih7fAR16ZFCeD9WvOVt+gfNW/KT5/M6rb/9KERt+N1lad5RneVjzxXHsLofuU+TvrEsr3+26sVz5WJh6L/svoPK3qepFH9bysDljWtD1F7KrxzW1i9r+e/NLxV/acts7zuo304J9+t3Pd6Y6u8f3EAqxNRgv5DZjaI3unyvkvHPya/v3mWVYOC38qBq11+yHZ2bAyP1HbkV92vdno7r2lxz9UwCdCJVfd14NLcpO2CadHS/XPJ9doXgz5vLv/1OBVS3gX0D9n6LiNIDfpilO9RsLgZ2W/wIy8W/Rh93jfoz4qmRV2xElv6p2lRXQdO6/Cv8f5nGn3u0wLXjhnvClabL1o+7yvIpvLfT/xsKG30y/sTvq30ia9Czxp9dr9v/e7Yn/O0QJXxxBOJmceP/DBFa1q1v6oudn/e6qc/37dUoNvnYL4plQ9OoneYOh/r8fOFm7yl7FETHY9dXd5K2n/qEc53dOEe1TTJcvCfp1dpTC334l0vyaFL6mttNEbFjzO+ZV2mLk0qc3BrxJ4d9gweMmjRorxb7vic0rSq6D4wzAyFWas1TqPE0sLI8XLAryC8tPChaN3ALEZSWmtB34SyZcxXYn/E4Tg0LeMIPhgPKD9zyHGMxxhxnDDih7eI86xECTM8zodUCdgffUmRh4rQ8zyA6ow/Aei+01a8OMfziQQ+GAEkhwN/cqUFYAVzA9ex4n6jgtsiMvXf5BtXxEU4hSphvx3v8+9au8eEekEEpkrkne/zB1M+HAPuXIz3paxKlfe8aDMfGWAX6Md6PuuAdKHFVH++Ed5LEji94Z5zeiJIxbmWeN7rr1/ZcaBl5/nimdHsHgIH/ssyLUXZ4fDQ46HnBb+hQqG8yNiKRrXL/b1IPYDUsu3dFKtRMcjqlRvONd4xBvOufx2cUHuk8pmG1D7PyOQmUmluisVFS9OWS8fPIe8LiCtjwJKnEC9hrS9uKmISI3Wa5+vdXUG9dtyfr7g/oJv2wbzeZU838G6mEvntUb3SVV/fBZ6H/sL+lElzeRrHy2Xbe7UWX1q5sgOQ81rv+2baej4fP4m5Mf/GkoxfDtT3++KP7do9Jn26aa6xAhCf5L9RZVfkWKCcjI1eYbm2plvTEqkDxKC402bGzXCYaGnuALHabBT1dFLuOSB7RorOPEhZah1NjZIgR/UFGfK3p1ElYnevOMBDLURdpIjrI+qZk4sffGbRFiXuEmdFjiAODlQCJvIaB1rW61Ljg3y4eS4LAcSgDxxZQs0DYa15wA032Z+lGUfpoyOrFo3mg1sRQtN/fHHCx3TrM8eTrldMbYisDLXbUDoXMLejSq0fUNuO1muX0gEa8vgyegkqiqqbC3W0S4cC9Kmt8MuS/hFO7Xei3f8rSvIjeveMM7kxjUixOrl6gJshe4JU7PhOHpfrRYvu7yoAZKa3Buyk2J+K5W+nNTz1nhJDhRUfDJLiUXxjxXCJeeaOe/r7HlBP/uURc/5efaZEPxr55Qj39rfTLkugUGyMrwo7HAglfEjDriehF1jXtwJkPoiYkYQ5aoXSA7qbCBGKq5hwtu2VkpI9xVDop/1xrC52eiIvCoPWx4lLl40jm9upvycVPfpaH9/o2D4xKXpeNjE2HPQRS+3RFaYTc4Txw7Dvq5X6JBRwzs9mvoB49BK6b+XgsZVJYiInTlSXZ+62FT18mkFVcPKCJsoF5ahb19WheZLUYsSwdrrVM3aQ2XE6SzU2xHDS6iWkodk5AF6F8WUNmmushi8aVpMPwiIfEiQWo3CApONDRjrhDiVnkaFsaP5rjIJkmsN6V26li5LNM3JxGSyKgomknTyyrhcnwv9Qcqaq5utAh44W30SWo8Q0XHKR0glPF4fWst1FUCnk2woFq3iy9fAbzcjJ8fvSjgKVOfn14RDqyQuIgaGJZuswTywdCFSa89SakMf6fe+9KaQMYQlKxiJBczuPSho4wmBjdA+ag6QUOr2GdpcbSl51Ay6khhBt5UXdrnxc7ZGMxCvz96A4oLocxh2+px+1zkyLacCGrxnPzTRSgrLKpStFpH5ppKWm7PgMKZtwgytKLOjbGCOQLTm+KOowqa1sdut9raj1CZFkZD0jbaKNLpJUarSH5Qknx1YiOxdA5L6d5sfI/unmkSF65Ic/AvtXt98Pnrdwl5vgppQ3dYzWFwknZsy6xh2llmLxpegF8ayLwniknlXRHiF4hzzrgB8jQ4wdIqcaHCEAxyJwCeGkXPBZYSrrGa4vMwZvNN9aK0F4JBOK9mQ8g8EjEbIQVwvfS2D8GuCYsdqwqSWbQrfWdTRUJMqmpnWPax4Z7E137I6brHbvjpPlfNZpF1d7PP7HB/MPHcHVKTMhLO4f3CZcaccZEOiS2DpKiQB5KXDJ+Ospcz4qTRCRxgrKEQIgUkKLTKKwskdx2DWo3bg3PEoB5h2nA24olwfKSR+QR6TAvEDi/0czhUT59RZmO1MGeKGeEfuOSPWfL+XKmhqpZmOVR9mJVNDPKOS49Lq+Um10YsBybzDMtemlPCOJEtE8zaXhsaqEs9bngSJGhlOTTMlCXly9Qv5cRN3PVLK7zoMptutf7ihutrQ/Xj7VqeCdUwleTTKklOI8Wep9h7fCY0kVtDtIWKnubWAvbNZtsRRqOYl802vebPEkZRSZc6wXOfPtpPtN5HI63EUFfsy7U/TLr8NkIzaY3vx4A28x765XZMzRZTpMk81YIMuwJ5+/zoCuZj1wGnaHObxa5rpKZj4WhT670maRw04w0e3cZW74Z0aZe2n05hjZaxm6urenz8Ef5O6Yu1J2aqYAlqsCXs5ZB5o1JJ5l3xkTVr8rJQ09NLsBqRRDT2IIjOPmcJa6xQ1R5yGP9jAsj23xYDTezdyqG8YWZ7vJBIWK56K+iDgcHimiQOTIasNSua1fOBxsKMMEKd15jxTl+3CyvGCR+UyRwuSI2XuwRIPoNNclPihfJhaq2mKkNijwYLY6feqohktukmI3KDvOpN7ItCqHHhNuKlxMfBAEO5LjW2RKh6lE5Hd1dtAOopac/Z4FdsNsjMhXz/ug8JGmbVJTA+VOBJXdrYyJcIn5+OEeoK8kWEWF+wdG8ZtZHKSquWDtDVyhFPkRVqguKFkLkKCz46hcU1SUY9oJ2Sk+dmq0kglqk4kqKT1CV9JDELPjK1WsWGkEXF87g9P98e5ff0mIupm/w6vc3kCeq04X5bgJQlcMFRjlFWmSk+kssXCAVikfeAlMuzpUvCSdXiG+dc6KrIiLxxhbEVuKf7vW7KmDQI95bZe3H9mN3/77F6fZ2Yx/F9yClllj8gXpLWLpd5+v90iOaFa9sd7Pvx0lNa1o1+bkiZ69wCiC2x9UIb6/boBCuNMB/HYR0RC6+FD9Oe5qrgQl6JbXtkaYn0wkdNhROLqyhv6cKvyMj1Fvs2o3OOKoMYTubGENLfY5F6H9d8wX1cnINsvz+wZFQu3zhWVlwJvwBEp69Dqu/ZnkBf3nIfbx4TK7zOVJH5sGJX+IMwkn1vVBn38GbpTg9bJnMcTOb5F6Ci5gOn9Fcy6Qzcu+FL6mYJJ+f2ZZJGda1VqruZ0JRXItp8X0aTjIcJgzdaXlha7q7kV4ebrMsunfsRyRa9qYuryBHA0hc1KVsKdE+oI0ljLmSAyMze8lWmc5/lQ18slyTVC/vADTc+SNM5++gztTBLz4m0aVUKcfgOEExuKVomJ7XQDZuziMDjG6JP9tgR7JXZTeo9RGetW/Xm9/TgPJpTgHACPOGvmy2mDm9fl09WeMm9sQUAXP3Su2uApeCwJVT5iWCXDgmcuTsFgU9Nm6/PusJzSbDQIMfl6INY/OAEvZRN54BSSXUClM51im6Wn9VhVamKJmzOaFJErgJcs0etFZ40LIF3EPkjFTjGmAhsd174NnOwJW8TdJ1Dja+E6Wa6FVS22Haj1DDA474EesoMP5nbspAPJLWJ8rYcP1DwCslhnn+gTFm+sS9wY+U6SogAa9tiwpoxuaFeqm2OK+uozR6SfiLCOPz36LiDlzXr6UWd7BpY6mlrNANkTOeme5EgnnAkQRTGo9T6iYxbUKfGJcI9B+ub2PcyUOgpwXbOf3bHFWtygD7FYbRhb+vkzi87dB0JeXl/vBpBUz93VtqZi7AL7C1VowTF+tGmyurw7DBcktc+UMY0E10Jw4URojf8NdaNpN6E1q4+Oz+4YePtMLy8FPRP"),O=new w(M),m=function(){function e(e){this.string=e,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null}var t,h,m;return e.prototype.nextCodePoint=function(){var e,t;return e=this.string.charCodeAt(this.pos++),t=this.string.charCodeAt(this.pos),e>=55296&&56319>=e&&t>=56320&&57343>=t?(this.pos++,1024*(e-55296)+(t-56320)+65536):e},h=function(e){switch(e){case n:return r;case _:case b:case x:return r;case u:return g;default:return e}},m=function(e){switch(e){case d:case v:return i;case a:return o;case E:return C;default:return e}},e.prototype.nextCharClass=function(e){return null==e&&(e=!1),h(O.get(this.nextCodePoint()))},t=function(){function e(e,t){this.position=e,this.required=null!=t?t:!1}return e}(),e.prototype.nextBreak=function(){var e,n,r;for(null==this.curClass&&(this.curClass=m(this.nextCharClass()));this.pos<this.string.length;){if(this.lastPos=this.pos,n=this.nextClass,this.nextClass=this.nextCharClass(),this.curClass===i||this.curClass===l&&this.nextClass!==d)return this.curClass=m(h(this.nextClass)),new t(this.lastPos,!0);if(e=function(){switch(this.nextClass){case E:return this.curClass;case i:case d:case v:return i;case l:return l;case a:return o}}.call(this),null==e){switch(r=!1,I[this.curClass][this.nextClass]){case p:r=!0;break;case f:r=n===E;break;case s:if(r=n===E,!r)continue;break;case c:if(n!==E)continue}if(this.curClass=this.nextClass,r)return new t(this.lastPos)}else if(this.curClass=e,this.nextClass===a)return new t(this.lastPos)}return this.pos>=this.string.length?this.lastPos<this.string.length?(this.lastPos=this.string.length,new t(this.string.length)):null:void 0},e}(),t.exports=m}).call(this)},{"./classes":101,"./pairs":103,"base64-js":98,"unicode-trie":99}],103:[function(e,t,n){(function(){var e,t,r,o,i;n.DI_BRK=r=0,n.IN_BRK=o=1,n.CI_BRK=e=2,n.CP_BRK=t=3,n.PR_BRK=i=4,n.pairTable=[[i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,t,i,i,i,i,i,i,i],[r,i,i,o,o,i,i,i,i,o,o,r,r,r,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[r,i,i,o,o,i,i,i,i,o,o,o,o,o,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[i,i,i,o,o,o,i,i,i,o,o,o,o,o,o,o,o,o,o,o,i,e,i,o,o,o,o,o,o],[o,i,i,o,o,o,i,i,i,o,o,o,o,o,o,o,o,o,o,o,i,e,i,o,o,o,o,o,o],[r,i,i,o,o,o,i,i,i,r,r,r,r,r,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[r,i,i,o,o,o,i,i,i,r,r,r,r,r,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[r,i,i,o,o,o,i,i,i,r,r,o,r,r,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[r,i,i,o,o,o,i,i,i,r,r,o,o,o,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[o,i,i,o,o,o,i,i,i,r,r,o,o,o,o,r,o,o,r,r,i,e,i,o,o,o,o,o,r],[o,i,i,o,o,o,i,i,i,r,r,o,o,o,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[o,i,i,o,o,o,i,i,i,o,o,o,o,o,r,o,o,o,r,r,i,e,i,r,r,r,r,r,r],[o,i,i,o,o,o,i,i,i,r,r,o,o,o,r,o,o,o,r,r,i,e,i,r,r,r,r,r,r],[o,i,i,o,o,o,i,i,i,r,r,o,o,o,r,o,o,o,r,r,i,e,i,r,r,r,r,r,r],[r,i,i,o,o,o,i,i,i,r,o,r,r,r,r,o,o,o,r,r,i,e,i,r,r,r,r,r,r],[r,i,i,o,o,o,i,i,i,r,r,r,r,r,r,o,o,o,r,r,i,e,i,r,r,r,r,r,r],[r,i,i,o,r,o,i,i,i,r,r,o,r,r,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[r,i,i,o,r,o,i,i,i,r,r,r,r,r,r,r,o,o,r,r,i,e,i,r,r,r,r,r,r],[o,i,i,o,o,o,i,i,i,o,o,o,o,o,o,o,o,o,o,o,i,e,i,o,o,o,o,o,o],[r,i,i,o,o,o,i,i,i,r,r,r,r,r,r,r,o,o,r,i,i,e,i,r,r,r,r,r,r],[r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,i,r,r,r,r,r,r,r,r],[o,i,i,o,o,o,i,i,i,r,r,o,o,o,r,o,o,o,r,r,i,e,i,r,r,r,r,r,r],[o,i,i,o,o,o,i,i,i,o,o,o,o,o,o,o,o,o,o,o,i,e,i,o,o,o,o,o,o],[r,i,i,o,o,o,i,i,i,r,o,r,r,r,r,o,o,o,r,r,i,e,i,r,r,r,o,o,r],[r,i,i,o,o,o,i,i,i,r,o,r,r,r,r,o,o,o,r,r,i,e,i,r,r,r,r,o,r],[r,i,i,o,o,o,i,i,i,r,o,r,r,r,r,o,o,o,r,r,i,e,i,o,o,o,o,r,r],[r,i,i,o,o,o,i,i,i,r,o,r,r,r,r,o,o,o,r,r,i,e,i,r,r,r,o,o,r],[r,i,i,o,o,o,i,i,i,r,o,r,r,r,r,o,o,o,r,r,i,e,i,r,r,r,r,o,r],[r,i,i,o,o,o,i,i,i,r,r,r,r,r,r,r,o,o,r,r,i,e,i,r,r,r,r,r,o]]}).call(this)},{}],104:[function(e,t,n){t.exports=e("./src/Scroller")},{"./src/Scroller":106}],105:[function(e,t,n){!function(e){var n=Date.now||function(){return+new Date},r=60,o=1e3,i={},a=1,s={effect:{}};s.effect.Animate={requestAnimationFrame:function(){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,n=!!t;if(t&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(t.toString())&&(n=!1),n)return function(e,n){t(e,n)};var r=60,o={},i=0,a=1,s=null,u=+new Date;return function(e,t){var n=a++;return o[n]=e,i++,null===s&&(s=setInterval(function(){var e=+new Date,t=o;o={},i=0;for(var n in t)t.hasOwnProperty(n)&&(t[n](e),u=e);e-u>2500&&(clearInterval(s),s=null)},1e3/r)),n}}(),stop:function(e){var t=null!=i[e];return t&&(i[e]=null),t},isRunning:function(e){return null!=i[e]},start:function(e,t,u,c,l,p){var h=n(),f=h,d=0,m=0,v=a++;if(p||(p=document.body),v%20===0){var g={};for(var y in i)g[y]=!0;i=g}var _=function(a){var g=a!==!0,y=n();if(!i[v]||t&&!t(v))return i[v]=null,void(u&&u(r-m/((y-h)/o),v,!1));if(g)for(var b=Math.round((y-f)/(o/r))-1,E=0;E<Math.min(b,4);E++)_(!0),m++;c&&(d=(y-h)/c,d>1&&(d=1));var w=l?l(d):d;e(w,y,g)!==!1&&1!==d||!g?g&&(f=y,s.effect.Animate.requestAnimationFrame(_,p)):(i[v]=null,u&&u(r-m/((y-h)/o),v,1===d||null==c))};return i[v]=!0,s.effect.Animate.requestAnimationFrame(_,p),v}},t.exports=s}("undefined"!=typeof window?window:this)},{}],106:[function(e,t,n){var r,o=e("./Animate");!function(){var e=function(){};r=function(t,n){this.__callback=t,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:e,decelerationRate:.95,penetrationDeceleration:.03,penetrationAcceleration:.08};for(var r in n)this.options[r]=n[r]};var n=function(e){return Math.pow(e-1,3)+1},i=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},a={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshDeactivate:null,__refreshStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,n,r){var o=this;e===+e&&(o.__clientWidth=e),t===+t&&(o.__clientHeight=t),n===+n&&(o.__contentWidth=n),r===+r&&(o.__contentHeight=r),o.__computeScrollMax(),o.scrollTo(o.__scrollLeft,o.__scrollTop,!0)},setPosition:function(e,t){var n=this;n.__clientLeft=e||0,n.__clientTop=t||0},setSnapSize:function(e,t){var n=this;n.__snapWidth=e,n.__snapHeight=t},activatePullToRefresh:function(e,t,n,r){var o=this;o.__refreshHeight=e,o.__refreshActivate=t,o.__refreshDeactivate=n,o.__refreshStart=r},triggerPullToRefresh:function(){this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&this.__refreshStart()},finishPullToRefresh:function(){var e=this;e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)},getValues:function(){var e=this;return{left:e.__scrollLeft,top:e.__scrollTop,zoom:e.__zoomLevel}},getScrollMax:function(){var e=this;return{left:e.__maxScrollLeft,top:e.__maxScrollTop}},zoomTo:function(e,t,n,r,i){var a=this;if(!a.options.zooming)throw new Error("Zooming is not enabled!");i&&(a.__zoomComplete=i),a.__isDecelerating&&(o.effect.Animate.stop(a.__isDecelerating),a.__isDecelerating=!1);var s=a.__zoomLevel;null==n&&(n=a.__clientWidth/2),null==r&&(r=a.__clientHeight/2),e=Math.max(Math.min(e,a.options.maxZoom),a.options.minZoom),a.__computeScrollMax(e);var u=(n+a.__scrollLeft)*e/s-n,c=(r+a.__scrollTop)*e/s-r;u>a.__maxScrollLeft?u=a.__maxScrollLeft:0>u&&(u=0),c>a.__maxScrollTop?c=a.__maxScrollTop:0>c&&(c=0),a.__publish(u,c,e,t)},zoomBy:function(e,t,n,r,o){var i=this;i.zoomTo(i.__zoomLevel*e,t,n,r,o)},scrollTo:function(e,t,n,r){var i=this;if(i.__isDecelerating&&(o.effect.Animate.stop(i.__isDecelerating),i.__isDecelerating=!1),null!=r&&r!==i.__zoomLevel){if(!i.options.zooming)throw new Error("Zooming is not enabled!");e*=r,t*=r,i.__computeScrollMax(r)}else r=i.__zoomLevel;i.options.scrollingX?i.options.paging?e=Math.round(e/i.__clientWidth)*i.__clientWidth:i.options.snapping&&(e=Math.round(e/i.__snapWidth)*i.__snapWidth):e=i.__scrollLeft,i.options.scrollingY?i.options.paging?t=Math.round(t/i.__clientHeight)*i.__clientHeight:i.options.snapping&&(t=Math.round(t/i.__snapHeight)*i.__snapHeight):t=i.__scrollTop,e=Math.max(Math.min(i.__maxScrollLeft,e),0),t=Math.max(Math.min(i.__maxScrollTop,t),0),
e===i.__scrollLeft&&t===i.__scrollTop&&(n=!1),i.__publish(e,t,r,n)},scrollBy:function(e,t,n){var r=this,o=r.__isAnimating?r.__scheduledLeft:r.__scrollLeft,i=r.__isAnimating?r.__scheduledTop:r.__scrollTop;r.scrollTo(o+(e||0),i+(t||0),n)},doMouseZoom:function(e,t,n,r){var o=this,i=e>0?.97:1.03;return o.zoomTo(o.__zoomLevel*i,!1,n-o.__clientLeft,r-o.__clientTop)},doTouchStart:function(e,t){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var n=this;n.__interruptedAnimation=!0,n.__isDecelerating&&(o.effect.Animate.stop(n.__isDecelerating),n.__isDecelerating=!1,n.__interruptedAnimation=!0),n.__isAnimating&&(o.effect.Animate.stop(n.__isAnimating),n.__isAnimating=!1,n.__interruptedAnimation=!0);var r,i,a=1===e.length;a?(r=e[0].pageX,i=e[0].pageY):(r=Math.abs(e[0].pageX+e[1].pageX)/2,i=Math.abs(e[0].pageY+e[1].pageY)/2),n.__initialTouchLeft=r,n.__initialTouchTop=i,n.__zoomLevelStart=n.__zoomLevel,n.__lastTouchLeft=r,n.__lastTouchTop=i,n.__lastTouchMove=t,n.__lastScale=1,n.__enableScrollX=!a&&n.options.scrollingX,n.__enableScrollY=!a&&n.options.scrollingY,n.__isTracking=!0,n.__didDecelerationComplete=!1,n.__isDragging=!a,n.__isSingleTouch=a,n.__positions=[]},doTouchMove:function(e,t,n){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var r=this;if(r.__isTracking){var o,i;2===e.length?(o=Math.abs(e[0].pageX+e[1].pageX)/2,i=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,i=e[0].pageY);var a=r.__positions;if(r.__isDragging){var s=o-r.__lastTouchLeft,u=i-r.__lastTouchTop,c=r.__scrollLeft,l=r.__scrollTop,p=r.__zoomLevel;if(null!=n&&r.options.zooming){var h=p;if(p=p/r.__lastScale*n,p=Math.max(Math.min(p,r.options.maxZoom),r.options.minZoom),h!==p){var f=o-r.__clientLeft,d=i-r.__clientTop;c=(f+c)*p/h-f,l=(d+l)*p/h-d,r.__computeScrollMax(p)}}if(r.__enableScrollX){c-=s*this.options.speedMultiplier;var m=r.__maxScrollLeft;(c>m||0>c)&&(r.options.bouncing?c+=s/2*this.options.speedMultiplier:c=c>m?m:0)}if(r.__enableScrollY){l-=u*this.options.speedMultiplier;var v=r.__maxScrollTop;(l>v||0>l)&&(r.options.bouncing?(l+=u/2*this.options.speedMultiplier,r.__enableScrollX||null==r.__refreshHeight||(!r.__refreshActive&&l<=-r.__refreshHeight?(r.__refreshActive=!0,r.__refreshActivate&&r.__refreshActivate()):r.__refreshActive&&l>-r.__refreshHeight&&(r.__refreshActive=!1,r.__refreshDeactivate&&r.__refreshDeactivate()))):l=l>v?v:0)}a.length>60&&a.splice(0,30),a.push(c,l,t),r.__publish(c,l,p)}else{var g=r.options.locking?3:0,y=5,_=Math.abs(o-r.__initialTouchLeft),b=Math.abs(i-r.__initialTouchTop);r.__enableScrollX=r.options.scrollingX&&_>=g,r.__enableScrollY=r.options.scrollingY&&b>=g,a.push(r.__scrollLeft,r.__scrollTop,t),r.__isDragging=(r.__enableScrollX||r.__enableScrollY)&&(_>=y||b>=y),r.__isDragging&&(r.__interruptedAnimation=!1)}r.__lastTouchLeft=o,r.__lastTouchTop=i,r.__lastTouchMove=t,r.__lastScale=n}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);var t=this;if(t.__isTracking){if(t.__isTracking=!1,t.__isDragging)if(t.__isDragging=!1,t.__isSingleTouch&&t.options.animating&&e-t.__lastTouchMove<=100){for(var n=t.__positions,r=n.length-1,o=r,i=r;i>0&&n[i]>t.__lastTouchMove-100;i-=3)o=i;if(o===r&&n.length>5&&(o=2),o!==r){var a=n[r]-n[o],s=t.__scrollLeft-n[o-2],u=t.__scrollTop-n[o-1];t.__decelerationVelocityX=s/a*(1e3/60),t.__decelerationVelocityY=u/a*(1e3/60);var c=t.options.paging||t.options.snapping?4:1;(Math.abs(t.__decelerationVelocityX)>c||Math.abs(t.__decelerationVelocityY)>c)&&(t.__refreshActive||t.__startDeceleration(e))}else t.options.scrollingComplete()}else e-t.__lastTouchMove>100&&t.options.scrollingComplete();t.__isDecelerating||(t.__refreshActive&&t.__refreshStart?(t.__publish(t.__scrollLeft,-t.__refreshHeight,t.__zoomLevel,!0),t.__refreshStart&&t.__refreshStart()):((t.__interruptedAnimation||t.__isDragging)&&t.options.scrollingComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,!0,t.__zoomLevel),t.__refreshActive&&(t.__refreshActive=!1,t.__refreshDeactivate&&t.__refreshDeactivate()))),t.__positions.length=0}},__publish:function(e,t,r,a){var s=this,u=s.__isAnimating;if(u&&(o.effect.Animate.stop(u),s.__isAnimating=!1),a&&s.options.animating){s.__scheduledLeft=e,s.__scheduledTop=t,s.__scheduledZoom=r;var c=s.__scrollLeft,l=s.__scrollTop,p=s.__zoomLevel,h=e-c,f=t-l,d=r-p,m=function(e,t,n){n&&(s.__scrollLeft=c+h*e,s.__scrollTop=l+f*e,s.__zoomLevel=p+d*e,s.__callback&&s.__callback(s.__scrollLeft,s.__scrollTop,s.__zoomLevel))},v=function(e){return s.__isAnimating===e},g=function(e,t,n){t===s.__isAnimating&&(s.__isAnimating=!1),(s.__didDecelerationComplete||n)&&s.options.scrollingComplete(),s.options.zooming&&(s.__computeScrollMax(),s.__zoomComplete&&(s.__zoomComplete(),s.__zoomComplete=null))};s.__isAnimating=o.effect.Animate.start(m,v,g,s.options.animationDuration,u?n:i)}else s.__scheduledLeft=s.__scrollLeft=e,s.__scheduledTop=s.__scrollTop=t,s.__scheduledZoom=s.__zoomLevel=r,s.__callback&&s.__callback(e,t,r),s.options.zooming&&(s.__computeScrollMax(),s.__zoomComplete&&(s.__zoomComplete(),s.__zoomComplete=null))},__computeScrollMax:function(e){var t=this;null==e&&(e=t.__zoomLevel),t.__maxScrollLeft=Math.max(t.__contentWidth*e-t.__clientWidth,0),t.__maxScrollTop=Math.max(t.__contentHeight*e-t.__clientHeight,0)},__startDeceleration:function(e){var t=this;if(t.options.paging){var n=Math.max(Math.min(t.__scrollLeft,t.__maxScrollLeft),0),r=Math.max(Math.min(t.__scrollTop,t.__maxScrollTop),0),i=t.__clientWidth,a=t.__clientHeight;t.__minDecelerationScrollLeft=Math.floor(n/i)*i,t.__minDecelerationScrollTop=Math.floor(r/a)*a,t.__maxDecelerationScrollLeft=Math.ceil(n/i)*i,t.__maxDecelerationScrollTop=Math.ceil(r/a)*a}else t.__minDecelerationScrollLeft=0,t.__minDecelerationScrollTop=0,t.__maxDecelerationScrollLeft=t.__maxScrollLeft,t.__maxDecelerationScrollTop=t.__maxScrollTop;var s=function(e,n,r){t.__stepThroughDeceleration(r)},u=t.options.snapping?4:.1,c=function(){var e=Math.abs(t.__decelerationVelocityX)>=u||Math.abs(t.__decelerationVelocityY)>=u;return e||(t.__didDecelerationComplete=!0),e},l=function(e,n,r){t.__isDecelerating=!1,t.__didDecelerationComplete&&t.options.scrollingComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,t.options.snapping)};t.__isDecelerating=o.effect.Animate.start(s,c,l)},__stepThroughDeceleration:function(e){var t=this,n=t.__scrollLeft+t.__decelerationVelocityX,r=t.__scrollTop+t.__decelerationVelocityY;if(!t.options.bouncing){var o=Math.max(Math.min(t.__maxDecelerationScrollLeft,n),t.__minDecelerationScrollLeft);o!==n&&(n=o,t.__decelerationVelocityX=0);var i=Math.max(Math.min(t.__maxDecelerationScrollTop,r),t.__minDecelerationScrollTop);i!==r&&(r=i,t.__decelerationVelocityY=0)}if(e?t.__publish(n,r,t.__zoomLevel):(t.__scrollLeft=n,t.__scrollTop=r),!t.options.paging){var a=t.options.decelerationRate;t.__decelerationVelocityX*=a,t.__decelerationVelocityY*=a}if(t.options.bouncing){var s=0,u=0,c=t.options.penetrationDeceleration,l=t.options.penetrationAcceleration;n<t.__minDecelerationScrollLeft?s=t.__minDecelerationScrollLeft-n:n>t.__maxDecelerationScrollLeft&&(s=t.__maxDecelerationScrollLeft-n),r<t.__minDecelerationScrollTop?u=t.__minDecelerationScrollTop-r:r>t.__maxDecelerationScrollTop&&(u=t.__maxDecelerationScrollTop-r),0!==s&&(s*t.__decelerationVelocityX<=0?t.__decelerationVelocityX+=s*c:t.__decelerationVelocityX=s*l),0!==u&&(u*t.__decelerationVelocityY<=0?t.__decelerationVelocityY+=u*c:t.__decelerationVelocityY=u*l)}}};for(var s in a)r.prototype[s]=a[s];t.exports=r}()},{"./Animate":105}],107:[function(e,t,n){"use strict";var r=e("./focusNode"),o={componentDidMount:function(){this.props.autoFocus&&r(this.getDOMNode())}};t.exports=o},{"./focusNode":225}],108:[function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case M.topCompositionStart:return I.compositionStart;case M.topCompositionEnd:return I.compositionEnd;case M.topCompositionUpdate:return I.compositionUpdate}}function a(e,t){return e===M.topKeyDown&&t.keyCode===E}function s(e,t){switch(e){case M.topKeyUp:return-1!==b.indexOf(t.keyCode);case M.topKeyDown:return t.keyCode!==E;case M.topKeyPress:case M.topMouseDown:case M.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var o,c;if(w?o=i(e):P?s(e,r)&&(o=I.compositionEnd):a(e,r)&&(o=I.compositionStart),!o)return null;R&&(P||o!==I.compositionStart?o===I.compositionEnd&&P&&(c=P.getData()):P=v.getPooled(t));var l=g.getPooled(o,n,r);if(c)l.data=c;else{var p=u(r);null!==p&&(l.data=p)}return d.accumulateTwoPhaseDispatches(l),l}function l(e,t){switch(e){case M.topCompositionEnd:return u(t);case M.topKeyPress:var n=t.which;return n!==T?null:(A=!0,O);case M.topTextInput:var r=t.data;return r===O&&A?null:r;default:return null}}function p(e,t){if(P){if(e===M.topCompositionEnd||s(e,t)){var n=P.getData();return v.release(P),P=null,n}return null}switch(e){case M.topPaste:return null;case M.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case M.topCompositionEnd:return R?null:t.data;default:return null}}function h(e,t,n,r){var o;if(o=x?l(e,r):p(e,r),!o)return null;var i=y.getPooled(I.beforeInput,n,r);return i.data=o,d.accumulateTwoPhaseDispatches(i),i}var f=e("./EventConstants"),d=e("./EventPropagators"),m=e("./ExecutionEnvironment"),v=e("./FallbackCompositionState"),g=e("./SyntheticCompositionEvent"),y=e("./SyntheticInputEvent"),_=e("./keyOf"),b=[9,13,27,32],E=229,w=m.canUseDOM&&"CompositionEvent"in window,C=null;m.canUseDOM&&"documentMode"in document&&(C=document.documentMode);var x=m.canUseDOM&&"TextEvent"in window&&!C&&!r(),R=m.canUseDOM&&(!w||C&&C>8&&11>=C),T=32,O=String.fromCharCode(T),M=f.topLevelTypes,I={beforeInput:{phasedRegistrationNames:{bubbled:_({onBeforeInput:null}),captured:_({onBeforeInputCapture:null})},dependencies:[M.topCompositionEnd,M.topKeyPress,M.topTextInput,M.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:_({onCompositionEnd:null}),captured:_({onCompositionEndCapture:null})},dependencies:[M.topBlur,M.topCompositionEnd,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:_({onCompositionStart:null}),captured:_({onCompositionStartCapture:null})},dependencies:[M.topBlur,M.topCompositionStart,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:_({onCompositionUpdate:null}),captured:_({onCompositionUpdateCapture:null})},dependencies:[M.topBlur,M.topCompositionUpdate,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]}},A=!1,P=null,D={eventTypes:I,extractEvents:function(e,t,n,r){return[c(e,t,n,r),h(e,t,n,r)]}};t.exports=D},{"./EventConstants":120,"./EventPropagators":125,"./ExecutionEnvironment":126,"./FallbackCompositionState":127,"./SyntheticCompositionEvent":199,"./SyntheticInputEvent":203,"./keyOf":247}],109:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[r(t,e)]=o[e]})});var a={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!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}},s={isUnitlessNumber:o,shorthandPropertyExpansions:a};t.exports=s},{}],110:[function(e,t,n){"use strict";var r=e("./CSSProperty"),o=e("./ExecutionEnvironment"),i=(e("./camelizeStyleName"),e("./dangerousStyleValue")),a=e("./hyphenateStyleName"),s=e("./memoizeStringOnly"),u=(e("./warning"),s(function(e){return a(e)})),c="cssFloat";o.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(c="styleFloat");var l={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=u(n)+":",t+=i(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=i(o,t[o]);if("float"===o&&(o=c),a)n[o]=a;else{var s=r.shorthandPropertyExpansions[o];if(s)for(var u in s)n[u]="";else n[o]=""}}}};t.exports=l},{"./CSSProperty":109,"./ExecutionEnvironment":126,"./camelizeStyleName":214,"./dangerousStyleValue":219,"./hyphenateStyleName":239,"./memoizeStringOnly":249,"./warning":260}],111:[function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("./invariant");i(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){a(e.length===t.length),this._callbacks=null,this._contexts=null;for(var n=0,r=e.length;r>n;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":132,"./PooledClass":133,"./invariant":241}],112:[function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function o(e){var t=C.getPooled(M.change,A,e);b.accumulateTwoPhaseDispatches(t),w.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue()}function a(e,t){I=e,A=t,I.attachEvent("onchange",o)}function s(){I&&(I.detachEvent("onchange",o),I=null,A=null)}function u(e,t,n){return e===O.topChange?n:void 0}function c(e,t,n){e===O.topFocus?(s(),a(t,n)):e===O.topBlur&&s()}function l(e,t){I=e,A=t,P=e.value,D=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(I,"value",N),I.attachEvent("onpropertychange",h)}function p(){I&&(delete I.value,I.detachEvent("onpropertychange",h),I=null,A=null,P=null,D=null)}function h(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==P&&(P=t,o(e))}}function f(e,t,n){return e===O.topInput?n:void 0}function d(e,t,n){e===O.topFocus?(p(),l(t,n)):e===O.topBlur&&p()}function m(e,t,n){return e!==O.topSelectionChange&&e!==O.topKeyUp&&e!==O.topKeyDown||!I||I.value===P?void 0:(P=I.value,A)}function v(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){return e===O.topClick?n:void 0}var y=e("./EventConstants"),_=e("./EventPluginHub"),b=e("./EventPropagators"),E=e("./ExecutionEnvironment"),w=e("./ReactUpdates"),C=e("./SyntheticEvent"),x=e("./isEventSupported"),R=e("./isTextInputElement"),T=e("./keyOf"),O=y.topLevelTypes,M={change:{phasedRegistrationNames:{bubbled:T({onChange:null}),captured:T({onChangeCapture:null})},dependencies:[O.topBlur,O.topChange,O.topClick,O.topFocus,O.topInput,O.topKeyDown,O.topKeyUp,O.topSelectionChange]}},I=null,A=null,P=null,D=null,S=!1;E.canUseDOM&&(S=x("change")&&(!("documentMode"in document)||document.documentMode>8));var L=!1;E.canUseDOM&&(L=x("input")&&(!("documentMode"in document)||document.documentMode>9));var N={get:function(){return D.get.call(this)},set:function(e){P=""+e,D.set.call(this,e)}},U={eventTypes:M,extractEvents:function(e,t,n,o){var i,a;if(r(t)?S?i=u:a=c:R(t)?L?i=f:(i=m,a=d):v(t)&&(i=g),i){var s=i(e,t,n);if(s){var l=C.getPooled(M.change,s,o);return b.accumulateTwoPhaseDispatches(l),l}}a&&a(e,t,n)}};t.exports=U},{"./EventConstants":120,"./EventPluginHub":122,"./EventPropagators":125,"./ExecutionEnvironment":126,"./ReactUpdates":193,"./SyntheticEvent":201,"./isEventSupported":242,"./isTextInputElement":244,"./keyOf":247}],113:[function(e,t,n){"use strict";var r=0,o={createReactRootIndex:function(){return r++}};t.exports=o},{}],114:[function(e,t,n){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var o=e("./Danger"),i=e("./ReactMultiChildUpdateTypes"),a=e("./setTextContent"),s=e("./invariant"),u={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:a,processUpdates:function(e,t){for(var n,u=null,c=null,l=0;l<e.length;l++)if(n=e[l],n.type===i.MOVE_EXISTING||n.type===i.REMOVE_NODE){var p=n.fromIndex,h=n.parentNode.childNodes[p],f=n.parentID;s(h),u=u||{},u[f]=u[f]||[],u[f][p]=h,c=c||[],c.push(h)}var d=o.dangerouslyRenderMarkup(t);if(c)for(var m=0;m<c.length;m++)c[m].parentNode.removeChild(c[m]);for(var v=0;v<e.length;v++)switch(n=e[v],n.type){case i.INSERT_MARKUP:r(n.parentNode,d[n.markupIndex],n.toIndex);break;case i.MOVE_EXISTING:r(n.parentNode,u[n.parentID][n.fromIndex],n.toIndex);break;case i.TEXT_CONTENT:a(n.parentNode,n.textContent);break;case i.REMOVE_NODE:}}};t.exports=u},{"./Danger":117,"./ReactMultiChildUpdateTypes":178,"./invariant":241,"./setTextContent":255}],115:[function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=e("./invariant"),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=e.Properties||{},n=e.DOMAttributeNames||{},a=e.DOMPropertyNames||{},u=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var c in t){o(!s.isStandardName.hasOwnProperty(c)),s.isStandardName[c]=!0;var l=c.toLowerCase();if(s.getPossibleStandardName[l]=c,n.hasOwnProperty(c)){var p=n[c];s.getPossibleStandardName[p]=c,s.getAttributeName[c]=p}else s.getAttributeName[c]=l;s.getPropertyName[c]=a.hasOwnProperty(c)?a[c]:c,u.hasOwnProperty(c)?s.getMutationMethod[c]=u[c]:s.getMutationMethod[c]=null;var h=t[c];s.mustUseAttribute[c]=r(h,i.MUST_USE_ATTRIBUTE),s.mustUseProperty[c]=r(h,i.MUST_USE_PROPERTY),s.hasSideEffects[c]=r(h,i.HAS_SIDE_EFFECTS),s.hasBooleanValue[c]=r(h,i.HAS_BOOLEAN_VALUE),s.hasNumericValue[c]=r(h,i.HAS_NUMERIC_VALUE),s.hasPositiveNumericValue[c]=r(h,i.HAS_POSITIVE_NUMERIC_VALUE),s.hasOverloadedBooleanValue[c]=r(h,i.HAS_OVERLOADED_BOOLEAN_VALUE),o(!s.mustUseAttribute[c]||!s.mustUseProperty[c]),o(s.mustUseProperty[c]||!s.hasSideEffects[c]),o(!!s.hasBooleanValue[c]+!!s.hasNumericValue[c]+!!s.hasOverloadedBooleanValue[c]<=1)}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=a[e];return r||(a[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:i};t.exports=s},{"./invariant":241}],116:[function(e,t,n){"use strict";function r(e,t){return null==t||o.hasBooleanValue[e]&&!t||o.hasNumericValue[e]&&isNaN(t)||o.hasPositiveNumericValue[e]&&1>t||o.hasOverloadedBooleanValue[e]&&t===!1}var o=e("./DOMProperty"),i=e("./quoteAttributeValueForBrowser"),a=(e("./warning"),{createMarkupForID:function(e){return o.ID_ATTRIBUTE_NAME+"="+i(e)},createMarkupForProperty:function(e,t){if(o.isStandardName.hasOwnProperty(e)&&o.isStandardName[e]){if(r(e,t))return"";var n=o.getAttributeName[e];return o.hasBooleanValue[e]||o.hasOverloadedBooleanValue[e]&&t===!0?n:n+"="+i(t)}return o.isCustomAttribute(e)?null==t?"":e+"="+i(t):null},setValueForProperty:function(e,t,n){if(o.isStandardName.hasOwnProperty(t)&&o.isStandardName[t]){var i=o.getMutationMethod[t];if(i)i(e,n);else if(r(t,n))this.deleteValueForProperty(e,t);else if(o.mustUseAttribute[t])e.setAttribute(o.getAttributeName[t],""+n);else{var a=o.getPropertyName[t];o.hasSideEffects[t]&&""+e[a]==""+n||(e[a]=n)}}else o.isCustomAttribute(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){if(o.isStandardName.hasOwnProperty(t)&&o.isStandardName[t]){var n=o.getMutationMethod[t];if(n)n(e,void 0);else if(o.mustUseAttribute[t])e.removeAttribute(o.getAttributeName[t]);else{var r=o.getPropertyName[t],i=o.getDefaultValueForProperty(e.nodeName,r);o.hasSideEffects[t]&&""+e[r]===i||(e[r]=i)}}else o.isCustomAttribute(t)&&e.removeAttribute(t)}});t.exports=a},{"./DOMProperty":115,"./quoteAttributeValueForBrowser":253,"./warning":260}],117:[function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=e("./ExecutionEnvironment"),i=e("./createNodesFromMarkup"),a=e("./emptyFunction"),s=e("./getMarkupWrap"),u=e("./invariant"),c=/^(<[^ \/>]+)/,l="data-danger-index",p={dangerouslyRenderMarkup:function(e){u(o.canUseDOM);for(var t,n={},p=0;p<e.length;p++)u(e[p]),t=r(e[p]),t=s(t)?t:"*",n[t]=n[t]||[],n[t][p]=e[p];var h=[],f=0;for(t in n)if(n.hasOwnProperty(t)){var d,m=n[t];for(d in m)if(m.hasOwnProperty(d)){var v=m[d];m[d]=v.replace(c,"$1 "+l+'="'+d+'" ')}for(var g=i(m.join(""),a),y=0;y<g.length;++y){var _=g[y];_.hasAttribute&&_.hasAttribute(l)&&(d=+_.getAttribute(l),_.removeAttribute(l),u(!h.hasOwnProperty(d)),h[d]=_,f+=1)}}return u(f===h.length),u(h.length===e.length),h},dangerouslyReplaceNodeWithMarkup:function(e,t){u(o.canUseDOM),u(t),u("html"!==e.tagName.toLowerCase());var n=i(t,a)[0];e.parentNode.replaceChild(n,e)}};t.exports=p},{"./ExecutionEnvironment":126,"./createNodesFromMarkup":218,"./emptyFunction":220,"./getMarkupWrap":233,"./invariant":241}],118:[function(e,t,n){"use strict";var r=e("./keyOf"),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null}),r({AnalyticsEventPlugin:null}),r({MobileSafariClickEventPlugin:null})];t.exports=o},{"./keyOf":247}],119:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./EventPropagators"),i=e("./SyntheticMouseEvent"),a=e("./ReactMount"),s=e("./keyOf"),u=r.topLevelTypes,c=a.getFirstReactDOM,l={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},p=[null,null],h={eventTypes:l,extractEvents:function(e,t,n,r){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var s;if(t.window===t)s=t;else{var h=t.ownerDocument;s=h?h.defaultView||h.parentWindow:window}var f,d;if(e===u.topMouseOut?(f=t,d=c(r.relatedTarget||r.toElement)||s):(f=s,d=t),f===d)return null;var m=f?a.getID(f):"",v=d?a.getID(d):"",g=i.getPooled(l.mouseLeave,m,r);g.type="mouseleave",g.target=f,g.relatedTarget=d;var y=i.getPooled(l.mouseEnter,v,r);return y.type="mouseenter",y.target=d,y.relatedTarget=f,o.accumulateEnterLeaveDispatches(g,y,m,v),p[0]=g,p[1]=y,p}};t.exports=h},{"./EventConstants":120,"./EventPropagators":125,"./ReactMount":176,"./SyntheticMouseEvent":205,"./keyOf":247}],120:[function(e,t,n){"use strict";var r=e("./keyMirror"),o=r({bubbled:null,captured:null}),i=r({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),a={topLevelTypes:i,PropagationPhases:o};t.exports=a},{"./keyMirror":246}],121:[function(e,t,n){var r=e("./emptyFunction"),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},{"./emptyFunction":220}],122:[function(e,t,n){"use strict";var r=e("./EventPluginRegistry"),o=e("./EventPluginUtils"),i=e("./accumulateInto"),a=e("./forEachAccumulated"),s=e("./invariant"),u={},c=null,l=function(e){if(e){var t=o.executeDispatch,n=r.getPluginModuleForEvent(e);n&&n.executeDispatch&&(t=n.executeDispatch),o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e)}},p=null,h={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(e){p=e},getInstanceHandle:function(){return p},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){s(!n||"function"==typeof n);var r=u[t]||(u[t]={});r[e]=n},getListener:function(e,t){var n=u[t];return n&&n[e]},deleteListener:function(e,t){var n=u[t];n&&delete n[e]},deleteAllListeners:function(e){for(var t in u)delete u[t][e]},extractEvents:function(e,t,n,o){for(var a,s=r.plugins,u=0,c=s.length;c>u;u++){var l=s[u];if(l){var p=l.extractEvents(e,t,n,o);p&&(a=i(a,p))}}return a},enqueueEvents:function(e){e&&(c=i(c,e))},processEventQueue:function(){var e=c;c=null,a(e,l),s(!c)},__purge:function(){u={}},__getListenerBank:function(){return u}};t.exports=h},{"./EventPluginRegistry":123,"./EventPluginUtils":124,"./accumulateInto":211,"./forEachAccumulated":226,"./invariant":241}],123:[function(e,t,n){"use strict";function r(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(a(n>-1),!c.plugins[n]){a(t.extractEvents),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(o(r[i],t,i))}}}function o(e,t,n){a(!c.eventNameDispatchConfigs.hasOwnProperty(n)),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return e.registrationName?(i(e.registrationName,t,n),!0):!1}function i(e,t,n){a(!c.registrationNameModules[e]),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=e("./invariant"),s=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){a(!s),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(a(!u[n]),u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=c},{"./invariant":241}],124:[function(e,t,n){"use strict";function r(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function o(e){return e===v.topMouseMove||e===v.topTouchMove}function i(e){return e===v.topMouseDown||e===v.topTouchStart}function a(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)t(e,n[o],r[o]);else n&&t(e,n,r)}function s(e,t,n){e.currentTarget=m.Mount.getNode(n);var r=t(e,n);return e.currentTarget=null,r}function u(e,t){a(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function c(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function l(e){var t=c(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function p(e){var t=e._dispatchListeners,n=e._dispatchIDs;d(!Array.isArray(t));var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function h(e){return!!e._dispatchListeners}var f=e("./EventConstants"),d=e("./invariant"),m={Mount:null,injectMount:function(e){m.Mount=e}},v=f.topLevelTypes,g={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:p,executeDispatch:s,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:l,hasDispatches:h,injection:m,useTouchEvents:!1};t.exports=g},{"./EventConstants":120,"./invariant":241}],125:[function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return v(e,r)}function o(e,t,n){var o=t?m.bubbled:m.captured,i=r(e,n,o);i&&(n._dispatchListeners=f(n._dispatchListeners,i),n._dispatchIDs=f(n._dispatchIDs,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function a(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=v(e,r);o&&(n._dispatchListeners=f(n._dispatchListeners,o),n._dispatchIDs=f(n._dispatchIDs,e))}}function s(e){e&&e.dispatchConfig.registrationName&&a(e.dispatchMarker,null,e)}function u(e){d(e,i)}function c(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,a,e,t)}function l(e){d(e,s)}var p=e("./EventConstants"),h=e("./EventPluginHub"),f=e("./accumulateInto"),d=e("./forEachAccumulated"),m=p.PropagationPhases,v=h.getListener,g={accumulateTwoPhaseDispatches:u,accumulateDirectDispatches:l,accumulateEnterLeaveDispatches:c};t.exports=g},{"./EventConstants":120,"./EventPluginHub":122,"./accumulateInto":211,"./forEachAccumulated":226}],126:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],127:[function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("./getTextContentAccessor");i(r.prototype,{getText:function(){return"value"in this._root?this._root.value:this._root[a()]},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;r>e&&n[e]===o[e];e++);var a=r-e;for(t=1;a>=t&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":132,"./PooledClass":133,"./getTextContentAccessor":236}],128:[function(e,t,n){"use strict";var r,o=e("./DOMProperty"),i=e("./ExecutionEnvironment"),a=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,c=o.injection.HAS_SIDE_EFFECTS,l=o.injection.HAS_NUMERIC_VALUE,p=o.injection.HAS_POSITIVE_NUMERIC_VALUE,h=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var f=document.implementation;r=f&&f.hasFeature&&f.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");
}var d={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,cellPadding:null,cellSpacing:null,charSet:a,checked:s|u,classID:a,className:r?a:s,cols:a|p,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,defer:u,dir:null,disabled:a|u,download:h,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,multiple:s|u,muted:s|u,name:null,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,role:a,rows:a|p,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|p,sizes:a,span:p,spellCheck:null,src:null,srcDoc:s,srcSet:a,start:l,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|c,width:a,wmode:a,autoCapitalize:null,autoCorrect:null,itemProp:a,itemScope:a|u,itemType:a,itemID:a,itemRef:a,property:null,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=d},{"./DOMProperty":115,"./ExecutionEnvironment":126}],129:[function(e,t,n){"use strict";function r(e){c(null==e.props.checkedLink||null==e.props.valueLink)}function o(e){r(e),c(null==e.props.value&&null==e.props.onChange)}function i(e){r(e),c(null==e.props.checked&&null==e.props.onChange)}function a(e){this.props.valueLink.requestChange(e.target.value)}function s(e){this.props.checkedLink.requestChange(e.target.checked)}var u=e("./ReactPropTypes"),c=e("./invariant"),l={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={Mixin:{propTypes:{value:function(e,t,n){return!e[t]||l[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.func}},getValue:function(e){return e.props.valueLink?(o(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(i(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(o(e),a):e.props.checkedLink?(i(e),s):e.props.onChange}};t.exports=p},{"./ReactPropTypes":184,"./invariant":241}],130:[function(e,t,n){"use strict";function r(e){e.remove()}var o=e("./ReactBrowserEventEmitter"),i=e("./accumulateInto"),a=e("./forEachAccumulated"),s=e("./invariant"),u={trapBubbledEvent:function(e,t){s(this.isMounted());var n=this.getDOMNode();s(n);var r=o.trapBubbledEvent(e,t,n);this._localEventListeners=i(this._localEventListeners,r)},componentWillUnmount:function(){this._localEventListeners&&a(this._localEventListeners,r)}};t.exports=u},{"./ReactBrowserEventEmitter":136,"./accumulateInto":211,"./forEachAccumulated":226,"./invariant":241}],131:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./emptyFunction"),i=r.topLevelTypes,a={eventTypes:null,extractEvents:function(e,t,n,r){if(e===i.topTouchStart){var a=r.target;a&&!a.onclick&&(a.onclick=o)}}};t.exports=a},{"./EventConstants":120,"./emptyFunction":220}],132:[function(e,t,n){"use strict";function r(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;o<arguments.length;o++){var i=arguments[o];if(null!=i){var a=Object(i);for(var s in a)r.call(a,s)&&(n[s]=a[s])}}return n}t.exports=r},{}],133:[function(e,t,n){"use strict";var r=e("./invariant"),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},u=function(e){var t=this;r(e instanceof t),e.destructor&&e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,l=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=c),n.release=u,n},h={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fiveArgumentPooler:s};t.exports=h},{"./invariant":241}],134:[function(e,t,n){"use strict";var r=e("./EventPluginUtils"),o=e("./ReactChildren"),i=e("./ReactComponent"),a=e("./ReactClass"),s=e("./ReactContext"),u=e("./ReactCurrentOwner"),c=e("./ReactElement"),l=(e("./ReactElementValidator"),e("./ReactDOM")),p=e("./ReactDOMTextComponent"),h=e("./ReactDefaultInjection"),f=e("./ReactInstanceHandles"),d=e("./ReactMount"),m=e("./ReactPerf"),v=e("./ReactPropTypes"),g=e("./ReactReconciler"),y=e("./ReactServerRendering"),_=e("./Object.assign"),b=e("./findDOMNode"),E=e("./onlyChild");h.inject();var w=c.createElement,C=c.createFactory,x=c.cloneElement,R=m.measure("React","render",d.render),T={Children:{map:o.map,forEach:o.forEach,count:o.count,only:E},Component:i,DOM:l,PropTypes:v,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:a.createClass,createElement:w,cloneElement:x,createFactory:C,createMixin:function(e){return e},constructAndRenderComponent:d.constructAndRenderComponent,constructAndRenderComponentByID:d.constructAndRenderComponentByID,findDOMNode:b,render:R,renderToString:y.renderToString,renderToStaticMarkup:y.renderToStaticMarkup,unmountComponentAtNode:d.unmountComponentAtNode,isValidElement:c.isValidElement,withContext:s.withContext,__spread:_};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:u,InstanceHandles:f,Mount:d,Reconciler:g,TextComponent:p});T.version="0.13.3",t.exports=T},{"./EventPluginUtils":124,"./ExecutionEnvironment":126,"./Object.assign":132,"./ReactChildren":138,"./ReactClass":139,"./ReactComponent":140,"./ReactContext":144,"./ReactCurrentOwner":145,"./ReactDOM":146,"./ReactDOMTextComponent":157,"./ReactDefaultInjection":160,"./ReactElement":163,"./ReactElementValidator":164,"./ReactInstanceHandles":172,"./ReactMount":176,"./ReactPerf":181,"./ReactPropTypes":184,"./ReactReconciler":187,"./ReactServerRendering":190,"./findDOMNode":223,"./onlyChild":250}],135:[function(e,t,n){"use strict";var r=e("./findDOMNode"),o={getDOMNode:function(){return r(this)}};t.exports=o},{"./findDOMNode":223}],136:[function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,p[e[m]]={}),p[e[m]]}var o=e("./EventConstants"),i=e("./EventPluginHub"),a=e("./EventPluginRegistry"),s=e("./ReactEventEmitterMixin"),u=e("./ViewportMetrics"),c=e("./Object.assign"),l=e("./isEventSupported"),p={},h=!1,f=0,d={topBlur:"blur",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",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=c({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=r(n),s=a.registrationNameDependencies[e],u=o.topLevelTypes,c=0,p=s.length;p>c;c++){var h=s[c];i.hasOwnProperty(h)&&i[h]||(h===u.topWheel?l("wheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):l("mousewheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):h===u.topScroll?l("scroll",!0)?v.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):h===u.topFocus||h===u.topBlur?(l("focus",!0)?(v.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):l("focusin")&&(v.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),i[u.topBlur]=!0,i[u.topFocus]=!0):d.hasOwnProperty(h)&&v.ReactEventListener.trapBubbledEvent(h,d[h],n),i[h]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!h){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),h=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});t.exports=v},{"./EventConstants":120,"./EventPluginHub":122,"./EventPluginRegistry":123,"./Object.assign":132,"./ReactEventEmitterMixin":167,"./ViewportMetrics":210,"./isEventSupported":242}],137:[function(e,t,n){"use strict";var r=e("./ReactReconciler"),o=e("./flattenChildren"),i=e("./instantiateReactComponent"),a=e("./shouldUpdateReactComponent"),s={instantiateChildren:function(e,t,n){var r=o(e);for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=i(s,null);r[a]=u}return r},updateChildren:function(e,t,n,s){var u=o(t);if(!u&&!e)return null;var c;for(c in u)if(u.hasOwnProperty(c)){var l=e&&e[c],p=l&&l._currentElement,h=u[c];if(a(p,h))r.receiveComponent(l,h,n,s),u[c]=l;else{l&&r.unmountComponent(l,c);var f=i(h,null);u[c]=f}}for(c in e)!e.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||r.unmountComponent(e[c]);return u},unmountChildren:function(e){for(var t in e){var n=e[t];r.unmountComponent(n)}}};t.exports=s},{"./ReactReconciler":187,"./flattenChildren":224,"./instantiateReactComponent":240,"./shouldUpdateReactComponent":257}],138:[function(e,t,n){"use strict";function r(e,t){this.forEachFunction=e,this.forEachContext=t}function o(e,t,n,r){var o=e;o.forEachFunction.call(o.forEachContext,t,r)}function i(e,t,n){if(null==e)return e;var i=r.getPooled(t,n);f(e,o,i),r.release(i)}function a(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function s(e,t,n,r){var o=e,i=o.mapResult,a=!i.hasOwnProperty(n);if(a){var s=o.mapFunction.call(o.mapContext,t,r);i[n]=s}}function u(e,t,n){if(null==e)return e;var r={},o=a.getPooled(r,t,n);return f(e,s,o),a.release(o),h.create(r)}function c(e,t,n,r){return null}function l(e,t){return f(e,c,null)}var p=e("./PooledClass"),h=e("./ReactFragment"),f=e("./traverseAllChildren"),d=(e("./warning"),p.twoArgumentPooler),m=p.threeArgumentPooler;p.addPoolingTo(r,d),p.addPoolingTo(a,m);var v={forEach:i,map:u,count:l};t.exports=v},{"./PooledClass":133,"./ReactFragment":169,"./traverseAllChildren":259,"./warning":260}],139:[function(e,t,n){"use strict";function r(e,t){var n=x.hasOwnProperty(t)?x[t]:null;T.hasOwnProperty(t)&&y(n===w.OVERRIDE_BASE),e.hasOwnProperty(t)&&y(n===w.DEFINE_MANY||n===w.DEFINE_MANY_MERGED)}function o(e,t){if(t){y("function"!=typeof t),y(!h.isValidElement(t));var n=e.prototype;t.hasOwnProperty(E)&&R.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==E){var i=t[o];if(r(n,o),R.hasOwnProperty(o))R[o](e,i);else{var a=x.hasOwnProperty(o),c=n.hasOwnProperty(o),l=i&&i.__reactDontBind,p="function"==typeof i,f=p&&!a&&!c&&!l;if(f)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=i,n[o]=i;else if(c){var d=x[o];y(a&&(d===w.DEFINE_MANY_MERGED||d===w.DEFINE_MANY)),d===w.DEFINE_MANY_MERGED?n[o]=s(n[o],i):d===w.DEFINE_MANY&&(n[o]=u(n[o],i))}else n[o]=i}}}}function i(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in R;y(!o);var i=n in e;y(!i),e[n]=r}}}function a(e,t){y(e&&t&&"object"==typeof e&&"object"==typeof t);for(var n in t)t.hasOwnProperty(n)&&(y(void 0===e[n]),e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function u(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function c(e,t){var n=t.bind(e);return n}function l(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=c(e,f.guard(n,e.constructor.displayName+"."+t))}}var p=e("./ReactComponent"),h=(e("./ReactCurrentOwner"),e("./ReactElement")),f=e("./ReactErrorUtils"),d=e("./ReactInstanceMap"),m=e("./ReactLifeCycle"),v=(e("./ReactPropTypeLocations"),e("./ReactPropTypeLocationNames"),e("./ReactUpdateQueue")),g=e("./Object.assign"),y=e("./invariant"),_=e("./keyMirror"),b=e("./keyOf"),E=(e("./warning"),b({mixins:null})),w=_({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),C=[],x={mixins:w.DEFINE_MANY,statics:w.DEFINE_MANY,propTypes:w.DEFINE_MANY,contextTypes:w.DEFINE_MANY,childContextTypes:w.DEFINE_MANY,getDefaultProps:w.DEFINE_MANY_MERGED,getInitialState:w.DEFINE_MANY_MERGED,getChildContext:w.DEFINE_MANY_MERGED,render:w.DEFINE_ONCE,componentWillMount:w.DEFINE_MANY,componentDidMount:w.DEFINE_MANY,componentWillReceiveProps:w.DEFINE_MANY,shouldComponentUpdate:w.DEFINE_ONCE,componentWillUpdate:w.DEFINE_MANY,componentDidUpdate:w.DEFINE_MANY,componentWillUnmount:w.DEFINE_MANY,updateComponent:w.OVERRIDE_BASE},R={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)o(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=g({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=g({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=s(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=g({},e.propTypes,t)},statics:function(e,t){i(e,t)}},T={replaceState:function(e,t){v.enqueueReplaceState(this,e),t&&v.enqueueCallback(this,t)},isMounted:function(){var e=d.get(this);return e&&e!==m.currentlyMountingInstance},setProps:function(e,t){v.enqueueSetProps(this,e),t&&v.enqueueCallback(this,t)},replaceProps:function(e,t){v.enqueueReplaceProps(this,e),t&&v.enqueueCallback(this,t)}},O=function(){};g(O.prototype,p.prototype,T);var M={createClass:function(e){var t=function(e,t){this.__reactAutoBindMap&&l(this),this.props=e,this.context=t,this.state=null;var n=this.getInitialState?this.getInitialState():null;y("object"==typeof n&&!Array.isArray(n)),this.state=n};t.prototype=new O,t.prototype.constructor=t,C.forEach(o.bind(null,t)),o(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),y(t.prototype.render);for(var n in x)t.prototype[n]||(t.prototype[n]=null);return t.type=t,t},injection:{injectMixin:function(e){C.push(e)}}};t.exports=M},{"./Object.assign":132,"./ReactComponent":140,"./ReactCurrentOwner":145,"./ReactElement":163,"./ReactErrorUtils":166,"./ReactInstanceMap":173,"./ReactLifeCycle":174,"./ReactPropTypeLocationNames":182,"./ReactPropTypeLocations":183,"./ReactUpdateQueue":192,"./invariant":241,"./keyMirror":246,"./keyOf":247,"./warning":260}],140:[function(e,t,n){"use strict";function r(e,t){this.props=e,this.context=t}var o=e("./ReactUpdateQueue"),i=e("./invariant");e("./warning");r.prototype.setState=function(e,t){i("object"==typeof e||"function"==typeof e||null==e),o.enqueueSetState(this,e),t&&o.enqueueCallback(this,t)},r.prototype.forceUpdate=function(e){o.enqueueForceUpdate(this),e&&o.enqueueCallback(this,e)};t.exports=r},{"./ReactUpdateQueue":192,"./invariant":241,"./warning":260}],141:[function(e,t,n){"use strict";var r=e("./ReactDOMIDOperations"),o=e("./ReactMount"),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};t.exports=i},{"./ReactDOMIDOperations":150,"./ReactMount":176}],142:[function(e,t,n){"use strict";var r=e("./invariant"),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){r(!o),i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};t.exports=i},{"./invariant":241}],143:[function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var o=e("./ReactComponentEnvironment"),i=e("./ReactContext"),a=e("./ReactCurrentOwner"),s=e("./ReactElement"),u=(e("./ReactElementValidator"),e("./ReactInstanceMap")),c=e("./ReactLifeCycle"),l=e("./ReactNativeComponent"),p=e("./ReactPerf"),h=e("./ReactPropTypeLocations"),f=(e("./ReactPropTypeLocationNames"),e("./ReactReconciler")),d=e("./ReactUpdates"),m=e("./Object.assign"),v=e("./emptyObject"),g=e("./invariant"),y=e("./shouldUpdateReactComponent"),_=(e("./warning"),1),b={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=_++,this._rootNodeID=e;var r=this._processProps(this._currentElement.props),o=this._processContext(this._currentElement._context),i=l.getComponentClassForElement(this._currentElement),a=new i(r,o);a.props=r,a.context=o,a.refs=v,this._instance=a,u.set(a,this);var s=a.state;void 0===s&&(a.state=s=null),g("object"==typeof s&&!Array.isArray(s)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var p,h,d=c.currentlyMountingInstance;c.currentlyMountingInstance=this;try{a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),p=this._getValidatedChildContext(n),h=this._renderValidatedComponent(p)}finally{c.currentlyMountingInstance=d}this._renderedComponent=this._instantiateReactComponent(h,this._currentElement.type);var m=f.mountComponent(this._renderedComponent,e,t,this._mergeChildContext(n,p));return a.componentDidMount&&t.getReactMountReady().enqueue(a.componentDidMount,a),m},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=c.currentlyUnmountingInstance;c.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{c.currentlyUnmountingInstance=t}}f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,u.remove(e)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=s.cloneAndReplaceProps(n,m({},n.props,e)),d.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return v;var n=this._currentElement.type.contextTypes;if(!n)return v;t={};for(var r in n)t[r]=e[r];return t},_processContext:function(e){var t=this._maskContext(e);return t},_getValidatedChildContext:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();if(n){g("object"==typeof t.constructor.childContextTypes);for(var r in n)g(r in t.constructor.childContextTypes);return n}return null},_mergeChildContext:function(e,t){return t?m({},e,t):e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var i in e)if(e.hasOwnProperty(i)){var a;try{g("function"==typeof e[i]),a=e[i](t,i,o,n)}catch(s){a=s}if(a instanceof Error){r(this);n===h.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},_warnIfContextsDiffer:function(e,t){e=this._maskContext(e),t=this._maskContext(t);for(var n=Object.keys(t).sort(),r=(this.getName()||"ReactCompositeComponent",0);r<n.length;r++){n[r]}},updateComponent:function(e,t,n,r,o){var i=this._instance,a=i.context,s=i.props;t!==n&&(a=this._processContext(n._context),s=this._processProps(n.props),i.componentWillReceiveProps&&i.componentWillReceiveProps(s,a));var u=this._processPendingState(s,a),c=this._pendingForceUpdate||!i.shouldComponentUpdate||i.shouldComponentUpdate(s,u,a);c?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,s,u,a,e,o)):(this._currentElement=n,this._context=o,i.props=s,i.state=u,i.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=m({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];m(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a=this._instance,s=a.props,u=a.state,c=a.context;a.componentWillUpdate&&a.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,a.props=t,a.state=n,a.context=r,this._updateRenderedComponent(o,i),a.componentDidUpdate&&o.getReactMountReady().enqueue(a.componentDidUpdate.bind(a,s,u,c),a)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._getValidatedChildContext(),i=this._renderValidatedComponent(o);if(y(r,i))f.receiveComponent(n,i,e,this._mergeChildContext(t,o));else{var a=this._rootNodeID,s=n._rootNodeID;f.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(i,this._currentElement.type);var u=f.mountComponent(this._renderedComponent,a,e,this._mergeChildContext(t,o));this._replaceNodeWithMarkupByID(s,u)}},_replaceNodeWithMarkupByID:function(e,t){o.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(e){var t,n=i.current;i.current=this._mergeChildContext(this._currentElement._context,e),a.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{i.current=n,a.current=null}return g(null===t||t===!1||s.isValidElement(t)),t},attachRef:function(e,t){var n=this.getPublicInstance(),r=n.refs===v?n.refs={}:n.refs;r[e]=t.getPublicInstance()},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};p.measureMethods(b,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var E={Mixin:b};t.exports=E},{"./Object.assign":132,"./ReactComponentEnvironment":142,"./ReactContext":144,"./ReactCurrentOwner":145,"./ReactElement":163,"./ReactElementValidator":164,"./ReactInstanceMap":173,"./ReactLifeCycle":174,"./ReactNativeComponent":179,"./ReactPerf":181,"./ReactPropTypeLocationNames":182,"./ReactPropTypeLocations":183,"./ReactReconciler":187,"./ReactUpdates":193,"./emptyObject":221,"./invariant":241,"./shouldUpdateReactComponent":257,"./warning":260}],144:[function(e,t,n){"use strict";var r=e("./Object.assign"),o=e("./emptyObject"),i=(e("./warning"),{current:o,withContext:function(e,t){var n,o=i.current;i.current=r({},o,e);try{n=t()}finally{i.current=o}return n}});t.exports=i},{"./Object.assign":132,"./emptyObject":221,"./warning":260}],145:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],146:[function(e,t,n){"use strict";function r(e){return o.createFactory(e)}var o=e("./ReactElement"),i=(e("./ReactElementValidator"),e("./mapObject")),a=i({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",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",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"},r);t.exports=a},{"./ReactElement":163,"./ReactElementValidator":164,"./mapObject":248}],147:[function(e,t,n){"use strict";var r=e("./AutoFocusMixin"),o=e("./ReactBrowserComponentMixin"),i=e("./ReactClass"),a=e("./ReactElement"),s=e("./keyMirror"),u=a.createFactory("button"),c=s({onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0}),l=i.createClass({displayName:"ReactDOMButton",tagName:"BUTTON",mixins:[r,o],render:function(){var e={};for(var t in this.props)!this.props.hasOwnProperty(t)||this.props.disabled&&c[t]||(e[t]=this.props[t]);return u(e,this.props.children)}});t.exports=l},{"./AutoFocusMixin":107,"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactElement":163,"./keyMirror":246}],148:[function(e,t,n){"use strict";function r(e){e&&(null!=e.dangerouslySetInnerHTML&&(g(null==e.children),g("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML)),g(null==e.style||"object"==typeof e.style))}function o(e,t,n,r){var o=h.findReactContainerForID(e);if(o){var i=o.nodeType===x?o.ownerDocument:o;b(t,i)}r.getPutListenerQueue().enqueuePutListener(e,t,n)}function i(e){I.call(M,e)||(g(O.test(e)),M[e]=!0)}function a(e){i(e),this._tag=e,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var s=e("./CSSPropertyOperations"),u=e("./DOMProperty"),c=e("./DOMPropertyOperations"),l=e("./ReactBrowserEventEmitter"),p=e("./ReactComponentBrowserEnvironment"),h=e("./ReactMount"),f=e("./ReactMultiChild"),d=e("./ReactPerf"),m=e("./Object.assign"),v=e("./escapeTextContentForBrowser"),g=e("./invariant"),y=(e("./isEventSupported"),e("./keyOf")),_=(e("./warning"),l.deleteListener),b=l.listenTo,E=l.registrationNameModules,w={string:!0,number:!0},C=y({style:null}),x=1,R=null,T={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},O=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,M={},I={}.hasOwnProperty;a.displayName="ReactDOMComponent",a.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e,r(this._currentElement.props);var o=T[this._tag]?"":"</"+this._tag+">";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t,n)+o},_createOpenTagMarkupAndPutListeners:function(e){var t=this._currentElement.props,n="<"+this._tag;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(E.hasOwnProperty(r))o(this._rootNodeID,r,i,e);else{r===C&&(i&&(i=this._previousStyleCopy=m({},t.style)),i=s.createMarkupForStyles(i));var a=c.createMarkupForProperty(r,i);a&&(n+=" "+a)}}if(e.renderToStaticMarkup)return n+">";var u=c.createMarkupForID(this._rootNodeID);return n+" "+u+">"},_createContentMarkup:function(e,t){var n="";("listing"===this._tag||"pre"===this._tag||"textarea"===this._tag)&&(n="\n");var r=this._currentElement.props,o=r.dangerouslySetInnerHTML;if(null!=o){if(null!=o.__html)return n+o.__html}else{var i=w[typeof r.children]?r.children:null,a=null!=i?null:r.children;if(null!=i)return n+v(i);if(null!=a){var s=this.mountChildren(a,e,t);return n+s.join("")}}return n},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,o){r(this._currentElement.props),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e,o)},_updateDOMProperties:function(e,t){var n,r,i,a=this._currentElement.props;for(n in e)if(!a.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===C){var s=this._previousStyleCopy;for(r in s)s.hasOwnProperty(r)&&(i=i||{},i[r]="");this._previousStyleCopy=null}else E.hasOwnProperty(n)?_(this._rootNodeID,n):(u.isStandardName[n]||u.isCustomAttribute(n))&&R.deletePropertyByID(this._rootNodeID,n);for(n in a){var c=a[n],l=n===C?this._previousStyleCopy:e[n];if(a.hasOwnProperty(n)&&c!==l)if(n===C)if(c?c=this._previousStyleCopy=m({},c):this._previousStyleCopy=null,l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||(i=i||{},i[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&(i=i||{},i[r]=c[r])}else i=c;else E.hasOwnProperty(n)?o(this._rootNodeID,n,c,t):(u.isStandardName[n]||u.isCustomAttribute(n))&&R.updatePropertyByID(this._rootNodeID,n,c)}i&&R.updateStylesByID(this._rootNodeID,i)},_updateDOMChildren:function(e,t,n){var r=this._currentElement.props,o=w[typeof e.children]?e.children:null,i=w[typeof r.children]?r.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=r.dangerouslySetInnerHTML&&r.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=i?null:r.children,l=null!=o||null!=a,p=null!=i||null!=s;
null!=u&&null==c?this.updateChildren(null,t,n):l&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&R.updateInnerHTMLByID(this._rootNodeID,s):null!=c&&this.updateChildren(c,t,n)},unmountComponent:function(){this.unmountChildren(),l.deleteAllListeners(this._rootNodeID),p.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},d.measureMethods(a,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),m(a.prototype,a.Mixin,f.Mixin),a.injection={injectIDOperations:function(e){a.BackendIDOperations=R=e}},t.exports=a},{"./CSSPropertyOperations":110,"./DOMProperty":115,"./DOMPropertyOperations":116,"./Object.assign":132,"./ReactBrowserEventEmitter":136,"./ReactComponentBrowserEnvironment":141,"./ReactMount":176,"./ReactMultiChild":177,"./ReactPerf":181,"./escapeTextContentForBrowser":222,"./invariant":241,"./isEventSupported":242,"./keyOf":247,"./warning":260}],149:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./LocalEventTrapMixin"),i=e("./ReactBrowserComponentMixin"),a=e("./ReactClass"),s=e("./ReactElement"),u=s.createFactory("form"),c=a.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(r.topLevelTypes.topSubmit,"submit")}});t.exports=c},{"./EventConstants":120,"./LocalEventTrapMixin":130,"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactElement":163}],150:[function(e,t,n){"use strict";var r=e("./CSSPropertyOperations"),o=e("./DOMChildrenOperations"),i=e("./DOMPropertyOperations"),a=e("./ReactMount"),s=e("./ReactPerf"),u=e("./invariant"),c=e("./setInnerHTML"),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},p={updatePropertyByID:function(e,t,n){var r=a.getNode(e);u(!l.hasOwnProperty(t)),null!=n?i.setValueForProperty(r,t,n):i.deleteValueForProperty(r,t)},deletePropertyByID:function(e,t,n){var r=a.getNode(e);u(!l.hasOwnProperty(t)),i.deleteValueForProperty(r,t,n)},updateStylesByID:function(e,t){var n=a.getNode(e);r.setValueForStyles(n,t)},updateInnerHTMLByID:function(e,t){var n=a.getNode(e);c(n,t)},updateTextContentByID:function(e,t){var n=a.getNode(e);o.updateTextContent(n,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=a.getNode(e);o.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=a.getNode(e[n].parentID);o.processUpdates(e,t)}};s.measureMethods(p,"ReactDOMIDOperations",{updatePropertyByID:"updatePropertyByID",deletePropertyByID:"deletePropertyByID",updateStylesByID:"updateStylesByID",updateInnerHTMLByID:"updateInnerHTMLByID",updateTextContentByID:"updateTextContentByID",dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=p},{"./CSSPropertyOperations":110,"./DOMChildrenOperations":114,"./DOMPropertyOperations":116,"./ReactMount":176,"./ReactPerf":181,"./invariant":241,"./setInnerHTML":254}],151:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./LocalEventTrapMixin"),i=e("./ReactBrowserComponentMixin"),a=e("./ReactClass"),s=e("./ReactElement"),u=s.createFactory("iframe"),c=a.createClass({displayName:"ReactDOMIframe",tagName:"IFRAME",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load")}});t.exports=c},{"./EventConstants":120,"./LocalEventTrapMixin":130,"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactElement":163}],152:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./LocalEventTrapMixin"),i=e("./ReactBrowserComponentMixin"),a=e("./ReactClass"),s=e("./ReactElement"),u=s.createFactory("img"),c=a.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(r.topLevelTypes.topError,"error")}});t.exports=c},{"./EventConstants":120,"./LocalEventTrapMixin":130,"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactElement":163}],153:[function(e,t,n){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=e("./AutoFocusMixin"),i=e("./DOMPropertyOperations"),a=e("./LinkedValueUtils"),s=e("./ReactBrowserComponentMixin"),u=e("./ReactClass"),c=e("./ReactElement"),l=e("./ReactMount"),p=e("./ReactUpdates"),h=e("./Object.assign"),f=e("./invariant"),d=c.createFactory("input"),m={},v=u.createClass({displayName:"ReactDOMInput",tagName:"INPUT",mixins:[o,a.Mixin,s],getInitialState:function(){var e=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=e?e:null}},render:function(){var e=h({},this.props);e.defaultChecked=null,e.defaultValue=null;var t=a.getValue(this);e.value=null!=t?t:this.state.initialValue;var n=a.getChecked(this);return e.checked=null!=n?n:this.state.initialChecked,e.onChange=this._handleChange,d(e,this.props.children)},componentDidMount:function(){var e=l.getID(this.getDOMNode());m[e]=this},componentWillUnmount:function(){var e=this.getDOMNode(),t=l.getID(e);delete m[t]},componentDidUpdate:function(e,t,n){var r=this.getDOMNode();null!=this.props.checked&&i.setValueForProperty(r,"checked",this.props.checked||!1);var o=a.getValue(this);null!=o&&i.setValueForProperty(r,"value",""+o)},_handleChange:function(e){var t,n=a.getOnChange(this);n&&(t=n.call(this,e)),p.asap(r,this);var o=this.props.name;if("radio"===this.props.type&&null!=o){for(var i=this.getDOMNode(),s=i;s.parentNode;)s=s.parentNode;for(var u=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),c=0,h=u.length;h>c;c++){var d=u[c];if(d!==i&&d.form===i.form){var v=l.getID(d);f(v);var g=m[v];f(g),p.asap(r,g)}}}return t}});t.exports=v},{"./AutoFocusMixin":107,"./DOMPropertyOperations":116,"./LinkedValueUtils":129,"./Object.assign":132,"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactElement":163,"./ReactMount":176,"./ReactUpdates":193,"./invariant":241}],154:[function(e,t,n){"use strict";var r=e("./ReactBrowserComponentMixin"),o=e("./ReactClass"),i=e("./ReactElement"),a=(e("./warning"),i.createFactory("option")),s=o.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[r],componentWillMount:function(){},render:function(){return a(this.props,this.props.children)}});t.exports=s},{"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactElement":163,"./warning":260}],155:[function(e,t,n){"use strict";function r(){if(this._pendingUpdate){this._pendingUpdate=!1;var e=s.getValue(this);null!=e&&this.isMounted()&&i(this,e)}}function o(e,t,n){if(null==e[t])return null;if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function i(e,t){var n,r,o,i=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,o=t.length;o>r;r++)n[""+t[r]]=!0;for(r=0,o=i.length;o>r;r++){var a=n.hasOwnProperty(i[r].value);i[r].selected!==a&&(i[r].selected=a)}}else{for(n=""+t,r=0,o=i.length;o>r;r++)if(i[r].value===n)return void(i[r].selected=!0);i.length&&(i[0].selected=!0)}}var a=e("./AutoFocusMixin"),s=e("./LinkedValueUtils"),u=e("./ReactBrowserComponentMixin"),c=e("./ReactClass"),l=e("./ReactElement"),p=e("./ReactUpdates"),h=e("./Object.assign"),f=l.createFactory("select"),d=c.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[a,s.Mixin,u],propTypes:{defaultValue:o,value:o},render:function(){var e=h({},this.props);return e.onChange=this._handleChange,e.value=null,f(e,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var e=s.getValue(this);null!=e?i(this,e):null!=this.props.defaultValue&&i(this,this.props.defaultValue)},componentDidUpdate:function(e){var t=s.getValue(this);null!=t?(this._pendingUpdate=!1,i(this,t)):!e.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?i(this,this.props.defaultValue):i(this,this.props.multiple?[]:""))},_handleChange:function(e){var t,n=s.getOnChange(this);return n&&(t=n.call(this,e)),this._pendingUpdate=!0,p.asap(r,this),t}});t.exports=d},{"./AutoFocusMixin":107,"./LinkedValueUtils":129,"./Object.assign":132,"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactElement":163,"./ReactUpdates":193}],156:[function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0),u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(e),l.setEnd(s.startContainer,s.startOffset);var p=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),h=p?0:l.toString().length,f=h+c,d=document.createRange();d.setStart(n,o),d.setEnd(i,a);var m=d.collapsed;return{start:m?f:h,end:m?h:f}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.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 s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=c(e,o),u=c(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=e("./ExecutionEnvironment"),c=e("./getNodeForCharacterOffset"),l=e("./getTextContentAccessor"),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),h={getOffsets:p?o:i,setOffsets:p?a:s};t.exports=h},{"./ExecutionEnvironment":126,"./getNodeForCharacterOffset":234,"./getTextContentAccessor":236}],157:[function(e,t,n){"use strict";var r=e("./DOMPropertyOperations"),o=e("./ReactComponentBrowserEnvironment"),i=e("./ReactDOMComponent"),a=e("./Object.assign"),s=e("./escapeTextContentForBrowser"),u=function(e){};a(u.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){this._rootNodeID=e;var o=s(this._stringText);return t.renderToStaticMarkup?o:"<span "+r.createMarkupForID(e)+">"+o+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;n!==this._stringText&&(this._stringText=n,i.BackendIDOperations.updateTextContentByID(this._rootNodeID,n))}},unmountComponent:function(){o.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=u},{"./DOMPropertyOperations":116,"./Object.assign":132,"./ReactComponentBrowserEnvironment":141,"./ReactDOMComponent":148,"./escapeTextContentForBrowser":222}],158:[function(e,t,n){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=e("./AutoFocusMixin"),i=e("./DOMPropertyOperations"),a=e("./LinkedValueUtils"),s=e("./ReactBrowserComponentMixin"),u=e("./ReactClass"),c=e("./ReactElement"),l=e("./ReactUpdates"),p=e("./Object.assign"),h=e("./invariant"),f=(e("./warning"),c.createFactory("textarea")),d=u.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[o,a.Mixin,s],getInitialState:function(){var e=this.props.defaultValue,t=this.props.children;null!=t&&(h(null==e),Array.isArray(t)&&(h(t.length<=1),t=t[0]),e=""+t),null==e&&(e="");var n=a.getValue(this);return{initialValue:""+(null!=n?n:e)}},render:function(){var e=p({},this.props);return h(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,f(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var r=a.getValue(this);if(null!=r){var o=this.getDOMNode();i.setValueForProperty(o,"value",""+r)}},_handleChange:function(e){var t,n=a.getOnChange(this);return n&&(t=n.call(this,e)),l.asap(r,this),t}});t.exports=d},{"./AutoFocusMixin":107,"./DOMPropertyOperations":116,"./LinkedValueUtils":129,"./Object.assign":132,"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactElement":163,"./ReactUpdates":193,"./invariant":241,"./warning":260}],159:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=e("./ReactUpdates"),i=e("./Transaction"),a=e("./Object.assign"),s=e("./emptyFunction"),u={initialize:s,close:function(){h.isBatchingUpdates=!1}},c={initialize:s,close:o.flushBatchedUpdates.bind(o)},l=[c,u];a(r.prototype,i.Mixin,{getTransactionWrappers:function(){return l}});var p=new r,h={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var i=h.isBatchingUpdates;h.isBatchingUpdates=!0,i?e(t,n,r,o):p.perform(e,null,t,n,r,o)}};t.exports=h},{"./Object.assign":132,"./ReactUpdates":193,"./Transaction":209,"./emptyFunction":220}],160:[function(e,t,n){"use strict";function r(e){return d.createClass({tagName:e.toUpperCase(),render:function(){return new M(e,null,null,null,null,this.props)}})}function o(){A.EventEmitter.injectReactEventListener(I),A.EventPluginHub.injectEventPluginOrder(u),A.EventPluginHub.injectInstanceHandle(P),A.EventPluginHub.injectMount(D),A.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:U,EnterLeaveEventPlugin:c,ChangeEventPlugin:a,MobileSafariClickEventPlugin:h,SelectEventPlugin:L,BeforeInputEventPlugin:i}),A.NativeComponent.injectGenericComponentClass(g),A.NativeComponent.injectTextComponentClass(O),A.NativeComponent.injectAutoWrapper(r),A.Class.injectMixin(f),A.NativeComponent.injectComponentClasses({button:y,form:_,iframe:w,img:b,input:C,option:x,select:R,textarea:T,html:F("html"),head:F("head"),body:F("body")}),A.DOMProperty.injectDOMPropertyConfig(p),A.DOMProperty.injectDOMPropertyConfig(k),A.EmptyComponent.injectEmptyComponent("noscript"),A.Updates.injectReconcileTransaction(S),A.Updates.injectBatchingStrategy(v),A.RootIndex.injectCreateReactRootIndex(l.canUseDOM?s.createReactRootIndex:N.createReactRootIndex),A.Component.injectEnvironment(m),A.DOMComponent.injectIDOperations(E)}var i=e("./BeforeInputEventPlugin"),a=e("./ChangeEventPlugin"),s=e("./ClientReactRootIndex"),u=e("./DefaultEventPluginOrder"),c=e("./EnterLeaveEventPlugin"),l=e("./ExecutionEnvironment"),p=e("./HTMLDOMPropertyConfig"),h=e("./MobileSafariClickEventPlugin"),f=e("./ReactBrowserComponentMixin"),d=e("./ReactClass"),m=e("./ReactComponentBrowserEnvironment"),v=e("./ReactDefaultBatchingStrategy"),g=e("./ReactDOMComponent"),y=e("./ReactDOMButton"),_=e("./ReactDOMForm"),b=e("./ReactDOMImg"),E=e("./ReactDOMIDOperations"),w=e("./ReactDOMIframe"),C=e("./ReactDOMInput"),x=e("./ReactDOMOption"),R=e("./ReactDOMSelect"),T=e("./ReactDOMTextarea"),O=e("./ReactDOMTextComponent"),M=e("./ReactElement"),I=e("./ReactEventListener"),A=e("./ReactInjection"),P=e("./ReactInstanceHandles"),D=e("./ReactMount"),S=e("./ReactReconcileTransaction"),L=e("./SelectEventPlugin"),N=e("./ServerReactRootIndex"),U=e("./SimpleEventPlugin"),k=e("./SVGDOMPropertyConfig"),F=e("./createFullPageComponent");t.exports={inject:o}},{"./BeforeInputEventPlugin":108,"./ChangeEventPlugin":112,"./ClientReactRootIndex":113,"./DefaultEventPluginOrder":118,"./EnterLeaveEventPlugin":119,"./ExecutionEnvironment":126,"./HTMLDOMPropertyConfig":128,"./MobileSafariClickEventPlugin":131,"./ReactBrowserComponentMixin":135,"./ReactClass":139,"./ReactComponentBrowserEnvironment":141,"./ReactDOMButton":147,"./ReactDOMComponent":148,"./ReactDOMForm":149,"./ReactDOMIDOperations":150,"./ReactDOMIframe":151,"./ReactDOMImg":152,"./ReactDOMInput":153,"./ReactDOMOption":154,"./ReactDOMSelect":155,"./ReactDOMTextComponent":157,"./ReactDOMTextarea":158,"./ReactDefaultBatchingStrategy":159,"./ReactDefaultPerf":161,"./ReactElement":163,"./ReactEventListener":168,"./ReactInjection":170,"./ReactInstanceHandles":172,"./ReactMount":176,"./ReactReconcileTransaction":186,"./SVGDOMPropertyConfig":194,"./SelectEventPlugin":195,"./ServerReactRootIndex":196,"./SimpleEventPlugin":197,"./createFullPageComponent":217}],161:[function(e,t,n){"use strict";function r(e){return Math.floor(100*e)/100}function o(e,t,n){e[t]=(e[t]||0)+n}var i=e("./DOMProperty"),a=e("./ReactDefaultPerfAnalysis"),s=e("./ReactMount"),u=e("./ReactPerf"),c=e("./performanceNow"),l={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){l._injected||u.injection.injectMeasure(l.measure),l._allMeasurements.length=0,u.enableMeasure=!0},stop:function(){u.enableMeasure=!1},getLastMeasurements:function(){return l._allMeasurements},printExclusive:function(e){e=e||l._allMeasurements;var t=a.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":r(e.inclusive),"Exclusive mount time (ms)":r(e.exclusive),"Exclusive render time (ms)":r(e.render),"Mount time per instance (ms)":r(e.exclusive/e.count),"Render time per instance (ms)":r(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||l._allMeasurements;var t=a.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":r(e.time),Instances:e.count}})),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=a.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||l._allMeasurements,console.table(l.getMeasurementsSummaryMap(e)),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||l._allMeasurements;var t=a.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[i.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var o=l._allMeasurements[l._allMeasurements.length-1].writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var r=[],i=0,a=arguments.length;a>i;i++)r.push(arguments[i]);var u,p,h;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return l._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0}),h=c(),p=n.apply(this,r),l._allMeasurements[l._allMeasurements.length-1].totalTime=c()-h,p;if("_mountImageIntoNode"===t||"ReactDOMIDOperations"===e){if(h=c(),p=n.apply(this,r),u=c()-h,"_mountImageIntoNode"===t){var f=s.getID(r[1]);l._recordWrite(f,t,u,r[0])}else"dangerouslyProcessChildrenUpdates"===t?r[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=r[1][e.markupIndex]),l._recordWrite(e.parentID,e.type,u,t)}):l._recordWrite(r[0],t,u,Array.prototype.slice.call(r,1));return p}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,r);if("string"==typeof this._currentElement.type)return n.apply(this,r);var d="mountComponent"===t?r[0]:this._rootNodeID,m="_renderValidatedComponent"===t,v="mountComponent"===t,g=l._mountStack,y=l._allMeasurements[l._allMeasurements.length-1];if(m?o(y.counts,d,1):v&&g.push(0),h=c(),p=n.apply(this,r),u=c()-h,m)o(y.render,d,u);else if(v){var _=g.pop();g[g.length-1]+=u,o(y.exclusive,d,u-_),o(y.inclusive,d,u)}else o(y.inclusive,d,u);return y.displayNames[d]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},p}}};t.exports=l},{"./DOMProperty":115,"./ReactDefaultPerfAnalysis":162,"./ReactMount":176,"./ReactPerf":181,"./performanceNow":252}],162:[function(e,t,n){function r(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function o(e){for(var t=[],n=0;n<e.length;n++){var r,o=e[n];for(r in o.writes)o.writes[r].forEach(function(e){t.push({id:r,type:l[e.type]||e.type,args:e.args})})}return t}function i(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],i=u({},o.exclusive,o.inclusive);for(var a in i)t=o.displayNames[a].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[a]&&(n[t].render+=o.render[a]),o.exclusive[a]&&(n[t].exclusive+=o.exclusive[a]),o.inclusive[a]&&(n[t].inclusive+=o.inclusive[a]),o.counts[a]&&(n[t].count+=o.counts[a])}var s=[];for(t in n)n[t].exclusive>=c&&s.push(n[t]);return s.sort(function(e,t){return t.exclusive-e.exclusive}),s}function a(e,t){for(var n,r={},o=0;o<e.length;o++){var i,a=e[o],l=u({},a.exclusive,a.inclusive);t&&(i=s(a));for(var p in l)if(!t||i[p]){var h=a.displayNames[p];n=h.owner+" > "+h.current,r[n]=r[n]||{componentName:n,time:0,count:0},a.inclusive[p]&&(r[n].time+=a.inclusive[p]),a.counts[p]&&(r[n].count+=a.counts[p])}}var f=[];for(n in r)r[n].time>=c&&f.push(r[n]);return f.sort(function(e,t){return t.time-e.time}),f}function s(e){var t={},n=Object.keys(e.writes),r=u({},e.exclusive,e.inclusive);for(var o in r){for(var i=!1,a=0;a<n.length;a++)if(0===n[a].indexOf(o)){i=!0;break}!i&&e.counts[o]>0&&(t[o]=!0)}return t}var u=e("./Object.assign"),c=1.2,l={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",TEXT_CONTENT:"set textContent",updatePropertyByID:"update attribute",deletePropertyByID:"delete attribute",updateStylesByID:"update styles",updateInnerHTMLByID:"set innerHTML",dangerouslyReplaceNodeWithMarkupByID:"replace"},p={getExclusiveSummary:i,getInclusiveSummary:a,getDOMSummary:o,getTotalTime:r};t.exports=p},{"./Object.assign":132}],163:[function(e,t,n){"use strict";var r=e("./ReactContext"),o=e("./ReactCurrentOwner"),i=e("./Object.assign"),a=(e("./warning"),{key:!0,ref:!0}),s=function(e,t,n,r,o,i){this.type=e,this.key=t,this.ref=n,this._owner=r,this._context=o,this.props=i};s.prototype={_isReactElement:!0},s.createElement=function(e,t,n){var i,u={},c=null,l=null;if(null!=t){l=void 0===t.ref?null:t.ref,c=void 0===t.key?null:""+t.key;for(i in t)t.hasOwnProperty(i)&&!a.hasOwnProperty(i)&&(u[i]=t[i])}var p=arguments.length-2;if(1===p)u.children=n;else if(p>1){for(var h=Array(p),f=0;p>f;f++)h[f]=arguments[f+2];u.children=h}if(e&&e.defaultProps){var d=e.defaultProps;for(i in d)"undefined"==typeof u[i]&&(u[i]=d[i])}return new s(e,c,l,o.current,r.current,u)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceProps=function(e,t){var n=new s(e.type,e.key,e.ref,e._owner,e._context,t);return n},s.cloneElement=function(e,t,n){var r,u=i({},e.props),c=e.key,l=e.ref,p=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,p=o.current),void 0!==t.key&&(c=""+t.key);for(r in t)t.hasOwnProperty(r)&&!a.hasOwnProperty(r)&&(u[r]=t[r])}var h=arguments.length-2;if(1===h)u.children=n;else if(h>1){for(var f=Array(h),d=0;h>d;d++)f[d]=arguments[d+2];u.children=f}return new s(e.type,c,l,p,e._context,u)},s.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},t.exports=s},{"./Object.assign":132,"./ReactContext":144,"./ReactCurrentOwner":145,"./warning":260}],164:[function(e,t,n){"use strict";function r(){if(y.current){var e=y.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){var t=e&&e.getPublicInstance();if(!t)return void 0;var n=t.constructor;return n?n.displayName||n.name||void 0:void 0}function i(){var e=y.current;return e&&o(e)||void 0}function a(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,u('Each child in an array or iterator should have a unique "key" prop.',e,t))}function s(e,t,n){x.test(e)&&u("Child objects should have non-numeric keys so ordering is preserved.",t,n)}function u(e,t,n){var r=i(),a="string"==typeof n?n:n.displayName||n.name,s=r||a,u=w[e]||(w[e]={});if(!u.hasOwnProperty(s)){u[s]=!0;var c="";if(t&&t._owner&&t._owner!==y.current){var l=o(t._owner);c=" It was passed a child from "+l+"."}}}function c(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];m.isValidElement(r)&&a(r,t)}else if(m.isValidElement(e))e._store.validated=!0;else if(e){var o=b(e);if(o){if(o!==e.entries)for(var i,u=o.call(e);!(i=u.next()).done;)m.isValidElement(i.value)&&a(i.value,t)}else if("object"==typeof e){var c=v.extractIfFragment(e);for(var l in c)c.hasOwnProperty(l)&&s(l,c[l],t)}}}function l(e,t,n,o){for(var i in t)if(t.hasOwnProperty(i)){var a;try{E("function"==typeof t[i]),a=t[i](n,i,e,o)}catch(s){a=s}if(a instanceof Error&&!(a.message in C)){C[a.message]=!0;r(this)}}}function p(e,t){var n=t.type,r="string"==typeof n?n:n.displayName,o=t._owner?t._owner.getPublicInstance().constructor.displayName:null,i=e+"|"+r+"|"+o;if(!R.hasOwnProperty(i)){R[i]=!0;var a="";r&&(a=" <"+r+" />");var s="";o&&(s=" The element was created by "+o+".")}}function h(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function f(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&h(t[r],n[r])||(p(r,e),t[r]=n[r]))}}function d(e){if(null!=e.type){var t=_.getComponentClassForElement(e),n=t.displayName||t.name;t.propTypes&&l(n,t.propTypes,e.props,g.prop),"function"==typeof t.getDefaultProps}}var m=e("./ReactElement"),v=e("./ReactFragment"),g=e("./ReactPropTypeLocations"),y=(e("./ReactPropTypeLocationNames"),e("./ReactCurrentOwner")),_=e("./ReactNativeComponent"),b=e("./getIteratorFn"),E=e("./invariant"),w=(e("./warning"),{}),C={},x=/^\d+$/,R={},T={checkAndWarnForMutatedProps:f,createElement:function(e,t,n){var r=m.createElement.apply(this,arguments);if(null==r)return r;for(var o=2;o<arguments.length;o++)c(arguments[o],e);return d(r),r},createFactory:function(e){var t=T.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=m.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)c(arguments[o],r.type);return d(r),r}};t.exports=T},{"./ReactCurrentOwner":145,"./ReactElement":163,"./ReactFragment":169,"./ReactNativeComponent":179,"./ReactPropTypeLocationNames":182,"./ReactPropTypeLocations":183,"./getIteratorFn":232,"./invariant":241,"./warning":260}],165:[function(e,t,n){"use strict";function r(e){l[e]=!0}function o(e){delete l[e]}function i(e){return!!l[e]}var a,s=e("./ReactElement"),u=e("./ReactInstanceMap"),c=e("./invariant"),l={},p={injectEmptyComponent:function(e){a=s.createFactory(e)}},h=function(){};h.prototype.componentDidMount=function(){var e=u.get(this);e&&r(e._rootNodeID)},h.prototype.componentWillUnmount=function(){var e=u.get(this);e&&o(e._rootNodeID)},h.prototype.render=function(){return c(a),a()};var f=s.createElement(h),d={emptyElement:f,injection:p,isNullComponentID:i};t.exports=d},{"./ReactElement":163,"./ReactInstanceMap":173,"./invariant":241}],166:[function(e,t,n){"use strict";var r={guard:function(e,t){return e}};t.exports=r},{}],167:[function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue()}var o=e("./EventPluginHub"),i={handleTopLevel:function(e,t,n,i){var a=o.extractEvents(e,t,n,i);r(a)}};t.exports=i},{"./EventPluginHub":122}],168:[function(e,t,n){"use strict";function r(e){var t=p.getID(e),n=l.getReactRootIDFromNodeID(t),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){for(var t=p.getFirstReactDOM(d(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0,i=e.ancestors.length;i>o;o++){t=e.ancestors[o];var a=p.getID(t)||"";v._handleTopLevel(e.topLevelType,t,a,e.nativeEvent)}}function a(e){var t=m(window);e(t)}var s=e("./EventListener"),u=e("./ExecutionEnvironment"),c=e("./PooledClass"),l=e("./ReactInstanceHandles"),p=e("./ReactMount"),h=e("./ReactUpdates"),f=e("./Object.assign"),d=e("./getEventTarget"),m=e("./getUnboundedScrollPosition");f(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?s.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?s.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=a.bind(null,e);s.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{h.batchedUpdates(i,n)}finally{o.release(n)}}}};t.exports=v},{"./EventListener":121,"./ExecutionEnvironment":126,"./Object.assign":132,"./PooledClass":133,"./ReactInstanceHandles":172,"./ReactMount":176,"./ReactUpdates":193,"./getEventTarget":231,"./getUnboundedScrollPosition":237}],169:[function(e,t,n){"use strict";var r=(e("./ReactElement"),e("./warning"),{create:function(e){return e},extract:function(e){return e},extractIfFragment:function(e){return e}});t.exports=r},{"./ReactElement":163,"./warning":260}],170:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=e("./EventPluginHub"),i=e("./ReactComponentEnvironment"),a=e("./ReactClass"),s=e("./ReactEmptyComponent"),u=e("./ReactBrowserEventEmitter"),c=e("./ReactNativeComponent"),l=e("./ReactDOMComponent"),p=e("./ReactPerf"),h=e("./ReactRootIndex"),f=e("./ReactUpdates"),d={Component:i.injection,Class:a.injection,DOMComponent:l.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:p.injection,RootIndex:h.injection,Updates:f.injection};t.exports=d},{"./DOMProperty":115,"./EventPluginHub":122,"./ReactBrowserEventEmitter":136,"./ReactClass":139,"./ReactComponentEnvironment":142,"./ReactDOMComponent":148,"./ReactEmptyComponent":165,"./ReactNativeComponent":179,"./ReactPerf":181,"./ReactRootIndex":189,"./ReactUpdates":193}],171:[function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=e("./ReactDOMSelection"),i=e("./containsNode"),a=e("./focusNode"),s=e("./getActiveElement"),u={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&"INPUT"===e.nodeName){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&"INPUT"===e.nodeName){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};t.exports=u},{"./ReactDOMSelection":156,"./containsNode":215,"./focusNode":225,"./getActiveElement":227}],172:[function(e,t,n){"use strict";function r(e){return f+e.toString(36)}function o(e,t){return e.charAt(t)===f||t===e.length}function i(e){return""===e||e.charAt(0)===f&&e.charAt(e.length-1)!==f}function a(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function s(e){
return e?e.substr(0,e.lastIndexOf(f)):""}function u(e,t){if(h(i(e)&&i(t)),h(a(e,t)),e===t)return e;var n,r=e.length+d;for(n=r;n<t.length&&!o(t,n);n++);return t.substr(0,n)}function c(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var r=0,a=0;n>=a;a++)if(o(e,a)&&o(t,a))r=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,r);return h(i(s)),s}function l(e,t,n,r,o,i){e=e||"",t=t||"",h(e!==t);var c=a(t,e);h(c||a(e,t));for(var l=0,p=c?s:u,f=e;;f=p(f,t)){var d;if(o&&f===e||i&&f===t||(d=n(f,c,r)),d===!1||f===t)break;h(l++<m)}}var p=e("./ReactRootIndex"),h=e("./invariant"),f=".",d=f.length,m=100,v={createReactRootID:function(){return r(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===f&&e.length>1){var t=e.indexOf(f,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=c(e,t);i!==e&&l(e,i,n,r,!1,!0),i!==t&&l(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},_getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:f};t.exports=v},{"./ReactRootIndex":189,"./invariant":241}],173:[function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=r},{}],174:[function(e,t,n){"use strict";var r={currentlyMountingInstance:null,currentlyUnmountingInstance:null};t.exports=r},{}],175:[function(e,t,n){"use strict";var r=e("./adler32"),o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(">"," "+o.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(e);return i===n}};t.exports=o},{"./adler32":212}],176:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){var t=I(e);return t&&q.getID(t)}function i(e){var t=a(e);if(t)if(U.hasOwnProperty(t)){var n=U[t];n!==e&&(P(!l(n,t)),U[t]=e)}else U[t]=e;return t}function a(e){return e&&e.getAttribute&&e.getAttribute(N)||""}function s(e,t){var n=a(e);n!==t&&delete U[n],e.setAttribute(N,t),U[t]=e}function u(e){return U.hasOwnProperty(e)&&l(U[e],e)||(U[e]=q.findReactNodeByID(e)),U[e]}function c(e){var t=E.get(e)._rootNodeID;return _.isNullComponentID(t)?null:(U.hasOwnProperty(t)&&l(U[t],t)||(U[t]=q.findReactNodeByID(t)),U[t])}function l(e,t){if(e){P(a(e)===t);var n=q.findReactContainerForID(t);if(n&&M(n,e))return!0}return!1}function p(e){delete U[e]}function h(e){var t=U[e];return t&&l(t,e)?void(H=t):!1}function f(e){H=null,b.traverseAncestors(e,h);var t=H;return H=null,t}function d(e,t,n,r,o){var i=x.mountComponent(e,t,r,O);e._isTopLevel=!0,q._mountImageIntoNode(i,n,o)}function m(e,t,n,r){var o=T.ReactReconcileTransaction.getPooled();o.perform(d,null,e,t,n,o,r),T.ReactReconcileTransaction.release(o)}var v=e("./DOMProperty"),g=e("./ReactBrowserEventEmitter"),y=(e("./ReactCurrentOwner"),e("./ReactElement")),_=(e("./ReactElementValidator"),e("./ReactEmptyComponent")),b=e("./ReactInstanceHandles"),E=e("./ReactInstanceMap"),w=e("./ReactMarkupChecksum"),C=e("./ReactPerf"),x=e("./ReactReconciler"),R=e("./ReactUpdateQueue"),T=e("./ReactUpdates"),O=e("./emptyObject"),M=e("./containsNode"),I=e("./getReactRootElementInContainer"),A=e("./instantiateReactComponent"),P=e("./invariant"),D=e("./setInnerHTML"),S=e("./shouldUpdateReactComponent"),L=(e("./warning"),b.SEPARATOR),N=v.ID_ATTRIBUTE_NAME,U={},k=1,F=9,j={},B={},V=[],H=null,q={_instancesByReactRootID:j,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return q.scrollMonitor(n,function(){R.enqueueElementInternal(e,t),r&&R.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){P(t&&(t.nodeType===k||t.nodeType===F)),g.ensureScrollValueMonitoring();var n=q.registerContainer(t);return j[n]=e,n},_renderNewRootComponent:function(e,t,n){var r=A(e,null),o=q._registerComponent(r,t);return T.batchedUpdates(m,r,o,t,n),r},render:function(e,t,n){P(y.isValidElement(e));var r=j[o(t)];if(r){var i=r._currentElement;if(S(i,e))return q._updateRootComponent(r,e,t,n).getPublicInstance();q.unmountComponentAtNode(t)}var a=I(t),s=a&&q.isRenderedByReact(a),u=s&&!r,c=q._renderNewRootComponent(e,t,u).getPublicInstance();return n&&n.call(c),c},constructAndRenderComponent:function(e,t,n){var r=y.createElement(e,t);return q.render(r,n)},constructAndRenderComponentByID:function(e,t,n){var r=document.getElementById(n);return P(r),q.constructAndRenderComponent(e,t,r)},registerContainer:function(e){var t=o(e);return t&&(t=b.getReactRootIDFromNodeID(t)),t||(t=b.createReactRootID()),B[t]=e,t},unmountComponentAtNode:function(e){P(e&&(e.nodeType===k||e.nodeType===F));var t=o(e),n=j[t];return n?(q.unmountComponentFromNode(n,e),delete j[t],delete B[t],!0):!1},unmountComponentFromNode:function(e,t){for(x.unmountComponent(e),t.nodeType===F&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var t=b.getReactRootIDFromNodeID(e),n=B[t];return n},findReactNodeByID:function(e){var t=q.findReactContainerForID(e);return q.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=q.getID(e);return t?t.charAt(0)===L:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(q.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,t){var n=V,r=0,o=f(t)||e;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var i,a=n[r++];a;){var s=q.getID(a);s?t===s?i=a:b.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(a.firstChild)):n.push(a.firstChild),a=a.nextSibling}if(i)return n.length=0,i}n.length=0,P(!1)},_mountImageIntoNode:function(e,t,n){if(P(t&&(t.nodeType===k||t.nodeType===F)),n){var o=I(t);if(w.canReuseMarkup(e,o))return;var i=o.getAttribute(w.CHECKSUM_ATTR_NAME);o.removeAttribute(w.CHECKSUM_ATTR_NAME);var a=o.outerHTML;o.setAttribute(w.CHECKSUM_ATTR_NAME,i);var s=r(e,a);" (client) "+e.substring(s-20,s+20)+"\n (server) "+a.substring(s-20,s+20);P(t.nodeType!==F)}P(t.nodeType!==F),D(t,e)},getReactRootID:o,getID:i,setID:s,getNode:u,getNodeFromInstance:c,purgeID:p};C.measureMethods(q,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=q},{"./DOMProperty":115,"./ReactBrowserEventEmitter":136,"./ReactCurrentOwner":145,"./ReactElement":163,"./ReactElementValidator":164,"./ReactEmptyComponent":165,"./ReactInstanceHandles":172,"./ReactInstanceMap":173,"./ReactMarkupChecksum":175,"./ReactPerf":181,"./ReactReconciler":187,"./ReactUpdateQueue":192,"./ReactUpdates":193,"./containsNode":215,"./emptyObject":221,"./getReactRootElementInContainer":235,"./instantiateReactComponent":240,"./invariant":241,"./setInnerHTML":254,"./shouldUpdateReactComponent":257,"./warning":260}],177:[function(e,t,n){"use strict";function r(e,t,n){d.push({parentID:e,parentNode:null,type:l.INSERT_MARKUP,markupIndex:m.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function o(e,t,n){d.push({parentID:e,parentNode:null,type:l.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function i(e,t){d.push({parentID:e,parentNode:null,type:l.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function a(e,t){d.push({parentID:e,parentNode:null,type:l.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function s(){d.length&&(c.processChildrenUpdates(d,m),u())}function u(){d.length=0,m.length=0}var c=e("./ReactComponentEnvironment"),l=e("./ReactMultiChildUpdateTypes"),p=e("./ReactReconciler"),h=e("./ReactChildReconciler"),f=0,d=[],m=[],v={Mixin:{mountChildren:function(e,t,n){var r=h.instantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=this._rootNodeID+a,c=p.mountComponent(s,u,t,n);s._mountIndex=i,o.push(c),i++}return o},updateTextContent:function(e){f++;var t=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setTextContent(e),t=!1}finally{f--,f||(t?u():s())}},updateChildren:function(e,t,n){f++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{f--,f||(r?u():s())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=h.updateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,a=0,s=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],c=o[i];u===c?(this.moveChild(u,s,a),a=Math.max(u._mountIndex,a),u._mountIndex=s):(u&&(a=Math.max(u._mountIndex,a),this._unmountChildByName(u,i)),this._mountChildByNameAtIndex(c,i,s,t,n)),s++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChildByName(r[i],i)}},unmountChildren:function(){var e=this._renderedChildren;h.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){i(this._rootNodeID,e._mountIndex)},setTextContent:function(e){a(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,a=p.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,a)},_unmountChildByName:function(e,t){this.removeChild(e),e._mountIndex=null}}};t.exports=v},{"./ReactChildReconciler":137,"./ReactComponentEnvironment":142,"./ReactMultiChildUpdateTypes":178,"./ReactReconciler":187}],178:[function(e,t,n){"use strict";var r=e("./keyMirror"),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});t.exports=o},{"./keyMirror":246}],179:[function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=p[t];return null==n&&(p[t]=n=c(t)),n}function o(e){return u(l),new l(e.type,e.props)}function i(e){return new h(e)}function a(e){return e instanceof h}var s=e("./Object.assign"),u=e("./invariant"),c=null,l=null,p={},h=null,f={injectGenericComponentClass:function(e){l=e},injectTextComponentClass:function(e){h=e},injectComponentClasses:function(e){s(p,e)},injectAutoWrapper:function(e){c=e}},d={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:a,injection:f};t.exports=d},{"./Object.assign":132,"./invariant":241}],180:[function(e,t,n){"use strict";var r=e("./invariant"),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){r(o.isValidOwner(n)),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(o.isValidOwner(n)),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};t.exports=o},{"./invariant":241}],181:[function(e,t,n){"use strict";function r(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};t.exports=o},{}],182:[function(e,t,n){"use strict";var r={};t.exports=r},{}],183:[function(e,t,n){"use strict";var r=e("./keyMirror"),o=r({prop:null,context:null,childContext:null});t.exports=o},{"./keyMirror":246}],184:[function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i){if(o=o||E,null==n[r]){var a=_[i];return t?new Error("Required "+a+" `"+r+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o){var i=t[n],a=m(i);if(a!==e){var s=_[o],u=v(i);return new Error("Invalid "+s+" `"+n+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `"+e+"`."))}return null}return r(t)}function i(){return r(b.thatReturns(null))}function a(e){function t(t,n,r,o){var i=t[n];if(!Array.isArray(i)){var a=_[o],s=m(i);return new Error("Invalid "+a+" `"+n+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<i.length;u++){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return r(t)}function s(){function e(e,t,n,r){if(!g.isValidElement(e[t])){var o=_[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactElement."))}return null}return r(e)}function u(e){function t(t,n,r,o){if(!(t[n]instanceof e)){var i=_[o],a=e.name||E;return new Error("Invalid "+i+" `"+n+"` supplied to "+("`"+r+"`, expected instance of `"+a+"`."))}return null}return r(t)}function c(e){function t(t,n,r,o){for(var i=t[n],a=0;a<e.length;a++)if(i===e[a])return null;var s=_[o],u=JSON.stringify(e);return new Error("Invalid "+s+" `"+n+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return r(t)}function l(e){function t(t,n,r,o){var i=t[n],a=m(i);if("object"!==a){var s=_[o];return new Error("Invalid "+s+" `"+n+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an object."))}for(var u in i)if(i.hasOwnProperty(u)){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return r(t)}function p(e){function t(t,n,r,o){for(var i=0;i<e.length;i++){var a=e[i];if(null==a(t,n,r,o))return null}var s=_[o];return new Error("Invalid "+s+" `"+n+"` supplied to "+("`"+r+"`."))}return r(t)}function h(){function e(e,t,n,r){if(!d(e[t])){var o=_[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function f(e){function t(t,n,r,o){var i=t[n],a=m(i);if("object"!==a){var s=_[o];return new Error("Invalid "+s+" `"+n+"` of type `"+a+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var l=c(i,u,r,o);if(l)return l}}return null}return r(t)}function d(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(d);if(null===e||g.isValidElement(e))return!0;e=y.extractIfFragment(e);for(var t in e)if(!d(e[t]))return!1;return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function v(e){var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}var g=e("./ReactElement"),y=e("./ReactFragment"),_=e("./ReactPropTypeLocationNames"),b=e("./emptyFunction"),E="<<anonymous>>",w=s(),C=h(),x={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:w,instanceOf:u,node:C,objectOf:l,oneOf:c,oneOfType:p,shape:f};t.exports=x},{"./ReactElement":163,"./ReactFragment":169,"./ReactPropTypeLocationNames":182,"./emptyFunction":220}],185:[function(e,t,n){"use strict";function r(){this.listenersToPut=[]}var o=e("./PooledClass"),i=e("./ReactBrowserEventEmitter"),a=e("./Object.assign");a(r.prototype,{enqueuePutListener:function(e,t,n){this.listenersToPut.push({rootNodeID:e,propKey:t,propValue:n})},putListeners:function(){for(var e=0;e<this.listenersToPut.length;e++){var t=this.listenersToPut[e];i.putListener(t.rootNodeID,t.propKey,t.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":132,"./PooledClass":133,"./ReactBrowserEventEmitter":136}],186:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.putListenerQueue=u.getPooled()}var o=e("./CallbackQueue"),i=e("./PooledClass"),a=e("./ReactBrowserEventEmitter"),s=e("./ReactInputSelection"),u=e("./ReactPutListenerQueue"),c=e("./Transaction"),l=e("./Object.assign"),p={initialize:s.getSelectionInformation,close:s.restoreSelection},h={initialize:function(){var e=a.isEnabled();return a.setEnabled(!1),e},close:function(e){a.setEnabled(e)}},f={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},d={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},m=[d,p,h,f],v={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null,u.release(this.putListenerQueue),this.putListenerQueue=null}};l(r.prototype,c.Mixin,v),i.addPoolingTo(r),t.exports=r},{"./CallbackQueue":111,"./Object.assign":132,"./PooledClass":133,"./ReactBrowserEventEmitter":136,"./ReactInputSelection":171,"./ReactPutListenerQueue":185,"./Transaction":209}],187:[function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=e("./ReactRef"),i=(e("./ReactElementValidator"),{mountComponent:function(e,t,n,o){var i=e.mountComponent(t,n,o);return n.getReactMountReady().enqueue(r,e),i},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,i){var a=e._currentElement;if(t!==a||null==t._owner){var s=o.shouldUpdateRefs(a,t);s&&o.detachRefs(e,a),e.receiveComponent(t,n,i),s&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}});t.exports=i},{"./ReactElementValidator":164,"./ReactRef":188}],188:[function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=e("./ReactOwner"),a={};a.attachRefs=function(e,t){var n=t.ref;null!=n&&r(n,e,t._owner)},a.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},a.detachRefs=function(e,t){var n=t.ref;null!=n&&o(n,e,t._owner)},t.exports=a},{"./ReactOwner":180}],189:[function(e,t,n){"use strict";var r={injectCreateReactRootIndex:function(e){o.createReactRootIndex=e}},o={createReactRootIndex:null,injection:r};t.exports=o},{}],190:[function(e,t,n){"use strict";function r(e){p(i.isValidElement(e));var t;try{var n=a.createReactRootID();return t=u.getPooled(!1),t.perform(function(){var r=l(e,null),o=r.mountComponent(n,t,c);return s.addChecksumToMarkup(o)},null)}finally{u.release(t)}}function o(e){p(i.isValidElement(e));var t;try{var n=a.createReactRootID();return t=u.getPooled(!0),t.perform(function(){var r=l(e,null);return r.mountComponent(n,t,c)},null)}finally{u.release(t)}}var i=e("./ReactElement"),a=e("./ReactInstanceHandles"),s=e("./ReactMarkupChecksum"),u=e("./ReactServerRenderingTransaction"),c=e("./emptyObject"),l=e("./instantiateReactComponent"),p=e("./invariant");t.exports={renderToString:r,renderToStaticMarkup:o}},{"./ReactElement":163,"./ReactInstanceHandles":172,"./ReactMarkupChecksum":175,"./ReactServerRenderingTransaction":191,"./emptyObject":221,"./instantiateReactComponent":240,"./invariant":241}],191:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=i.getPooled(null),this.putListenerQueue=a.getPooled()}var o=e("./PooledClass"),i=e("./CallbackQueue"),a=e("./ReactPutListenerQueue"),s=e("./Transaction"),u=e("./Object.assign"),c=e("./emptyFunction"),l={initialize:function(){this.reactMountReady.reset()},close:c},p={initialize:function(){this.putListenerQueue.reset()},close:c},h=[p,l],f={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null,a.release(this.putListenerQueue),this.putListenerQueue=null}};u(r.prototype,s.Mixin,f),o.addPoolingTo(r),t.exports=r},{"./CallbackQueue":111,"./Object.assign":132,"./PooledClass":133,"./ReactPutListenerQueue":185,"./Transaction":209,"./emptyFunction":220}],192:[function(e,t,n){"use strict";function r(e){e!==i.currentlyMountingInstance&&c.enqueueUpdate(e)}function o(e,t){p(null==a.current);var n=u.get(e);return n?n===i.currentlyUnmountingInstance?null:n:null}var i=e("./ReactLifeCycle"),a=e("./ReactCurrentOwner"),s=e("./ReactElement"),u=e("./ReactInstanceMap"),c=e("./ReactUpdates"),l=e("./Object.assign"),p=e("./invariant"),h=(e("./warning"),{enqueueCallback:function(e,t){p("function"==typeof t);var n=o(e);return n&&n!==i.currentlyMountingInstance?(n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],void r(n)):null},enqueueCallbackInternal:function(e,t){p("function"==typeof t),e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueSetProps:function(e,t){var n=o(e,"setProps");if(n){p(n._isTopLevel);var i=n._pendingElement||n._currentElement,a=l({},i.props,t);n._pendingElement=s.cloneAndReplaceProps(i,a),r(n)}},enqueueReplaceProps:function(e,t){var n=o(e,"replaceProps");if(n){p(n._isTopLevel);var i=n._pendingElement||n._currentElement;n._pendingElement=s.cloneAndReplaceProps(i,t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}});t.exports=h},{"./Object.assign":132,"./ReactCurrentOwner":145,"./ReactElement":163,"./ReactInstanceMap":173,"./ReactLifeCycle":174,"./ReactUpdates":193,"./invariant":241,"./warning":260}],193:[function(e,t,n){"use strict";function r(){v(T.ReactReconcileTransaction&&b)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=T.ReactReconcileTransaction.getPooled()}function i(e,t,n,o,i){r(),b.batchedUpdates(e,t,n,o,i)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;v(t===g.length),g.sort(a);for(var n=0;t>n;n++){var r=g[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,f.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var i=0;i<o.length;i++)e.callbackQueue.enqueue(o[i],r.getPublicInstance())}}function u(e){return r(),b.isBatchingUpdates?void g.push(e):void b.batchedUpdates(u,e)}function c(e,t){v(b.isBatchingUpdates),y.enqueue(e,t),_=!0}var l=e("./CallbackQueue"),p=e("./PooledClass"),h=(e("./ReactCurrentOwner"),e("./ReactPerf")),f=e("./ReactReconciler"),d=e("./Transaction"),m=e("./Object.assign"),v=e("./invariant"),g=(e("./warning"),[]),y=l.getPooled(),_=!1,b=null,E={initialize:function(){this.dirtyComponentsLength=g.length},close:function(){this.dirtyComponentsLength!==g.length?(g.splice(0,this.dirtyComponentsLength),x()):g.length=0}},w={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[E,w];m(o.prototype,d.Mixin,{getTransactionWrappers:function(){return C},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,T.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return d.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(o);var x=function(){for(;g.length||_;){if(g.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(_){_=!1;var t=y;y=l.getPooled(),t.notifyAll(),l.release(t)}}};x=h.measure("ReactUpdates","flushBatchedUpdates",x);var R={injectReconcileTransaction:function(e){v(e),T.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){v(e),v("function"==typeof e.batchedUpdates),v("boolean"==typeof e.isBatchingUpdates),b=e}},T={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:x,injection:R,asap:c};t.exports=T},{"./CallbackQueue":111,"./Object.assign":132,"./PooledClass":133,"./ReactCurrentOwner":145,"./ReactPerf":181,"./ReactReconciler":187,"./Transaction":209,"./invariant":241,"./warning":260}],194:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=r.injection.MUST_USE_ATTRIBUTE,i={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,y1:o,y2:o,y:o},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"}};t.exports=i},{"./DOMProperty":115}],195:[function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&s.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}}}function o(e){if(y||null==m||m!==c())return null;var t=r(m);if(!g||!h(g,t)){g=t;var n=u.getPooled(d.select,v,e);return n.type="select",n.target=m,a.accumulateTwoPhaseDispatches(n),n}}var i=e("./EventConstants"),a=e("./EventPropagators"),s=e("./ReactInputSelection"),u=e("./SyntheticEvent"),c=e("./getActiveElement"),l=e("./isTextInputElement"),p=e("./keyOf"),h=e("./shallowEqual"),f=i.topLevelTypes,d={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[f.topBlur,f.topContextMenu,f.topFocus,f.topKeyDown,f.topMouseDown,f.topMouseUp,f.topSelectionChange]}},m=null,v=null,g=null,y=!1,_={eventTypes:d,extractEvents:function(e,t,n,r){switch(e){case f.topFocus:(l(t)||"true"===t.contentEditable)&&(m=t,v=n,g=null);break;case f.topBlur:m=null,v=null,g=null;break;case f.topMouseDown:y=!0;break;case f.topContextMenu:case f.topMouseUp:return y=!1,o(r);case f.topSelectionChange:case f.topKeyDown:case f.topKeyUp:return o(r)}}};t.exports=_},{"./EventConstants":120,"./EventPropagators":125,"./ReactInputSelection":171,"./SyntheticEvent":201,"./getActiveElement":227,"./isTextInputElement":244,"./keyOf":247,"./shallowEqual":256}],196:[function(e,t,n){"use strict";var r=Math.pow(2,53),o={createReactRootIndex:function(){return Math.ceil(Math.random()*r)}};t.exports=o},{}],197:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./EventPluginUtils"),i=e("./EventPropagators"),a=e("./SyntheticClipboardEvent"),s=e("./SyntheticEvent"),u=e("./SyntheticFocusEvent"),c=e("./SyntheticKeyboardEvent"),l=e("./SyntheticMouseEvent"),p=e("./SyntheticDragEvent"),h=e("./SyntheticTouchEvent"),f=e("./SyntheticUIEvent"),d=e("./SyntheticWheelEvent"),m=e("./getEventCharCode"),v=e("./invariant"),g=e("./keyOf"),y=(e("./warning"),r.topLevelTypes),_={blur:{phasedRegistrationNames:{bubbled:g({onBlur:!0}),captured:g({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:g({onClick:!0}),captured:g({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:g({onContextMenu:!0}),captured:g({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:g({onCopy:!0}),captured:g({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:g({onCut:!0}),captured:g({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:g({onDoubleClick:!0}),captured:g({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:g({onDrag:!0}),captured:g({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:g({onDragEnd:!0}),captured:g({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:g({onDragEnter:!0}),captured:g({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:g({onDragExit:!0}),captured:g({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:g({onDragLeave:!0}),captured:g({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:g({onDragOver:!0}),captured:g({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:g({onDragStart:!0}),captured:g({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:g({onDrop:!0}),captured:g({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:g({onFocus:!0}),captured:g({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:g({onInput:!0}),captured:g({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:g({onKeyDown:!0}),captured:g({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:g({onKeyPress:!0}),captured:g({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:g({onKeyUp:!0}),captured:g({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:g({onLoad:!0}),captured:g({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:g({onError:!0}),captured:g({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:g({onMouseDown:!0}),captured:g({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:g({onMouseMove:!0}),captured:g({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:g({onMouseOut:!0}),captured:g({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:g({onMouseOver:!0}),captured:g({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:g({onMouseUp:!0}),captured:g({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:g({onPaste:!0}),captured:g({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:g({onReset:!0}),captured:g({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:g({onScroll:!0}),captured:g({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:g({onSubmit:!0}),captured:g({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:g({onTouchCancel:!0}),captured:g({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:g({onTouchEnd:!0}),captured:g({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:g({onTouchMove:!0}),captured:g({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:g({onTouchStart:!0}),captured:g({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:g({onWheel:!0}),captured:g({onWheelCapture:!0})}}},b={topBlur:_.blur,topClick:_.click,topContextMenu:_.contextMenu,topCopy:_.copy,topCut:_.cut,topDoubleClick:_.doubleClick,topDrag:_.drag,topDragEnd:_.dragEnd,topDragEnter:_.dragEnter,topDragExit:_.dragExit,topDragLeave:_.dragLeave,topDragOver:_.dragOver,topDragStart:_.dragStart,topDrop:_.drop,topError:_.error,topFocus:_.focus,topInput:_.input,topKeyDown:_.keyDown,topKeyPress:_.keyPress,topKeyUp:_.keyUp,topLoad:_.load,topMouseDown:_.mouseDown,topMouseMove:_.mouseMove,topMouseOut:_.mouseOut,topMouseOver:_.mouseOver,topMouseUp:_.mouseUp,topPaste:_.paste,topReset:_.reset,topScroll:_.scroll,topSubmit:_.submit,topTouchCancel:_.touchCancel,topTouchEnd:_.touchEnd,topTouchMove:_.touchMove,topTouchStart:_.touchStart,topWheel:_.wheel};for(var E in b)b[E].dependencies=[E];var w={eventTypes:_,executeDispatch:function(e,t,n){var r=o.executeDispatch(e,t,n);r===!1&&(e.stopPropagation(),e.preventDefault())},extractEvents:function(e,t,n,r){var o=b[e];if(!o)return null;var g;switch(e){case y.topInput:case y.topLoad:case y.topError:case y.topReset:case y.topSubmit:g=s;break;case y.topKeyPress:if(0===m(r))return null;case y.topKeyDown:case y.topKeyUp:g=c;break;case y.topBlur:case y.topFocus:g=u;break;case y.topClick:if(2===r.button)return null;case y.topContextMenu:
case y.topDoubleClick:case y.topMouseDown:case y.topMouseMove:case y.topMouseOut:case y.topMouseOver:case y.topMouseUp:g=l;break;case y.topDrag:case y.topDragEnd:case y.topDragEnter:case y.topDragExit:case y.topDragLeave:case y.topDragOver:case y.topDragStart:case y.topDrop:g=p;break;case y.topTouchCancel:case y.topTouchEnd:case y.topTouchMove:case y.topTouchStart:g=h;break;case y.topScroll:g=f;break;case y.topWheel:g=d;break;case y.topCopy:case y.topCut:case y.topPaste:g=a}v(g);var _=g.getPooled(o,n,r);return i.accumulateTwoPhaseDispatches(_),_}};t.exports=w},{"./EventConstants":120,"./EventPluginUtils":124,"./EventPropagators":125,"./SyntheticClipboardEvent":198,"./SyntheticDragEvent":200,"./SyntheticEvent":201,"./SyntheticFocusEvent":202,"./SyntheticKeyboardEvent":204,"./SyntheticMouseEvent":205,"./SyntheticTouchEvent":206,"./SyntheticUIEvent":207,"./SyntheticWheelEvent":208,"./getEventCharCode":228,"./invariant":241,"./keyOf":247,"./warning":260}],198:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticEvent"),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":201}],199:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticEvent"),i={data:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":201}],200:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticMouseEvent"),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticMouseEvent":205}],201:[function(e,t,n){"use strict";function r(e,t,n){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];i?this[o]=i(n):this[o]=n[o]}var s=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;s?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("./emptyFunction"),s=e("./getEventTarget"),u={type:null,target:s,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);i(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.threeArgumentPooler)},o.addPoolingTo(r,o.threeArgumentPooler),t.exports=r},{"./Object.assign":132,"./PooledClass":133,"./emptyFunction":220,"./getEventTarget":231}],202:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticUIEvent"),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticUIEvent":207}],203:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticEvent"),i={data:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":201}],204:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticUIEvent"),i=e("./getEventCharCode"),a=e("./getEventKey"),s=e("./getEventModifierState"),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),t.exports=r},{"./SyntheticUIEvent":207,"./getEventCharCode":228,"./getEventKey":229,"./getEventModifierState":230}],205:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticUIEvent"),i=e("./ViewportMetrics"),a=e("./getEventModifierState"),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,s),t.exports=r},{"./SyntheticUIEvent":207,"./ViewportMetrics":210,"./getEventModifierState":230}],206:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticUIEvent"),i=e("./getEventModifierState"),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},{"./SyntheticUIEvent":207,"./getEventModifierState":230}],207:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticEvent"),i=e("./getEventTarget"),a={view:function(e){if(e.view)return e.view;var t=i(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":201,"./getEventTarget":231}],208:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticMouseEvent"),i={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};o.augmentClass(r,i),t.exports=r},{"./SyntheticMouseEvent":205}],209:[function(e,t,n){"use strict";var r=e("./invariant"),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,s,u){r(!this.isInTransaction());var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,n,o,i,a,s,u),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(p){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(o){}}}},closeAll:function(e){r(this.isInTransaction());for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o,a=t[n],s=this.wrapperInitData[n];try{o=!0,s!==i.OBSERVED_ERROR&&a.close&&a.close.call(this,s),o=!1}finally{if(o)try{this.closeAll(n+1)}catch(u){}}}this.wrapperInitData.length=0}},i={Mixin:o,OBSERVED_ERROR:{}};t.exports=i},{"./invariant":241}],210:[function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};t.exports=r},{}],211:[function(e,t,n){"use strict";function r(e,t){if(o(null!=t),null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=e("./invariant");t.exports=r},{"./invariant":241}],212:[function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0;r<e.length;r++)t=(t+e.charCodeAt(r))%o,n=(n+t)%o;return t|n<<16}var o=65521;t.exports=r},{}],213:[function(e,t,n){function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;t.exports=r},{}],214:[function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=e("./camelize"),i=/^-ms-/;t.exports=r},{"./camelize":213}],215:[function(e,t,n){function r(e,t){return e&&t?e===t?!0:o(e)?!1:o(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var o=e("./isTextNode");t.exports=r},{"./isTextNode":245}],216:[function(e,t,n){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():i(e):[e]}var i=e("./toArray");t.exports=o},{"./toArray":258}],217:[function(e,t,n){"use strict";function r(e){var t=i.createFactory(e),n=o.createClass({tagName:e.toUpperCase(),displayName:"ReactFullPageComponent"+e,componentWillUnmount:function(){a(!1)},render:function(){return t(this.props)}});return n}var o=e("./ReactClass"),i=e("./ReactElement"),a=e("./invariant");t.exports=r},{"./ReactClass":139,"./ReactElement":163,"./invariant":241}],218:[function(e,t,n){function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var n=c;u(!!c);var o=r(e),i=o&&s(o);if(i){n.innerHTML=i[1]+e+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(u(t),a(p).forEach(t));for(var h=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return h}var i=e("./ExecutionEnvironment"),a=e("./createArrayFromMixed"),s=e("./getMarkupWrap"),u=e("./invariant"),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=o},{"./ExecutionEnvironment":126,"./createArrayFromMixed":216,"./getMarkupWrap":233,"./invariant":241}],219:[function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=e("./CSSProperty"),i=o.isUnitlessNumber;t.exports=r},{"./CSSProperty":109}],220:[function(e,t,n){function r(e){return function(){return e}}function o(){}o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],221:[function(e,t,n){"use strict";var r={};t.exports=r},{}],222:[function(e,t,n){"use strict";function r(e){return i[e]}function o(e){return(""+e).replace(a,r)}var i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g;t.exports=o},{}],223:[function(e,t,n){"use strict";function r(e){return null==e?null:s(e)?e:o.has(e)?i.getNodeFromInstance(e):(a(null==e.render||"function"!=typeof e.render),void a(!1))}var o=(e("./ReactCurrentOwner"),e("./ReactInstanceMap")),i=e("./ReactMount"),a=e("./invariant"),s=e("./isNode");e("./warning");t.exports=r},{"./ReactCurrentOwner":145,"./ReactInstanceMap":173,"./ReactMount":176,"./invariant":241,"./isNode":243,"./warning":260}],224:[function(e,t,n){"use strict";function r(e,t,n){var r=e,o=!r.hasOwnProperty(n);o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}var i=e("./traverseAllChildren");e("./warning");t.exports=o},{"./traverseAllChildren":259,"./warning":260}],225:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(t){}}t.exports=r},{}],226:[function(e,t,n){"use strict";var r=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=r},{}],227:[function(e,t,n){function r(){try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],228:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],229:[function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=e("./getEventCharCode"),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={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"};t.exports=r},{"./getEventCharCode":228}],230:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return r?!!n[r]:!1}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},{}],231:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=r},{}],232:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);return"function"==typeof t?t:void 0}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],233:[function(e,t,n){function r(e){return i(!!a),h.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?a.innerHTML="<link />":a.innerHTML="<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?h[e]:null}var o=e("./ExecutionEnvironment"),i=e("./invariant"),a=o.canUseDOM?document.createElement("div"):null,s={circle:!0,clipPath:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},u=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,"<svg>","</svg>"],h={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l,circle:p,clipPath:p,defs:p,ellipse:p,g:p,line:p,linearGradient:p,path:p,polygon:p,polyline:p,radialGradient:p,rect:p,stop:p,text:p};t.exports=r},{"./ExecutionEnvironment":126,"./invariant":241}],234:[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}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,t>=i&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}t.exports=i},{}],235:[function(e,t,n){"use strict";function r(e){return e?e.nodeType===o?e.documentElement:e.firstChild:null}var o=9;t.exports=r},{}],236:[function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=e("./ExecutionEnvironment"),i=null;t.exports=r},{"./ExecutionEnvironment":126}],237:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],238:[function(e,t,n){function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},{}],239:[function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=e("./hyphenate"),i=/^ms-/;t.exports=r},{"./hyphenate":238}],240:[function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,t){var n;if((null===e||e===!1)&&(e=a.emptyElement),"object"==typeof e){var o=e;n=t===o.type&&"string"==typeof o.type?s.createInternalComponent(o):r(o.type)?new o.type(o):new l}else"string"==typeof e||"number"==typeof e?n=s.createInstanceForText(e):c(!1);return n.construct(e),n._mountIndex=0,n._mountImage=null,n}var i=e("./ReactCompositeComponent"),a=e("./ReactEmptyComponent"),s=e("./ReactNativeComponent"),u=e("./Object.assign"),c=e("./invariant"),l=(e("./warning"),function(){});u(l.prototype,i.Mixin,{_instantiateReactComponent:o}),t.exports=o},{"./Object.assign":132,"./ReactCompositeComponent":143,"./ReactEmptyComponent":165,"./ReactNativeComponent":179,"./invariant":241,"./warning":260}],241:[function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return c[l++]}))}throw u.framesToPop=1,u}};t.exports=r},{}],242:[function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=e("./ExecutionEnvironment");i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{"./ExecutionEnvironment":126}],243:[function(e,t,n){function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],244:[function(e,t,n){"use strict";function r(e){return e&&("INPUT"===e.nodeName&&o[e.type]||"TEXTAREA"===e.nodeName)}var o={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};t.exports=r},{}],245:[function(e,t,n){function r(e){return o(e)&&3==e.nodeType}var o=e("./isNode");t.exports=r},{"./isNode":243}],246:[function(e,t,n){"use strict";var r=e("./invariant"),o=function(e){var t,n={};r(e instanceof Object&&!Array.isArray(e));for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=o},{"./invariant":241}],247:[function(e,t,n){var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],248:[function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var i in e)o.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],249:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],250:[function(e,t,n){"use strict";function r(e){return i(o.isValidElement(e)),e}var o=e("./ReactElement"),i=e("./invariant");t.exports=r},{"./ReactElement":163,"./invariant":241}],251:[function(e,t,n){"use strict";var r,o=e("./ExecutionEnvironment");o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":126}],252:[function(e,t,n){var r=e("./performance");r&&r.now||(r=Date);var o=r.now.bind(r);t.exports=o},{"./performance":251}],253:[function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=e("./escapeTextContentForBrowser");t.exports=r},{"./escapeTextContentForBrowser":222}],254:[function(e,t,n){"use strict";var r=e("./ExecutionEnvironment"),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,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="\ufeff"+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}t.exports=a},{"./ExecutionEnvironment":126}],255:[function(e,t,n){"use strict";var r=e("./ExecutionEnvironment"),o=e("./escapeTextContentForBrowser"),i=e("./setInnerHTML"),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),t.exports=a},{"./ExecutionEnvironment":126,"./escapeTextContentForBrowser":222,"./setInnerHTML":254}],256:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}t.exports=r},{}],257:[function(e,t,n){"use strict";function r(e,t){if(null!=e&&null!=t){var n=typeof e,r=typeof t;if("string"===n||"number"===n)return"string"===r||"number"===r;if("object"===r&&e.type===t.type&&e.key===t.key){var o=e._owner===t._owner;return o}}return!1}e("./warning");t.exports=r},{"./warning":260}],258:[function(e,t,n){function r(e){var t=e.length;if(o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),o("number"==typeof t),o(0===t||t-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),i=0;t>i;i++)r[i]=e[i];return r}var o=e("./invariant");t.exports=r},{"./invariant":241}],259:[function(e,t,n){"use strict";function r(e){return v[e]}function o(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(g,r)}function a(e){return"$"+i(e)}function s(e,t,n,r,i){var u=typeof e;if(("undefined"===u||"boolean"===u)&&(e=null),null===e||"string"===u||"number"===u||c.isValidElement(e))return r(i,e,""===t?d+o(e,0):t,n),1;var p,v,g,y=0;if(Array.isArray(e))for(var _=0;_<e.length;_++)p=e[_],v=(""!==t?t+m:d)+o(p,_),g=n+y,y+=s(p,v,g,r,i);else{var b=h(e);if(b){var E,w=b.call(e);if(b!==e.entries)for(var C=0;!(E=w.next()).done;)p=E.value,v=(""!==t?t+m:d)+o(p,C++),g=n+y,y+=s(p,v,g,r,i);else for(;!(E=w.next()).done;){var x=E.value;x&&(p=x[1],v=(""!==t?t+m:d)+a(x[0])+m+o(p,0),g=n+y,y+=s(p,v,g,r,i))}}else if("object"===u){f(1!==e.nodeType);var R=l.extract(e);for(var T in R)R.hasOwnProperty(T)&&(p=R[T],v=(""!==t?t+m:d)+a(T)+m+o(p,0),g=n+y,y+=s(p,v,g,r,i))}}return y}function u(e,t,n){return null==e?0:s(e,"",0,t,n)}var c=e("./ReactElement"),l=e("./ReactFragment"),p=e("./ReactInstanceHandles"),h=e("./getIteratorFn"),f=e("./invariant"),d=(e("./warning"),p.SEPARATOR),m=":",v={"=":"=0",".":"=1",":":"=2"},g=/[=.:]/g;t.exports=u},{"./ReactElement":163,"./ReactFragment":169,"./ReactInstanceHandles":172,"./getIteratorFn":232,"./invariant":241,"./warning":260}],260:[function(e,t,n){"use strict";var r=e("./emptyFunction"),o=r;t.exports=o},{"./emptyFunction":220}],261:[function(e,t,n){t.exports=e("./lib/React")},{"./lib/React":134}]},{},[13]);