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

rax

Package Overview
Dependencies
Maintainers
5
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 1.2.3-beta.2 to 1.2.3-beta.3

2

dist/rax.min.js

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

var n={t:1,i:!1,driver:null,rootComponents:{},rootInstances:{},owner:null};function t(n,t,i,r,u){return{type:n,key:t,ref:i,props:r,_owner:u}}function i(n){return null===n}function r(n){return"function"==typeof n}function u(n){return"object"==typeof n}function f(n){return"[object Object]"===a.toString.call(n)}function o(n){return Array.isArray(n)}function e(n){return"string"==typeof n}function s(n){return"number"==typeof n}function c(n){return!n}var h=function(){},a={};function v(n,t){if(o(n))for(var i=0,r=n.length;i<r;i++)v(n[i],t);else t.push(n)}function l(n){if(null==n)return n;var t=[];return v(n,t),t.length-1?t:t[0]}var p=[],d=[],_=[],x=setTimeout;function w(n){var t;while(t=n.shift())t()}function y(n){0===p.length&&x(b),p.push(n)}function b(){w(p)}function j(n){0===d.length&&x(m),d.push(n)}function m(){w(d)}function O(n){_.push(n)}function g(t,i,r){var u,o=void 0===r?"":" got: "+function(n){return f(n)?Object.keys(n):n}(r);return Error(t+": #"+i+", "+(((u=n.owner)?"check <"+u.u()+">":"no owner")+".")+o)}function k(n,t){throw g("Error",n,t)}function I(n,t){var i=g("Warn",n,t);x((function(){throw i}),0)}var A={key:!0,ref:!0};function C(i,r,u){var f,e={},s=null,c=null;if(null!=r)for(f in c=void 0===r.ref?null:r.ref,s=void 0===r.key?null:""+r.key,r)A[f]||(e[f]=r[f]);var a=arguments.length-2;if(a>0)if(1!==a||o(u)){var v=u;if(a>1){v=Array(a);for(var p=0;p<a;p++)v[p]=arguments[p+2]}e.children=l(v)}else e.children=u;if(i&&i.defaultProps){var d=i.defaultProps;for(f in d)void 0===e[f]&&(e[f]=d[f])}return null==i&&(i=h,I(0)),new t(i,s,c,e,n.owner)}function E(n,t,i){for(var r=0,u=n&&n.length;r<u;r++)n[r].call(t,i)}var P=a.hasOwnProperty;function D(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function S(n,t){if(D(n,t))return!0;if(!u(n)||i(n)||!u(t)||i(t))return!1;var r=Object.keys(n);if(r.length!==Object.keys(t).length)return!1;for(var f=0;f<r.length;f++)if(!P.call(t,r[f])||!D(n[r[f]],t[r[f]]))return!1;return!0}function U(){return n.owner&&n.owner._instance}function H(){var n=U();if(n)return n;k(1)}function N(n,t){if(i(t)||n.length!==t.length)return!1;for(var r=0;r<n.length;r++)if(!D(n[r],t[r]))return!1;return!0}function R(t){var i=H(),u=i.getHookID(),f=i.getHooks();if(!f[u]){r(t)&&(t=t());f[u]=[t,function(t){n.i||m();var o=f[u],e=o[2];r(t)&&(t=t(e)),D(t,e)||(o[2]=t,U()===i?i.o=!0:i.h())},t]}var o=f[u];return D(o[0],o[2])||(o[0]=o[2],i.v=!0),o}function T(n,t){V(n,t)}function V(n,t,i){var r=H(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u],e=o.l,s=o.p;o.p=t,o._=s,e.current=n}else{var c=function n(t){if(!t&&i)return j((function(){return n(!0)}));var r=n.current;r&&(h.current=r(),n.current=null)},h=function n(t){if(!t&&i)return j((function(){return n(!0)}));var r=n.current;r&&(r(),n.current=null)};c.current=n,f[u]={l:c,j:h,_:t,p:t},r.didMount.push(c),r.willUnmount.push((function(){return h(!0)})),r.didUpdate.push((function(){var n=f[u],t=n.p,i=n.l;null!=t&&N(t,n._)||(h(),i())}))}}function W(n,t){var r=H(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u][1];!i(t)&&N(t,o)||(f[u]=[n(),t])}else f[u]=[n(),t];return f[u][0]}function Z(n){return o(n)?n:[n]}function $(n,t){var i;while(n&&n._internal){if(t(n)){i=n;break}n=n._internal.m}return i}var q=0;function z(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,B(n,t)}function B(n,t){return(B=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}var F=function(){function t(n){this.O=n}var i=t.prototype;return i.g=function(t,i,r){this._parent=t,this.m=i,this._context=r,this._mountID=n.t++},i.k=function(){this.O=this._nativeNode=this._parent=this.m=this._context=null,this._instance&&(this._instance=this._instance._internal=null)},i.I=function(n,t,i,r){this.g(n,t,i),this.A(r);var u={};return u._internal=this,u},i.unmountComponent=function(t){this._nativeNode&&!t&&n.driver.removeChild(this._nativeNode,this._parent),this.k()},i.u=function(){var n=this.O,t=n&&n.type;return t&&t.displayName||t&&t.name||t||n},i.A=function(t){var i=this.C(),r=this._parent;t?t(i,r):n.driver.appendChild(i,r)},i.C=function(){return null==this._nativeNode?this._nativeNode=this.P():this._nativeNode},i.D=function(){return this.C()},t}(),G=function(t){function i(){return t.apply(this,arguments)||this}z(i,t);var r=i.prototype;return r.P=function(){return n.driver.createEmpty(this)},r.S=function(){},i}(F);function J(n,t,i){var r=n?n.ref:null,u=t?t.ref:null;r!==u&&(r&&L(n._owner,r,i),u&&K(t._owner,u,i))}function K(n,t,i){if(n){var f=i.D();r(t)?t(f):u(t)?t.current=f:n._instance.refs[t]=f}else I(3)}function L(n,t,i){if(r(t))t(null);else{var f=i.D();u(t)&&t.current===f?t.current=null:n._instance.refs[t]===f&&delete n._instance.refs[t]}}function M(t){var r;return f(t)&&null!==t&&t.type?r=e(t.type)?new n.U(t):new n.H(t):e(t)||s(t)?r=new n.N(t+""):o(t)?r=new n.R(t):(void 0===t||i(t)||!1===t||!0===t||I(2,t),r=new n.T(t)),r}function Q(n,t){var i=c(n),r=c(t);return i||r?i===r:!(!o(n)||!o(t))||(e(n)||s(n)?e(t)||s(t):u(n)&&u(t)&&n.type===t.type&&n.key===t.key)}function X(n,t,i){var r=t?t.key:void 0,u="."+i.toString(36);if(e(r)){var f="$"+r;return void 0===n[f]?f:u}return u}function Y(t){var i=t;while(i=t.m&&t.m._internal)if(i instanceof n.H)t=i;else{for(var r=Object.keys(i.V),u=t.W-1;u>=0;u--){var f=i.V[r[u]].C();if(!o(f))return f;if(f.length>0)return f[f.length-1]}if(!(i instanceof n.R))return null;t=i}}var nn=function(){function n(n,t){this.props=n,this.context=t,this.refs={}}var t=n.prototype;return t.setState=function(n,t){this.updater.setState(this,n,t)},t.forceUpdate=function(n){this.updater.forceUpdate(this,n)},n}(),tn=function(n){function t(t,i){var r;return(r=n.call(this,t,i)||this).Z=!0,r}return z(t,n),t}(nn),rn=1,un=function(n){function t(){var t;return(t=n.call(this)||this).$=[],t.q=rn++,t}z(t,n);var i=t.prototype;return i.D=function(){return this.B().D()},i.B=function(){return this._internal._renderedComponent},i.h=function(n){this.$=n,this.forceUpdate()},i.render=function(){return this.$},t}(nn),fn={set:function(t,i){t._r||(t._r=i,i.q&&(n.rootInstances[i.q]=i,n.rootComponents[i.q]=i._internal))},get:function(n){return n._r},remove:function(t){var i=this.get(t);i&&(t._r=null,i.q&&(delete n.rootComponents[i.q],delete n.rootInstances[i.q]))},mount:function(t,i,r){var u=r.parent,f=r.hydrate,o=n.driver;null==i&&(i=o.createBody());var e,s={element:t,container:i,hydrate:f};if(o.beforeRender&&o.beforeRender(s),u){var c=u._internal;e=c.F(c._context)}var h=this.get(i);if(h&&h.q)return e&&(h._internal.G=e),h.h(t),o.afterRender&&o.afterRender(s),h;var a=M(C(un)).I(i,u,e||{});return this.set(i,a),a.h(t),o.afterRender&&o.afterRender(s),a}},on=Object.assign,en=/^on[A-Z]/,sn=function(t){function u(){return t.apply(this,arguments)||this}z(u,t);var f=u.prototype;return f.I=function(n,t,i,r){this.g(n,t,i);var u=this.O,f=u.props,o=u.type,e=f.children,s=f.append||"tree";this.J=on({},f.style);var c={type:o,props:f};return c._internal=this,this._instance=c,"tree"===s?(this.K(e,i),this.A(r)):(this.A(r),this.K(e,i)),u&&u.ref&&K(u._owner,u.ref,this),c},f.K=function(n,t){if(null==n)return n;var i=this.C();return this.L(i,Z(n),t)},f.L=function(n,t,i,r){for(var u=this.V={},f=[],o=0,e=t.length;o<e;o++){var s=t[o],c=M(s);u[X(u,s,o)]=c,c.W=o;var h=c.I(n,this._instance,i,r);f.push(h)}return f},f.M=function(n){var t=this.V;if(t){for(var i in t){t[i].unmountComponent(n)}this.V=null}},f.unmountComponent=function(t){if(this._nativeNode){var i=this.O.ref;i&&L(this.O._owner,i,this),fn.remove(this._nativeNode),t||n.driver.removeChild(this._nativeNode,this._parent)}this.M(!0),this.J=null,this.k()},f.S=function(n,t,i,r){this.O=t,J(n,t,this);var u=n.props,f=t.props;this.X(u,f),null==u.children||o(u.children)&&0===u.children.length?this.K(f.children,r):this.Y(f.children,r)},f.X=function(t,i){var u,f,o,e=n.driver,s=this.C();for(u in t)if("children"!==u&&null!=t[u]&&!i.hasOwnProperty(u))if("style"===u){var c=this.J;for(f in c)(o=o||{})[f]="";this.J=null}else if(en.test(u)){var h=t[u];r(h)&&e.removeEventListener(s,u.slice(2).toLowerCase(),h)}else e.removeAttribute(s,u,t[u]);for(u in i){var a=i[u],v="style"===u?this.J:null!=t?t[u]:void 0;if("children"!==u&&v!==a&&(null!=a||null!=v))if("style"===u)if(a?a=this.J=on({},a):this.J=null,null!=v){for(f in v)a&&(a[f]||0===a[f])||((o=o||{})[f]="");for(f in a)v[f]!==a[f]&&((o=o||{})[f]=a[f])}else o=a;else if(en.test(u)){var l=u.slice(2).toLowerCase();r(v)&&e.removeEventListener(s,l,v,i),r(a)&&e.addEventListener(s,l,a,i)}else null!=a?e.setAttribute(s,u,a):e.removeAttribute(s,u,t[u])}o&&e.setStyle(s,o)},f.Y=function(t,r){var u=this.V,f=n.driver;if(null!=t||null!=u){var e={};if(null!=t)for(var s=0,c=(t=Z(t)).length;s<c;s++){var h=t[s],a=X(e,h,s),v=u&&u[a],l=v&&v.O,p=v&&v._context;null!=v&&Q(l,h)?(l===h&&p===r||v.S(l,h,r,r),e[a]=v):(v&&(v.nn=!0),e[a]=M(h))}var d=this.C(),_=o(d),x=null,w=null,y=!1,b=!1,j=null,m=!(!f.removeChildren||!(i(t)||t&&!t.length)||_);if(null!=u){for(var O in u){var g=u[O],k=g.nn||!e[O];x?k&&g.unmountComponent(m):(b=k,o(w=(x=g).C())&&(y=0===w.length,w=w[0]))}(_&&0===d.length||y)&&(j=Y(this))}if(null!=e){var I=function(n,t){for(var i=0,r=(n=Z(n)).length;i<r;i++)j?f.insertAfter(n[r-1-i],j):w?f.insertBefore(n[i],w):t&&f.appendChild(n[i],t)},A=0;for(var C in e){var E=e[C],P=u&&u[C];if(P===E){var D=P.C();P.W!==A&&I(D)}else _&&(d=this._parent),E.I(d,this._instance,r,I);E.W=A++,o(j=E.C())&&(j=j[j.length-1])}}b&&x.unmountComponent(m),m&&f.removeChildren(this._nativeNode),this.V=e}},f.P=function(){var t=this._instance,i=n.driver.createElement(t.type,t.props,this);return fn.set(i,t),i},u}(F),cn=function(t){function i(){return t.apply(this,arguments)||this}z(i,t);var r=i.prototype;return r.S=function(t,i){t!==(i=""+i)&&(this.O=i,n.driver.updateText(this.C(),i))},r.P=function(){return n.driver.createText(this.O,this)},i}(F),hn=function(n){function t(t,i){var r;(r=n.call(this)||this).tn=!0,r.rn=t,r.un=0,r.fn=0,r.on={},r.o=!1,r.v=!1,r.en=null,r.sn={},r.didMount=[],r.didUpdate=[],r.willUnmount=[],r.state=a,t._forwardRef&&(r.cn=r._forwardRef=i);var u=t.hn;return u&&(r.shouldComponentUpdate=function(n){for(var t=!0,i=u.length-1;i>-1;i--)if(t=u[i](r.props,n))break;return!t||r.cn!==r._forwardRef}),r}z(t,n);var i=t.prototype;return i.getHooks=function(){return this.on},i.getHookID=function(){return++this.un},i.useContext=function(n){var t=this,i=n._contextID,r=this.sn[i];if(!r){var u=n.an(this);if(r=this.sn[i]={vn:u},u){var f=function(n){r.ln!==n&&(t.v=!0,t.h())};u.pn(f),this.willUnmount.push((function(){return u.dn(f)}))}}return r.ln=r.vn?r.vn.getValue():n._defaultValue},i.componentWillMount=function(){this.v=!0},i.componentDidMount=function(){E(this.didMount)},i.componentWillReceiveProps=function(){this.v=!0},i.componentDidUpdate=function(){E(this.didUpdate)},i.componentWillUnmount=function(){E(this.willUnmount)},i.h=function(){this.setState(a)},i.render=function(){this.un=0,this.fn=0,this.o=!1;var n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);while(this.o)this.fn++,this.fn>24&&k(4),this.un=0,this.o=!1,n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);return this.v&&(this.en=n,this.v=!1),this.en},t}(nn),an=[];function vn(n){return n._n}function ln(t){var i=t._internal;if(i){n.i=!0;var r=i.O,u=i._context,f=i.G||u;i.G=void 0,(vn(i)||i.xn)&&(i.S(r,r,u,f),w(_)),n.i=!1}}function pn(n,t){return t._internal._mountID-n._internal._mountID}function dn(){if(n.i)return y(dn);var t,i=an;if(i.length>0){m(),an=[],i.length>1&&(i=i.filter((function(n){return!!n._internal})).sort(pn));while(t=i.pop())ln(t)}}function _n(n,t){if(an.indexOf(n)<0&&an.push(n),t){if(an.length>1)return;y(dn)}else dn()}function xn(n,t,i){var r=n._internal;if(r){i&&function(n,t){(function(n){return n.wn}(n)||function(n){return n.wn=[]}(n)).push(t)}(r,i);var u=r._renderedComponent;t?(n.tn&&(r.xn=!0),function(n,t){(vn(n)||function(n){return n._n=[]}(n)).push(t)}(r,t),!r.yn&&u&&_n(n,!0)):(r.xn=!0,u&&_n(n))}}var wn={setState:function(t,i,r){n.i||m(),xn(t,i,r)},forceUpdate:function(n,t){xn(n,null,t)}};function yn(n,t,i){try{return n()}catch(n){i?i(n):function(n,t){var i=$(n,(function(n){return n.componentDidCatch||n.constructor&&n.constructor.getDerivedStateFromError}));i?O((function(){var n=i._internal;n&&yn((function(){if(i.componentDidCatch&&i.componentDidCatch(t),i.constructor&&i.constructor.getDerivedStateFromError){var n=i.constructor.getDerivedStateFromError(t);i.setState(n)}}),n.m)})):x((function(){throw t}),0)}(t,n)}}function bn(n,t){O((function(){yn(n,t)}))}function jn(n,t){n&&bn((function(){E(n,t)}),t)}var mn=function(t){function i(){return t.apply(this,arguments)||this}z(i,t);var u=i.prototype;return u.I=function(t,i,u,f){this.g(t,i,u);var o,e,s=this.O,c=s.type,h=s.ref,a=s.props,v=c.prototype,l=this.bn(u);if(yn((function(){v&&v.render?o=new c(a,l):r(c)?o=new hn(c,h):k(6,c)}),i),o){o.props=a,o.context=l,o.refs={},o.updater=wn,o._internal=this,this._instance=o;var p=o.state;void 0===p&&(o.state=p=null),o.componentWillMount&&yn((function(){o.componentWillMount()}),o),n.owner=this,o.state=this.jn(a,l);var d=this.wn;return this.wn=null,yn((function(){e=o.render()}),o),n.owner=null,this._renderedComponent=M(e),this._renderedComponent.I(this._parent,o,this.F(u),f),!s.type._forwardRef&&h&&K(s._owner,h,this),o.componentDidMount&&bn((function(){o.componentDidMount()}),o),jn(d,o),o}},u.unmountComponent=function(n){var t=this._instance;if(t&&t.componentWillUnmount&&yn((function(){t.componentWillUnmount()}),t),null!=this._renderedComponent){var i=this.O,r=i.ref;!i.type._forwardRef&&r&&L(i._owner,r,this),this._renderedComponent.unmountComponent(n),this._renderedComponent=null}this._n=null,this.xn=!1,this.k()},u.bn=function(n){var t={},i=this.O.type.contextTypes;if(i)for(var r in i)t[r]=n[r];return t},u.F=function(n){var t=this._instance,i=t.getChildContext&&t.getChildContext();return i?on({},n,i):n},u.jn=function(n,t){var i=this._instance,u=this._n;if(!u)return i.state;this._n=null;for(var f=on({},i.state),o=0;o<u.length;o++){var e=u[o];on(f,r(e)?e.call(i,f,n,t):e)}return f},u.S=function(n,t,i,r){var u=this,f=this._instance;f&&yn((function(){var i,o,e;u._context===r?o=f.context:(o=u.bn(r),i=!0),e=t.props,n!==t&&(i=!0),i&&f.componentWillReceiveProps&&(u.yn=!0,f.componentWillReceiveProps(e,o),u.yn=!1),u.O.type._forwardRef?(f.cn=n.ref,f._forwardRef=t.ref):J(n,t,u);var s=!0,c=f.props,h=f.state,a=u.jn(e,o),v=u.wn;if(u.wn=null,u.xn||(f.shouldComponentUpdate?s=f.shouldComponentUpdate(e,a,o):f.Z&&(s=!S(c,e)||!S(h,a))),s){u.xn=!1;var l=f.context;f.componentWillUpdate&&f.componentWillUpdate(e,a,o),u.O=t,u._context=r,f.props=e,f.state=a,f.context=o,u.mn(r),f.componentDidUpdate&&bn((function(){f.componentDidUpdate(c,h,l)}),f)}else u.O=t,u._context=r,f.props=e,f.state=a,f.context=o;jn(v,f)}),f)},u.mn=function(t){var i,r=this._renderedComponent,u=r.O,f=this._instance;if(n.owner=this,i=f.render(),n.owner=null,Q(u,i)){var e=r._context,s=this.F(t);u===i&&e===s||r.S(u,i,e,s)}else{var c=null,h=r.C();o(h)&&0===h.length&&null==f.q&&(c=Y(r)),r.unmountComponent(!0),this._renderedComponent=M(i),this._renderedComponent.I(this._parent,f,this.F(t),(function(t,i){var r=n.driver;h=Z(h),t=Z(t);for(var u=0;u<t.length;u++){var f=t[u];h[u]?r.replaceChild(f,h[u]):c?r.insertAfter(f,c):r.appendChild(f,i),c=f}for(var o=t.length;o<h.length;o++)r.removeChild(h[o])}))}},u.C=function(){var n=this._renderedComponent;if(n)return n.C()},u.D=function(){var n=this._instance;return n.tn?null:n},i}(F),On=function(t){function i(){return t.apply(this,arguments)||this}z(i,t);var r=i.prototype;return r.I=function(t,i,r,u){this.g(t,i,r);var f=this._instance={};f._internal=this;var o=[];if(this.L(this._parent,this.O,r,(function(n){n=Z(n);for(var t=0;t<n.length;t++)o.push(n[t])})),u)u(o,t);else for(var e=0;e<o.length;e++)n.driver.appendChild(o[e],t);return f},r.unmountComponent=function(t){if(!t)for(var i=this.C(),r=0,u=i.length;r<u;r++)n.driver.removeChild(i[r]);this.M(!0),this.k()},r.S=function(n,t,i,r){this.O=t,this.Y(this.O,r)},r.C=function(){var n=this.V||{};return[].concat.apply([],Object.keys(n).map((function(t){return n[t].C()})))},i}(sn);var gn={Host:n,Instance:fn,Element:t,flattenChildren:l};exports.Component=nn,exports.Fragment=function(n){return n.children},exports.PureComponent=tn,exports.createContext=function(n){var t="_c"+q++;function i(n){return $(n,(function(n){return n.On===t}))}return{Provider:function(){function i(){this.On=t,this.gn=[]}var r=i.prototype;return r.pn=function(n){this.gn.push(n)},r.dn=function(n){this.gn=this.gn.filter((function(t){return t!==n}))},r._getChildContext=function(){var n;return(n={})[t]=this,n},r.getValue=function(){return void 0!==this.props.value?this.props.value:n},r.componentDidUpdate=function(n){this.props.value!==n.value&&E(this.gn,null,this.getValue())},r.render=function(){return this.props.children},i}(),Consumer:function(u,f){var o=this,e=R((function(){return f[t]||i(o)}))[0],s=e?e.getValue():n,c=R(s),h=c[1];if(s===c[0]){T((function(){if(e)return e.pn(h),function(){e.dn(h)}}),[]);var a=Z(u.children)[0];return r(a)?a(s):void 0}h(s)},_contextID:t,_defaultValue:n,an:i}},exports.createElement=C,exports.createRef=function(){return{current:null}},exports.forwardRef=function(n){return n._forwardRef=!0,n},exports.memo=function(n,t){return t=t||S,n.hn?n.hn.push(t):n.hn=[t],n},exports.render=function(t,i,u,f){var o;r(u)&&(f=u,u=null),o=(u=u||a).driver,n.T=G,n.U=sn,n.N=cn,n.R=On,n.H=mn,(n.driver=o||n.driver)||k(5);var e=fn.mount(t,i,u).D();return f&&f.call(e),e},exports.shared=gn,exports.useCallback=function(n,t){return W((function(){return n}),t)},exports.useContext=function(n){return H().useContext(n)},exports.useEffect=function(n,t){V(n,t,!0)},exports.useImperativeHandle=function(n,t,i){T((function(){return r(n)?(n(t()),function(){return n(null)}):null!=n?(n.current=t(),function(){n.current=null}):void 0}),o(i)?i.concat([n]):null)},exports.useLayoutEffect=T,exports.useMemo=W,exports.useReducer=function(t,i,u){var f=H(),o=f.getHookID(),e=f.getHooks(),s=e[o];if(!s){var c=r(u)?u(i):i;return e[o]=[c,function(t){n.i||m();var i=e[o][2];if(U()===f)i.kn.push(t),f.o=!0;else{var r=i.In,u=(0,i.An)(r,t);if(D(u,r))return;i.In=u,i.kn.push(t),f.h()}},{kn:[],An:t,In:c}]}var h=s[2],a=s[0];if(f.fn>0)for(var v=0;v<h.kn.length;v++)a=t(a,h.kn[v]);else a=h.In;return D(a,s[0])||(s[0]=a,f.v=!0),h.An=t,h.In=a,h.kn.length=0,e[o]},exports.useRef=function(n){var t=H(),i=t.getHookID(),r=t.getHooks();return r[i]||(r[i]={current:n}),r[i]},exports.useState=R,exports.version="1.2.3";
var n={t:1,i:!1,driver:null,rootComponents:{},rootInstances:{},owner:null};function t(n,t,i,r,u){return{type:n,key:t,ref:i,props:r,_owner:u}}function i(n){return null===n}function r(n){return"function"==typeof n}function u(n){return"object"==typeof n}function f(n){return"[object Object]"===h.toString.call(n)}function o(n){return Array.isArray(n)}function e(n){return"string"==typeof n}function s(n){return"number"==typeof n}var c=function(){},h={};function a(n,t){if(o(n))for(var i=0,r=n.length;i<r;i++)a(n[i],t);else t.push(n)}function v(n){if(null==n)return n;var t=[];return a(n,t),t.length-1?t:t[0]}var l=[],p=[],d=[],_=setTimeout;function x(n){var t;while(t=n.shift())t()}function w(n){0===l.length&&_(y),l.push(n)}function y(){x(l)}function b(n){0===p.length&&_(j),p.push(n)}function j(){x(p)}function O(n){d.push(n)}function m(t,i,r){var u,o=void 0===r?"":" got: "+function(n){return f(n)?Object.keys(n):n}(r);return Error(t+": #"+i+", "+(((u=n.owner)?"check <"+u.u()+">":"no owner")+".")+o)}function g(n,t){throw m("Error",n,t)}function k(n,t){var i=m("Warn",n,t);_((function(){throw i}),0)}var I={key:!0,ref:!0};function A(i,r,u){var f,e={},s=null,h=null;if(null!=r)for(f in h=void 0===r.ref?null:r.ref,s=void 0===r.key?null:""+r.key,r)I[f]||(e[f]=r[f]);var a=arguments.length-2;if(a>0)if(1!==a||o(u)){var l=u;if(a>1){l=Array(a);for(var p=0;p<a;p++)l[p]=arguments[p+2]}e.children=v(l)}else e.children=u;if(i&&i.defaultProps){var d=i.defaultProps;for(f in d)void 0===e[f]&&(e[f]=d[f])}return null==i&&(i=c,k(0)),new t(i,s,h,e,n.owner)}function C(n,t,i){for(var r=0,u=n&&n.length;r<u;r++)n[r].call(t,i)}var E=h.hasOwnProperty;function P(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function D(n,t){if(P(n,t))return!0;if(!u(n)||i(n)||!u(t)||i(t))return!1;var r=Object.keys(n);if(r.length!==Object.keys(t).length)return!1;for(var f=0;f<r.length;f++)if(!E.call(t,r[f])||!P(n[r[f]],t[r[f]]))return!1;return!0}function S(){return n.owner&&n.owner._instance}function U(){var n=S();if(n)return n;g(1)}function H(n,t){if(i(t)||n.length!==t.length)return!1;for(var r=0;r<n.length;r++)if(!P(n[r],t[r]))return!1;return!0}function N(t){var i=U(),u=i.getHookID(),f=i.getHooks();if(!f[u]){r(t)&&(t=t());f[u]=[t,function(t){n.i||j();var o=f[u],e=o[2];r(t)&&(t=t(e)),P(t,e)||(o[2]=t,S()===i?i.o=!0:i.h())},t]}var o=f[u];return P(o[0],o[2])||(o[0]=o[2],i.v=!0),o}function R(n,t){T(n,t)}function T(n,t,i){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u],e=o.l,s=o.p;o.p=t,o._=s,e.current=n}else{var c=function n(t){if(!t&&i)return b((function(){return n(!0)}));var r=n.current;r&&(h.current=r(),n.current=null)},h=function n(t){if(!t&&i)return b((function(){return n(!0)}));var r=n.current;r&&(r(),n.current=null)};c.current=n,f[u]={l:c,j:h,_:t,p:t},r.didMount.push(c),r.willUnmount.push((function(){return h(!0)})),r.didUpdate.push((function(){var n=f[u],t=n.p,i=n.l;null!=t&&H(t,n._)||(h(),i())}))}}function V(n,t){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u][1];!i(t)&&H(t,o)||(f[u]=[n(),t])}else f[u]=[n(),t];return f[u][0]}function W(n){return o(n)?n:[n]}function Z(n,t){var i;while(n&&n._internal){if(t(n)){i=n;break}n=n._internal.O}return i}var $=0;function q(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,z(n,t)}function z(n,t){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},z(n,t)}var B=function(){function t(n){this.m=n}var i=t.prototype;return i.g=function(t,i,r){this._parent=t,this.O=i,this._context=r,this._mountID=n.t++},i.k=function(){this.m=this._nativeNode=this._parent=this.O=this._context=null,this._instance&&(this._instance=this._instance._internal=null)},i.I=function(n,t,i,r){this.g(n,t,i),this.A(r);var u={};return u._internal=this,u},i.unmountComponent=function(t){this._nativeNode&&!t&&n.driver.removeChild(this._nativeNode,this._parent),this.k()},i.u=function(){var n=this.m,t=n&&n.type;return t&&t.displayName||t&&t.name||t||n},i.A=function(t){var i=this.C(),r=this._parent;t?t(i,r):n.driver.appendChild(i,r)},i.C=function(){return null==this._nativeNode?this._nativeNode=this.P():this._nativeNode},i.D=function(){return this.C()},t}(),F=function(t){function i(){return t.apply(this,arguments)||this}q(i,t);var r=i.prototype;return r.P=function(){return n.driver.createEmpty(this)},r.S=function(){},i}(B);function G(n,t,i){var r=n?n.ref:null,u=t?t.ref:null;r!==u&&(r&&K(n._owner,r,i),u&&J(t._owner,u,i))}function J(n,t,i){if(n){var f=i.D();r(t)?t(f):u(t)?t.current=f:n._instance.refs[t]=f}else k(3)}function K(n,t,i){if(r(t))t(null);else{var f=i.D();u(t)&&t.current===f?t.current=null:n._instance.refs[t]===f&&delete n._instance.refs[t]}}function L(t){var r;return f(t)&&null!==t&&t.type?r=e(t.type)?new n.U(t):new n.H(t):e(t)||s(t)?r=new n.N(t+""):o(t)?r=new n.R(t):(void 0===t||i(t)||!1===t||!0===t||k(2,t),r=new n.T(t)),r}function M(n,t){var r=i(n),f=i(t);return r||f?r===f:!(!o(n)||!o(t))||(e(n)||s(n)?e(t)||s(t):u(n)&&u(t)&&n.type===t.type&&n.key===t.key)}function Q(n,t,i){var r=t&&t.key,u="."+i.toString(36);if(e(r)){var f="$"+r;return void 0===n[f]?f:u}return u}function X(t){var i=t;while(i=t.O&&t.O._internal)if(i instanceof n.H)t=i;else{for(var r=Object.keys(i.V),u=t.W-1;u>=0;u--){var f=i.V[r[u]].C();if(!o(f))return f;if(f.length>0)return f[f.length-1]}if(!(i instanceof n.R))return null;t=i}}var Y=function(){function n(n,t){this.props=n,this.context=t,this.refs={}}var t=n.prototype;return t.setState=function(n,t){this.updater.setState(this,n,t)},t.forceUpdate=function(n){this.updater.forceUpdate(this,n)},n}(),nn=function(n){function t(t,i){var r;return(r=n.call(this,t,i)||this).Z=!0,r}return q(t,n),t}(Y),tn=1,rn=function(n){function t(){var t;return(t=n.call(this)||this).$=[],t.q=tn++,t}q(t,n);var i=t.prototype;return i.D=function(){return this.B().D()},i.B=function(){return this._internal._renderedComponent},i.h=function(n){this.$=n,this.forceUpdate()},i.render=function(){return this.$},t}(Y),un={set:function(t,i){t._r||(t._r=i,i.q&&(n.rootInstances[i.q]=i,n.rootComponents[i.q]=i._internal))},get:function(n){return n._r},remove:function(t){var i=this.get(t);i&&(t._r=null,i.q&&(delete n.rootComponents[i.q],delete n.rootInstances[i.q]))},mount:function(t,i,r){var u=r.parent,f=r.hydrate,o=n.driver;null==i&&(i=o.createBody());var e,s={element:t,container:i,hydrate:f};if(o.beforeRender&&o.beforeRender(s),u){var c=u._internal;e=c.F(c._context)}var h=this.get(i);if(h&&h.q)return e&&(h._internal.G=e),h.h(t),o.afterRender&&o.afterRender(s),h;var a=L(A(rn)).I(i,u,e||{});return this.set(i,a),a.h(t),o.afterRender&&o.afterRender(s),a}},fn=Object.assign,on=/^on[A-Z]/,en=function(t){function u(){return t.apply(this,arguments)||this}q(u,t);var f=u.prototype;return f.I=function(n,t,i,r){this.g(n,t,i);var u=this.m,f=u.props,o=u.type,e=f.children,s=f.append||"tree";this.J=fn({},f.style);var c={type:o,props:f};return c._internal=this,this._instance=c,"tree"===s?(this.K(e,i),this.A(r)):(this.A(r),this.K(e,i)),u&&u.ref&&J(u._owner,u.ref,this),c},f.K=function(n,t){if(null==n)return n;var i=this.C();return this.L(i,W(n),t)},f.L=function(n,t,i,r){for(var u=this.V={},f=[],o=0,e=t.length;o<e;o++){var s=t[o],c=L(s);u[Q(u,s,o)]=c,c.W=o;var h=c.I(n,this._instance,i,r);f.push(h)}return f},f.M=function(n){var t=this.V;if(t){for(var i in t){t[i].unmountComponent(n)}this.V=null}},f.unmountComponent=function(t){if(this._nativeNode){var i=this.m.ref;i&&K(this.m._owner,i,this),un.remove(this._nativeNode),t||n.driver.removeChild(this._nativeNode,this._parent)}this.M(!0),this.J=null,this.k()},f.S=function(n,t,i,r){this.m=t,G(n,t,this);var u=n.props,f=t.props;this.X(u,f),null==u.children||o(u.children)&&0===u.children.length?this.K(f.children,r):this.Y(f.children,r)},f.X=function(t,i){var u,f,o,e=n.driver,s=this.C();for(u in t)if("children"!==u&&null!=t[u]&&!i.hasOwnProperty(u))if("style"===u){var c=this.J;for(f in c)(o=o||{})[f]="";this.J=null}else if(on.test(u)){var h=t[u];r(h)&&e.removeEventListener(s,u.slice(2).toLowerCase(),h)}else e.removeAttribute(s,u,t[u]);for(u in i){var a=i[u],v="style"===u?this.J:null!=t?t[u]:void 0;if("children"!==u&&v!==a&&(null!=a||null!=v))if("style"===u)if(a?a=this.J=fn({},a):this.J=null,null!=v){for(f in v)a&&(a[f]||0===a[f])||((o=o||{})[f]="");for(f in a)v[f]!==a[f]&&((o=o||{})[f]=a[f])}else o=a;else if(on.test(u)){var l=u.slice(2).toLowerCase();r(v)&&e.removeEventListener(s,l,v,i),r(a)&&e.addEventListener(s,l,a,i)}else null!=a?e.setAttribute(s,u,a):e.removeAttribute(s,u,t[u])}o&&e.setStyle(s,o)},f.Y=function(t,r){var u=this.V,f=n.driver;if(null!=t||null!=u){var e={};if(null!=t)for(var s=0,c=(t=W(t)).length;s<c;s++){var h=t[s],a=Q(e,h,s),v=u&&u[a],l=v&&v.m,p=v&&v._context;null!=v&&M(l,h)?(l===h&&p===r||v.S(l,h,r,r),e[a]=v):(v&&(v.nn=!0),e[a]=L(h))}var d=this.C(),_=o(d),x=null,w=null,y=!1,b=!1,j=null,O=!(!f.removeChildren||!(i(t)||t&&!t.length)||_);if(null!=u){for(var m in u){var g=u[m],k=g.nn||!e[m];x?k&&g.unmountComponent(O):(b=k,o(w=(x=g).C())&&(y=0===w.length,w=w[0]))}(_&&0===d.length||y)&&(j=X(this))}if(null!=e){var I=function(n,t){for(var i=0,r=(n=W(n)).length;i<r;i++)j?f.insertAfter(n[r-1-i],j):w?f.insertBefore(n[i],w):t&&f.appendChild(n[i],t)},A=0;for(var C in e){var E=e[C],P=u&&u[C];if(P===E){var D=P.C();P.W!==A&&I(D)}else _&&(d=this._parent),E.I(d,this._instance,r,I);E.W=A++,o(j=E.C())&&(j=j[j.length-1])}}b&&x.unmountComponent(O),O&&f.removeChildren(this._nativeNode),this.V=e}},f.P=function(){var t=this._instance,i=n.driver.createElement(t.type,t.props,this);return un.set(i,t),i},u}(B),sn=function(t){function i(){return t.apply(this,arguments)||this}q(i,t);var r=i.prototype;return r.S=function(t,i){t!==(i=""+i)&&(this.m=i,n.driver.updateText(this.C(),i))},r.P=function(){return n.driver.createText(this.m,this)},i}(B),cn=function(n){function t(t,i){var r;(r=n.call(this)||this).tn=!0,r.rn=t,r.un=0,r.fn=0,r.on={},r.o=!1,r.v=!1,r.en=null,r.sn={},r.didMount=[],r.didUpdate=[],r.willUnmount=[],r.state=h,t._forwardRef&&(r.cn=r._forwardRef=i);var u=t.hn;return u&&(r.shouldComponentUpdate=function(n){for(var t=!0,i=u.length-1;i>-1;i--)if(t=u[i](r.props,n))break;return!t||r.cn!==r._forwardRef}),r}q(t,n);var i=t.prototype;return i.getHooks=function(){return this.on},i.getHookID=function(){return++this.un},i.useContext=function(n){var t=this,i=n._contextID,r=this.sn[i];if(!r){var u=n.an(this);if(r=this.sn[i]={vn:u},u){var f=function(n){r.ln!==n&&(t.v=!0,t.h())};u.pn(f),this.willUnmount.push((function(){return u.dn(f)}))}}return r.ln=r.vn?r.vn.getValue():n._defaultValue},i.componentWillMount=function(){this.v=!0},i.componentDidMount=function(){C(this.didMount)},i.componentWillReceiveProps=function(){this.v=!0},i.componentDidUpdate=function(){C(this.didUpdate)},i.componentWillUnmount=function(){C(this.willUnmount)},i.h=function(){this.setState(h)},i.render=function(){this.un=0,this.fn=0,this.o=!1;var n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);while(this.o)this.fn++,this.fn>24&&g(4),this.un=0,this.o=!1,n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);return this.v&&(this.en=n,this.v=!1),this.en},t}(Y),hn=[];function an(n){return n._n}function vn(t){var i=t._internal;if(i){n.i=!0;var r=i.m,u=i._context,f=i.G||u;i.G=void 0,(an(i)||i.xn)&&(i.S(r,r,u,f),x(d)),n.i=!1}}function ln(n,t){return t._internal._mountID-n._internal._mountID}function pn(){if(n.i)return w(pn);var t,i=hn;if(i.length>0){j(),hn=[],i.length>1&&(i=i.filter((function(n){return!!n._internal})).sort(ln));while(t=i.pop())vn(t)}}function dn(n,t){if(hn.indexOf(n)<0&&hn.push(n),t){if(hn.length>1)return;w(pn)}else pn()}function _n(n,t,i){var r=n._internal;if(r){i&&function(n,t){var i=function(n){return n.wn}(n)||function(n){return n.wn=[]}(n);i.push(t)}(r,i);var u=r._renderedComponent;t?(n.tn&&(r.xn=!0),function(n,t){var i=an(n)||function(n){return n._n=[]}(n);i.push(t)}(r,t),!r.yn&&u&&dn(n,!0)):(r.xn=!0,u&&dn(n))}}var xn={setState:function(t,i,r){n.i||j(),_n(t,i,r)},forceUpdate:function(n,t){_n(n,null,t)}};function wn(n,t,i){try{return n()}catch(n){i?i(n):function(n,t){var i=Z(n,(function(n){return n.componentDidCatch||n.constructor&&n.constructor.getDerivedStateFromError}));i?O((function(){var n=i._internal;n&&wn((function(){if(i.componentDidCatch&&i.componentDidCatch(t),i.constructor&&i.constructor.getDerivedStateFromError){var n=i.constructor.getDerivedStateFromError(t);i.setState(n)}}),n.O)})):_((function(){throw t}),0)}(t,n)}}function yn(n,t){O((function(){wn(n,t)}))}function bn(n,t){n&&yn((function(){C(n,t)}),t)}var jn=function(t){function i(){return t.apply(this,arguments)||this}q(i,t);var u=i.prototype;return u.I=function(t,i,u,f){this.g(t,i,u);var o,e,s=this.m,c=s.type,h=s.ref,a=s.props,v=c.prototype,l=this.bn(u);if(wn((function(){v&&v.render?o=new c(a,l):r(c)?o=new cn(c,h):g(6,c)}),i),o){o.props=a,o.context=l,o.refs={},o.updater=xn,o._internal=this,this._instance=o;var p=o.state;void 0===p&&(o.state=p=null),o.componentWillMount&&wn((function(){o.componentWillMount()}),o),n.owner=this,o.state=this.jn(a,l);var d=this.wn;return this.wn=null,wn((function(){e=o.render()}),o),n.owner=null,this._renderedComponent=L(e),this._renderedComponent.I(this._parent,o,this.F(u),f),!s.type._forwardRef&&h&&J(s._owner,h,this),o.componentDidMount&&yn((function(){o.componentDidMount()}),o),bn(d,o),o}},u.unmountComponent=function(n){var t=this._instance;if(t&&t.componentWillUnmount&&wn((function(){t.componentWillUnmount()}),t),null!=this._renderedComponent){var i=this.m,r=i.ref;!i.type._forwardRef&&r&&K(i._owner,r,this),this._renderedComponent.unmountComponent(n),this._renderedComponent=null}this._n=null,this.xn=!1,this.k()},u.bn=function(n){var t={},i=this.m.type.contextTypes;if(i)for(var r in i)t[r]=n[r];return t},u.F=function(n){var t=this._instance,i=t.getChildContext&&t.getChildContext();return i?fn({},n,i):n},u.jn=function(n,t){var i=this._instance,u=this._n;if(!u)return i.state;this._n=null;for(var f=fn({},i.state),o=0;o<u.length;o++){var e=u[o];fn(f,r(e)?e.call(i,f,n,t):e)}return f},u.S=function(n,t,i,r){var u=this,f=this._instance;f&&wn((function(){var i,o,e;u._context===r?o=f.context:(o=u.bn(r),i=!0),e=t.props,n!==t&&(i=!0),i&&f.componentWillReceiveProps&&(u.yn=!0,f.componentWillReceiveProps(e,o),u.yn=!1),u.m.type._forwardRef?(f.cn=n.ref,f._forwardRef=t.ref):G(n,t,u);var s=!0,c=f.props,h=f.state,a=u.jn(e,o),v=u.wn;if(u.wn=null,u.xn||(f.shouldComponentUpdate?s=f.shouldComponentUpdate(e,a,o):f.Z&&(s=!D(c,e)||!D(h,a))),s){u.xn=!1;var l=f.context;f.componentWillUpdate&&f.componentWillUpdate(e,a,o),u.m=t,u._context=r,f.props=e,f.state=a,f.context=o,u.On(r),f.componentDidUpdate&&yn((function(){f.componentDidUpdate(c,h,l)}),f)}else u.m=t,u._context=r,f.props=e,f.state=a,f.context=o;bn(v,f)}),f)},u.On=function(t){var i,r=this._renderedComponent,u=r.m,f=this._instance;if(n.owner=this,i=f.render(),n.owner=null,M(u,i)){var e=r._context,s=this.F(t);u===i&&e===s||r.S(u,i,e,s)}else{var c=null,h=r.C();o(h)&&0===h.length&&null==f.q&&(c=X(r)),r.unmountComponent(!0),this._renderedComponent=L(i),this._renderedComponent.I(this._parent,f,this.F(t),(function(t,i){var r=n.driver;h=W(h),t=W(t);for(var u=0;u<t.length;u++){var f=t[u];h[u]?r.replaceChild(f,h[u]):c?r.insertAfter(f,c):r.appendChild(f,i),c=f}for(var o=t.length;o<h.length;o++)r.removeChild(h[o])}))}},u.C=function(){var n=this._renderedComponent;if(n)return n.C()},u.D=function(){var n=this._instance;return n.tn?null:n},i}(B),On=function(t){function i(){return t.apply(this,arguments)||this}q(i,t);var r=i.prototype;return r.I=function(t,i,r,u){this.g(t,i,r);var f=this._instance={};f._internal=this;var o=[];if(this.L(this._parent,this.m,r,(function(n){n=W(n);for(var t=0;t<n.length;t++)o.push(n[t])})),u)u(o,t);else for(var e=0;e<o.length;e++)n.driver.appendChild(o[e],t);return f},r.unmountComponent=function(t){if(!t)for(var i=this.C(),r=0,u=i.length;r<u;r++)n.driver.removeChild(i[r]);this.M(!0),this.k()},r.S=function(n,t,i,r){this.m=t,this.Y(this.m,r)},r.C=function(){var n=this.V||{};return[].concat.apply([],Object.keys(n).map((function(t){return n[t].C()})))},i}(en);var mn={Host:n,Instance:un,Element:t,flattenChildren:v};exports.Component=Y,exports.Fragment=function(n){return n.children},exports.PureComponent=nn,exports.createContext=function(n){var t="_c"+$++;function i(n){return Z(n,(function(n){return n.mn===t}))}return{Provider:function(){function i(){this.mn=t,this.gn=[]}var r=i.prototype;return r.pn=function(n){this.gn.push(n)},r.dn=function(n){this.gn=this.gn.filter((function(t){return t!==n}))},r._getChildContext=function(){var n;return(n={})[t]=this,n},r.getValue=function(){return void 0!==this.props.value?this.props.value:n},r.componentDidUpdate=function(n){this.props.value!==n.value&&C(this.gn,null,this.getValue())},r.render=function(){return this.props.children},i}(),Consumer:function(u,f){var o=this,e=N((function(){return f[t]||i(o)}))[0],s=e?e.getValue():n,c=N(s),h=c[1];if(s===c[0]){R((function(){if(e)return e.pn(h),function(){e.dn(h)}}),[]);var a=W(u.children)[0];return r(a)?a(s):void 0}h(s)},_contextID:t,_defaultValue:n,an:i}},exports.createElement=A,exports.createRef=function(){return{current:null}},exports.forwardRef=function(n){return n._forwardRef=!0,n},exports.memo=function(n,t){return t=t||D,n.hn?n.hn.push(t):n.hn=[t],n},exports.render=function(t,i,u,f){var o;r(u)&&(f=u,u=null),o=(u=u||h).driver,n.T=F,n.U=en,n.N=sn,n.R=On,n.H=jn,(n.driver=o||n.driver)||g(5);var e=un.mount(t,i,u).D();return f&&f.call(e),e},exports.shared=mn,exports.useCallback=function(n,t){return V((function(){return n}),t)},exports.useContext=function(n){return U().useContext(n)},exports.useEffect=function(n,t){T(n,t,!0)},exports.useImperativeHandle=function(n,t,i){R((function(){return r(n)?(n(t()),function(){return n(null)}):null!=n?(n.current=t(),function(){n.current=null}):void 0}),o(i)?i.concat([n]):null)},exports.useLayoutEffect=R,exports.useMemo=V,exports.useReducer=function(t,i,u){var f=U(),o=f.getHookID(),e=f.getHooks(),s=e[o];if(!s){var c=r(u)?u(i):i;return e[o]=[c,function(t){n.i||j();var i=e[o][2];if(S()===f)i.kn.push(t),f.o=!0;else{var r=i.In,u=(0,i.An)(r,t);if(P(u,r))return;i.In=u,i.kn.push(t),f.h()}},{kn:[],An:t,In:c}]}var h=s[2],a=s[0];if(f.fn>0)for(var v=0;v<h.kn.length;v++)a=t(a,h.kn[v]);else a=h.In;return P(a,s[0])||(s[0]=a,f.v=!0),h.An=t,h.In=a,h.kn.length=0,e[o]},exports.useRef=function(n){var t=U(),i=t.getHookID(),r=t.getHooks();return r[i]||(r[i]={current:n}),r[i]},exports.useState=N,exports.version="1.2.2";

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

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).Rax={})}(this,(function(n){var t={t:1,i:!1,driver:null,rootComponents:{},rootInstances:{},owner:null};function i(n,t,i,r,u){return{type:n,key:t,ref:i,props:r,_owner:u}}function r(n){return null===n}function u(n){return"function"==typeof n}function f(n){return"object"==typeof n}function o(n){return"[object Object]"===l.toString.call(n)}function e(n){return Array.isArray(n)}function s(n){return"string"==typeof n}function c(n){return"number"==typeof n}function h(n){return!n}var a=function(){},l={};function v(n,t){if(e(n))for(var i=0,r=n.length;i<r;i++)v(n[i],t);else t.push(n)}function d(n){if(null==n)return n;var t=[];return v(n,t),t.length-1?t:t[0]}var _=[],p=[],w=[],y=setTimeout;function b(n){var t;while(t=n.shift())t()}function j(n){0===_.length&&y(m),_.push(n)}function m(){b(_)}function g(n){0===p.length&&y(O),p.push(n)}function O(){b(p)}function k(n){w.push(n)}function I(n,i,r){var u,f=void 0===r?"":" got: "+function(n){return o(n)?Object.keys(n):n}(r);return Error(n+": #"+i+", "+(((u=t.owner)?"check <"+u.u()+">":"no owner")+".")+f)}function x(n,t){throw I("Error",n,t)}function A(n,t){var i=I("Warn",n,t);y((function(){throw i}),0)}var C={key:!0,ref:!0};function E(n,r,u){var f,o={},s=null,c=null;if(null!=r)for(f in c=void 0===r.ref?null:r.ref,s=void 0===r.key?null:""+r.key,r)C[f]||(o[f]=r[f]);var h=arguments.length-2;if(h>0)if(1!==h||e(u)){var l=u;if(h>1){l=Array(h);for(var v=0;v<h;v++)l[v]=arguments[v+2]}o.children=d(l)}else o.children=u;if(n&&n.defaultProps){var _=n.defaultProps;for(f in _)void 0===o[f]&&(o[f]=_[f])}return null==n&&(n=a,A(0)),new i(n,s,c,o,t.owner)}function P(n,t,i){for(var r=0,u=n&&n.length;r<u;r++)n[r].call(t,i)}var T=l.hasOwnProperty;function D(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function S(n,t){if(D(n,t))return!0;if(!f(n)||r(n)||!f(t)||r(t))return!1;var i=Object.keys(n);if(i.length!==Object.keys(t).length)return!1;for(var u=0;u<i.length;u++)if(!T.call(t,i[u])||!D(n[i[u]],t[i[u]]))return!1;return!0}function U(){return t.owner&&t.owner._instance}function H(){var n=U();if(n)return n;x(1)}function N(n,t){if(r(t)||n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(!D(n[i],t[i]))return!1;return!0}function R(n){var i=H(),r=i.getHookID(),f=i.getHooks();if(!f[r]){u(n)&&(n=n());f[r]=[n,function(n){t.i||O();var o=f[r],e=o[2];u(n)&&(n=n(e)),D(n,e)||(o[2]=n,U()===i?i.o=!0:i.h())},n]}var o=f[r];return D(o[0],o[2])||(o[0]=o[2],i.l=!0),o}function V(n,t){W(n,t)}function W(n,t,i){var r=H(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u],e=o.v,s=o._;o._=t,o.p=s,e.current=n}else{var c=function n(t){if(!t&&i)return g((function(){return n(!0)}));var r=n.current;r&&(h.current=r(),n.current=null)},h=function n(t){if(!t&&i)return g((function(){return n(!0)}));var r=n.current;r&&(r(),n.current=null)};c.current=n,f[u]={v:c,j:h,p:t,_:t},r.didMount.push(c),r.willUnmount.push((function(){return h(!0)})),r.didUpdate.push((function(){var n=f[u],t=n._,i=n.v;null!=t&&N(t,n.p)||(h(),i())}))}}function Z(n,t){var i=H(),u=i.getHookID(),f=i.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u][1];!r(t)&&N(t,o)||(f[u]=[n(),t])}else f[u]=[n(),t];return f[u][0]}function $(n){return e(n)?n:[n]}function q(n,t){var i;while(n&&n._internal){if(t(n)){i=n;break}n=n._internal.m}return i}var z=0;function B(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,F(n,t)}function F(n,t){return(F=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}var G=function(){function n(n){this.g=n}var i=n.prototype;return i.O=function(n,i,r){this._parent=n,this.m=i,this._context=r,this._mountID=t.t++},i.k=function(){this.g=this._nativeNode=this._parent=this.m=this._context=null,this._instance&&(this._instance=this._instance._internal=null)},i.I=function(n,t,i,r){this.O(n,t,i),this.A(r);var u={};return u._internal=this,u},i.unmountComponent=function(n){this._nativeNode&&!n&&t.driver.removeChild(this._nativeNode,this._parent),this.k()},i.u=function(){var n=this.g,t=n&&n.type;return t&&t.displayName||t&&t.name||t||n},i.A=function(n){var i=this.C(),r=this._parent;n?n(i,r):t.driver.appendChild(i,r)},i.C=function(){return null==this._nativeNode?this._nativeNode=this.P():this._nativeNode},i.T=function(){return this.C()},n}(),J=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var r=i.prototype;return r.P=function(){return t.driver.createEmpty(this)},r.D=function(){},i}(G);function K(n,t,i){var r=n?n.ref:null,u=t?t.ref:null;r!==u&&(r&&M(n._owner,r,i),u&&L(t._owner,u,i))}function L(n,t,i){if(n){var r=i.T();u(t)?t(r):f(t)?t.current=r:n._instance.refs[t]=r}else A(3)}function M(n,t,i){if(u(t))t(null);else{var r=i.T();f(t)&&t.current===r?t.current=null:n._instance.refs[t]===r&&delete n._instance.refs[t]}}function Q(n){var i;return o(n)&&null!==n&&n.type?i=s(n.type)?new t.S(n):new t.U(n):s(n)||c(n)?i=new t.H(n+""):e(n)?i=new t.N(n):(void 0===n||r(n)||!1===n||!0===n||A(2,n),i=new t.R(n)),i}function X(n,t){var i=h(n),r=h(t);return i||r?i===r:!(!e(n)||!e(t))||(s(n)||c(n)?s(t)||c(t):f(n)&&f(t)&&n.type===t.type&&n.key===t.key)}function Y(n,t,i){var r=t?t.key:void 0,u="."+i.toString(36);if(s(r)){var f="$"+r;return void 0===n[f]?f:u}return u}function nn(n){var i=n;while(i=n.m&&n.m._internal)if(i instanceof t.U)n=i;else{for(var r=Object.keys(i.V),u=n.W-1;u>=0;u--){var f=i.V[r[u]].C();if(!e(f))return f;if(f.length>0)return f[f.length-1]}if(!(i instanceof t.N))return null;n=i}}var tn=function(){function n(n,t){this.props=n,this.context=t,this.refs={}}var t=n.prototype;return t.setState=function(n,t){this.updater.setState(this,n,t)},t.forceUpdate=function(n){this.updater.forceUpdate(this,n)},n}(),rn=function(n){function t(t,i){var r;return(r=n.call(this,t,i)||this).Z=!0,r}return B(t,n),t}(tn),un=1,fn=function(n){function t(){var t;return(t=n.call(this)||this).$=[],t.q=un++,t}B(t,n);var i=t.prototype;return i.T=function(){return this.B().T()},i.B=function(){return this._internal._renderedComponent},i.h=function(n){this.$=n,this.forceUpdate()},i.render=function(){return this.$},t}(tn),on={set:function(n,i){n._r||(n._r=i,i.q&&(t.rootInstances[i.q]=i,t.rootComponents[i.q]=i._internal))},get:function(n){return n._r},remove:function(n){var i=this.get(n);i&&(n._r=null,i.q&&(delete t.rootComponents[i.q],delete t.rootInstances[i.q]))},mount:function(n,i,r){var u=r.parent,f=r.hydrate,o=t.driver;null==i&&(i=o.createBody());var e,s={element:n,container:i,hydrate:f};if(o.beforeRender&&o.beforeRender(s),u){var c=u._internal;e=c.F(c._context)}var h=this.get(i);if(h&&h.q)return e&&(h._internal.G=e),h.h(n),o.afterRender&&o.afterRender(s),h;var a=Q(E(fn)).I(i,u,e||{});return this.set(i,a),a.h(n),o.afterRender&&o.afterRender(s),a}},en=Object.assign,sn="style",cn="children",hn="tree",an=/^on[A-Z]/,ln=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var f=i.prototype;return f.I=function(n,t,i,r){this.O(n,t,i);var u=this.g,f=u.props,o=u.type,e=f.children,s=f.append||hn;this.J=en({},f.style);var c={type:o,props:f};return c._internal=this,this._instance=c,s===hn?(this.K(e,i),this.A(r)):(this.A(r),this.K(e,i)),u&&u.ref&&L(u._owner,u.ref,this),c},f.K=function(n,t){if(null==n)return n;var i=this.C();return this.L(i,$(n),t)},f.L=function(n,t,i,r){for(var u=this.V={},f=[],o=0,e=t.length;o<e;o++){var s=t[o],c=Q(s);u[Y(u,s,o)]=c,c.W=o;var h=c.I(n,this._instance,i,r);f.push(h)}return f},f.M=function(n){var t=this.V;if(t){for(var i in t){t[i].unmountComponent(n)}this.V=null}},f.unmountComponent=function(n){if(this._nativeNode){var i=this.g.ref;i&&M(this.g._owner,i,this),on.remove(this._nativeNode),n||t.driver.removeChild(this._nativeNode,this._parent)}this.M(!0),this.J=null,this.k()},f.D=function(n,t,i,r){this.g=t,K(n,t,this);var u=n.props,f=t.props;this.X(u,f),null==u.children||e(u.children)&&0===u.children.length?this.K(f.children,r):this.Y(f.children,r)},f.X=function(n,i){var r,f,o,e=t.driver,s=this.C();for(r in n)if(r!==cn&&null!=n[r]&&!i.hasOwnProperty(r))if(r===sn){var c=this.J;for(f in c)(o=o||{})[f]="";this.J=null}else if(an.test(r)){var h=n[r];u(h)&&e.removeEventListener(s,r.slice(2).toLowerCase(),h)}else e.removeAttribute(s,r,n[r]);for(r in i){var a=i[r],l=r===sn?this.J:null!=n?n[r]:void 0;if(r!==cn&&l!==a&&(null!=a||null!=l))if(r===sn)if(a?a=this.J=en({},a):this.J=null,null!=l){for(f in l)a&&(a[f]||0===a[f])||((o=o||{})[f]="");for(f in a)l[f]!==a[f]&&((o=o||{})[f]=a[f])}else o=a;else if(an.test(r)){var v=r.slice(2).toLowerCase();u(l)&&e.removeEventListener(s,v,l,i),u(a)&&e.addEventListener(s,v,a,i)}else null!=a?e.setAttribute(s,r,a):e.removeAttribute(s,r,n[r])}o&&e.setStyle(s,o)},f.Y=function(n,i){var u=this.V,f=t.driver;if(null!=n||null!=u){var o={};if(null!=n)for(var s=0,c=(n=$(n)).length;s<c;s++){var h=n[s],a=Y(o,h,s),l=u&&u[a],v=l&&l.g,d=l&&l._context;null!=l&&X(v,h)?(v===h&&d===i||l.D(v,h,i,i),o[a]=l):(l&&(l.nn=!0),o[a]=Q(h))}var _=this.C(),p=e(_),w=null,y=null,b=!1,j=!1,m=null,g=!(!f.removeChildren||!(r(n)||n&&!n.length)||p);if(null!=u){for(var O in u){var k=u[O],I=k.nn||!o[O];w?I&&k.unmountComponent(g):(j=I,e(y=(w=k).C())&&(b=0===y.length,y=y[0]))}(p&&0===_.length||b)&&(m=nn(this))}if(null!=o){var x=function(n,t){for(var i=0,r=(n=$(n)).length;i<r;i++)m?f.insertAfter(n[r-1-i],m):y?f.insertBefore(n[i],y):t&&f.appendChild(n[i],t)},A=0;for(var C in o){var E=o[C],P=u&&u[C];if(P===E){var T=P.C();P.W!==A&&x(T)}else p&&(_=this._parent),E.I(_,this._instance,i,x);E.W=A++,e(m=E.C())&&(m=m[m.length-1])}}j&&w.unmountComponent(g),g&&f.removeChildren(this._nativeNode),this.V=o}},f.P=function(){var n=this._instance,i=t.driver.createElement(n.type,n.props,this);return on.set(i,n),i},i}(G),vn=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var r=i.prototype;return r.D=function(n,i){n!==(i=""+i)&&(this.g=i,t.driver.updateText(this.C(),i))},r.P=function(){return t.driver.createText(this.g,this)},i}(G),dn=function(n){function t(t,i){var r;(r=n.call(this)||this).tn=!0,r.rn=t,r.un=0,r.fn=0,r.on={},r.o=!1,r.l=!1,r.en=null,r.sn={},r.didMount=[],r.didUpdate=[],r.willUnmount=[],r.state=l,t._forwardRef&&(r.cn=r._forwardRef=i);var u=t.hn;return u&&(r.shouldComponentUpdate=function(n){for(var t=!0,i=u.length-1;i>-1;i--)if(t=u[i](r.props,n))break;return!t||r.cn!==r._forwardRef}),r}B(t,n);var i=t.prototype;return i.getHooks=function(){return this.on},i.getHookID=function(){return++this.un},i.useContext=function(n){var t=this,i=n._contextID,r=this.sn[i];if(!r){var u=n.an(this);if(r=this.sn[i]={ln:u},u){var f=function(n){r.vn!==n&&(t.l=!0,t.h())};u.dn(f),this.willUnmount.push((function(){return u._n(f)}))}}return r.vn=r.ln?r.ln.getValue():n._defaultValue},i.componentWillMount=function(){this.l=!0},i.componentDidMount=function(){P(this.didMount)},i.componentWillReceiveProps=function(){this.l=!0},i.componentDidUpdate=function(){P(this.didUpdate)},i.componentWillUnmount=function(){P(this.willUnmount)},i.h=function(){this.setState(l)},i.render=function(){this.un=0,this.fn=0,this.o=!1;var n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);while(this.o)this.fn++,this.fn>24&&x(4),this.un=0,this.o=!1,n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);return this.l&&(this.en=n,this.l=!1),this.en},t}(tn),_n=[];function pn(n){return n.pn}function wn(n){var i=n._internal;if(i){t.i=!0;var r=i.g,u=i._context,f=i.G||u;i.G=void 0,(pn(i)||i.wn)&&(i.D(r,r,u,f),b(w)),t.i=!1}}function yn(n,t){return t._internal._mountID-n._internal._mountID}function bn(){if(t.i)return j(bn);var n,i=_n;if(i.length>0){O(),_n=[],i.length>1&&(i=i.filter((function(n){return!!n._internal})).sort(yn));while(n=i.pop())wn(n)}}function jn(n,t){if(_n.indexOf(n)<0&&_n.push(n),t){if(_n.length>1)return;j(bn)}else bn()}function mn(n,t,i){var r=n._internal;if(r){i&&function(n,t){(function(n){return n.yn}(n)||function(n){return n.yn=[]}(n)).push(t)}(r,i);var u=r._renderedComponent;t?(n.tn&&(r.wn=!0),function(n,t){(pn(n)||function(n){return n.pn=[]}(n)).push(t)}(r,t),!r.bn&&u&&jn(n,!0)):(r.wn=!0,u&&jn(n))}}var gn={setState:function(n,i,r){t.i||O(),mn(n,i,r)},forceUpdate:function(n,t){mn(n,null,t)}};function On(n,t,i){try{return n()}catch(n){i?i(n):function(n,t){var i=q(n,(function(n){return n.componentDidCatch||n.constructor&&n.constructor.getDerivedStateFromError}));i?k((function(){var n=i._internal;n&&On((function(){if(i.componentDidCatch&&i.componentDidCatch(t),i.constructor&&i.constructor.getDerivedStateFromError){var n=i.constructor.getDerivedStateFromError(t);i.setState(n)}}),n.m)})):y((function(){throw t}),0)}(t,n)}}function kn(n,t){k((function(){On(n,t)}))}function In(n,t){n&&kn((function(){P(n,t)}),t)}var xn=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var r=i.prototype;return r.I=function(n,i,r,f){this.O(n,i,r);var o,e,s=this.g,c=s.type,h=s.ref,a=s.props,l=c.prototype,v=this.jn(r);if(On((function(){l&&l.render?o=new c(a,v):u(c)?o=new dn(c,h):x(6,c)}),i),o){o.props=a,o.context=v,o.refs={},o.updater=gn,o._internal=this,this._instance=o;var d=o.state;void 0===d&&(o.state=d=null),o.componentWillMount&&On((function(){o.componentWillMount()}),o),t.owner=this,o.state=this.mn(a,v);var _=this.yn;return this.yn=null,On((function(){e=o.render()}),o),t.owner=null,this._renderedComponent=Q(e),this._renderedComponent.I(this._parent,o,this.F(r),f),!s.type._forwardRef&&h&&L(s._owner,h,this),o.componentDidMount&&kn((function(){o.componentDidMount()}),o),In(_,o),o}},r.unmountComponent=function(n){var t=this._instance;if(t&&t.componentWillUnmount&&On((function(){t.componentWillUnmount()}),t),null!=this._renderedComponent){var i=this.g,r=i.ref;!i.type._forwardRef&&r&&M(i._owner,r,this),this._renderedComponent.unmountComponent(n),this._renderedComponent=null}this.pn=null,this.wn=!1,this.k()},r.jn=function(n){var t={},i=this.g.type.contextTypes;if(i)for(var r in i)t[r]=n[r];return t},r.F=function(n){var t=this._instance,i=t.getChildContext&&t.getChildContext();return i?en({},n,i):n},r.mn=function(n,t){var i=this._instance,r=this.pn;if(!r)return i.state;this.pn=null;for(var f=en({},i.state),o=0;o<r.length;o++){var e=r[o];en(f,u(e)?e.call(i,f,n,t):e)}return f},r.D=function(n,t,i,r){var u=this,f=this._instance;f&&On((function(){var i,o,e;u._context===r?o=f.context:(o=u.jn(r),i=!0),e=t.props,n!==t&&(i=!0),i&&f.componentWillReceiveProps&&(u.bn=!0,f.componentWillReceiveProps(e,o),u.bn=!1),u.g.type._forwardRef?(f.cn=n.ref,f._forwardRef=t.ref):K(n,t,u);var s=!0,c=f.props,h=f.state,a=u.mn(e,o),l=u.yn;if(u.yn=null,u.wn||(f.shouldComponentUpdate?s=f.shouldComponentUpdate(e,a,o):f.Z&&(s=!S(c,e)||!S(h,a))),s){u.wn=!1;var v=f.context;f.componentWillUpdate&&f.componentWillUpdate(e,a,o),u.g=t,u._context=r,f.props=e,f.state=a,f.context=o,u.gn(r),f.componentDidUpdate&&kn((function(){f.componentDidUpdate(c,h,v)}),f)}else u.g=t,u._context=r,f.props=e,f.state=a,f.context=o;In(l,f)}),f)},r.gn=function(n){var i,r=this._renderedComponent,u=r.g,f=this._instance;if(t.owner=this,i=f.render(),t.owner=null,X(u,i)){var o=r._context,s=this.F(n);u===i&&o===s||r.D(u,i,o,s)}else{var c=null,h=r.C();e(h)&&0===h.length&&null==f.q&&(c=nn(r)),r.unmountComponent(!0),this._renderedComponent=Q(i),this._renderedComponent.I(this._parent,f,this.F(n),(function(n,i){var r=t.driver;h=$(h),n=$(n);for(var u=0;u<n.length;u++){var f=n[u];h[u]?r.replaceChild(f,h[u]):c?r.insertAfter(f,c):r.appendChild(f,i),c=f}for(var o=n.length;o<h.length;o++)r.removeChild(h[o])}))}},r.C=function(){var n=this._renderedComponent;if(n)return n.C()},r.T=function(){var n=this._instance;return n.tn?null:n},i}(G),An=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var r=i.prototype;return r.I=function(n,i,r,u){this.O(n,i,r);var f=this._instance={};f._internal=this;var o=[];if(this.L(this._parent,this.g,r,(function(n){n=$(n);for(var t=0;t<n.length;t++)o.push(n[t])})),u)u(o,n);else for(var e=0;e<o.length;e++)t.driver.appendChild(o[e],n);return f},r.unmountComponent=function(n){if(!n)for(var i=this.C(),r=0,u=i.length;r<u;r++)t.driver.removeChild(i[r]);this.M(!0),this.k()},r.D=function(n,t,i,r){this.g=t,this.Y(this.g,r)},r.C=function(){var n=this.V||{};return[].concat.apply([],Object.keys(n).map((function(t){return n[t].C()})))},i}(ln);var Cn={Host:t,Instance:on,Element:i,flattenChildren:d};n.Component=tn,n.Fragment=function(n){return n.children},n.PureComponent=rn,n.createContext=function(n){var t="_c"+z++;function i(n){return q(n,(function(n){return n.On===t}))}return{Provider:function(){function i(){this.On=t,this.kn=[]}var r=i.prototype;return r.dn=function(n){this.kn.push(n)},r._n=function(n){this.kn=this.kn.filter((function(t){return t!==n}))},r._getChildContext=function(){var n;return(n={})[t]=this,n},r.getValue=function(){return void 0!==this.props.value?this.props.value:n},r.componentDidUpdate=function(n){this.props.value!==n.value&&P(this.kn,null,this.getValue())},r.render=function(){return this.props.children},i}(),Consumer:function(r,f){var o=this,e=R((function(){return f[t]||i(o)}))[0],s=e?e.getValue():n,c=R(s),h=c[1];if(s===c[0]){V((function(){if(e)return e.dn(h),function(){e._n(h)}}),[]);var a=$(r.children)[0];return u(a)?a(s):void 0}h(s)},_contextID:t,_defaultValue:n,an:i}},n.createElement=E,n.createRef=function(){return{current:null}},n.forwardRef=function(n){return n._forwardRef=!0,n},n.memo=function(n,t){return t=t||S,n.hn?n.hn.push(t):n.hn=[t],n},n.render=function(n,i,r,f){var o;u(r)&&(f=r,r=null),o=(r=r||l).driver,t.R=J,t.S=ln,t.H=vn,t.N=An,t.U=xn,(t.driver=o||t.driver)||x(5);var e=on.mount(n,i,r).T();return f&&f.call(e),e},n.shared=Cn,n.useCallback=function(n,t){return Z((function(){return n}),t)},n.useContext=function(n){return H().useContext(n)},n.useEffect=function(n,t){W(n,t,!0)},n.useImperativeHandle=function(n,t,i){V((function(){return u(n)?(n(t()),function(){return n(null)}):null!=n?(n.current=t(),function(){n.current=null}):void 0}),e(i)?i.concat([n]):null)},n.useLayoutEffect=V,n.useMemo=Z,n.useReducer=function(n,i,r){var f=H(),o=f.getHookID(),e=f.getHooks(),s=e[o];if(!s){var c=u(r)?r(i):i;return e[o]=[c,function(n){t.i||O();var i=e[o][2];if(U()===f)i.In.push(n),f.o=!0;else{var r=i.xn,u=(0,i.An)(r,n);if(D(u,r))return;i.xn=u,i.In.push(n),f.h()}},{In:[],An:n,xn:c}]}var h=s[2],a=s[0];if(f.fn>0)for(var l=0;l<h.In.length;l++)a=n(a,h.In[l]);else a=h.xn;return D(a,s[0])||(s[0]=a,f.l=!0),h.An=n,h.xn=a,h.In.length=0,e[o]},n.useRef=function(n){var t=H(),i=t.getHookID(),r=t.getHooks();return r[i]||(r[i]={current:n}),r[i]},n.useState=R,n.version="1.2.3"}));
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).Rax={})}(this,(function(n){var t={t:1,i:!1,driver:null,rootComponents:{},rootInstances:{},owner:null};function i(n,t,i,r,u){return{type:n,key:t,ref:i,props:r,_owner:u}}function r(n){return null===n}function u(n){return"function"==typeof n}function f(n){return"object"==typeof n}function o(n){return"[object Object]"===a.toString.call(n)}function e(n){return Array.isArray(n)}function s(n){return"string"==typeof n}function c(n){return"number"==typeof n}var h=function(){},a={};function l(n,t){if(e(n))for(var i=0,r=n.length;i<r;i++)l(n[i],t);else t.push(n)}function v(n){if(null==n)return n;var t=[];return l(n,t),t.length-1?t:t[0]}var d=[],_=[],p=[],w=setTimeout;function b(n){var t;while(t=n.shift())t()}function y(n){0===d.length&&w(j),d.push(n)}function j(){b(d)}function m(n){0===_.length&&w(O),_.push(n)}function O(){b(_)}function g(n){p.push(n)}function k(n,i,r){var u,f=void 0===r?"":" got: "+function(n){return o(n)?Object.keys(n):n}(r);return Error(n+": #"+i+", "+(((u=t.owner)?"check <"+u.u()+">":"no owner")+".")+f)}function I(n,t){throw k("Error",n,t)}function x(n,t){var i=k("Warn",n,t);w((function(){throw i}),0)}var A={key:!0,ref:!0};function C(n,r,u){var f,o={},s=null,c=null;if(null!=r)for(f in c=void 0===r.ref?null:r.ref,s=void 0===r.key?null:""+r.key,r)A[f]||(o[f]=r[f]);var a=arguments.length-2;if(a>0)if(1!==a||e(u)){var l=u;if(a>1){l=Array(a);for(var d=0;d<a;d++)l[d]=arguments[d+2]}o.children=v(l)}else o.children=u;if(n&&n.defaultProps){var _=n.defaultProps;for(f in _)void 0===o[f]&&(o[f]=_[f])}return null==n&&(n=h,x(0)),new i(n,s,c,o,t.owner)}function E(n,t,i){for(var r=0,u=n&&n.length;r<u;r++)n[r].call(t,i)}var P=a.hasOwnProperty;function T(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function D(n,t){if(T(n,t))return!0;if(!f(n)||r(n)||!f(t)||r(t))return!1;var i=Object.keys(n);if(i.length!==Object.keys(t).length)return!1;for(var u=0;u<i.length;u++)if(!P.call(t,i[u])||!T(n[i[u]],t[i[u]]))return!1;return!0}function S(){return t.owner&&t.owner._instance}function U(){var n=S();if(n)return n;I(1)}function H(n,t){if(r(t)||n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(!T(n[i],t[i]))return!1;return!0}function N(n){var i=U(),r=i.getHookID(),f=i.getHooks();if(!f[r]){u(n)&&(n=n());f[r]=[n,function(n){t.i||O();var o=f[r],e=o[2];u(n)&&(n=n(e)),T(n,e)||(o[2]=n,S()===i?i.o=!0:i.h())},n]}var o=f[r];return T(o[0],o[2])||(o[0]=o[2],i.l=!0),o}function R(n,t){V(n,t)}function V(n,t,i){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u],e=o.v,s=o._;o._=t,o.p=s,e.current=n}else{var c=function n(t){if(!t&&i)return m((function(){return n(!0)}));var r=n.current;r&&(h.current=r(),n.current=null)},h=function n(t){if(!t&&i)return m((function(){return n(!0)}));var r=n.current;r&&(r(),n.current=null)};c.current=n,f[u]={v:c,j:h,p:t,_:t},r.didMount.push(c),r.willUnmount.push((function(){return h(!0)})),r.didUpdate.push((function(){var n=f[u],t=n._,i=n.v;null!=t&&H(t,n.p)||(h(),i())}))}}function W(n,t){var i=U(),u=i.getHookID(),f=i.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u][1];!r(t)&&H(t,o)||(f[u]=[n(),t])}else f[u]=[n(),t];return f[u][0]}function Z(n){return e(n)?n:[n]}function $(n,t){var i;while(n&&n._internal){if(t(n)){i=n;break}n=n._internal.m}return i}var q=0;function z(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,B(n,t)}function B(n,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},B(n,t)}var F=function(){function n(n){this.O=n}var i=n.prototype;return i.g=function(n,i,r){this._parent=n,this.m=i,this._context=r,this._mountID=t.t++},i.k=function(){this.O=this._nativeNode=this._parent=this.m=this._context=null,this._instance&&(this._instance=this._instance._internal=null)},i.I=function(n,t,i,r){this.g(n,t,i),this.A(r);var u={};return u._internal=this,u},i.unmountComponent=function(n){this._nativeNode&&!n&&t.driver.removeChild(this._nativeNode,this._parent),this.k()},i.u=function(){var n=this.O,t=n&&n.type;return t&&t.displayName||t&&t.name||t||n},i.A=function(n){var i=this.C(),r=this._parent;n?n(i,r):t.driver.appendChild(i,r)},i.C=function(){return null==this._nativeNode?this._nativeNode=this.P():this._nativeNode},i.T=function(){return this.C()},n}(),G=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var r=i.prototype;return r.P=function(){return t.driver.createEmpty(this)},r.D=function(){},i}(F);function J(n,t,i){var r=n?n.ref:null,u=t?t.ref:null;r!==u&&(r&&L(n._owner,r,i),u&&K(t._owner,u,i))}function K(n,t,i){if(n){var r=i.T();u(t)?t(r):f(t)?t.current=r:n._instance.refs[t]=r}else x(3)}function L(n,t,i){if(u(t))t(null);else{var r=i.T();f(t)&&t.current===r?t.current=null:n._instance.refs[t]===r&&delete n._instance.refs[t]}}function M(n){var i;return o(n)&&null!==n&&n.type?i=s(n.type)?new t.S(n):new t.U(n):s(n)||c(n)?i=new t.H(n+""):e(n)?i=new t.N(n):(void 0===n||r(n)||!1===n||!0===n||x(2,n),i=new t.R(n)),i}function Q(n,t){var i=r(n),u=r(t);return i||u?i===u:!(!e(n)||!e(t))||(s(n)||c(n)?s(t)||c(t):f(n)&&f(t)&&n.type===t.type&&n.key===t.key)}function X(n,t,i){var r=t&&t.key,u="."+i.toString(36);if(s(r)){var f="$"+r;return void 0===n[f]?f:u}return u}function Y(n){var i=n;while(i=n.m&&n.m._internal)if(i instanceof t.U)n=i;else{for(var r=Object.keys(i.V),u=n.W-1;u>=0;u--){var f=i.V[r[u]].C();if(!e(f))return f;if(f.length>0)return f[f.length-1]}if(!(i instanceof t.N))return null;n=i}}var nn=function(){function n(n,t){this.props=n,this.context=t,this.refs={}}var t=n.prototype;return t.setState=function(n,t){this.updater.setState(this,n,t)},t.forceUpdate=function(n){this.updater.forceUpdate(this,n)},n}(),tn=function(n){function t(t,i){var r;return(r=n.call(this,t,i)||this).Z=!0,r}return z(t,n),t}(nn),rn=1,un=function(n){function t(){var t;return(t=n.call(this)||this).$=[],t.q=rn++,t}z(t,n);var i=t.prototype;return i.T=function(){return this.B().T()},i.B=function(){return this._internal._renderedComponent},i.h=function(n){this.$=n,this.forceUpdate()},i.render=function(){return this.$},t}(nn),fn={set:function(n,i){n._r||(n._r=i,i.q&&(t.rootInstances[i.q]=i,t.rootComponents[i.q]=i._internal))},get:function(n){return n._r},remove:function(n){var i=this.get(n);i&&(n._r=null,i.q&&(delete t.rootComponents[i.q],delete t.rootInstances[i.q]))},mount:function(n,i,r){var u=r.parent,f=r.hydrate,o=t.driver;null==i&&(i=o.createBody());var e,s={element:n,container:i,hydrate:f};if(o.beforeRender&&o.beforeRender(s),u){var c=u._internal;e=c.F(c._context)}var h=this.get(i);if(h&&h.q)return e&&(h._internal.G=e),h.h(n),o.afterRender&&o.afterRender(s),h;var a=M(C(un)).I(i,u,e||{});return this.set(i,a),a.h(n),o.afterRender&&o.afterRender(s),a}},on=Object.assign,en="style",sn="children",cn="tree",hn=/^on[A-Z]/,an=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var f=i.prototype;return f.I=function(n,t,i,r){this.g(n,t,i);var u=this.O,f=u.props,o=u.type,e=f.children,s=f.append||cn;this.J=on({},f.style);var c={type:o,props:f};return c._internal=this,this._instance=c,s===cn?(this.K(e,i),this.A(r)):(this.A(r),this.K(e,i)),u&&u.ref&&K(u._owner,u.ref,this),c},f.K=function(n,t){if(null==n)return n;var i=this.C();return this.L(i,Z(n),t)},f.L=function(n,t,i,r){for(var u=this.V={},f=[],o=0,e=t.length;o<e;o++){var s=t[o],c=M(s);u[X(u,s,o)]=c,c.W=o;var h=c.I(n,this._instance,i,r);f.push(h)}return f},f.M=function(n){var t=this.V;if(t){for(var i in t){t[i].unmountComponent(n)}this.V=null}},f.unmountComponent=function(n){if(this._nativeNode){var i=this.O.ref;i&&L(this.O._owner,i,this),fn.remove(this._nativeNode),n||t.driver.removeChild(this._nativeNode,this._parent)}this.M(!0),this.J=null,this.k()},f.D=function(n,t,i,r){this.O=t,J(n,t,this);var u=n.props,f=t.props;this.X(u,f),null==u.children||e(u.children)&&0===u.children.length?this.K(f.children,r):this.Y(f.children,r)},f.X=function(n,i){var r,f,o,e=t.driver,s=this.C();for(r in n)if(r!==sn&&null!=n[r]&&!i.hasOwnProperty(r))if(r===en){var c=this.J;for(f in c)(o=o||{})[f]="";this.J=null}else if(hn.test(r)){var h=n[r];u(h)&&e.removeEventListener(s,r.slice(2).toLowerCase(),h)}else e.removeAttribute(s,r,n[r]);for(r in i){var a=i[r],l=r===en?this.J:null!=n?n[r]:void 0;if(r!==sn&&l!==a&&(null!=a||null!=l))if(r===en)if(a?a=this.J=on({},a):this.J=null,null!=l){for(f in l)a&&(a[f]||0===a[f])||((o=o||{})[f]="");for(f in a)l[f]!==a[f]&&((o=o||{})[f]=a[f])}else o=a;else if(hn.test(r)){var v=r.slice(2).toLowerCase();u(l)&&e.removeEventListener(s,v,l,i),u(a)&&e.addEventListener(s,v,a,i)}else null!=a?e.setAttribute(s,r,a):e.removeAttribute(s,r,n[r])}o&&e.setStyle(s,o)},f.Y=function(n,i){var u=this.V,f=t.driver;if(null!=n||null!=u){var o={};if(null!=n)for(var s=0,c=(n=Z(n)).length;s<c;s++){var h=n[s],a=X(o,h,s),l=u&&u[a],v=l&&l.O,d=l&&l._context;null!=l&&Q(v,h)?(v===h&&d===i||l.D(v,h,i,i),o[a]=l):(l&&(l.nn=!0),o[a]=M(h))}var _=this.C(),p=e(_),w=null,b=null,y=!1,j=!1,m=null,O=!(!f.removeChildren||!(r(n)||n&&!n.length)||p);if(null!=u){for(var g in u){var k=u[g],I=k.nn||!o[g];w?I&&k.unmountComponent(O):(j=I,e(b=(w=k).C())&&(y=0===b.length,b=b[0]))}(p&&0===_.length||y)&&(m=Y(this))}if(null!=o){var x=function(n,t){for(var i=0,r=(n=Z(n)).length;i<r;i++)m?f.insertAfter(n[r-1-i],m):b?f.insertBefore(n[i],b):t&&f.appendChild(n[i],t)},A=0;for(var C in o){var E=o[C],P=u&&u[C];if(P===E){var T=P.C();P.W!==A&&x(T)}else p&&(_=this._parent),E.I(_,this._instance,i,x);E.W=A++,e(m=E.C())&&(m=m[m.length-1])}}j&&w.unmountComponent(O),O&&f.removeChildren(this._nativeNode),this.V=o}},f.P=function(){var n=this._instance,i=t.driver.createElement(n.type,n.props,this);return fn.set(i,n),i},i}(F),ln=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var r=i.prototype;return r.D=function(n,i){n!==(i=""+i)&&(this.O=i,t.driver.updateText(this.C(),i))},r.P=function(){return t.driver.createText(this.O,this)},i}(F),vn=function(n){function t(t,i){var r;(r=n.call(this)||this).tn=!0,r.rn=t,r.un=0,r.fn=0,r.on={},r.o=!1,r.l=!1,r.en=null,r.sn={},r.didMount=[],r.didUpdate=[],r.willUnmount=[],r.state=a,t._forwardRef&&(r.cn=r._forwardRef=i);var u=t.hn;return u&&(r.shouldComponentUpdate=function(n){for(var t=!0,i=u.length-1;i>-1;i--)if(t=u[i](r.props,n))break;return!t||r.cn!==r._forwardRef}),r}z(t,n);var i=t.prototype;return i.getHooks=function(){return this.on},i.getHookID=function(){return++this.un},i.useContext=function(n){var t=this,i=n._contextID,r=this.sn[i];if(!r){var u=n.an(this);if(r=this.sn[i]={ln:u},u){var f=function(n){r.vn!==n&&(t.l=!0,t.h())};u.dn(f),this.willUnmount.push((function(){return u._n(f)}))}}return r.vn=r.ln?r.ln.getValue():n._defaultValue},i.componentWillMount=function(){this.l=!0},i.componentDidMount=function(){E(this.didMount)},i.componentWillReceiveProps=function(){this.l=!0},i.componentDidUpdate=function(){E(this.didUpdate)},i.componentWillUnmount=function(){E(this.willUnmount)},i.h=function(){this.setState(a)},i.render=function(){this.un=0,this.fn=0,this.o=!1;var n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);while(this.o)this.fn++,this.fn>24&&I(4),this.un=0,this.o=!1,n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);return this.l&&(this.en=n,this.l=!1),this.en},t}(nn),dn=[];function _n(n){return n.pn}function pn(n){var i=n._internal;if(i){t.i=!0;var r=i.O,u=i._context,f=i.G||u;i.G=void 0,(_n(i)||i.wn)&&(i.D(r,r,u,f),b(p)),t.i=!1}}function wn(n,t){return t._internal._mountID-n._internal._mountID}function bn(){if(t.i)return y(bn);var n,i=dn;if(i.length>0){O(),dn=[],i.length>1&&(i=i.filter((function(n){return!!n._internal})).sort(wn));while(n=i.pop())pn(n)}}function yn(n,t){if(dn.indexOf(n)<0&&dn.push(n),t){if(dn.length>1)return;y(bn)}else bn()}function jn(n,t,i){var r=n._internal;if(r){i&&function(n,t){var i=function(n){return n.bn}(n)||function(n){return n.bn=[]}(n);i.push(t)}(r,i);var u=r._renderedComponent;t?(n.tn&&(r.wn=!0),function(n,t){var i=_n(n)||function(n){return n.pn=[]}(n);i.push(t)}(r,t),!r.yn&&u&&yn(n,!0)):(r.wn=!0,u&&yn(n))}}var mn={setState:function(n,i,r){t.i||O(),jn(n,i,r)},forceUpdate:function(n,t){jn(n,null,t)}};function On(n,t,i){try{return n()}catch(n){i?i(n):function(n,t){var i=$(n,(function(n){return n.componentDidCatch||n.constructor&&n.constructor.getDerivedStateFromError}));i?g((function(){var n=i._internal;n&&On((function(){if(i.componentDidCatch&&i.componentDidCatch(t),i.constructor&&i.constructor.getDerivedStateFromError){var n=i.constructor.getDerivedStateFromError(t);i.setState(n)}}),n.m)})):w((function(){throw t}),0)}(t,n)}}function gn(n,t){g((function(){On(n,t)}))}function kn(n,t){n&&gn((function(){E(n,t)}),t)}var In=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var r=i.prototype;return r.I=function(n,i,r,f){this.g(n,i,r);var o,e,s=this.O,c=s.type,h=s.ref,a=s.props,l=c.prototype,v=this.jn(r);if(On((function(){l&&l.render?o=new c(a,v):u(c)?o=new vn(c,h):I(6,c)}),i),o){o.props=a,o.context=v,o.refs={},o.updater=mn,o._internal=this,this._instance=o;var d=o.state;void 0===d&&(o.state=d=null),o.componentWillMount&&On((function(){o.componentWillMount()}),o),t.owner=this,o.state=this.mn(a,v);var _=this.bn;return this.bn=null,On((function(){e=o.render()}),o),t.owner=null,this._renderedComponent=M(e),this._renderedComponent.I(this._parent,o,this.F(r),f),!s.type._forwardRef&&h&&K(s._owner,h,this),o.componentDidMount&&gn((function(){o.componentDidMount()}),o),kn(_,o),o}},r.unmountComponent=function(n){var t=this._instance;if(t&&t.componentWillUnmount&&On((function(){t.componentWillUnmount()}),t),null!=this._renderedComponent){var i=this.O,r=i.ref;!i.type._forwardRef&&r&&L(i._owner,r,this),this._renderedComponent.unmountComponent(n),this._renderedComponent=null}this.pn=null,this.wn=!1,this.k()},r.jn=function(n){var t={},i=this.O.type.contextTypes;if(i)for(var r in i)t[r]=n[r];return t},r.F=function(n){var t=this._instance,i=t.getChildContext&&t.getChildContext();return i?on({},n,i):n},r.mn=function(n,t){var i=this._instance,r=this.pn;if(!r)return i.state;this.pn=null;for(var f=on({},i.state),o=0;o<r.length;o++){var e=r[o];on(f,u(e)?e.call(i,f,n,t):e)}return f},r.D=function(n,t,i,r){var u=this,f=this._instance;f&&On((function(){var i,o,e;u._context===r?o=f.context:(o=u.jn(r),i=!0),e=t.props,n!==t&&(i=!0),i&&f.componentWillReceiveProps&&(u.yn=!0,f.componentWillReceiveProps(e,o),u.yn=!1),u.O.type._forwardRef?(f.cn=n.ref,f._forwardRef=t.ref):J(n,t,u);var s=!0,c=f.props,h=f.state,a=u.mn(e,o),l=u.bn;if(u.bn=null,u.wn||(f.shouldComponentUpdate?s=f.shouldComponentUpdate(e,a,o):f.Z&&(s=!D(c,e)||!D(h,a))),s){u.wn=!1;var v=f.context;f.componentWillUpdate&&f.componentWillUpdate(e,a,o),u.O=t,u._context=r,f.props=e,f.state=a,f.context=o,u.On(r),f.componentDidUpdate&&gn((function(){f.componentDidUpdate(c,h,v)}),f)}else u.O=t,u._context=r,f.props=e,f.state=a,f.context=o;kn(l,f)}),f)},r.On=function(n){var i,r=this._renderedComponent,u=r.O,f=this._instance;if(t.owner=this,i=f.render(),t.owner=null,Q(u,i)){var o=r._context,s=this.F(n);u===i&&o===s||r.D(u,i,o,s)}else{var c=null,h=r.C();e(h)&&0===h.length&&null==f.q&&(c=Y(r)),r.unmountComponent(!0),this._renderedComponent=M(i),this._renderedComponent.I(this._parent,f,this.F(n),(function(n,i){var r=t.driver;h=Z(h),n=Z(n);for(var u=0;u<n.length;u++){var f=n[u];h[u]?r.replaceChild(f,h[u]):c?r.insertAfter(f,c):r.appendChild(f,i),c=f}for(var o=n.length;o<h.length;o++)r.removeChild(h[o])}))}},r.C=function(){var n=this._renderedComponent;if(n)return n.C()},r.T=function(){var n=this._instance;return n.tn?null:n},i}(F),xn=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var r=i.prototype;return r.I=function(n,i,r,u){this.g(n,i,r);var f=this._instance={};f._internal=this;var o=[];if(this.L(this._parent,this.O,r,(function(n){n=Z(n);for(var t=0;t<n.length;t++)o.push(n[t])})),u)u(o,n);else for(var e=0;e<o.length;e++)t.driver.appendChild(o[e],n);return f},r.unmountComponent=function(n){if(!n)for(var i=this.C(),r=0,u=i.length;r<u;r++)t.driver.removeChild(i[r]);this.M(!0),this.k()},r.D=function(n,t,i,r){this.O=t,this.Y(this.O,r)},r.C=function(){var n=this.V||{};return[].concat.apply([],Object.keys(n).map((function(t){return n[t].C()})))},i}(an);var An={Host:t,Instance:fn,Element:i,flattenChildren:v};n.Component=nn,n.Fragment=function(n){return n.children},n.PureComponent=tn,n.createContext=function(n){var t="_c"+q++;function i(n){return $(n,(function(n){return n.gn===t}))}return{Provider:function(){function i(){this.gn=t,this.kn=[]}var r=i.prototype;return r.dn=function(n){this.kn.push(n)},r._n=function(n){this.kn=this.kn.filter((function(t){return t!==n}))},r._getChildContext=function(){var n;return(n={})[t]=this,n},r.getValue=function(){return void 0!==this.props.value?this.props.value:n},r.componentDidUpdate=function(n){this.props.value!==n.value&&E(this.kn,null,this.getValue())},r.render=function(){return this.props.children},i}(),Consumer:function(r,f){var o=this,e=N((function(){return f[t]||i(o)}))[0],s=e?e.getValue():n,c=N(s),h=c[1];if(s===c[0]){R((function(){if(e)return e.dn(h),function(){e._n(h)}}),[]);var a=Z(r.children)[0];return u(a)?a(s):void 0}h(s)},_contextID:t,_defaultValue:n,an:i}},n.createElement=C,n.createRef=function(){return{current:null}},n.forwardRef=function(n){return n._forwardRef=!0,n},n.memo=function(n,t){return t=t||D,n.hn?n.hn.push(t):n.hn=[t],n},n.render=function(n,i,r,f){var o;u(r)&&(f=r,r=null),o=(r=r||a).driver,t.R=G,t.S=an,t.H=ln,t.N=xn,t.U=In,(t.driver=o||t.driver)||I(5);var e=fn.mount(n,i,r).T();return f&&f.call(e),e},n.shared=An,n.useCallback=function(n,t){return W((function(){return n}),t)},n.useContext=function(n){return U().useContext(n)},n.useEffect=function(n,t){V(n,t,!0)},n.useImperativeHandle=function(n,t,i){R((function(){return u(n)?(n(t()),function(){return n(null)}):null!=n?(n.current=t(),function(){n.current=null}):void 0}),e(i)?i.concat([n]):null)},n.useLayoutEffect=R,n.useMemo=W,n.useReducer=function(n,i,r){var f=U(),o=f.getHookID(),e=f.getHooks(),s=e[o];if(!s){var c=u(r)?r(i):i;return e[o]=[c,function(n){t.i||O();var i=e[o][2];if(S()===f)i.In.push(n),f.o=!0;else{var r=i.xn,u=(0,i.An)(r,n);if(T(u,r))return;i.xn=u,i.In.push(n),f.h()}},{In:[],An:n,xn:c}]}var h=s[2],a=s[0];if(f.fn>0)for(var l=0;l<h.In.length;l++)a=n(a,h.In[l]);else a=h.xn;return T(a,s[0])||(s[0]=a,f.l=!0),h.An=n,h.xn=a,h.In.length=0,e[o]},n.useRef=function(n){var t=U(),i=t.getHookID(),r=t.getHooks();return r[i]||(r[i]={current:n}),r[i]},n.useState=N,n.version="1.2.2"}));

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

