Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rax

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rax - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

dist/rax.min.js
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define)define("rax",function(t,n,r){r.exports=e()});else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:this,t.Rax=e()}}(function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getDriver=t.setDriver=t.version=t.setNativeProps=t.findComponentInstance=t.unmountComponentAtNode=t.findDOMNode=t.render=t.PropTypes=t.PureComponent=t.Component=t.createFactory=t.isValidElement=t.cloneElement=t.createElement=void 0;var o=n(1);Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return o.createElement}}),Object.defineProperty(t,"cloneElement",{enumerable:!0,get:function(){return o.cloneElement}}),Object.defineProperty(t,"isValidElement",{enumerable:!0,get:function(){return o.isValidElement}}),Object.defineProperty(t,"createFactory",{enumerable:!0,get:function(){return o.createFactory}});var i=n(4);Object.defineProperty(t,"setDriver",{enumerable:!0,get:function(){return i.setDriver}}),Object.defineProperty(t,"getDriver",{enumerable:!0,get:function(){return i.getDriver}}),n(11);var u=n(18),l=r(u),a=n(19),f=r(a),d=n(20),c=r(d),s=n(21),p=r(s),v=n(7),m=r(v),h=n(14),y=r(h),_=n(33),b=r(_),C=n(6),g=r(C),x=n(34),N=r(x);t.Component=l.default,t.PureComponent=f.default,t.PropTypes=c.default,t.render=p.default,t.findDOMNode=m.default,t.unmountComponentAtNode=y.default,t.findComponentInstance=b.default,t.setNativeProps=g.default,t.version=N.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){if(m.default.component){var e=m.default.component.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)i(e[n],t);else t.push(e)}function u(e){if(null==e)return e;var t=[];return i(e,t),1===t.length&&(t=t[0]),t}function l(e){if(e){if(Array.isArray(e)){for(var t={},n=0;n<e.length;++n){var r=l(e[n]);if(r)for(var o in r)t[o]=r[o]}return t}return e}}function a(e,t){if(h.isWeex&&"text"===e){var n=t.children;n&&(Array.isArray(n)&&(n=n.join("")),t.children=null,t.value=n)}return t}function f(e,t){if(null==e)throw Error("createElement: type should not be null or undefined."+o());var n={},r=void 0,i=null,a=null;if(null!=t){a=void 0===t.ref?null:t.ref,i=void 0===t.key?null:String(t.key);for(r in t)t.hasOwnProperty(r)&&!y.hasOwnProperty(r)&&(n[r]=t[r])}for(var f=arguments.length,d=Array(f>2?f-2:0),c=2;c<f;c++)d[c-2]=arguments[c];if(d.length&&(n.children=u(d)),e&&e.defaultProps){var s=e.defaultProps;for(r in s)void 0===n[r]&&(n[r]=s[r])}return n.style&&(Array.isArray(n.style)||"object"===p(n.style))&&(n.style=l(n.style)),new _(e,i,a,n,m.default.component)}function d(e){var t=f.bind(null,e);return t.type=e,t}function c(e,t){var n=Object.assign({},e.props),r=e.key,o=e.ref,i=e._owner;if(t){void 0!==t.ref&&(o=t.ref,i=m.default.component),void 0!==t.key&&(r=String(t.key));var l=void 0;e.type&&e.type.defaultProps&&(l=e.type.defaultProps);var a=void 0;for(a in t)t.hasOwnProperty(a)&&!y.hasOwnProperty(a)&&(void 0===t[a]&&void 0!==l?n[a]=l[a]:n[a]=t[a])}for(var f=arguments.length,d=Array(f>2?f-2:0),c=2;c<f;c++)d[c-2]=arguments[c];return d.length&&(n.children=u(d)),new _(e.type,r,o,n,i)}function s(e){return"object"===("undefined"==typeof e?"undefined":p(e))&&null!==e&&e.type&&e.props}Object.defineProperty(t,"__esModule",{value:!0});var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.createElement=f,t.createFactory=d,t.cloneElement=c,t.isValidElement=s;var v=n(2),m=r(v),h=n(3),y={key:!0,ref:!0},_=function(e,t,n,r,o){return r=a(e,r),{type:e,key:t,ref:n,props:r,_owner:o}};t.default=_},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={component:null,driver:null,mountID:1,sandbox:!0,rootComponents:{},rootInstances:{}},e.exports=t.default},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":"undefined"==typeof e?"undefined":n(e)};t.isWeb="object"===("undefined"==typeof navigator?"undefined":r(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),t.isNode="undefined"!=typeof process&&!(!process.versions||!process.versions.node),t.isWeex="function"==typeof callNative,t.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.injectDriver=t.getDriver=t.setDriver=void 0;var o=n(2),i=r(o),u=n(5),l=r(u),a=n(9),f=r(a),d=n(3),c=t.setDriver=function(e){i.default.driver=e},s=t.getDriver=function(){return i.default.driver};t.injectDriver=function(){var e=s();if(!e){if(d.isWeex)e=l.default;else{if(!d.isWeb)throw Error("No builtin driver matched");e=f.default}c(e)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(2),u=(r(i),n(6)),l=r(u),a=n(8),f="style",d="id",c="text",s=750,p=11,v={},m="object"===("undefined"==typeof __weex_document__?"undefined":o(__weex_document__))?__weex_document__:"object"===("undefined"==typeof m?"undefined":o(m))?m:null,h={getElementById:function(e){return v[e]},getChildNodes:function(e){return e.children},createBody:function(){if(m.open(),m.body)return m.body;var e=m.documentElement,t=m.createBody();return e.appendChild(t),t},createFragment:function(){return{nodeType:p,childNodes:[]}},createComment:function(e){return m.createComment(e)},createEmpty:function(){return this.createComment(" empty ")},createText:function(e){return h.createElement({type:c,props:{value:e}})},updateText:function(e,t){this.setAttribute(e,"value",t)},createElement:function(e){var t=e.props,n={},r=t[f];for(var o in r)n[o]=(0,a.convertUnit)(r[o],o);var i=m.createElement(e.type,{style:n});return(0,l.default)(i,t,!0),i},appendChild:function(e,t){var n=this;return t.nodeType===p?t.childNodes.push(e):e.nodeType===p?e.childNodes.map(function(e){return n.appendChild(e,t)}):t.appendChild(e)},removeChild:function(e,t){var n=e.attr&&e.attr[d];return null!=n&&(v[n]=null),t.removeChild(e)},replaceChild:function(e,t,n){var r=t.previousSibling,o=t.nextSibling;this.removeChild(t,n),r?this.insertAfter(e,r,n):o?this.insertBefore(e,o,n):this.appendChild(e,n)},insertAfter:function(e,t,n){var r=this;return e.nodeType===p?e.childNodes.map(function(o,i){return r.insertAfter(o,e.childNodes[i-1]||t,n)}):n.insertAfter(e,t)},insertBefore:function(e,t,n){var r=this;return e.nodeType===p?e.childNodes.map(function(e,o){return r.insertBefore(e,t,n)}):n.insertBefore(e,t)},addEventListener:function(e,t,n){return e.addEvent(t,n)},removeEventListener:function(e,t,n){return e.removeEvent(t,n)},removeAllEventListeners:function(e){},removeAttribute:function(e,t,n){return t==d&&(v[n]=null),e.setAttr(t,void 0)},setAttribute:function(e,t,n){return t==d&&(v[n]=e),e.setAttr(t,n)},setStyles:function(e,t){for(var n in t){var r=t[n];r=(0,a.convertUnit)(r,n),e.setStyle(n,r)}},beforeRender:function(){(0,a.setRem)(this.getWindowWidth()/s)},afterRender:function(){m&&m.listener&&m.listener.createFinish&&m.listener.createFinish(function(){m.close()})},getWindowWidth:function(){return s}};t.default=h,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){e=(0,a.default)(e);for(var r in t){var o=t[r];if(r!==d&&null!=o)if(r===f){if(n)continue;u.default.driver.setStyles(e,o)}else if("on"===r.substring(0,2)){var i=r.slice(2).toLowerCase();u.default.driver.addEventListener(e,i,o)}else u.default.driver.setAttribute(e,r,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(2),u=r(i),l=n(7),a=r(l),f="style",d="children";e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(null==e)return null;if(e.ownerDocument||e.nodeType)return e;if(e._nativeNode)return e._nativeNode;if("string"==typeof e)return u.default.driver.getElementById(e);if("function"!=typeof e.render)throw new Error("Appears to be neither Component nor DOMNode.");var t=e._internal;if(t){for(;!t._nativeNode;)if(t=t._renderedComponent,null==t)return null;return t._nativeNode}throw new Error("findDOMNode was called on an unmounted component.")}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),u=r(i);t.default=o,e.exports=t.default},function(e,t){"use strict";function n(e){return"string"==typeof e&&e.indexOf(f)!==-1}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return e.replace(d,function(e){return parseFloat(e)*t+"px"})}function o(){return c}function i(e){c=e}function u(e,t){return"number"==typeof e&&!a[t]}function l(e,t){return t&&u(e,t)?e*c+"px":n(e)?r(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.isRem=n,t.calcRem=r,t.getRem=o,t.setRem=i,t.isUnitNumber=u,t.convertUnit=l;var a={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,lines:!0},f="rem",d=/[-+]?\d*\.?\d+rem/g,c=void 0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),i=r(o),u=n(8),l=n(10),a=r(l),f=750,d="dangerouslySetInnerHTML",c={getElementById:function(e){return document.getElementById(e)},getChildNodes:function(e){return e.childNodes},createBody:function(){return document.body},createFragment:function(){return document.createDocumentFragment()},createComment:function(e){return document.createComment(e)},createEmpty:function(){return this.createComment(" empty ")},createText:function(e){return document.createTextNode(e)},updateText:function(e,t){var n="textContent"in document?"textContent":"nodeValue";e[n]=t},createElement:function(e){var t=document.createElement(e.type),n=e.props;return(0,i.default)(t,n),t},appendChild:function(e,t){return t.appendChild(e)},removeChild:function(e,t){e.parentNode===t&&t.removeChild(e)},replaceChild:function(e,t,n){n.replaceChild(e,t)},insertAfter:function(e,t,n){var r=t.nextSibling;r?n.insertBefore(e,r):n.appendChild(e)},insertBefore:function(e,t,n){n.insertBefore(e,t)},addEventListener:function(e,t,n){return e.addEventListener(t,n)},removeEventListener:function(e,t,n){return e.removeEventListener(t,n)},removeAllEventListeners:function(e){},removeAttribute:function(e,t){"className"===t&&(t="class"),"input"!=e.nodeName.toLowerCase()||("checked"!=t||"checkbox"!==e.type&&"radio"!==e.type)&&"value"!=t?t===d?e.innerHTML=null:e.removeAttribute(t):e[t]=null},setAttribute:function(e,t,n){"className"===t&&(t="class"),"input"!=e.nodeName.toLowerCase()||("checked"!=t||"checkbox"!==e.type&&"radio"!==e.type)&&"value"!=t?t===d?e.innerHTML=n.__html:null!=n&&e.setAttribute(t,n):e[t]=n},setStyles:function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];a.default.isFlexProp(n)?a.default[n](r,e.style):e.style[n]=(0,u.convertUnit)(r,n)}},beforeRender:function(){(0,u.setRem)(this.getWindowWidth()/f)},getWindowWidth:function(){return document.documentElement.clientWidth}};t.default=c,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={stretch:"stretch","flex-start":"start","flex-end":"end",center:"center"},r={row:"horizontal",column:"vertical"},o={"flex-start":"start","flex-end":"end",center:"center","space-between":"justify","space-around":"justify"},i={display:!0,flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0},u={isFlexProp:function(e){return i[e]},display:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"flex"===e?(t.display="-webkit-box",t.display="-webkit-flex",t.display="flex"):t.display=e,t},flex:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxFlex=e,t.webkitFlex=e,t.flex=e,t},flexWrap:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.flexWrap=e,t},alignItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxAlign=n[e],t.webkitAlignItems=e,t.alignItems=e,t},alignSelf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitAlignSelf=e,t.alignSelf=e,t},flexDirection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxOrient=r[e],t.webkitFlexDirection=e,t.flexDirection=e,t},justifyContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxPack=o[e],t.webkitJustifyContent=e,t.justifyContent=e,t}};t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(12),i=r(o);"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject(i.default)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(13),i=r(o),u=n(2),l=r(u);t.default={ComponentTree:{getClosestInstanceFromNode:function(e){return i.default.get(e)},getNodeFromInstance:function(e){for(;e._renderedComponent;)e=e._renderedComponent;return e?e._nativeNode:null}},Mount:{_instancesByReactRootID:l.default.rootComponents,_renderNewRootComponent:function(){}},Reconciler:{mountComponent:function(){},receiveComponent:function(){},unmountComponent:function(){}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=r(o),u=n(1),l=n(14),a=r(l),f=n(15),d=r(f),c=n(16),s=r(c),p=n(17),v=r(p),m=n(12),h=r(m),y="$$instance";t.default={set:function(e,t){e[y]||(e[y]=t,t.rootID&&(i.default.rootInstances[t.rootID]=t,i.default.rootComponents[t.rootID]=t._internal))},get:function(e){return e[y]},remove:function(e){var t=this.get(e);t&&(e[y]=null,t.rootID&&(delete i.default.rootComponents[t.rootID],delete i.default.rootInstances[t.rootID]))},render:function(e,t){var n=this.get(t),r=n&&n.isRootComponent;if(r){var o=n.getRenderedComponent(),i=o._currentElement;if((0,s.default)(i,e)){var l=o._context;return o.updateComponent(i,e,l,l),n}h.default.Reconciler.unmountComponent(n),(0,a.default)(t)}var f=(0,u.createElement)(v.default,null,e),c=(0,d.default)(f),p={},m=c.mountComponent(t,p);return this.set(t,m),h.default.Mount._renderNewRootComponent(m._internal),m}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=u.default.get(e);return!!t&&(u.default.remove(e),t._internal.unmountComponent(),!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(13),u=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=void 0;if(void 0===e||null===e||e===!1||e===!0)t=new l.default.EmptyComponent;else if(Array.isArray(e))t=new l.default.FragmentComponent(e);else if("object"===("undefined"==typeof e?"undefined":i(e))&&e.type)t="string"==typeof e.type?new l.default.NativeComponent(e):new l.default.CompositeComponent(e);else{if("string"!=typeof e&&"number"!=typeof e)throw Error("Invalid element type "+JSON.stringify(e));t=new l.default.TextComponent(e)}return t._mountIndex=0,t}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=n(2),l=r(u);t.default=o,e.exports=t.default},function(e,t){"use strict";function n(e,t){var n=null===e,o=null===t;if(n||o)return n===o;var i="undefined"==typeof e?"undefined":r(e),u="undefined"==typeof t?"undefined":r(t);return"string"===i||"number"===i?"string"===u||"number"===u:"object"===i&&"object"===u&&e.type===t.type&&e.key===t.key}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=n,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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=n(18),f=r(a),d=1,c=function(e){function t(){var e,n,r,u;o(this,t);for(var l=arguments.length,a=Array(l),f=0;f<l;f++)a[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.rootID=d++,u=n,i(r,u)}return u(t,e),l(t,[{key:"isRootComponent",value:function(){}},{key:"render",value:function(){return this.props.children}},{key:"getPublicInstance",value:function(){return this.getRenderedComponent().getPublicInstance()}},{key:"getRenderedComponent",value:function(){return this._internal._renderedComponent}}]),t}(f.default);t.default=c,e.exports=t.default},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function(){function e(t,r,o){n(this,e),this.props=t,this.context=r,this.refs={},this.updater=o}return r(e,[{key:"isComponentClass",value:function(){}},{key:"setState",value:function(e,t){this.updater.setState(this,e,t)}},{key:"forceUpdate",value:function(e){this.updater.forceUpdate(this,e)}}]),e}();t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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=n(18),f=r(a),d=function(e){function t(e,n){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return u(t,e),l(t,[{key:"isPureComponentClass",value:function(){}}]),t}(f.default);t.default=d,e.exports=t.default},function(e,t){"use strict";function n(e){function t(e,t,n,r,o,i){}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function r(e){function t(e,t,n,r,o){}return n(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r();t.default={array:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,element:o,node:o,any:o,arrayOf:o,instanceOf:o,objectOf:o,oneOf:o,oneOfType:o,shape:o},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){(0,u.default)(),(0,f.injectDriver)();var r=(0,f.getDriver)();r.beforeRender&&r.beforeRender(e,t),null==t&&(t=r.createBody());var o=a.default.render(e,t),i=o.getPublicInstance();return n&&n.call(i),r.afterRender&&r.afterRender(i),i}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),u=r(i),l=n(13),a=r(l),f=(n(8),n(4));t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){u.default.EmptyComponent=a.default,u.default.NativeComponent=d.default,u.default.TextComponent=s.default,u.default.FragmentComponent=h.default,u.default.CompositeComponent=v.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(2),u=r(i),l=n(23),a=r(l),f=n(24),d=r(f),c=n(27),s=r(c),p=n(28),v=r(p),m=n(32),h=r(m);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});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}}(),u=n(2),l=r(u),a=function(){function e(){o(this,e),this._currentElement=null}return i(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t;var r={_internal:this},o=this.getNativeNode();return n?n(o,e):l.default.driver.appendChild(o,e),r}},{key:"unmountComponent",value:function(e){this._nativeNode&&!e&&l.default.driver.removeChild(this._nativeNode,this._parent),this._nativeNode=null,this._parent=null,this._context=null}},{key:"updateComponent",value:function(){}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=l.default.driver.createEmpty()),this._nativeNode}}]),e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});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}}(),u=n(2),l=r(u),a=n(25),f=r(a),d=n(15),c=r(d),s=n(16),p=r(s),v=n(26),m=r(v),h=n(13),y=r(h),_=n(12),b=r(_),C="style",g="children",x="tree",N=function(){function e(t){o(this,e),this._currentElement=t}return i(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=l.default.mountID++;var r=this._currentElement.props,o=this._currentElement.type,i={_internal:this,type:o,props:r},u=r.append;this._instance=i,this._prevStyleCopy=Object.assign({},r.style);var a=this.getNativeNode();u!==x&&(n?n(a,e):l.default.driver.appendChild(a,e)),this._currentElement&&this._currentElement.ref&&f.default.attach(this._currentElement._owner,this._currentElement.ref,this);var d=r.children;return null!=d&&this.mountChildren(d,t),u===x&&(n?n(a,e):l.default.driver.appendChild(a,e)),b.default.Reconciler.mountComponent(this),i}},{key:"mountChildren",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]);var r={},o=e.map(function(e,o){var i=(0,c.default)(e),u=(0,m.default)(r,e,o);r[u]=i,i._mountIndex=o;var l=i.mountComponent(n.getNativeNode(),t);return l});return this._renderedChildren=r,o}},{key:"unmountChildren",value:function(){var e=this._renderedChildren;if(e){for(var t in e){var n=e[t];n.unmountComponent()}this._renderedChildren=null}}},{key:"unmountComponent",value:function(e){if(this._nativeNode){var t=this._currentElement.ref;t&&f.default.detach(this._currentElement._owner,t,this),y.default.remove(this._nativeNode),e||l.default.driver.removeChild(this._nativeNode,this._parent),l.default.driver.removeAllEventListeners(this._nativeNode)}this.unmountChildren(),b.default.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._instance=null,this._prevStyleCopy=null}},{key:"updateComponent",value:function(e,t,n,r){this._currentElement=t,f.default.update(e,t,this);var o=e.props,i=t.props;this.updateProperties(o,i),this.updateChildren(i.children,r),b.default.Reconciler.receiveComponent(this)}},{key:"updateProperties",value:function(e,t){var n=void 0,r=void 0,o=void 0;for(n in e)if(n!==g&&!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&null!=e[n])if(n===C){var i=this._prevStyleCopy;for(r in i)i.hasOwnProperty(r)&&(o=o||{},o[r]="");this._prevStyleCopy=null}else"on"===n.substring(0,2)?e[n]&&l.default.driver.removeEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),e[n]):l.default.driver.removeAttribute(this.getNativeNode(),n,e[n]);for(n in t){var u=t[n],a=n===C?this._prevStyleCopy:null!=e?e[n]:void 0;if(n!==g&&t.hasOwnProperty(n)&&u!==a&&(null!=u||null!=a))if(n===C)if(u?u=this._prevStyleCopy=Object.assign({},u):this._prevStyleCopy=null,null!=a){for(r in a)!a.hasOwnProperty(r)||u&&u.hasOwnProperty(r)||(o=o||{},o[r]="");for(r in u)u.hasOwnProperty(r)&&a[r]!==u[r]&&(o=o||{},o[r]=u[r])}else o=u;else"on"===n.substring(0,2)?(null!=a&&l.default.driver.removeEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),a),null!=u&&l.default.driver.addEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),u)):null!=u?l.default.driver.setAttribute(this.getNativeNode(),n,u):l.default.driver.removeAttribute(this.getNativeNode(),n,e[n])}o&&l.default.driver.setStyles(this.getNativeNode(),o)}},{key:"updateChildren",value:function(e,t){var n=this,r=this._renderedChildren;if(null!=e||null!=r){var o={},i={};if(null!=e){Array.isArray(e)||(e=[e]);for(var u=0,a=e.length;u<a;u++){var f=e[u],d=(0,m.default)(o,f,u),s=r&&r[d],v=s&&s._currentElement;if(null!=s&&(0,p.default)(v,f))s.updateComponent(v,f,t,t),o[d]=s;else{if(s){var h=s.getNativeNode();s.unmountComponent(!0),i[d]=h}o[d]=(0,c.default)(f)}}}if(null!=r)for(var y in r)if(r.hasOwnProperty(y)){var _=r[y];o[y]||_.unmountComponent()}null!=o&&!function(){var e=0,u=0,a=null,f=function(f){if(!o.hasOwnProperty(f))return"continue";var d=o[f],c=r&&r[f];c===d?(c._mountIndex<e&&l.default.driver.insertAfter(c.getNativeNode(),a,n.getNativeNode()),e=Math.max(c._mountIndex,e),c._mountIndex=u):(null!=c&&(e=Math.max(c._mountIndex,e)),d.mountComponent(n.getNativeNode(),t,function(e,t){var n=i[f];if(n)l.default.driver.replaceChild(e,n,t);else{var r=l.default.driver.getChildNodes(t),o=r[u];o?l.default.driver.insertBefore(e,o,t):l.default.driver.appendChild(e,t)}}),d._mountIndex=u),u++,a=d.getNativeNode()};for(var d in o){f(d)}}(),this._renderedChildren=o}}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=l.default.driver.createElement(this._instance),y.default.set(this._nativeNode,this._instance)),this._nativeNode}},{key:"getPublicInstance",value:function(){return this.getNativeNode()}},{key:"getName",value:function(){return this._currentElement.type}}]),e}();t.default=N,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={update:function(e,t,n){var r=null!=e&&e.ref,o=null!=t&&t.ref;r!==o&&(null!=r&&this.detach(e._owner,r,n),null!=o&&this.attach(t._owner,o,n))},attach:function(e,t,n){if(!e)throw new Error("You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of Rax loaded.");var r=n.getPublicInstance();"function"==typeof t?t(r):e._instance.refs[t]=r},detach:function(e,t,n){if("function"==typeof t)t(null);else{var r=n.getPublicInstance();e._instance.refs[t]===r&&delete e._instance.refs[t]}}},e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=t&&t.key,o="string"==typeof r,i="."+n.toString(36);if(o){var u="$"+r,l=void 0===e[u];return l||console.warn('Encountered two children with the same key "'+r+'".'),l?u:i}return i},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});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}}(),u=n(2),l=r(u),a=n(12),f=r(a),d=function(){function e(t){o(this,e),this._currentElement=t,this._stringText=String(t)}return i(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=l.default.mountID++;var r=this.getNativeNode();n?n(r,e):l.default.driver.appendChild(r,e);var o={_internal:this};return f.default.Reconciler.mountComponent(this),o}},{key:"unmountComponent",value:function(e){this._nativeNode&&!e&&l.default.driver.removeChild(this._nativeNode,this._parent),f.default.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._stringText=null}},{key:"updateComponent",value:function(e,t,n){e!==t&&(this._currentElement=t,this._stringText=String(t),l.default.driver.updateText(this.getNativeNode(),t),f.default.Reconciler.receiveComponent(this))}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=l.default.driver.createText(this._stringText)),this._nativeNode}}]),e}();t.default=d,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){try{return e()}catch(e){if(t)t(e);else{if(!s.default.sandbox)throw e;setTimeout(function(){throw e},0)}}}Object.defineProperty(t,"__esModule",{value:!0});var 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}}(),l=n(29),a=r(l),f=n(30),d=r(f),c=n(2),s=r(c),p=n(25),v=r(p),m=n(15),h=r(m),y=n(16),_=r(y),b=n(31),C=r(b),g=n(12),x=r(g),N=function(){function e(t){o(this,e),this._currentElement=t}return u(e,[{key:"getName",value:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;
return e.displayName||t&&t.displayName||e.name||t&&t.name||null}},{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=s.default.mountID++,this._updateCount=0;var r=this._currentElement.type,o=this._currentElement.props,u=r.prototype&&r.prototype.isComponentClass,l=r.prototype.render,f=this._processContext(t),c=void 0,p=void 0;if(u||l)c=new r(o,f,d.default);else{if("function"!=typeof r)throw Error("Invalid component type "+JSON.stringify(r));c=new a.default(r)}c.props=o,c.context=f,c.refs={},c.updater=d.default,c._internal=this,this._instance=c;var m=c.state;if(void 0===m&&(c.state=m=null),i(function(){c.componentWillMount&&c.componentWillMount()}),null==p){s.default.component=this,c.state=this._processPendingState(o,f);var y=void 0;"function"==typeof c.handleError&&(y=function(e){c.handleError(e)}),i(function(){p=c.render()},y),s.default.component=null}return this._renderedComponent=(0,h.default)(p),this._renderedComponent.mountComponent(this._parent,this._processChildContext(t),n),this._currentElement&&this._currentElement.ref&&v.default.attach(this._currentElement._owner,this._currentElement.ref,this),i(function(){c.componentDidMount&&c.componentDidMount()}),x.default.Reconciler.mountComponent(this),c}},{key:"unmountComponent",value:function(e){var t=this._instance;if(i(function(){t.componentWillUnmount&&t.componentWillUnmount()}),x.default.Reconciler.unmountComponent(this),t._internal=null,null!=this._renderedComponent){var n=this._currentElement.ref;n&&v.default.detach(this._currentElement._owner,n,this),this._renderedComponent.unmountComponent(e),this._renderedComponent=null,this._instance=null}this._currentElement=null,this._pendingStateQueue=null,this._pendingForceUpdate=!1,this._context=null}},{key:"_processContext",value:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return{};var r={};for(var o in n)r[o]=e[o];return r}},{key:"_processChildContext",value:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();return n?Object.assign({},e,n):e}},{key:"_processPendingState",value:function(e,t){var n=this._instance,r=this._pendingStateQueue;if(!r)return n.state;this._pendingStateQueue=null;for(var o=Object.assign({},n.state),i=0;i<r.length;i++){var u=r[i];Object.assign(o,"function"==typeof u?u.call(n,o,e,t):u)}return o}},{key:"updateComponent",value:function(e,t,n,r){var o=this,u=this._instance;u||console.error("Update component '"+this.getName()+"' that has already been unmounted (or failed to mount).");var l=!1,a=void 0,f=void 0;this._context===r?a=u.context:(a=this._processContext(r),l=!0),e===t?f=t.props:(f=t.props,l=!0),l&&u.componentWillReceiveProps&&(this._pendingState=!0,i(function(){u.componentWillReceiveProps(f,a)}),this._pendingState=!1),v.default.update(e,t,this);var d=!0,c=u.props,s=u.state,p=this._processPendingState(f,a);this._pendingForceUpdate||(u.shouldComponentUpdate?d=i(function(){return u.shouldComponentUpdate(f,p,a)}):u.isPureComponentClass&&(d=!(0,C.default)(c,f)||!(0,C.default)(s,p))),d?!function(){o._pendingForceUpdate=!1;var e=u.context;i(function(){u.componentWillUpdate&&u.componentWillUpdate(f,p,a)}),o._currentElement=t,o._context=r,u.props=f,u.state=p,u.context=a,o._updateRenderedComponent(r),i(function(){u.componentDidUpdate&&u.componentDidUpdate(c,s,e)}),o._updateCount++}():(this._currentElement=t,this._context=r,u.props=f,u.state=p,u.context=a),x.default.Reconciler.receiveComponent(this)}},{key:"_updateRenderedComponent",value:function(e){var t=this,n=this._renderedComponent,r=n._currentElement,o=this._instance,u=void 0;s.default.component=this,i(function(){u=o.render()}),s.default.component=null,(0,_.default)(r,u)?n.updateComponent(r,u,n._context,this._processChildContext(e)):!function(){var r=n.getNativeNode();n.unmountComponent(!0),t._renderedComponent=(0,h.default)(u),t._renderedComponent.mountComponent(t._parent,t._processChildContext(e),function(e,t){s.default.driver.replaceChild(e,r,t)})}()}},{key:"getNativeNode",value:function(){var e=this._renderedComponent;if(e)return e.getNativeNode()}},{key:"getPublicInstance",value:function(){var e=this._instance;return e instanceof a.default?null:e}}]),e}();t.default=N,e.exports=t.default},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function(){function e(t){n(this,e),this.pureRender=t}return r(e,[{key:"render",value:function(){return this.pureRender(this.props,this.context)}}]),e}();t.default=o,e.exports=t.default},function(e,t){"use strict";function n(e,t){if(t){var n=e._pendingCallbacks||(e._pendingCallbacks=[]);n.push(t)}}function r(e,t){if(t){var n=e._pendingStateQueue||(e._pendingStateQueue=[]);n.push(t)}}Object.defineProperty(t,"__esModule",{value:!0});var o={setState:function(e,t,o){var i=e._internal;i&&(r(i,t),n(i,o),i._pendingState||this.runUpdate(e))},forceUpdate:function(e,t){var r=e._internal;r&&(r._pendingForceUpdate=!0,n(r,t),this.runUpdate(e))},runUpdate:function(e){var t=e._internal;if(t&&t._renderedComponent){var n=t._pendingCallbacks;t._pendingCallbacks=null;var r=t._currentElement,o=t._context;(t._pendingStateQueue||t._pendingForceUpdate)&&t.updateComponent(r,r,o,o),n&&n.forEach(function(e){return e()})}}};t.default=o,e.exports=t.default},function(e,t){"use strict";function n(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!==("undefined"==typeof e?"undefined":o(e))||null===e||"object"!==("undefined"==typeof t?"undefined":o(t))||null===t)return!1;var r=Object.keys(e),u=Object.keys(t);if(r.length!==u.length)return!1;for(var l=0;l<r.length;l++)if(!i.call(t,r[l])||!n(e[r[l]],t[r[l]]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.prototype.hasOwnProperty;t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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=n(2),f=r(a),d=n(24),c=r(d),s=n(13),p=r(s),v=n(15),m=r(v),h=n(26),y=r(h),_=n(12),b=r(_),C=function(e){function t(e){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return u(t,e),l(t,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=f.default.mountID++;var r={_internal:this};this._instance=r;var o=this.getNativeNode(),i=this._currentElement;return this.mountChildren(i,t),n?n(o,e):f.default.driver.appendChild(o,e),this._nativeNode=e,b.default.Reconciler.mountComponent(this),r}},{key:"mountChildren",value:function(e,t){var n=this,r={},o=this.getNativeNode(),i=e.map(function(e,i){var u=(0,m.default)(e),l=(0,y.default)(r,e,i);r[l]=u,u._mountIndex=i;var a=u.mountComponent(n._parent,t,function(e){f.default.driver.appendChild(e,o)});return a});return this._renderedChildren=r,i}},{key:"unmountComponent",value:function(e){this._nativeNode&&(p.default.remove(this._nativeNode),e||f.default.driver.removeChild(this._nativeNode,this._parent)),this.unmountChildren(),b.default.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._instance=null}},{key:"updateComponent",value:function(e,t,n,r){this._currentElement=t,this.updateChildren(this._currentElement,r),b.default.Reconciler.receiveComponent(this)}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=f.default.driver.createFragment(this._instance)),this._nativeNode}},{key:"getPublicInstance",value:function(){return null}},{key:"getName",value:function(){return"fragment"}}]),t}(c.default);t.default=C,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return null==e?null:u.default.get(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),u=r(i);t.default=o,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="0.1.3",e.exports=t.default}])});
return e.displayName||t&&t.displayName||e.name||t&&t.name||null}},{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=s.default.mountID++,this._updateCount=0;var r=this._currentElement.type,o=this._currentElement.props,u=r.prototype&&r.prototype.isComponentClass,l=r.prototype.render,f=this._processContext(t),c=void 0,p=void 0;if(u||l)c=new r(o,f,d.default);else{if("function"!=typeof r)throw Error("Invalid component type "+JSON.stringify(r));c=new a.default(r)}c.props=o,c.context=f,c.refs={},c.updater=d.default,c._internal=this,this._instance=c;var m=c.state;if(void 0===m&&(c.state=m=null),i(function(){c.componentWillMount&&c.componentWillMount()}),null==p){s.default.component=this,c.state=this._processPendingState(o,f);var y=void 0;"function"==typeof c.handleError&&(y=function(e){c.handleError(e)}),i(function(){p=c.render()},y),s.default.component=null}return this._renderedComponent=(0,h.default)(p),this._renderedComponent.mountComponent(this._parent,this._processChildContext(t),n),this._currentElement&&this._currentElement.ref&&v.default.attach(this._currentElement._owner,this._currentElement.ref,this),i(function(){c.componentDidMount&&c.componentDidMount()}),x.default.Reconciler.mountComponent(this),c}},{key:"unmountComponent",value:function(e){var t=this._instance;if(i(function(){t.componentWillUnmount&&t.componentWillUnmount()}),x.default.Reconciler.unmountComponent(this),t._internal=null,null!=this._renderedComponent){var n=this._currentElement.ref;n&&v.default.detach(this._currentElement._owner,n,this),this._renderedComponent.unmountComponent(e),this._renderedComponent=null,this._instance=null}this._currentElement=null,this._pendingStateQueue=null,this._pendingForceUpdate=!1,this._context=null}},{key:"_processContext",value:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return{};var r={};for(var o in n)r[o]=e[o];return r}},{key:"_processChildContext",value:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();return n?Object.assign({},e,n):e}},{key:"_processPendingState",value:function(e,t){var n=this._instance,r=this._pendingStateQueue;if(!r)return n.state;this._pendingStateQueue=null;for(var o=Object.assign({},n.state),i=0;i<r.length;i++){var u=r[i];Object.assign(o,"function"==typeof u?u.call(n,o,e,t):u)}return o}},{key:"updateComponent",value:function(e,t,n,r){var o=this,u=this._instance;u||console.error("Update component '"+this.getName()+"' that has already been unmounted (or failed to mount).");var l=!1,a=void 0,f=void 0;this._context===r?a=u.context:(a=this._processContext(r),l=!0),e===t?f=t.props:(f=t.props,l=!0),l&&u.componentWillReceiveProps&&(this._pendingState=!0,i(function(){u.componentWillReceiveProps(f,a)}),this._pendingState=!1),v.default.update(e,t,this);var d=!0,c=u.props,s=u.state,p=this._processPendingState(f,a);this._pendingForceUpdate||(u.shouldComponentUpdate?d=i(function(){return u.shouldComponentUpdate(f,p,a)}):u.isPureComponentClass&&(d=!(0,C.default)(c,f)||!(0,C.default)(s,p))),d?!function(){o._pendingForceUpdate=!1;var e=u.context;i(function(){u.componentWillUpdate&&u.componentWillUpdate(f,p,a)}),o._currentElement=t,o._context=r,u.props=f,u.state=p,u.context=a,o._updateRenderedComponent(r),i(function(){u.componentDidUpdate&&u.componentDidUpdate(c,s,e)}),o._updateCount++}():(this._currentElement=t,this._context=r,u.props=f,u.state=p,u.context=a),x.default.Reconciler.receiveComponent(this)}},{key:"_updateRenderedComponent",value:function(e){var t=this,n=this._renderedComponent,r=n._currentElement,o=this._instance,u=void 0;s.default.component=this,i(function(){u=o.render()}),s.default.component=null,(0,_.default)(r,u)?n.updateComponent(r,u,n._context,this._processChildContext(e)):!function(){var r=n.getNativeNode();n.unmountComponent(!0),t._renderedComponent=(0,h.default)(u),t._renderedComponent.mountComponent(t._parent,t._processChildContext(e),function(e,t){s.default.driver.replaceChild(e,r,t)})}()}},{key:"getNativeNode",value:function(){var e=this._renderedComponent;if(e)return e.getNativeNode()}},{key:"getPublicInstance",value:function(){var e=this._instance;return e instanceof a.default?null:e}}]),e}();t.default=N,e.exports=t.default},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function(){function e(t){n(this,e),this.pureRender=t}return r(e,[{key:"render",value:function(){return this.pureRender(this.props,this.context)}}]),e}();t.default=o,e.exports=t.default},function(e,t){"use strict";function n(e,t){if(t){var n=e._pendingCallbacks||(e._pendingCallbacks=[]);n.push(t)}}function r(e,t){if(t){var n=e._pendingStateQueue||(e._pendingStateQueue=[]);n.push(t)}}Object.defineProperty(t,"__esModule",{value:!0});var o={setState:function(e,t,o){var i=e._internal;i&&(r(i,t),n(i,o),i._pendingState||this.runUpdate(e))},forceUpdate:function(e,t){var r=e._internal;r&&(r._pendingForceUpdate=!0,n(r,t),this.runUpdate(e))},runUpdate:function(e){var t=e._internal;if(t&&t._renderedComponent){var n=t._pendingCallbacks;t._pendingCallbacks=null;var r=t._currentElement,o=t._context;(t._pendingStateQueue||t._pendingForceUpdate)&&t.updateComponent(r,r,o,o),n&&n.forEach(function(e){return e()})}}};t.default=o,e.exports=t.default},function(e,t){"use strict";function n(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!==("undefined"==typeof e?"undefined":o(e))||null===e||"object"!==("undefined"==typeof t?"undefined":o(t))||null===t)return!1;var r=Object.keys(e),u=Object.keys(t);if(r.length!==u.length)return!1;for(var l=0;l<r.length;l++)if(!i.call(t,r[l])||!n(e[r[l]],t[r[l]]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.prototype.hasOwnProperty;t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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=n(2),f=r(a),d=n(24),c=r(d),s=n(13),p=r(s),v=n(15),m=r(v),h=n(26),y=r(h),_=n(12),b=r(_),C=function(e){function t(e){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return u(t,e),l(t,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=f.default.mountID++;var r={_internal:this};this._instance=r;var o=this.getNativeNode(),i=this._currentElement;return this.mountChildren(i,t),n?n(o,e):f.default.driver.appendChild(o,e),this._nativeNode=e,b.default.Reconciler.mountComponent(this),r}},{key:"mountChildren",value:function(e,t){var n=this,r={},o=this.getNativeNode(),i=e.map(function(e,i){var u=(0,m.default)(e),l=(0,y.default)(r,e,i);r[l]=u,u._mountIndex=i;var a=u.mountComponent(n._parent,t,function(e){f.default.driver.appendChild(e,o)});return a});return this._renderedChildren=r,i}},{key:"unmountComponent",value:function(e){this._nativeNode&&(p.default.remove(this._nativeNode),e||f.default.driver.removeChild(this._nativeNode,this._parent)),this.unmountChildren(),b.default.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._instance=null}},{key:"updateComponent",value:function(e,t,n,r){this._currentElement=t,this.updateChildren(this._currentElement,r),b.default.Reconciler.receiveComponent(this)}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=f.default.driver.createFragment(this._instance)),this._nativeNode}},{key:"getPublicInstance",value:function(){return null}},{key:"getName",value:function(){return"fragment"}}]),t}(c.default);t.default=C,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return null==e?null:u.default.get(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),u=r(i);t.default=o,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="0.1.4",e.exports=t.default}])});
//# sourceMappingURL=rax.min.map

@@ -6,3 +6,3 @@ 'use strict';

});
exports.default = '0.1.3';
exports.default = '0.1.4';
module.exports = exports['default'];
{
"name": "rax",
"version": "0.1.3",
"version": "0.1.4",
"description": "A universal React-compatible render engine.",

@@ -16,4 +16,4 @@ "license": "BSD-3-Clause",

"dependencies": {
"universal-env": "^0.1.3"
"universal-env": "^0.1.4"
}
}

@@ -1,1 +0,1 @@

export default '0.1.3';
export default '0.1.4';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc