weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ky...@apache.org
Subject [04/52] [abbrv] incubator-weex git commit: * [jsfm] upgrade js framework to v0.26.3
Date Mon, 07 May 2018 07:52:37 GMT
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f5434e40/pre-build/weex-rax-extra-api.js
----------------------------------------------------------------------
diff --git a/pre-build/weex-rax-extra-api.js b/pre-build/weex-rax-extra-api.js
index 52eb9eb..8b49e2e 100644
--- a/pre-build/weex-rax-extra-api.js
+++ b/pre-build/weex-rax-extra-api.js
@@ -1,2 +1,2 @@
-(this.nativeLog||function(e){console.log(e)})("Prepare Rax Environment APIs (0.4.20), Build 2018-04-26 22:34.");var global=this,process={env:{}};!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";var e,t,n=(function(e){e.exports=function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.w={},o(o.s=22)}([function(e,t,n){var r=e.exports.createUniqueKey="undefined"!=typeof Symbol?Symbol:function(e){return"[["+e+"_"+Math.random().to
 Fixed(8).slice(2)+"]]"},o=e.exports.isObject=function(e){return"object"==typeof e&&null!==e};e.exports.LISTENERS=r("listeners"),e.exports.CAPTURE=1,e.exports.BUBBLE=2,e.exports.ATTRIBUTE=3,e.exports.newNode=function(e,t,n){var r=o(n);return{listener:e,kind:t,once:r&&Boolean(n.once),passive:r&&Boolean(n.passive),next:null}}},function(e,t,n){var r=n(0),o=n(9),i=n(8),a=r.isObject,u=r.LISTENERS,s=r.CAPTURE,l=r.BUBBLE,c=r.ATTRIBUTE,f=r.newNode,d=o.defineCustomEventTarget,p=i.createEventWrapper,h=i.STOP_IMMEDIATE_PROPAGATION_FLAG,v=i.PASSIVE_LISTENER_FLAG,y="undefined"!=typeof window&&void 0!==window.EventTarget,m=e.exports=function e(){var t=arguments;if(!(this instanceof e)){if(1===arguments.length&&Array.isArray(arguments[0]))return d(e,arguments[0]);if(0<arguments.length){for(var n=Array(arguments.length),r=0;r<arguments.length;++r)n[r]=t[r];return d(e,n)}throw new TypeError("Cannot call a class as a function")}Object.defineProperty(this,u,{value:Object.create(null)})};m.prototype=Obj
 ect.create((y?window.EventTarget:Object).prototype,{constructor:{value:m,writable:!0,configurable:!0},addEventListener:{value:function(e,t,n){if(null==t)return!1;if("function"!=typeof t&&"object"!=typeof t)throw new TypeError('"listener" is not an object.');var r=(a(n)?Boolean(n.capture):Boolean(n))?s:l,o=this[u][e];if(null==o)return this[u][e]=f(t,r,n),!0;for(var i=null;null!=o;){if(o.listener===t&&o.kind===r)return!1;o=(i=o).next}return i.next=f(t,r,n),!0},configurable:!0,writable:!0},removeEventListener:{value:function(e,t,n){if(null==t)return!1;for(var r=(a(n)?Boolean(n.capture):Boolean(n))?s:l,o=null,i=this[u][e];null!=i;){if(i.listener===t&&i.kind===r)return null==o?this[u][e]=i.next:o.next=i.next,!0;i=(o=i).next}return!1},configurable:!0,writable:!0},dispatchEvent:{value:function(e){var t=e.type,n=this[u][t];if(null==n)return!0;for(var r=p(e,this),o=null;null!=n&&(n.once?null==o?this[u][t]=n.next:o.next=n.next:o=n,r[v]=n.passive,"function"==typeof n.listener?n.listener.call(t
 his,r):n.kind!==c&&"function"==typeof n.listener.handleEvent&&n.listener.handleEvent(r),!r[h]);)n=n.next;return!r.defaultPrevented},configurable:!0,writable:!0}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(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(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listeners={}}return r(e,[{key:"_addListener",value:function(e,t,n){return this._listeners[e]=this._listeners[e]||[],this._listeners[e].push({listener:t,once:n}),this}},{key:"on",value:function(e,t){return this._addListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addListener(e,t,!0)}},{key:"off",value:function(e,t){return this._listeners[e]&&this._listeners[e].leng
 th&&(t?this._listeners[e]=this._listeners[e].filter(function(e){return!(e.listener===t)}):delete this._listeners[e]),this}},{key:"emit",value:function(t,n){var r=this;return this._listeners[t]&&this._listeners[t].forEach(function(e){e.listener.apply(r,[n]),e.once&&r.removeListener(t,e.listener)}),this}}]),e}();t.default=o,e.exports=t.default},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=function(){var t=function e(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.type=t,this.bubbles=Boolean(n.bubbles),this.cancelable=Boolean(n.cancelable)};return{Event:t,CustomEvent:function(e){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};o(this,r);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call
 (this,e,t));return n.detail=t.detail,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r}()}}},function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=function(e){var t,n={};return n.timing=(r(t={unloadEventStart:0,unloadEventEnd:0,navigationStart:e,redirectStart:0,redirectEnd:0,fetchStart:e,domainLookupStart:e,domainLookupEnd:e,connectStart:e,secureConnectionStart:e},"connectStart",e),r(t,"requestStart",e),r(t,"responseStart",e),r(t,"responseEnd",e),r(t,"domLoading",0),r(t,"domInteractive",0),r(t,"domComplete",0),r(t,"domContentLoadedEventStart",0),r(t,"domContentLoadedEventEnd",0),r(t,"loadEventStart",0),r(t,"loadEventE
 nd",0),t),n.now=function(){return Date.now()-n.timing.navigationStart},n}},function(e,t,n){e.exports=function(){var e={},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return e.btoa=function(e){for(var t,n,r=String(e),o=0,i=u,a="";r.charAt(0|o)||(i="=",o%1);a+=i.charAt(63&t>>8-o%1*8)){if(255<(n=r.charCodeAt(o+=.75)))throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|n}return a},e.atob=function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r=u.indexOf(r);return a},e}},function(e,t,n){var o="@weex-module/timer";e.exports=function(n,r){return{setTimeout:function(e,t){return n(o).setTimeout(e,t),r.taskCenter.callbackManager.lastCallbackId.toString()},clearTimeout:function(e){n(o).clearTimeout(e)},setIn
 terval:function(e,t){return n(o).setInterval(e,t),r.taskCenter.callbackManager.lastCallbackId.toString()},clearInterval:function(e){n(o).clearInterval(e)},requestAnimationFrame:function(e){return n(o).setTimeout(e,16)},cancelAnimationFrame:function(e){n(o).clearTimeout(e)}}}},function(e,t,n){var r=function(){function r(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(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=n(1),s="@weex-module/webSocket",l=0,c=1,f=3,d=["close","error","message","open"],p=function e(t,n){a(this,e),this.type=t.toString(),Object.assign(this,n)};e.exports=function(i){var e=function(e){function o(e,t){a(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=ty
 peof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this)),r=i(s);return r.WebSocket(e,t),n.readyState=l,(n.websocket=r).onmessage(function(e){n.dispatchEvent(new p("message",e))}),r.onopen(function(e){n.readyState=c,n.dispatchEvent(new p("open"))}),r.onclose(function(e){n.readyState=f,n.dispatchEvent(new p("close",{code:e.code,reason:e.reason}))}),r.onerror(function(e){n.dispatchEvent(new p("error",e))}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,u(d)),r(o,[{key:"close",value:function(e,t){2!==this.readyState&&this.readyState!==f&&(this.readyState=2,this.websocket.close(e,t))}},{key:"send",value:function(e){if("string"!=typeof e)throw new Error("Unsupported data type");this
 .websocket.send(e)}}]),o}();return e.CONNECTING=l,e.OPEN=c,e.CLOSING=2,e.CLOSED=f,e}},function(e,t,n){var r=n(0).createUniqueKey,o=r("stop_immediate_propagation_flag"),i=r("canceled_flag"),a=r("passive_listener_flag"),u=r("original_event"),s=Object.freeze({stopPropagation:Object.freeze({value:function(){var e=this[u];"function"==typeof e.stopPropagation&&e.stopPropagation()},writable:!0,configurable:!0}),stopImmediatePropagation:Object.freeze({value:function(){this[o]=!0;var e=this[u];"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()},writable:!0,configurable:!0}),preventDefault:Object.freeze({value:function(){if(!this[a]){!0===this.cancelable&&(this[i]=!0);var e=this[u];"function"==typeof e.preventDefault&&e.preventDefault()}},writable:!0,configurable:!0}),defaultPrevented:Object.freeze({get:function(){return this[i]},enumerable:!0,configurable:!0})});e.exports.STOP_IMMEDIATE_PROPAGATION_FLAG=o,e.exports.PASSIVE_LISTENER_FLAG=a,e.exports.createEventWrapper
 =function(e,t){var n="number"==typeof e.timeStamp?e.timeStamp:Date.now(),r={type:{value:e.type,enumerable:!0},target:{value:t,enumerable:!0},currentTarget:{value:t,enumerable:!0},eventPhase:{value:2,enumerable:!0},bubbles:{value:Boolean(e.bubbles),enumerable:!0},cancelable:{value:Boolean(e.cancelable),enumerable:!0},timeStamp:{value:n,enumerable:!0},isTrusted:{value:!1,enumerable:!0}};return r[o]={value:!1,writable:!0},r[i]={value:!1,writable:!0},r[a]={value:!1,writable:!0},r[u]={value:e},void 0!==e.detail&&(r.detail={value:e.detail,enumerable:!0}),Object.create(Object.create(e,s),r)}},function(e,t,n){var r=n(0),i=r.LISTENERS,a=r.ATTRIBUTE,u=r.newNode;e.exports.defineCustomEventTarget=function(e,t){function n(){e.call(this)}var r={constructor:{value:n,configurable:!0,writable:!0}};return t.forEach(function(t){r["on"+t]={get:function(){return function(e,t){for(var n=e[i][t];null!=n;){if(n.kind===a)return n.listener;n=n.next}return null}(this,t)},set:function(e){!function(e,t,n){"func
 tion"!=typeof n&&"object"!=typeof n&&(n=null);for(var r=null,o=e[i][t];null!=o;)o.kind===a?null==r?e[i][t]=o.next:r.next=o.next:r=o,o=o.next;null!=n&&(null==r?e[i][t]=u(n,a):r.next=u(n,a))}(this,t,e)},configurable:!0,enumerable:!0}}),n.prototype=Object.create(e.prototype,r),n}},function(e,t,n){var r=function(){function r(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(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=n(1),i=0,a=1,u=2,s=3,l=4,c=["abort","error","load","loadstart","progress","timeout","loadend","readystatechange"];e.exports=function(n){var e=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__
 proto__||Object.getPrototypeOf(t)).call(this));return e.UNSENT=i,e.OPENED=a,e.HEADERS_RECEIVED=u,e.LOADING=s,e.DONE=l,e.readyState=i,e.status=0,e.statusText="",e.timeout=0,e._aborted=!1,e._hasError=!1,e._method=null,e._response="",e._url=null,e._timedOut=!1,e._reset(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.apply(undefined,c)),r(t,[{key:"_reset",value:function(){this.readyState=this.UNSENT,this.responseHeaders=void 0,this.status=0,this._hasError=!1,this._headers={},this._response="",this._responseType="",this._sent=!1,this._lowerCaseResponseHeaders={},this._timedOut=!1}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var t=this.responseHeaders||{};return Object.keys
 (t).map(function(e){return e+": "+t[e]}).join("\r\n")}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error("Request has not been opened");this._headers[e.toLowerCase()]=String(t)}},{key:"open",value:function(e,t,n){if(this.readyState!==this.UNSENT)throw new Error("Cannot open, already sending");if(void 0!==n&&!n)throw new Error("Synchronous http requests are not supported");if(!t)throw new Error("Cannot load an empty url");this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(e){var t=this;if(this.readyState!==this.OPENED)throw new Error("Request has not been opened");if(this._sent)throw new Error("Request has already been sent");this._sent=!0,(0,n("@weex-module/stream").fetch)({method:this._method,url:this._url,headers:this._headers,body:e,type:"text"},fu
 nction(e){try{"string"==typeof e&&(e=JSON.parse(e)),t.status=e.status,t.statusText=e.statusText,t.setResponseHeaders(e.headers),e.ok?t._response=e.data:(""!==t._responseType&&"text"!==t._responseType||(t._response=e.data),t._hasError=!0)}catch(e){}t.setReadyState(t.DONE)},function(e){t.status=e.status,t.statusText=e.statusText,t.setResponseHeaders(e.headers),t.setReadyState(e.readyState)})}},{key:"abort",value:function(){this._aborted=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var n=e||{};this._lowerCaseResponseHeaders=Object.keys(n).reduce(function(e,t){return e[t.toLowerCase()]=n[t],e},{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:"readystatechange"}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:"abort"}):this._hasError?this._timedOut
 ?this.dispatchEvent({type:"timeout"}):this.dispatchEvent({type:"error"}):this.dispatchEvent({type:"load"}),this.dispatchEvent({type:"loadend"}))}},{key:"responseType",get:function(){return this._responseType},set:function(e){if(this._sent)throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be set after the request has been sent.");this._responseType=e}},{key:"responseText",get:function(){if(""!==this._responseType&&"text"!==this._responseType)throw new Error("The 'responseText' property is only available if 'responseType' is set to '' or 'text', but it is '"+this._responseType+"'.");return this.readyState<s?"":this._response}},{key:"response",get:function(){var e=this.responseType;return""===e||"text"===e?this.readyState<s||this._hasError?"":this._response:this.readyState!==l?null:void 0}}]),t}();return e.UNSENT=i,e.OPENED=a,e.HEADERS_RECEIVED=u,e.LOADING=s,e.DONE=l,e}},function(e,t,n){e.exports=function(a,n){function r(e){return"
 string"!=typeof e&&(e=String(e)),e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function i(t){this.originHeaders=t,this.map={},t instanceof i?t.forEach(function(e,t){this.append(t,e)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function e(){return this.bodyUsed=!1,this._initBody=function(e,t){if("string"==typeof(this._bodyInit=e))this._bodyText=e;else{if(e)throw new Error("unsupported BodyInit type");this._bodyText=""}},this.text=function(){var e=function(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}(this);return e||n.resolve(this._bodyText)},this.json=function(){return this.text().then(JSON.parse)},this}i.prototype.append=function(e,t){e=r(e),t=o(t);var n=this.map[e];this.map[e]=n?n+","+t:t},i.prototype.delete=function(e){delete this.map[r(e)]},i.prototype.get=function(e){return e=r(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(r(e))},i.p
 rototype.set=function(e,t){this.map[r(e)]=[o(t)]},i.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function s(e,t){var n,r,o=(t=t||{}).body;if(s.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,o||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),-1<u.indexOf(r)?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o,t)}function l(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=20
 0<=this.status&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e,t)}s.prototype.clone=function(){return new s(this)},e.call(s.prototype),e.call(l.prototype),l.prototype.clone=function(){return new l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},l.error=function(){var e=new l(null,{status:0,statusText:""});return e.type="error",e};var c=[301,302,303,307,308];l.redirect=function(e,t){if(-1===c.indexOf(t))throw new RangeError("Invalid status code");return new l(null,{status:t,headers:{location:e}})};return{fetch:function(t,i){return new n(function(n,r){var o,e={url:(o=s.prototype.isPrototypeOf(t)&&!i?t:new s(t,i)).url,method:o.method,headers:o.headers&&o.headers.originHeaders};void 0!==o._bodyInit&&(e.body=o._bodyInit),e.type=i&&i.dataType?i.dataType:"text",(0,a("@weex-module/stream").fetch)(e,function(e){try{"string"==typeof e&&(e=JSON.parse(e
 ));var t=new l("string"==typeof e.data?e.data:JSON.stringify(e.data),{status:e.status,statusText:e.statusText,headers:e.headers,url:o.url});n(t)}catch(e){r(e)}},function(e){})})},Headers:i,Request:s,Response:l}}},function(e,t,n){var r="@weex-module/location";e.exports=function(t,e){return e.assign=function(e){t("@weex-module/navigator").push({url:e,animated:"true"},function(e){})},e.replace=function(e){t(r).replace(e)},e.reload=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];t(r).reload(e)},e}},function(e,t,n){var r,o=n(2),a=(r=o)&&r.__esModule?r:{default:r};var u="visible",i="hidden",s="visibilitychange";function l(t){t.body.addEvent("viewappear",function(e){t.visibilityState=u,e.type=s,t.dispatchEvent(e)}),t.body.addEvent("viewdisappear",function(e){t.visibilityState=i,e.type=s,t.dispatchEvent(e)})}e.exports=function(t,r){var o=new a.default,n=!1;try{r.addEventListener=function(e,t){e===s&&(r.body?l(r):n=!0),o.on(e,t)},r.removeEventListener=function(e,t){v
 ar n;e===s&&(n=r).body&&(n.body.removeEvent("viewappear"),n.body.removeEvent("viewdisappear")),o.off(e,t)},r.dispatchEvent=function(e){o.emit(e.type,e)},r.fonts={add:function(e){t("@weex-module/dom").addRule("fontFace",{fontFamily:e.family,src:e.source})}},r.visibilityState=u;var i=r.createBody;Object.defineProperty(r,"createBody",{value:function(){var e=i.apply(r,arguments);return n&&l(r),e}})}catch(e){console.log(e)}return r}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var s="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={satisfies:function(e,t){if((void 0===e?"undefined":s(e))+(void 0===t?"undefined":s(t))!="stringstring")return!1;if("*"==t)return!0;for(var n=t.match(/(\W+)?([\d|.]+)/),r=e.split("."),o=n[2].split("."),i=Math.max(r.length,o.length),a=0,u=0;u<i;u++){if(r[u]&&!o[u]&&0<parseInt(r[u])
 ||parseInt(r[u])>parseInt(o[u])){a=1;break}if(o[u]&&!r[u]&&0<parseInt(o[u])||parseInt(r[u])<parseInt(o[u])){a=-1;break}}switch(n[1]){case"<":if(-1===a)return!0;break;case"<=":if(1!==a)return!0;break;case">":if(1===a)return!0;break;case">=":if(-1!==a)return!0;break;default:if(0===a)return!0}return!1}},e.exports=t.default},function(e,t,n){var r,o=n(14),p=(r=o)&&r.__esModule?r:{default:r};function h(e){if("*"==e)return e;for(var t=(e="string"==typeof e?e:"").split("."),n=0,r=[];n<3;){var o="string"==typeof t[n]&&t[n]?t[n]:"0";r.push(o),n++}return r.join(".")}function v(e,t,n){var r={isDowngrade:!0,errorType:1,code:1e3},o=e.toLowerCase();return 0<=o.indexOf("osversion")?r.code=1001:0<=o.indexOf("appversion")?r.code=1002:0<=o.indexOf("weexversion")?r.code=1003:0<=o.indexOf("devicemodel")&&(r.code=1004),r.errorMessage="Downgrade["+e+"] :: deviceInfo "+t+" matched criteria "+n,r}e.exports=function(r){return function(e){var t=r("@weex-module/instanceWrap"),n=function(e){var t={isDowngrade:!
 1},n=WXEnvironment,r=e[(n.platform||"unknow").toLowerCase()]||{};for(var o in n){var i=o,a=i.toLowerCase(),u=n[o],s=0<=a.indexOf("version"),l=0<=a.indexOf("devicemodel"),c=r[o];if(c&&s){var f=h(c),d=h(n[o]);if(p.default.satisfies(d,f)){t=v(i,u,c);break}}else if(l&&0<=(Array.isArray(c)?c:[c]).indexOf(u)){t=v(i,u,c);break}}return t}(e);return!!n.isDowngrade&&(t.error(n.errorType,n.code,n.errorMessage),!0)}}},function(e,t,n){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},l="@weex-module/",c={network:["request"],mtop:["request"],storage:["length","setItem","getItem","removeItem"],memoryStorage:["setItem","getItem"],navigator:["push","pop"],user:["login","logout","info"],modal:["alert","confirm","toast"],navigatorBar:["show","hide","setTitle","setRightItem","setStyle","setDrawer","setActionSheet","openDrawer","closeDrawer"]};e.ex
 ports=function(r,a,u){var s="windmill"===a.config.container;return console.log("[Rax] create require function, container: "+a.config.container),function e(i){var t=r[i];if(1<i.split(l).length){var n=function(){var e,o=i.split(l)[1];if(s&&"stream"==o&&(o="network"),s&&c[e=o]&&c[e].length){console.log("[Rax] require windmill module: "+o);for(var t={},n=function(e){var r=c[o][e];t[r]=function(e,t,n){console.log("$call: "+o+"."+r),u.$call(o+"."+r,e,t,n)}},r=0;r<c[o].length;r++)n(r);return"network"==o&&(t.fetch=function(e,t,n){console.log("$call: network.fetch || stream.fetch"),u.$call(o+".request",e,t,n)}),{v:t}}if(console.log("[Rax] require weex module "+o),a.isRegisteredModule(o))return{v:a.requireModule(o)};throw new Error('Requiring unknown weex module "'+i+'"')}();if("object"===(void 0===n?"undefined":o(n)))return n.v}if(t&&t.isInitialized)return t.module.exports;if(!t)throw new Error('Requiring unknown module "'+i+'"');if(t.hasError)throw new Error('Requiring module "'+i+'" which 
 threw an exception');try{t.isInitialized=!0,t.factory(e,t.module.exports,t.module)}catch(e){throw t.hasError=!0,t.isInitialized=!1,e}return t.module.exports}}},function(e,t,n){e.exports=function(r){return function(e,t,n){t instanceof Function&&(n=t,t=[]),r[e]={factory:n,deps:t,module:{exports:{}},isInitialized:!1,hasError:!1}}}},function(e,t){e.exports=function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.w={},o(o.s=10)}([function(e,t,n){var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterat
 or?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.defineProperties,u=Object.defineProperty,s=Object.create(null);function l(e){if(!(t=e)||!("symbol"===(void 0===t?"undefined":i(t))||t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))throw new TypeError(e+" is not a symbol");var t;return e}var c,f=(c=Object.create(null),function(e){for(var t=0;c[e+(t||"")];)++t;return c[e+=t||""]=!0,"@@"+e});o=function(e){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return r(e)},e.exports=r=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return n=Object.create(o.prototype),t=void 0===t?"":String(t),a(n,{__description__:{value:t},__name__:{value:f(t)}})},a(r,{for:{value:function(e){return s[e]?s[e]:s[e]=r(String(e))}},keyFor:{value:function(e){var t;for(t in l(e),s)if(s[t]===e)return t}},hasIns
 tance:{value:r("hasInstance")},isConcatSpreadable:{value:r("isConcatSpreadable")},iterator:{value:r("iterator")},match:{value:r("match")},replace:{value:r("replace")},search:{value:r("search")},species:{value:r("species")},split:{value:r("split")},toPrimitive:{value:r("toPrimitive")},toStringTag:{value:r("toStringTag")},unscopables:{value:r("unscopables")}}),a(o.prototype,{constructor:{value:r},toString:{value:function(){return this.__name__}}}),a(r.prototype,{toString:{value:function(){return"Symbol ("+l(this).__description__+")"}},valueOf:{value:function(){return l(this)}}}),u(r.prototype,r.toPrimitive,{value:function(){var e=l(this);return"symbol"===(void 0===e?"undefined":i(e))?e:e.toString()}}),u(r.prototype,r.toStringTag,{value:"Symbol"}),u(o.prototype,r.toStringTag,{value:r.prototype[r.toStringTag]}),u(o.prototype,r.toPrimitive,{value:r.prototype[r.toPrimitive]})},function(e,t,n){var r,o=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerab
 le||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),i=n(0),u=(r=i)&&r.__esModule?r:{default:r};var a=/[!'\(\)~]|%20|%00/g,s=/\+/g,l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"},c=function(e){return l[e]},f="__URLSearchParams__";function d(e){return encodeURIComponent(e).replace(a,c)}function p(e){return decodeURIComponent(e.replace(s," "))}var h=function(){function a(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this[f]=Object.create(null),e){"?"===e.charAt(0)&&(e=e.slice(1));for(var t,n,r=(e||"").split("&"),o=0,i=r.length;o<i;o++)-1<(t=(n=r[o]).indexOf("="))?this.append(p(n.slice(0,t)),p(n.slice(t+1))):n.length&&this.append(p(n),"")}}return o(a,[{key:"append",value:function(e,t){var n=this[f];e in n?n[e].push(""+t):n[e]=[""+t]}},{key:"delete",value:function(e){delete this[f][e]}},{key:"get",val
 ue:function(e){var t=this[f];return e in t?t[e][0]:null}},{key:"getAll",value:function(e){var t=this[f];return e in t?t[e].slice(0):[]}},{key:"has",value:function(e){return e in this[f]}},{key:"set",value:function(e,t){this[f][e]=[""+t]}},{key:"forEach",value:function(n,r){var e=this[f];Object.getOwnPropertyNames(e).forEach(function(t){e[t].forEach(function(e){n.call(r,e,t,this)},this)},this)}},{key:"keys",value:function(){var n=[];this.forEach(function(e,t){n.push(t)});var e={next:function(){var e=n.shift();return{done:void 0===e,value:e}}};return e[u.default.iterator]=function(){return e},e}},{key:"values",value:function(){var t=[];this.forEach(function(e){t.push(e)});var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e[u.default.iterator]=function(){return e},e}},{key:"entries",value:function(){var n=[];this.forEach(function(e,t){n.push([t,e])});var e={next:function(){var e=n.shift();return{done:void 0===e,value:e}}};return e[u.default.iterator]=funct
 ion(){return e},e}},{key:"toString",value:function(){var e,t,n,r,o=this[f],i=[];for(t in o)for(n=d(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+d(r[e]));return i.join("&")}}]),a}();h.prototype[u.default.iterator]=h.prototype.entries,e.exports=h},function(e,t,n){var a=/^(?:(only|not)?\s*([_a-z][_a-z0-9-]*)|(\([^\)]+\)))(?:\s*and\s*(.*))?$/i,u=/^\(\s*([_a-z-][_a-z0-9-]*)\s*(?:\:\s*([^\)]+))?\s*\)$/,s=/^(?:(min|max)-)?(.+)/;function r(e,i){return(t=e,t.split(",").map(function(r){var e=(r=r.trim()).match(a);if(!e)throw new SyntaxError('Invalid CSS media query: "'+r+'"');var t=e[1],n=e[2],o=((e[3]||"")+(e[4]||"")).trim(),i={};if(i.inverse=!!t&&"not"===t.toLowerCase(),i.type=n?n.toLowerCase():"all",!o)return i.expressions=[],i;if(!(o=o.match(/\([^\)]+\)/g)))throw new SyntaxError('Invalid CSS media query: "'+r+'"');return i.expressions=o.map(function(e){var t=e.match(u);if(!t)throw new SyntaxError('Invalid CSS media query: "'+r+'"');var n=t[1].toLowerCase().match(s);return{modifier:n[1],featu
 re:n[2],value:t[2]}}),i})).some(function(e){var t=e.inverse,n="all"===e.type||i.type===e.type;if(n&&t||!n&&!t)return!1;var r=e.expressions.every(function(e){var t=e.feature,n=e.modifier,r=e.value,o=i[t];if(!o)return!1;switch(t){case"width":case"height":r=parseFloat(r),o=parseFloat(o)}switch(n){case"min":return r<=o;case"max":return o<=r;default:return o===r}});return r&&!t||!r&&t});var t}e.exports=function(e){var t={matches:!1,media:e};return t.matches=""===e||r(e,{type:"screen",width:window.screen.width,height:window.screen.height}),t}},function(e,t,n){var r=n(1),w=Object.create(null);w.ftp=21,w.file=0,w.gopher=70,w.http=80,w.https=443,w.ws=80,w.wss=443;var x=Object.create(null);function E(e){return void 0!==w[e]}function C(){i.call(this),this._isInvalid=!0}function O(e){return""==e&&C.call(this),e.toLowerCase()}function S(e){var t=e.charCodeAt(0);return 32<t&&t<127&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}x["%2e"]=".",x[".%2e"]="..",x["%2e."]="..",x["%2e%2e"]=".
 .";var k=void 0,P=/[a-zA-Z]/,j=/[a-zA-Z0-9\+\-\.]/;function o(e,t,n){var r=this;function o(e){d.push(e)}var i,a,u=t||"scheme start",s=0,l="",c=!1,f=!1,d=[];e:for(;(e[s-1]!=k||0==s)&&!this._isInvalid;){var p=e[s];switch(u){case"scheme start":if(!p||!P.test(p)){if(t){o("Invalid scheme.");break e}l="",u="no scheme";continue}l+=p.toLowerCase(),u="scheme";break;case"scheme":if(p&&j.test(p))l+=p.toLowerCase();else{if(":"!=p){if(t){if(k==p)break e;o("Code point not allowed in scheme: "+p);break e}l="",s=0,u="no scheme";continue}if(r._scheme=l,l="",t)break e;E(r._scheme)&&(r._isRelative=!0),u="file"==r._scheme?"relative":r._isRelative&&n&&n._scheme==r._scheme?"relative or authority":r._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==p?u="query":"#"==p?(r._fragment="#",u="fragment"):k!=p&&"\t"!=p&&"\n"!=p&&"\r"!=p&&(r._schemeData+=S(p));break;case"no scheme":if(n&&E(n._scheme)){u="relative";continue}o("Missing scheme."),C.call(r);break;case"relative or authority
 ":if("/"!=p||"/"!=e[s+1]){o("Expected /, got: "+p),u="relative";continue}u="authority ignore slashes";break;case"relative":if(r._isRelative=!0,"file"!=r._scheme&&(r._scheme=n._scheme),k==p){r._host=n._host,r._port=n._port,r._path=n._path.slice(),r._query=n._query,r._username=n._username,r._password=n._password;break e}if("/"==p||"\\"==p)"\\"==p&&o("\\ is an invalid code point."),u="relative slash";else if("?"==p)r._host=n._host,r._port=n._port,r._path=n._path.slice(),r._query="?",r._username=n._username,r._password=n._password,u="query";else{if("#"!=p){var h=e[s+1],v=e[s+2];("file"!=r._scheme||!P.test(p)||":"!=h&&"|"!=h||k!=v&&"/"!=v&&"\\"!=v&&"?"!=v&&"#"!=v)&&(r._host=n._host,r._port=n._port,r._username=n._username,r._password=n._password,r._path=n._path.slice(),r._path.pop()),u="relative path";continue}r._host=n._host,r._port=n._port,r._path=n._path.slice(),r._query=n._query,r._fragment="#",r._username=n._username,r._password=n._password,u="fragment"}break;case"relative slash":if(
 "/"!=p&&"\\"!=p){"file"!=r._scheme&&(r._host=n._host,r._port=n._port,r._username=n._username,r._password=n._password),u="relative path";continue}"\\"==p&&o("\\ is an invalid code point."),u="file"==r._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=p){o("Expected '/', got: "+p),u="authority ignore slashes";continue}u="authority second slash";break;case"authority second slash":if(u="authority ignore slashes","/"!=p){o("Expected '/', got: "+p);continue}break;case"authority ignore slashes":if("/"!=p&&"\\"!=p){u="authority";continue}o("Expected authority, got: "+p);break;case"authority":if("@"==p){c&&(o("@ already seen."),l+="%40"),c=!0;for(var y=0;y<l.length;y++){var m=l[y];if("\t"!=m&&"\n"!=m&&"\r"!=m)if(":"!=m||null!==r._password){var _=S(m);null!==r._password?r._password+=_:r._username+=_}else r._password="";else o("Invalid whitespace in authority.")}l=""}else{if(k==p||"/"==p||"\\"==p||"?"==p||"#"==p){s-=l.length,l="",u="host";continue}l+=p}br
 eak;case"file host":if(k==p||"/"==p||"\\"==p||"?"==p||"#"==p){2!=l.length||!P.test(l[0])||":"!=l[1]&&"|"!=l[1]?(0==l.length||(r._host=O.call(r,l),l=""),u="relative path start"):u="relative path";continue}"\t"==p||"\n"==p||"\r"==p?o("Invalid whitespace in file host."):l+=p;break;case"host":case"hostname":if(":"!=p||f){if(k==p||"/"==p||"\\"==p||"?"==p||"#"==p){if(r._host=O.call(r,l),l="",u="relative path start",t)break e;continue}"\t"!=p&&"\n"!=p&&"\r"!=p?("["==p?f=!0:"]"==p&&(f=!1),l+=p):o("Invalid code point in host/hostname: "+p)}else if(r._host=O.call(r,l),l="",u="port","hostname"==t)break e;break;case"port":if(/[0-9]/.test(p))l+=p;else{if(k==p||"/"==p||"\\"==p||"?"==p||"#"==p||t){if(""!=l){var b=parseInt(l,10);b!=w[r._scheme]&&(r._port=b+""),l=""}if(t)break e;u="relative path start";continue}"\t"==p||"\n"==p||"\r"==p?o("Invalid code point in port: "+p):C.call(r)}break;case"relative path start":if("\\"==p&&o("'\\' not allowed in path."),u="relative path","/"!=p&&"\\"!=p)continue;b
 reak;case"relative path":var g;if(k!=p&&"/"!=p&&"\\"!=p&&(t||"?"!=p&&"#"!=p))"\t"!=p&&"\n"!=p&&"\r"!=p&&(l+=S(p));else"\\"==p&&o("\\ not allowed in relative path."),(g=x[l.toLowerCase()])&&(l=g),".."==l?(r._path.pop(),"/"!=p&&"\\"!=p&&r._path.push("")):"."==l&&"/"!=p&&"\\"!=p?r._path.push(""):"."!=l&&("file"==r._scheme&&0==r._path.length&&2==l.length&&P.test(l[0])&&"|"==l[1]&&(l=l[0]+":"),r._path.push(l)),l="","?"==p?(r._query="?",u="query"):"#"==p&&(r._fragment="#",u="fragment");break;case"query":t||"#"!=p?k!=p&&"\t"!=p&&"\n"!=p&&"\r"!=p&&(r._query+=(void 0,32<(a=(i=p).charCodeAt(0))&&a<127&&-1==[34,35,60,62,96].indexOf(a)?i:encodeURIComponent(i))):(r._fragment="#",u="fragment");break;case"fragment":k!=p&&"\t"!=p&&"\n"!=p&&"\r"!=p&&(r._fragment+=p)}s++}}function i(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function a(e,t){void 0===t||t i
 nstanceof a||(t=new a(String(t))),this._url=e,i.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");o.call(this,n,null,t)}a.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return""==this._username&&null==this._password||(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){i.call(this),o.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||o.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&o.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&o.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&o.call(this,e,"port")},get pathname(){return this.
 _isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],o.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&((this._query="?")==e[0]&&(e=e.slice(1)),o.call(this,e,"query"))},get searchParams(){return new r(this.search)},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||((this._fragment="#")==e[0]&&(e=e.slice(1)),o.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return(e=this.host)?this._scheme+"://"+e:""}},e.exports=a},function(e,t,n){e.exports=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.family=t,this.source=n}
 },function(e,t,n){var r=Date.now()%1e9,o=function(e){this.name="__st"+(1e9*Math.random()>>>0)+r+++"__",e&&e.forEach&&e.forEach(this.add,this)};o.prototype.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},o.prototype.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},o.prototype.has=function(e){return!!e[this.name]},e.exports=o},function(e,t,n){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},o=Object.defineProperty,i=Date.now()%1e9,a=function(e){this.name="__st"+(1e9*Math.random()>>>0)+i+++"__",e&&e.forEach&&e.forEach(function(e){this.set.apply(this,e)},this)};a.prototype.set=function(e,t){if("object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e)throw new TypeError("Invalid value used as weak map key");var n=e[this.name];return n&&n[0]===e?n[1]=t:o(e,
 this.name,{value:[e,t],writable:!0}),this},a.prototype.get=function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},a.prototype.delete=function(e){var t=e[this.name];return!(!t||t[0]!==e)&&(t[0]=t[1]=void 0,!0)},a.prototype.has=function(e){var t=e[this.name];return!!t&&t[0]===e},e.exports=a},function(e,t,n){var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};var a=(0,i.default)("undef"),u=(0,i.default)("NaN"),s=!0;function l(e){return e!=e?u:e}function c(e){return e===u?NaN:e}function f(e,t){var n=0;return{next:function(){for(;e._values[n]===a;)n++;return n===e._values.length?{value:void 0,done:!0}:{value:t.call(e,n++),done:!1}}}}function d(e){for(var t=0,n=0,r=e._values.length;n<r;n++)e._values[n]!==a&&t++;return t}var p=function(e){this._values=[],e&&"function"==typeof e.forEach&&e.forEach(function(e){this.add.call(this,e)},this),s||(this.size=d(this))};try{Object.defineProperty(p.prototype,"size",{get:function(){return d(this)}})}catch(e){s=!1}p.prototype.add=function(e){retu
 rn e=l(e),-1===this._values.indexOf(e)&&(this._values.push(e),s||(this.size=d(this))),this},p.prototype.has=function(e){return-1!==this._values.indexOf(l(e))},p.prototype.delete=function(e){var t=this._values.indexOf(l(e));return-1!==t&&(this._values[t]=a,s||(this.size=d(this)),!0)},p.prototype.clear=function(){this._values=[],s||(this.size=0)},p.prototype.values=p.prototype.keys=function(){return f(this,function(e){return c(this._values[e])})},p.prototype.entries=p.prototype[i.default.iterator]=function(){return f(this,function(e){return[c(this._values[e]),c(this._values[e])]})},p.prototype.forEach=function(e,t){t=t||global;for(var n=this.entries(),r=n.next();!1===r.done;)e.call(t,r.value[1],r.value[0],this),r=n.next()},p.prototype[i.default.species]=p,Object.defineProperty(p,"constructor",{value:p});try{Object.defineProperty(p,"length",{value:0})}catch(e){}e.exports=p},function(e,t,n){var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};var a=(0,i.default)("undef"),u=(0,i.default)("Na
 N"),s=!0;function l(e){return e!=e?u:e}function c(e){return e===u?NaN:e}function f(e,t){var n=0,r=!1;return{next:function(){if(n===e._keys.length&&(r=!0),r)return{value:void 0,done:!0};for(;e._keys[n]===a;)n++;return{value:t.call(e,n++),done:!1}}}}function d(e){for(var t=0,n=0,r=e._keys.length;n<r;n++)e._keys[n]!==a&&t++;return t}function p(e,t){return"function"==typeof e[t]}var h=function e(t){this._keys=[],this._values=[],t&&p(t,"forEach")&&(t instanceof e||p(t,"clear")&&p(t,"delete")&&p(t,"entries")&&p(t,"forEach")&&p(t,"get")&&p(t,"has")&&p(t,"keys")&&p(t,"set")&&p(t,"values")?t.forEach(function(e,t){this.set.apply(this,[t,e])},this):t.forEach(function(e){this.set.apply(this,e)},this)),s||(this.size=d(this))};h.prototype={};try{Object.defineProperty(h.prototype,"size",{get:function(){return d(this)}})}catch(e){s=!1}h.prototype.get=function(e){var t=this._keys.indexOf(l(e));return-1!==t?this._values[t]:void 0},h.prototype.set=function(e,t){var n=this._keys.indexOf(l(e));return-1!
 ==n?this._values[n]=t:(this._keys.push(l(e)),this._values.push(t),s||(this.size=d(this))),this},h.prototype.has=function(e){return-1!==this._keys.indexOf(l(e))},h.prototype.delete=function(e){var t=this._keys.indexOf(l(e));return-1!==t&&(this._keys[t]=a,this._values[t]=a,s||(this.size=d(this)),!0)},h.prototype.clear=function(){this._keys=this._values=[],s||(this.size=0)},h.prototype.values=function(){return f(this,function(e){return this._values[e]})},h.prototype.keys=function(){return f(this,function(e){return c(this._keys[e])})},h.prototype.entries=h.prototype[i.default.iterator]=function(){return f(this,function(e){return[c(this._keys[e]),this._values[e]]})},h.prototype.forEach=function(e,t){t=t||global;for(var n=this.entries(),r=n.next();!1===r.done;)e.call(t,r.value[1],r.value[0],this),r=n.next()},h.prototype[i.default.species]=h,Object.defineProperty(h,"constructor",{value:h});try{Object.defineProperty(h,"length",{value:0})}catch(e){}e.exports=h},function(e,t,n){var s="functio
 n"==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};function r(){}var o="function"==typeof setImmediate&&setImmediate||function(e){"function"==typeof setTimeout?setTimeout(e,0):e()},i=function(e){"undefined"!=typeof console&&console&&console.log("Possible Unhandled Promise Rejection:",e)};function a(e){if("object"!==s(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise resolver is not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function u(n,r){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,o(function(){var e=1===n._state?r.onFulfilled:r.onRejected;if(null!==e){var t;try{t=e(n._value)}catch(e){return void c(r.promise,e)}l(r.promise,t)}else(1===n._state?l:c)(r.promise,n._value)})):n._deferreds.push(r)}function l(t,e){try{
 if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===(void 0===e?"undefined":s(e))||"function"==typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,void f(t);if("function"==typeof n)return void d((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,f(t)}catch(e){c(t,e)}var r,o}function c(e,t){e._state=2,e._value=t,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&o(function(){e._handled||i(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)u(e,e._deferreds[t]);e._deferreds=null}function d(e,t){var n=!1;try{e(function(e){n||(n=!0,l(t,e))},function(e){n||(n=!0,c(t,e))})}catch(e){if(n)return;n=!0,c(t,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(r);return u(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},a.all=function(e){var u=Array.prototy
 pe.slice.call(e);return new a(function(r,o){if(0===u.length)return r([]);var i=u.length;function a(t,e){try{if(e&&("object"===(void 0===e?"undefined":s(e))||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},o)}u[t]=e,0==--i&&r(u)}catch(e){o(e)}}for(var e=0;e<u.length;e++)a(e,u[e])})},a.resolve=function(t){return t&&"object"===(void 0===t?"undefined":s(t))&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(o){return new a(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},a._setImmediateFn=function(e){o=e},a._setUnhandledRejectionFn=function(e){i=e},e.exports=a},function(e,t,n){e.exports={get Promise(){return n(9)},get Symbol(){return n(0)},get Map(){return n(8)},get Set(){return n(7)},get WeakMap(){return n(6)},get WeakSet(){return n(5)},get FontFace(){return n(4)},get URL(){return n(3)},get URLSearchParams(){return n(1)},get matchMedia(){return n(2)}}}]
 )}},function(e,t,n){e.exports=function(e,t,n){var h=this.__weex_document__,d=this.document;n.exports=function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.w={},o(o.s=48)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default={component:null,mountID:1,sandbox:!0,rootComponents:{},rootInstances:{},hook:null,driver:null,monitor:null},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var d=r(n(0)),p=n(7),h=r(n(6)),v=r(n(3)),y=r(n(5)),m=r(n(46));function r(e){return e&&
 e.__esModule?e:{default:e}}var o="$$instance";t.default={set:function(e,t){e[o]||(e[o]=t).rootID&&(d.default.rootInstances[t.rootID]=t,d.default.rootComponents[t.rootID]=t._internal)},get:function(e){return e[o]},remove:function(e){var t=this.get(e);t&&(e[o]=null,t.rootID&&(delete d.default.rootComponents[t.rootID],delete d.default.rootInstances[t.rootID]))},mount:function(e,t,n){d.default.driver.beforeRender&&d.default.driver.beforeRender(),null==t&&(t=d.default.driver.createBody());var r=void 0;if(n){var o=n._internal;r=o._processChildContext(o._context)}var i=this.get(t);if(i&&i.isRootComponent){var a=i.getRenderedComponent(),u=a._currentElement;if((0,y.default)(u,e)){var s=a._context;return a.updateComponent(u,e,s,r||s),i}d.default.hook.Reconciler.unmountComponent(i),(0,h.default)(t)}var l=(0,p.createElement)(m.default,null,e),c=r||{},f=(0,v.default)(l).mountComponent(t,null,c);return this.set(t,f),d.default.driver.afterRender&&d.default.driver.afterRender(f),d.default.hook.Moun
 t._renderNewRootComponent(f._internal),f}},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function r(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(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var r=function(){function r(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.props=e,this.context=t,this.refs={},this.updater=n}return o(r,[{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)}}]),r}();t.default=r,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"fun
 ction"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(0),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=void 0;if(null==e||!1===e||!0===e)t=new a.default.EmptyComponent;else if(Array.isArray(e))t=new a.default.FragmentComponent(e);else if("object"===(void 0===e?"undefined":o(e))&&e.type)t="string"==typeof e.type?new a.default.NativeComponent(e):new a.default.CompositeComponent(e);else{if("string"!=typeof e&&"number"!=typeof e)throw new Error("Invalid element type: "+e+". (keys: "+Object.keys(e)+")");t=new a.default.TextComponent(e)}return t._mountIndex=0,t},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(44)),a=r(n(1));r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n,r){"function"==typeof n&&(r=n,n=null),n=n||{},(0,i.default)(n);var o=a.default.mount(e,t,n.parent).getPublicInstance();return r&&r.call(o),o},e.exports=t.default},function(e,t,n){Objec
 t.defineProperty(t,"__esModule",{value:!0});var a="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=function(e,t){var n=null===e,r=null===t;if(n||r)return n===r;var o=void 0===e?"undefined":a(e),i=void 0===t?"undefined":a(t);return"string"===o||"number"===o?"string"===i||"number"===i:"object"===o&&"object"===i&&e.type===t.type&&e.key===t.key},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=i.default.get(e);if(!t)return!1;return i.default.remove(e),t._internal.unmountComponent(),!0};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.c
 onstructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.createElement=o,t.createFactory=function(e){var t=o.bind(null,e);return t.type=e,t},t.cloneElement=function(e,t){var n=arguments;if(!_(e))throw Error("cloneElement: not a valid element."+y());var r=Object.assign({},e.props),o=e.key,i=e.ref,a=e._owner;if(t){void 0!==t.ref&&(i=t.ref,a=p.default.component),void 0!==t.key&&(o=String(t.key));var u=void 0;e.type&&e.type.defaultProps&&(u=e.type.defaultProps);var s=void 0;for(s in t)t.hasOwnProperty(s)&&!v.hasOwnProperty(s)&&(void 0===t[s]&&void 0!==u?r[s]=u[s]:r[s]=t[s])}for(var l=arguments.length,c=Array(2<l?l-2:0),f=2;f<l;f++)c[f-2]=n[f];c.length&&(r.children=(0,h.default)(c));return new m(e.type,o,i,r,a)},t.isValidElement=_;var p=r(n(0)),h=r(n(16)),i=n(15);function r(e){return e&&e.__esModule?e:{default:e}}var v={key:!0,ref:!0};function y(){if(p.default.component){var e=p.default.component.getName();if(e)return" Check the render method of `"+e+"`."}return""}function m(e,t,n,
 r,o){return i.isWeex&&(r=function(e,t){if("text"===e){var n=t.children,r=t.value;null==r&&null!=n&&(Array.isArray(n)?n=n.map(function(e){return"number"==typeof e||"string"==typeof e?e:""}).join(""):"number"!=typeof n&&"string"!=typeof n&&(n=""),t.value=String(n)),t.children=null}return t}(e,r)),{type:e,key:t,ref:n,props:r,_owner:o}}function o(e,t,n){var r=arguments;if(null==e)throw Error("createElement: type should not be null or undefined."+y());var o={},i=void 0,a=null,u=null;if(null!=t)for(i in u=void 0===t.ref?null:t.ref,a=void 0===t.key?null:String(t.key),t)v[i]||(o[i]=t[i]);var s=arguments.length-2;if(0<s)if(1!==s||Array.isArray(n)){var l=n;if(1<s){l=new Array(s);for(var c=0;c<s;c++)l[c]=r[c+2]}o.children=(0,h.default)(l)}else o.children=n;if(e&&e.defaultProps){var f=e.defaultProps;for(i in f)void 0===o[i]&&(o[i]=f[i])}return o.style&&(Array.isArray(o.style)||"object"===d(o.style))&&(o.style=function e(t){if(t){if(Array.isArray(t)){for(var n={},r=0;r<t.length;++r){var o=e(t[r]
 );if(o)for(var i in o)n[i]=o[i]}return n}return t}}(o.style)),new m(e,a,u,o,p.default.component)}function _(e){return"object"===(void 0===e?"undefined":d(e))&&null!==e&&e.type&&e.props}t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){if(null==e)return null;if(e.ownerDocument||e.nodeType)return e;if(e._nativeNode)return e._nativeNode;if("string"==typeof e)return i.default.driver.getElementById(e);if("function"!=typeof e.render)throw new Error("findDOMNode: find by neither component nor DOM node.");var t=e._internal;if(t){for(;!t._nativeNode;)if(null==(t=t._renderedComponent))return null;return t._nativeNode}throw new Error("findDOMNode: find on an unmounted component.")},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropsAttrsToStyle=function(t,e){return t.style=t.style||{},e.forEach(function(e){t[e]&&!t.style[e]&&(t.style[e]=t[e],dele
 te t[e])}),t},t.renamePropsAttr=function(e,t,n){e[t]&&!e[n]&&(e[n]=e[t],delete e[t]);return e},t.default=e.exports,t.default=e.exports},function(e,t,n){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};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)};t.isRem=c,t.calcRem=f,t.getRem=function(){return l[s]},t.setRem=function(e){l[s]=e},t.isUnitNumber=d,t.convertUnit=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:l[s];{if(t&&d(e,t))return e*n+"px";if(c(e))return f(e,n)}return e};var i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWi
 dth:!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},a="rem",u=/[-+]?\d*\.?\d+rem/g,s="__global_rem_unit__",l="object"===("undefined"==typeof window?"undefined":o(window))?window:"object"===(void 0===l?"undefined":o(l))?l:{};function c(e){return"string"==typeof e&&-1!==e.indexOf(a)}function f(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:l[s];return e.replace(u,function(e){return parseFloat(e)*t+"px"})}function d(e,t){return"number"==typeof e&&!i[t]}null==l[s]&&(l[s]=1),t.default=e.exports,t.default=e.exports},function(e,t,n){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 a="$"+r,u=void 0===e[a];return u||console.warn('Encountered two children with t
 he same key "'+r+'".'),u?a:i}return i},e.exports=t.default},function(e,t,n){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,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(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(e,t,n){return t&&r(e.pro
 totype,t),n&&r(e,n),e}}(),_=i(n(0)),l=i(n(12)),b=i(n(3)),g=i(n(5)),w=i(n(11)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var c="style",f="children",d=/on[A-Z]/,a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._currentElement=e}return r(t,[{key:"mountComponent",value:function(e,t,n,r){this._parent=e,this._parentInstance=t,this._context=n,this._mountID=_.default.mountID++;var o=this._currentElement.props,i={_internal:this,type:this._currentElement.type,props:o},a=o.append;this._instance=i,this._prevStyleCopy=Object.assign({},o.style);var u=this.getNativeNode();"tree"!==a&&(r?r(u,e):_.default.driver.appendChild(u,e)),this._currentElement&&this._currentElement.ref&&l.default.attach(this._currentElement._owner,this._currentElement.ref,this);var s=o.children;return null!=s&&this.mountChildren(s,n),"tree"===a&&(r?r(u,e):_.default.driver.appendChild(u,e)),_.default.hook.Reconciler.mountCom
 ponent(this),i}},{key:"mountChildren",value:function(e,o){var i=this;Array.isArray(e)||(e=[e]);var a=this._renderedChildren={};return e.map(function(e,t){var n=(0,b.default)(e),r=(0,w.default)(a,e,t);return(a[r]=n)._mountIndex=t,n.mountComponent(i.getNativeNode(),i._instance,o,null)})}},{key:"unmountChildren",value:function(e){var t=this._renderedChildren;if(t){for(var n in t){t[n].unmountComponent(e)}this._renderedChildren=null}}},{key:"unmountComponent",value:function(e){if(this._nativeNode){var t=this._currentElement.ref;t&&l.default.detach(this._currentElement._owner,t,this),o.default.remove(this._nativeNode),e||_.default.driver.removeChild(this._nativeNode,this._parent),_.default.driver.removeAllEventListeners(this._nativeNode)}this.unmountChildren(e),_.default.hook.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._parentInstance=null,this._context=null,this._instance=null,this._prevStyleCopy=null}},{key:"updateComponent",
 value:function(e,t,n,r){this._currentElement=t,l.default.update(e,t,this);var o=e.props,i=t.props;this.updateProperties(o,i),this.updateChildren(i.children,r),_.default.hook.Reconciler.receiveComponent(this)}},{key:"updateProperties",value:function(e,t){var n=this,r=void 0,o=void 0,i=void 0;for(r in e)if(r!==f&&!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&null!=e[r])if(r===c){var a=n._prevStyleCopy;for(o in a)a.hasOwnProperty(o)&&((i=i||{})[o]="");n._prevStyleCopy=null}else d.test(r)?"function"==typeof e[r]&&_.default.driver.removeEventListener(n.getNativeNode(),r.slice(2).toLowerCase(),e[r]):_.default.driver.removeAttribute(n.getNativeNode(),r,e[r]);for(r in t){var u=t[r],s=r===c?n._prevStyleCopy:null!=e?e[r]:void 0;if(r!==f&&t.hasOwnProperty(r)&&u!==s&&(null!=u||null!=s))if(r===c)if(u?u=n._prevStyleCopy=Object.assign({},u):n._prevStyleCopy=null,null!=s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||((i=i||{})[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&((i=i||{})[
 o]=u[o])}else i=u;else if(d.test(r)){var l=r.slice(2).toLowerCase();"function"==typeof s&&_.default.driver.removeEventListener(n.getNativeNode(),l,s,t),"function"==typeof u&&_.default.driver.addEventListener(n.getNativeNode(),l,u,t)}else null!=u?_.default.driver.setAttribute(n.getNativeNode(),r,u):_.default.driver.removeAttribute(n.getNativeNode(),r,e[r])}i&&_.default.driver.setStyles(this.getNativeNode(),i)}},{key:"updateChildren",value:function(e,u){var s=this,l=this._renderedChildren;if(null!=e||null!=l){var p={},h={};if(null!=e){Array.isArray(e)||(e=[e]);for(var t=0,n=e.length;t<n;t++){var r=e[t],o=(0,w.default)(p,r,t),i=l&&l[o],a=i&&i._currentElement;if(null!=i&&(0,g.default)(a,r))i.updateComponent(a,r,u,u),p[o]=i;else{if(i){var c=i.getNativeNode();i.unmountComponent(!0),h[o]=c}p[o]=(0,b.default)(r)}}}var v=void 0,f=void 0;if(null!=l)for(var d in l)if(l.hasOwnProperty(d)){var y=l[d],m=!p[d];v?m&&y.unmountComponent():(v=y,f=m)}null!=p&&function(){var i=0,a=0,f=null,d=[],e=functi
 on(c){if(!p.hasOwnProperty(c))return"continue";var e=p[c],t=l&&l[c];if(t===e){var n=t.getNativeNode();if(Array.isArray(n)||(n=[n]),t._mountIndex<i){Array.isArray(f)&&(f=f[f.length-1]);for(var r=n.length-1;0<=r;r--)_.default.driver.insertAfter(n[r],f)}d=d.concat(n),i=Math.max(t._mountIndex,i),t._mountIndex=a}else{null!=t&&(i=Math.max(t._mountIndex,i));var o=s.getNativeNode();Array.isArray(o)&&(o=s._parent),e.mountComponent(o,s._instance,u,function(e,t){var n=h[c];if(Array.isArray(e)||(e=[e]),n){Array.isArray(n)||(n=[n]);for(var r=void 0,o=0;o<e.length;o++){var i=e[o];n[o]?_.default.driver.replaceChild(i,n[o]):_.default.driver.insertAfter(i,r),r=i}if(e.length<n.length)for(var a=e.length;a<n.length;a++)_.default.driver.removeChild(n[a])}else{Array.isArray(f)&&(f=f[f.length-1]);var u=void 0;v&&!f&&(u=v.getNativeNode(),Array.isArray(u)&&(u=u[0]));for(var s=e.length-1;0<=s;s--){var l=e[s];f?_.default.driver.insertAfter(l,f):u?_.default.driver.insertBefore(l,u):_.default.driver.appendChild
 (l,t)}}d=d.concat(e)}),e._mountIndex=a}a++,f=e.getNativeNode()};for(var t in p)e(t);if(Array.isArray(s._nativeNode)){s._nativeNode.splice(0,s._nativeNode.length);for(var n=0;n<d.length;n++)s._nativeNode.push(d[n])}}(),f&&v.unmountComponent(),this._renderedChildren=p}}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=_.default.driver.createElement(this._instance),o.default.set(this._nativeNode,this._instance)),this._nativeNode}},{key:"getPublicInstance",value:function(){return this.getNativeNode()}},{key:"getName",value:function(){return this._currentElement.type}}]),t}();t.default=a,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(e,t,n,r,o,i){return a}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}();t.default={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,element:a,node:a,any:a,arrayOf:a,instanceOf:a,objectOf:a,oneOf:a,oneOfType:a,shape:a},e.exports=t.d
 efault},function(e,t,n){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};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)};t.isWeb="object"===("undefined"==typeof navigator?"undefined":o(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),t.isNode=void 0!==process&&!(!process.versions||!process.versions.node),t.isWeex="function"==typeof callNative||"object"===("undefined"==typeof WXEnvironment?"undefined":o(WXEnvironment))&&"Web"!==WXEnvironment.platform,t.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig;t.default=e.exports,t.default=e.exports},function(e
 ,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null==e)return e;var t=[];(function e(t,n){if(Array.isArray(t))for(var r=0,o=t.length;r<o;r++)e(t[r],n);else n.push(t)})(e,t),1===t.length&&(t=t[0]);return t},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(1)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}t.default={ComponentTree:{getClosestInstanceFromNode:function(e){return r.default.get(e)},getNodeFromInstance:function(e){for(;e._renderedComponent;)e=e._renderedComponent;return e?e._nativeNode:null}},Mount:{_instancesByReactRootID:o.default.rootComponents,_renderNewRootComponent:function(){}},Reconciler:{mountComponent:function(){},receiveComponent:function(){},unmountComponent:function(){}},monitor:null},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(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(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();t.default=function(s){var l="__context_"+u+++"__",e=function(e){function u(){var e,t,n,r=arguments;p(this,u);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=r[a];return n=f(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(i))),(t=n).emitter=new h(s),f(n,t)}return d(u,e),r(u,[{key:"getChildContext",value:function(){return c({},l,this.emitter)}},{key:"componentWillMount",value:function(){void 0!==this.props.value&&(this.emitter.value=this.props.value)}},{key:"componentWillReceiveProps",value:function(e){this.props.value!==e.value&&this.emitter.emit(e.value)}},{key:"render",value:function(){return this.props.children}}]),u}(o.default);e.childContextTypes=c({},l,i.default.object);var t=function(e){function u(){var e,t,n,r=arguments;p(this,u);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=r[a];return n
 =f(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(i))),(t=n).state={value:n.context[l]?n.context[l].value:s},n.onUpdate=function(e){return n.setState({value:e})},f(n,t)}return d(u,e),r(u,[{key:"componentDidMount",value:function(){this.context[l]&&this.context[l].on(this.onUpdate)}},{key:"componentWillUnmount",value:function(){this.context[l]&&this.context[l].off(this.onUpdate)}},{key:"render",value:function(){var e=this.props.children,t=Array.isArray(e)?e[0]:e;if("function"==typeof t)return t(this.state.value)}}]),u}(o.default);return t.contextTypes=c({},l,i.default.object),{Provider:e,Consumer:t}};var o=a(n(2)),i=a(n(14));function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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}funct
 ion d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){function t(e){p(this,t),this.handlers=[],this.value=e}return r(t,[{key:"on",value:function(e){this.handlers.push(e)}},{key:"off",value:function(t){this.handlers=this.handlers.filter(function(e){return e!==t})}},{key:"emit",value:function(t){this.value=t,this.handlers.forEach(function(e){return e(t)})}}]),t}(),u=0;e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(16),i=(r=o)&&r.__esModule?r:{default:r};function a(e){return e=(0,i.default)(e,[]),Array.isArray(e)?e:[].concat(e)}var u={map:function(e,n,r){return null==e?null:(e=
 a(e)).map(function(e,t){return n.call(r,e,t)})},forEach:function(e,n,r){if(null==e)return null;(e=a(e)).forEach(function(e,t){return n.call(r,e,t)})},count:function(e){return null==e?0:a(e).length},only:function(e){if(1!==(e=u.toArray(e)).length)throw new Error("Children.only: expected to receive a single element child.");return e[0]},toArray:function(e){return null==e?[]:a(e).filter(function(e){return null!==e})}};t.default=u,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default="0.6.0",e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e=(0,o.default)(e),r.default.driver.setNativeProps(e,t)};var r=i(n(0)),o=i(n(8));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){return null==e?null:i.default.get(e)},e.exports=t.default},func
 tion(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(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(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();t.default=function(e,t){return(0,u.createElement)(l,{element:e,container:t})};var o=s(n(2)),i=s(n(4)),a=s(n(6)),u=n(7);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.protot
 ype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,o.default),r(n,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){e.container!==this.props.container&&(0,a.default)(e.container),this.renderPortal()}},{key:"componentWillUnmount",value:function(){(0,a.default)(this.props.container)}},{key:"renderPortal",value:function(){(0,i.default)(this.props.element,this.props.container,{parent:this})}},{key:"render",value:function(){return null}}]),n}();e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4),u=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r){if(t.childNodes)for(var o=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t.childNodes)),i=0;i<o.length;i++){var a=o[i];t.removeCh
 ild(a)}return(0,u.default)(e,t,n,r)},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r={stretch:"stretch","flex-start":"start","flex-end":"end",center:"center"},o={row:"horizontal",column:"vertical"},i={"flex-start":"start","flex-end":"end",center:"center","space-between":"justify","space-around":"justify"},a={display:!0,flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0},u={isFlexProp:function(e){return a[e]},display:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.display="flex"===e?["-webkit-box","-webkit-flex","flex"]:e,t},flex:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxFlex=e,t.webkitFlex=e,t.flex=e,t},flexWrap:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.webkitFlexWrap=e,t.flexWrap=e,t},alignItems:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t
 .webkitBoxAlign=r[e],t.webkitAlignItems=e,t.alignItems=e,t},alignSelf:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.webkitAlignSelf=e,t.alignSelf=e,t},flexDirection:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxOrient=o[e],t.webkitFlexDirection=e,t.flexDirection=e,t},justifyContent:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxPack=i[e],t.webkitJustifyContent=e,t.justifyContent=e,t}};t.default=u,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(10),o=n(25),l=(r=o)&&r.__esModule?r:{default:r};var i="dangerouslySetInnerHTML",a="className",u=/^on[A-Z]/,c="textContent"in d?"textContent":"nodeValue",f={deviceWidth:"undefined"!=typeof DEVICE_WIDTH&&DEVICE_WIDTH||null,viewportWidth:"undefined"!=typeof VIEWPORT_WIDTH&&VIEWPORT_WIDTH||750,eventRegistry:{},getDeviceWidth:function(){return this.deviceWidth||d.docume
 ntElement.clientWidth},setDeviceWidth:function(e){this.deviceWidth=e},getViewportWidth:function(){return this.viewportWidth},setViewportWidth:function(e){this.viewportWidth=e},getElementById:function(e){return d.getElementById(e)},createBody:function(){return d.body},createComment:function(e){return d.createComment(e)},createEmpty:function(){return this.createComment(" empty ")},createText:function(e){return d.createTextNode(e)},updateText:function(e,t){e[c]=t},createElement:function(e){var t=d.createElement(e.type),n=e.props;return this.setNativeProps(t,n),t},appendChild:function(e,t){return t.appendChild(e)},removeChild:function(e,t){(t=t||e.parentNode)&&t.removeChild(e)},replaceChild:function(e,t,n){(n=n||t.parentNode).replaceChild(e,t)},insertAfter:function(e,t,n){n=n||t.parentNode;var r=t.nextSibling;r?n.insertBefore(e,r):n.appendChild(e)},insertBefore:function(e,t,n){(n=n||t.parentNode).insertBefore(e,t)},addEventListener:function(e,t,n,r){return this.eventRegistry[t]?this.eve
 ntRegistry[t]("addEvent",e,t,n,r):e.addEventListener(t,n)},removeEventListener:function(e,t,n,r){return this.eventRegistry[t]?this.eventRegistry[t]("removeEvent",e,t,n,r):e.removeEventListener(t,n)},removeAllEventListeners:function(e){},removeAttribute:function(e,t){if(t===i)return e.innerHTML=null;if(t===a&&(t="class"),t in e)try{e[t]=null}catch(e){}e.removeAttribute(t)},setAttribute:function(t,n,r){if(n===i)return t.innerHTML=r.__html;if(n===a&&(n="class"),n in t)try{t[n]=r}catch(e){t.setAttribute(n,r)}else t.setAttribute(n,r)},setStyles:function(e,t){var n={};for(var r in t){var o=t[r];l.default.isFlexProp(r)?l.default[r](o,n):n[r]=(0,s.convertUnit)(o,r)}for(var i in n){var a=n[i];if(Array.isArray(a))for(var u=0;u<a.length;u++)e.style[i]=a[u];else e.style[i]=a}},beforeRender:function(){(0,s.setRem)(this.getDeviceWidth()/this.getViewportWidth())},setNativeProps:function(e,t){for(var n in t){var r=t[n];if("children"!==n&&null!=r)if("style"===n)this.setStyles(e,r);else if(u.test(n))
 {var o=n.slice(2).toLowerCase();this.addEventListener(e,o,r)}else this.setAttribute(e,n,r)}}};t.default=f,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){return e.type="div",e}},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};function o(e,t,n){return{fontSize:e*t,marginTop:e*t*n,marginBottom:e*t*n,fontWeight:"bold"}}var i={h1:o(28,2,.67),h2:o(28,1.5,.83),h3:o(28,1.17,1),h4:o(28,1,1.33),h5:o(28,.83,1.67),h6:o(28,.67,2.33)};t.default={parse:function(e){var t=e.type,n=e.props;return e.type="text",n.style=r({},i[t]||i.h6,n.style),"string"!=typeof n.children||n.value||(n.value=n.children,n.children=null),e}},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||fu
 nction(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};t.default={parse:function(e){var t=e.props;e.type="text";var n=t.style,r=t.disabled,o=t.children,i=a({textAlign:"center",fontSize:22,paddingTop:4,paddingRight:12,paddingBottom:6,paddingLeft:12,borderWidth:4,borderStyle:"solid",borderColor:"#000000",backgroudColor:"#c0c0c0"},n);return r&&(t.onClick=null,i=a({},i,{color:"#7f7f7f",borderColor:"#7f7f7f"})),"string"==typeof o&&(t.value=o,t.children=null),e}},e.exports=t.default},function(e,t,n){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};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==ty
 peof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},a=Object.assign||function(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i={fontSize:28,marginTop:28,marginBottom:28},u={u:{textDecoration:"underline"},s:{textDecoration:"line-through"},i:{fontStyle:"italic"},b:{fontWeight:"bold"},del:{textDecoration:"line-through"},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},big:{fontSize:33.6},small:{fontSize:28*.8}};function s(e){var t=e.type,n=e.props,r=n.style,o=n.children;"img"===t&&(t="image"),u[t]&&(r=a({},u[t],r),t="span"),n.style=null,n.children=null;var i={type:t,style:r,attr:n||{}};return o&&("span"===t&&"string"==typeof o?i.attr.value=o:i.children=l(o)),i}function l(e){var t=[];Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];"string"==typeof r?t.push({type:"span",attr:{value:r}}):"object"===(void 0===r?"undefined":o(r))&&t.pu
 sh(s(r))}return t}t.default={parse:function(e){var t=e.props,n=t.children;return e.type="richtext",t.style=a({},i,t.style),t.value=l(n),t.children=null,e}},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){var t=e.props;return e.type="text","string"!=typeof t.children||t.value||(t.value=t.children,t.children=null),e}},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){var t=e.props;return"string"!=typeof t.children||t.value||(t.value=t.children,t.children=null),e}},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default={parse:function(e){var t=e.props;return e.props=(0,r.transformPropsAttrsToStyle)(t,["width","height"]),e}},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default={parse:function(e){var t=e.props;return e.type="image",e.props=(0,r.transform
 PropsAttrsToStyle)(t,["width","height"]),e}},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=f(n(34)),o=f(n(33)),i=f(n(32)),a=f(n(31)),u=f(n(30)),s=f(n(29)),l=f(n(28)),c=f(n(27));function f(e){return e&&e.__esModule?e:{default:e}}t.default={span:a.default,p:u.default,img:r.default,button:s.default,video:o.default,textarea:i.default,h1:l.default,h2:l.default,h3:l.default,h4:l.default,h5:l.default,h6:l.default,nav:c.default,article:c.default,section:c.default,footer:c.default,aside:c.default,main:c.default},e.exports=t.default},function(e,t,n){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};Object.defineProperty(t,"__esModule",{value:!0});var o,i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==t
 ypeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},u=n(10),a=n(35),s=(o=a)&&o.__esModule?o:{default:o};var l=/^on[A-Z]/,c=/^aria-/,f={},d="object"===(void 0===h?"undefined":i(h))?h:"object"===(void 0===d?"undefined":i(d))?d:null,p={deviceWidth:750,viewportWidth:750,getDeviceWidth:function(){return this.deviceWidth},setDeviceWidth:function(e){this.deviceWidth=e},getViewportWidth:function(){return this.viewportWidth},setViewportWidth:function(e){this.viewportWidth=e},getElementById:function(e){return f[e]},createBody:function(){if(d.body)return d.body;var e=d.documentElement,t=d.createBody(p.bodyType,p.bodyProps);return e.appendChild(t),t},createComment:function(e){return d.createComment(e)},createEmpty:function(){return this.createComment(" empty ")},createText:function(e){return p.createElement({type:"text",props:{value:e}})},updateText:function(e,t){this.setAttribute(e,"value",t)},createElement:function(e){var t=s.default[e.type];t&&(e=
 t.parse(e));var n=e.props,r={},o=n.style;for(var i in o)r[i]=(0,u.convertUnit)(o[i],i);var a=d.createElement(e.type,{style:r});return this.setNativeProps(a,n,!0),a},appendChild:function(e,t){return t.appendChild(e)},removeChild:function(e,t){t=t||e.parentNode;var n=e.attr&&e.attr.id;return null!=n&&(f[n]=null),t.removeChild(e)},replaceChild:function(e,t,n){n=n||t.parentNode;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){return(n=n||t.parentNode).insertAfter(e,t)},insertBefore:function(e,t,n){return(n=n||t.parentNode).insertBefore(e,t)},addEventListener:function(e,t,n,r){var o=r[t+"EventParams"];return e.addEvent(t,n,o)},removeEventListener:function(e,t,n){return e.removeEvent(t,n)},removeAllEventListeners:function(e){},removeAttribute:function(e,t,n){return"id"==t&&(f[n]=null),e.setAttr(t,void 0,!1)},setAttribute:function(e,t,n){return"id"==t&&(f[n]=e),c.test(t)&&(t
 =t.replace(/\-(\w)/,function(e,t){return t.toUpperCase()})),e.setAttr(t,n,!1)},setStyles:function(e,t){for(var n in t){var r=t[n];r=(0,u.convertUnit)(r,n),e.setStyle(n,r)}},beforeRender:function(){d.open(),(0,u.setRem)(this.getDeviceWidth()/this.getViewportWidth())},afterRender:function(){d.listener&&d.listener.createFinish&&d.listener.createFinish(),d.close()},setNativeProps:function(e,t,n){for(var r in t){var o=t[r];if("children"!==r&&null!=o)if("style"===r){if(n)continue;this.setStyles(e,o)}else if(l.test(r)){var i=r.slice(2).toLowerCase();this.addEventListener(e,i,o,t)}else this.setAttribute(e,r,o)}}};t.default=p,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(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(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),c=a(n(0)),o=a(n(13)),i=a(n(1)),s=a(n(
 3)),l=a(n(11));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),r(t,[{key:"mountComponent",value:function(e,t,n,r){this._parent=e,this._parentInstance=t,this._context=n,this._mountID=c.default.mountID++;var o={_internal:this};this._instance=o;var i=this.getNativeNode(),a=this._currentElement;if(this
 .mountChildren(a,n),r)r(i,e);else for(var u=Array.isArray(e),s=0;s<i.length;s++){var l=i[s];u?e.push(l):c.default.driver.appendChild(l,e)}return o}},{key:"mountChildren",value:function(e,o){var i=this,a=this._renderedChildren={},u=this.getNativeNode();return e.map(function(e,t){var n=(0,s.default)(e),r=(0,l.default)(a,e,t);return(a[r]=n)._mountIndex=t,n.mountComponent(i._parent,i._instance,o,function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)u.push(e[t]);else u.push(e)})})}},{key:"unmountComponent",value:function(e){if(this._nativeNode&&(i.default.remove(this._nativeNode),!e))for(var t=0;t<this._nativeNode.length;t++)c.default.driver.removeChild(this._nativeNode[t]);this.unmountChildren(!0),this._currentElement=null,this._nativeNode=null,this._parent=null,this._parentInstance=null,this._context=null,this._instance=null}},{key:"updateComponent",value:function(e,t,n,r){this._currentElement=t,this.updateChildren(this._currentElement,r)}},{key:"getNativeNode",value:function(){re
 turn null==this._nativeNode&&(this._nativeNode=[]),this._nativeNode}},{key:"getPublicInstance",value:function(){return this.getNativeNode()}},{key:"getName",value:function(){return"fragment"}}]),t}();t.default=u,e.exports=t.default},function(e,t,n){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},a=Object.prototype.hasOwnProperty;function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}t.default=function(e,t){if(u(e,t))return!0;if("object"!==(void 0===e?"undefined":i(e))||null===e||"object"!==(void 0===t?"undefined":i(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!a.call(t,n[o])||!u(e[n[o]],t[n[o]]))return!1;return!0},e.exports=t.default},function(e,t,n){function a(e,t){t&&(e._pendingCallbacks||(e._pendi
 ngCallbacks=[])).push(t)}Object.defineProperty(t,"__esModule",{value:!0});var r={setState:function(e,t,n){var r,o,i=e._internal;i&&(r=i,(o=t)&&(r._pendingStateQueue||(r._pendingStateQueue=[])).push(o),a(i,n),!i._pendingState&&i._renderedComponent&&this.runUpdate(e))},forceUpdate:function(e,t){var n=e._internal;n&&(n._pendingForceUpdate=!0,a(n,t),n._renderedComponent&&this.runUpdate(e))},runUpdate:function(e){var t=e._internal,n=t._pendingCallbacks;t._pendingCallbacks=null;var r=t._currentElement,o=t._context;(t._pendingStateQueue||t._pendingForceUpdate)&&t.updateComponent(r,r,o,o),this.runCallbacks(n,e)},runCallbacks:function(e,t){if(e)for(var n=0;n<e.length;n++)e[n].call(t)}};t.default=r,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function r(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(e,t,n){retur
 n t&&r(e.prototype,t),n&&r(e,n),e}}(),i=n(0);(r=i)&&r.__esModule;var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.pureRender=e}return o(t,[{key:"render",value:function(){return this.pureRender(this.props,this.context)}}]),t}();t.default=a,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(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(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),v=o(n(40)),y=o(n(39)),m=o(n(0)),_=o(n(12)),b=o(n(3)),i=o(n(5)),g=o(n(38));function o(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){try{return e()}catch(e){n?n(e):x(t,e)}}function x(e,t){for(var n=void 0;e;){if("function"==typeof e.componentDidCatch){n=e;break}if(!e._internal||!e._internal._parentInstance)break;e=e._inter
 nal._parentInstance}if(n)n.componentDidCatch(t);else{if(!m.default.sandbox)throw t;setTimeout(function(){throw t},0)}}var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._currentElement=e}return r(t,[{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,r){this._parent=e,this._parentInstance=t,this._context=n,this._mountID=m.default.mountID++,this._updateCount=0;var o=this._currentElement.type,i=this._currentElement.props,a=o.prototype,u=a&&o.prototype.isComponentClass,s=a&&o.prototype.render,l=this._processContext(n),c=void 0,f=void 0;if(u||s)c=new o(i,l,y.default);else{if("function"!=typeof o)throw new Error("Invalid component type: "+o+". (keys: "+Object.keys(o)+")");c=new v.default(o)}c.props=i,c.context=l,c.refs={},c.updater=y.defau
 lt;var d=((c._internal=this)._instance=c).state;void 0===d&&(c.state=d=null);var p=null,h=function(e){p=e};return c.componentWillMount&&w(function(){c.componentWillMount()},c,h),null==f&&(m.default.component=this,c.state=this._processPendingState(i,l),w(function(){f=c.render()},c,h),m.default.component=null),this._renderedComponent=(0,b.default)(f),this._renderedComponent.mountCo

<TRUNCATED>


Mime
View raw message