var RaxCore = require('../../index');
var RaxCore = require('rax');
var Children = require('rax-children');

@@ -18,5 +18,3 @@ var isValidElement = require('rax-is-valid-element');

enumerable: true,
get: function () {
return e[k];
}
get: function () { return e[k]; }
});

@@ -26,3 +24,3 @@ }

}
n['default'] = e;
n["default"] = e;
return n;

@@ -38,6 +36,6 @@ }

var Rax = RaxCore__namespace;
Rax.Children = Children__default['default'];
Rax.isValidElement = isValidElement__default['default'];
Rax.createFactory = createFactory__default['default'];
Rax.cloneElement = cloneElement__default['default'];
Rax.Children = Children__default["default"];
Rax.isValidElement = isValidElement__default["default"];
Rax.createFactory = createFactory__default["default"];
Rax.cloneElement = cloneElement__default["default"];
Rax.Component.prototype.isReactComponent = {};

@@ -47,32 +45,22 @@

enumerable: true,
get: function () {
return Children__default['default'];
}
get: function () { return Children__default["default"]; }
});
Object.defineProperty(exports, 'isValidElement', {
enumerable: true,
get: function () {
return isValidElement__default['default'];
}
get: function () { return isValidElement__default["default"]; }
});
Object.defineProperty(exports, 'createFactory', {
enumerable: true,
get: function () {
return createFactory__default['default'];
}
get: function () { return createFactory__default["default"]; }
});
Object.defineProperty(exports, 'cloneElement', {
enumerable: true,
get: function () {
return cloneElement__default['default'];
}
get: function () { return cloneElement__default["default"]; }
});
exports['default'] = Rax;
exports["default"] = Rax;
Object.keys(RaxCore).forEach(function (k) {
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
enumerable: true,
get: function () {
return RaxCore[k];
}
get: function () { return RaxCore[k]; }
});
});
{
"name": "rax",
"version": "1.2.3-beta.2",
"version": "1.2.3-beta.3",
"description": "A universal React-compatible render engine.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

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

import * as RaxCore from '../../index';
import * as RaxCore from 'rax';
import Children from 'rax-children';

@@ -15,3 +15,3 @@ import isValidElement from 'rax-is-valid-element';

export * from '../../index';
export * from 'rax';
export {

@@ -18,0 +18,0 @@ Children,

@@ -29,7 +29,3 @@ export function isNull(obj) {

export function isFalsy(val) {
return !Boolean(val);
}
export const NOOP = () => {};
export const EMPTY_OBJECT = {};

@@ -87,56 +87,2 @@ /* @jsx createElement */

});
it('empty node is created by falsy element should not be rebuilt', () => {
class Foo extends PureComponent {
state = {
alwaysShowUndefined: false
};
render() {
return (
this.state.alwaysShowUndefined ? undefined : undefined
);
}
}
const el = createNodeElement('div');
let component = render(<Foo />, el);
jest.runAllTimers();
component.setState({alwaysShowUndefined: !component.state.alwaysShowUndefined});
jest.runAllTimers();
const emptyNode1 = el.childNodes[0];
component.setState({alwaysShowUndefined: !component.state.alwaysShowUndefined});
jest.runAllTimers();
const emptyNode2 = el.childNodes[0];
expect(emptyNode1).toBe(emptyNode2);
});
it('empty node is created by falsy element should be replaced normally', () => {
class Foo extends PureComponent {
state = {
alwaysShowUndefined: false
};
render() {
return (
this.state.alwaysShowUndefined ? undefined : <label key="hello" text="hello" />
);
}
}
const el = createNodeElement('div');
let component = render(<Foo />, el);
jest.runAllTimers();
expect(el.childNodes.length).toBe(1);
const originEmptyNode = el.childNodes[0];
component.setState({
alwaysShowUndefined: true
});
jest.runAllTimers();
const emptyNode1 = el.childNodes[0];
expect(el.childNodes.length).toBe(1);
expect(originEmptyNode).not.toBe(emptyNode1);
});
});

@@ -160,32 +160,2 @@ /* @jsx createElement */

});
// fixed issue https://github.com/alibaba/rax/issues/2209
it('Should not warn when element is ""', () => {
let container = createNodeElement('container');
class App extends Component {
render() {
return (
<div>
{
[
{ id: 0, prefix: '', suffix: '' },
{ id: 1, prefix: '', suffix: '' }
].map((item) => {
return (
<div key={item.id}>
{item.prefix}
{item.suffix}
</div>
);
})
}
</div>
);
}
}
expect(() => {
render(<App />, container);
}).toWarnDev([], {withoutStack: true});
});
});

@@ -5,4 +5,3 @@ import { isString } from '../types';

export default function getElementKeyName(children, element, index) {
// `element && element.key` will cause elementKey receive "" when element is ""
const elementKey = element ? element.key : void 0;
const elementKey = element && element.key;
const defaultName = '.' + index.toString(36); // Inner child name default format fallback

@@ -9,0 +8,0 @@

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

import {isArray, isString, isNumber, isObject, isFalsy} from '../types';
import {isArray, isString, isNumber, isObject, isNull} from '../types';
function shouldUpdateComponent(prevElement, nextElement) {
let prevFalsy = isFalsy(prevElement);
let nextFalsy = isFalsy(nextElement);
if (prevFalsy || nextFalsy) {
return prevFalsy === nextFalsy;
let prevEmpty = isNull(prevElement);
let nextEmpty = isNull(nextElement);
if (prevEmpty || nextEmpty) {
return prevEmpty === nextEmpty;
}

@@ -9,0 +9,0 @@

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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