From b5ceda06c04cf060db0f0339d1b7329a7450d397 Mon Sep 17 00:00:00 2001 From: zoomchan-cxj Date: Tue, 4 Apr 2023 00:36:05 +0800 Subject: [PATCH] chore(release): released 2.16.1 --- CHANGELOG.md | 25 +++++++++++++++++++ android/sdk/gradle.properties | 2 +- examples/android-demo/res/vendor.android.js | 6 ++--- examples/ios-demo/res/vendor.ios.js | 6 ++--- hippy.podspec | 2 +- ios/sdk/base/HippyBridge.mm | 2 +- lerna.json | 2 +- packages/hippy-react-web/CHANGELOG.md | 16 ++++++++++++ packages/hippy-react-web/package-lock.json | 4 +-- packages/hippy-react-web/package.json | 2 +- packages/hippy-react/CHANGELOG.md | 11 ++++++++ packages/hippy-react/package-lock.json | 4 +-- packages/hippy-react/package.json | 2 +- packages/hippy-vue-css-loader/CHANGELOG.md | 8 ++++++ .../hippy-vue-css-loader/package-lock.json | 4 +-- packages/hippy-vue-css-loader/package.json | 2 +- packages/hippy-vue-loader/CHANGELOG.md | 8 ++++++ packages/hippy-vue-loader/package.json | 2 +- .../hippy-vue-native-components/CHANGELOG.md | 11 ++++++++ .../hippy-vue-native-components/package.json | 2 +- .../hippy-vue-next-style-parser/CHANGELOG.md | 8 ++++++ .../package-lock.json | 4 +-- .../hippy-vue-next-style-parser/package.json | 2 +- packages/hippy-vue-next/CHANGELOG.md | 11 ++++++++ packages/hippy-vue-next/package-lock.json | 4 +-- packages/hippy-vue-next/package.json | 2 +- packages/hippy-vue-router/CHANGELOG.md | 8 ++++++ packages/hippy-vue-router/package-lock.json | 4 +-- packages/hippy-vue-router/package.json | 2 +- packages/hippy-vue/CHANGELOG.md | 11 ++++++++ packages/hippy-vue/package-lock.json | 4 +-- packages/hippy-vue/package.json | 2 +- packages/hippy-web-renderer/CHANGELOG.md | 8 ++++++ packages/hippy-web-renderer/package-lock.json | 4 +-- packages/hippy-web-renderer/package.json | 2 +- 35 files changed, 161 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5809a6c58d..58b053921e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,31 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + + +### Bug Fixes + +* **@hippy/react-web:** fix text default value and ellipsis not work ([51bb33a](https://github.com/Tencent/Hippy/commit/51bb33a485b2d2173902ff93d4269534329cd996)) +* **core:** fix uncaughtException bug ([00a7338](https://github.com/Tencent/Hippy/commit/00a73380a60af9c61637ca87878b7ef7a8cb01f0)) +* **react:** listview initialListSize default value set to 15 ([064e636](https://github.com/Tencent/Hippy/commit/064e63639f1a9ea59fcc4389ef3e9bfed0648e51)) +* **readme:** fix English README of requestInterrupt method ([0888c7d](https://github.com/Tencent/Hippy/commit/0888c7dc32b5af1f8b7c026b58a1f040fce4be5f)) +* **readme:** fix readme of requestInterrupt method ([0e75c12](https://github.com/Tencent/Hippy/commit/0e75c125c191741aa5bfe80946cb07f1ae5900c5)) +* **vue:** fix vue style diff error ([c9add39](https://github.com/Tencent/Hippy/commit/c9add39ea697d44e5b984ef2010130aa655e0e36)) +* **vue:** make sure start animation after node created ([9517d1b](https://github.com/Tencent/Hippy/commit/9517d1b5cb80be397cb6aa8fed73bbea175a38b9)) +* **workflow:** fix workflow yml file syntax error ([fe07ce3](https://github.com/Tencent/Hippy/commit/fe07ce3bc5b8970e11173517d43bf65a7f95d60a)) + + +### Features + +* **@hippy/react-web:** add build config for the declaration ([a826351](https://github.com/Tencent/Hippy/commit/a8263515906d950a3a936ec127f9396ab8af6b05)) +* **android:** add getNodeForLocation for utils mode ([2ddbb3a](https://github.com/Tencent/Hippy/commit/2ddbb3a12b327d0434cdb69761114cb7f747490d)) +* **ios:** change cpp excetion enable to false ([2274aeb](https://github.com/Tencent/Hippy/commit/2274aeb17c5a9c9b668100cb734fb7f6b9ff9c03)) + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) diff --git a/android/sdk/gradle.properties b/android/sdk/gradle.properties index 979c47e39f5..9d139cb0706 100644 --- a/android/sdk/gradle.properties +++ b/android/sdk/gradle.properties @@ -49,7 +49,7 @@ NDK_VERSION=25.0.8775105 # # Specifies SDK version # -VERSION_NAME=2.16.0 +VERSION_NAME=2.16.1 # # Whether to skip build C/C++ code diff --git a/examples/android-demo/res/vendor.android.js b/examples/android-demo/res/vendor.android.js index d73e724c842..34a2a624f34 100644 --- a/examples/android-demo/res/vendor.android.js +++ b/examples/android-demo/res/vendor.android.js @@ -1,7 +1,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Animated",(function(){return pn})),n.d(t,"Animation",(function(){return Oe})),n.d(t,"AnimationSet",(function(){return Fe})),n.d(t,"AppRegistry",(function(){return ln})),n.d(t,"AsyncStorage",(function(){return Wn})),n.d(t,"BackAndroid",(function(){return Vn})),n.d(t,"Clipboard",(function(){return qn})),n.d(t,"ConsoleModule",(function(){return or})),n.d(t,"Dimensions",(function(){return pr})),n.d(t,"Easing",(function(){return hn})),n.d(t,"EventBus",(function(){return Se})),n.d(t,"Focusable",(function(){return Fn})),n.d(t,"Hippy",(function(){return lr})),n.d(t,"HippyEventEmitter",(function(){return ge})),n.d(t,"HippyEventListener",(function(){return me})),n.d(t,"HippyRegister",(function(){return Gn})),n.d(t,"Image",(function(){return dn})),n.d(t,"ImageBackground",(function(){return ur})),n.d(t,"ImageLoaderModule",(function(){return Yn})),n.d(t,"ListView",(function(){return wn})),n.d(t,"ListViewItem",(function(){return mn})),n.d(t,"Modal",(function(){return jn})),n.d(t,"Navigator",(function(){return En})),n.d(t,"NetInfo",(function(){return Xn})),n.d(t,"NetworkModule",(function(){return Qn})),n.d(t,"PixelRatio",(function(){return hr})),n.d(t,"Platform",(function(){return ar})),n.d(t,"PullFooter",(function(){return gn})),n.d(t,"PullHeader",(function(){return yn})),n.d(t,"RNfqb",(function(){return sr})),n.d(t,"RNfqbEventEmitter",(function(){return fr})),n.d(t,"RNfqbEventListener",(function(){return dr})),n.d(t,"RNfqbRegister",(function(){return cr})),n.d(t,"RefreshWrapper",(function(){return Sn})),n.d(t,"ScrollView",(function(){return zn})),n.d(t,"StyleSheet",(function(){return Rn})),n.d(t,"Text",(function(){return cn})),n.d(t,"TextInput",(function(){return Pn})),n.d(t,"TimerModule",(function(){return ir})),n.d(t,"UIManagerModule",(function(){return Jn})),n.d(t,"View",(function(){return sn})),n.d(t,"ViewPager",(function(){return Cn})),n.d(t,"WaterfallView",(function(){return Bn})),n.d(t,"WebSocket",(function(){return Dn})),n.d(t,"WebView",(function(){return Hn})),n.d(t,"callNative",(function(){return er})),n.d(t,"callNativeWithCallbackId",(function(){return nr})),n.d(t,"callNativeWithPromise",(function(){return tr})),n.d(t,"colorParse",(function(){return Xt})),n.d(t,"default",(function(){return an})),n.d(t,"flushSync",(function(){return Zn})),n.d(t,"removeNativeCallback",(function(){return rr}));var i=n("./node_modules/@hippy/react-reconciler/index.js"),o=n.n(i),a=n("./node_modules/react/index.js"),l=n.n(a);const s=["children"],u=["collapsable","style"],c=["style"],f=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],d=["children"],p=["children"],h=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getHeaderStyle","getFooterStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],m=["children"],y=["initialRoute"],g=["component"],b=["children","onPageScrollStateChanged"],v=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function w(){w=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),k(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return S(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},w.apply(this,arguments)}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t=0||(i[n]=e[n]);return i} /*! - * @hippy/react v2.16.0 - * Build at: Tue Mar 21 2023 14:57:39 GMT+0800 (China Standard Time) + * @hippy/react v2.16.1 + * Build at: Tue Apr 04 2023 00:09:25 GMT+0800 (China Standard Time) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -20,7 +20,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:I,bridge:P,device:_,document:L,register:A,on:R,off:T,emit:z}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:R,removeEventListener:T,dispatchEvent:z,AsyncStorage:I,Bridge:P,Device:_,HippyRegister:A,UIManager:L});let j,F;const H=new Map;function M(e,t){F=e,j=t}function D(){if(!F)throw new Error("getRootViewId must execute after setRootContainer");return F}function U(e){if(!j)return null;const{current:t}=j,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function B(e,t){H.set(t,e)}function W(e){H.delete(e)}function V(e){return(null==e?void 0:e.stateNode)||null}function $(e){return H.get(e)||null}function q(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?W(t):t&&(W(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const Q={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},K=new RegExp(/^\d+$/);let G=!1,Y=!1;function X(...e){0}function J(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const Z=new RegExp("^on.+Capture$");const ee=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function te(e){return"[object Function]"===Object.prototype.toString.call(e)}function ne(e){G=e}function re(){return Y}function ie(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}function oe(e){return 5===e}class ae{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(...e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,...e):n.eventHandler(...e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class le{constructor(e,t,n){this.type=e,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const se=new Map,ue=["%c[event]%c","color: green","color: auto"];function ce(e,t){let n=e;if(t.memoizedProps&&!t.memoizedProps[e]){const r=Object.keys(Q);for(let i=0;i0){let e,i=!1;const o=V(n);for(;!i&&void 0!==(e=r.shift());)try{const{eventName:n,currentTarget:r,listener:a,isCapture:l}=e,s=new le(n,r,o);Object.assign(s,t),l?(a(s),s.bubbles||(i=!0)):(i=a(s),"boolean"!=typeof i&&(i=!re()),s.bubbles||(i=!0))}catch(e){console.error(e)}}}(i,e,a):function(e,t,n){let r=!1,i=n,o=e;const a=V(n);do{if(o=ce(o,i),fe(o,i))try{const e=V(i),n=new le(o,e,a);Object.assign(n,t),r=i.memoizedProps[o](n),"boolean"!=typeof r&&(r=!re()),n.bubbles||(r=!0)}catch(e){console.error(e)}if(!1===r)for(i=i.return;i&&!oe(i.tag);)i=i.return}while(!r&&i)}(i,e,a)},receiveUIComponentEvent:function(e){if(X(...ue,"receiveUIComponentEvent",e),!e||!Array.isArray(e)||e.length<2)return;const[t,n,r]=e;if("number"!=typeof t||"string"!=typeof n)return;const i=$(t);i&&fe(n,i)&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=pe);class he{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}class me{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=pe.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n{if("string"!=typeof e&&!Array.isArray(e)||"function"!=typeof t)throw new TypeError("Invalid arguments for EventBus.on()");return Array.isArray(e)?e.forEach(e=>{ve(e,t,n)}):ve(e,t,n),Se},off:(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("The event argument is not string or array for EventBus.off()");return Array.isArray(e)?e.forEach(e=>{we(e,t)}):we(e,t),Se},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=be[e];return(null==t?void 0:t.eventMap)?t.eventMap.size:0},emit(e,...t){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.emit()");const n=pe.getHippyEventHub(e);return n?(n.notifyEvent(...t),Se):Se}};var ke=Object.freeze({__proto__:null,getString:function(){return P.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){P.callNative("ClipboardModule","setString",e)}});var Ee=Object.freeze({__proto__:null,getCookies:function(e){return P.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),P.callNative("network","setCookie",e,t,r)}});function xe(e){return P.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Ce(e){P.callNative("ImageLoaderModule","prefetch",e)}var Ne=Object.freeze({__proto__:null,getSize:xe,prefetch:Ce});const Ie=new Map,Pe=new ge;class _e{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Le(this.eventName,this.listener),this.listener=void 0)}}function Le(e,t){if(t instanceof _e)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=Ie.get(t);if(!r)return;r.remove(),Ie.delete(t);Pe.listenerSize(n)<1&&P.callNative("NetInfo","removeListener",n)}var Ae=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Pe.listenerSize(n)<1&&P.callNative("NetInfo","addListener",n);const r=Pe.addListener(n,e=>{t(e)});return Ie.set(t,r),new _e(n,t)},removeEventListener:Le,fetch:function(){return P.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});function Re(e){return"loop"===e?-1:e}const Te=new ge;function ze(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Xt(t):t}class Oe{constructor(e){var t;let n=0;if((null===(t=e.startValue)||void 0===t?void 0:t.constructor)&&"Animation"===e.startValue.constructor.name)n={animationId:e.startValue.animationId};else{const{startValue:t}=e;n=ze(e.valueType,t)}const r=ze(e.valueType,e.toValue);this.mode=e.mode||"timing",this.delay=e.delay||0,this.startValue=n||0,this.toValue=r||0,this.valueType=e.valueType||void 0,this.duration=e.duration||0,this.direction=e.direction||"center",this.timingFunction=e.timingFunction||"linear",this.repeatCount=Re(e.repeatCount||0),this.inputRange=e.inputRange||[],this.outputRange=e.outputRange||[],this.animationId=Ft.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Te.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Te.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Te.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Te.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ft.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),Ft.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ft.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ft.callNative("AnimationModule","resumeAnimation",this.animationId)}updateAnimation(e){if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t=0;if(e.startValue instanceof Oe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=ze(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Re(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),Ft.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:ze(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const je=new ge;class Fe{constructor(e){this.animationList=[],e.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animationId=Ft.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:Re(e.repeatCount||0),children:this.animationList,virtual:e.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=je.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=je.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=je.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=je.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ft.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),this.animationList.forEach(e=>Number.isInteger(e.animationId)&&Ft.callNative("AnimationModule","destroyAnimation",e.animationId)),Ft.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ft.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ft.callNative("AnimationModule","resumeAnimation",this.animationId)}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const He=["%c[native]%c","color: red","color: auto"],Me={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let De=!0,Ue=[];function Be(e){(function(e){const t=[];for(let n=0;n{switch(t.type){case Me.createNode:X(...He,"createNode",t.nodes),st(e,t.nodes);break;case Me.updateNode:X(...He,"updateNode",t.nodes),"ios"===_.platform.OS?t.nodes.forEach(t=>ut(e,[t])):ut(e,t.nodes);break;case Me.deleteNode:X(...He,"deleteNode",t.nodes),"ios"===_.platform.OS?t.nodes.forEach(t=>ct(e,[t])):ct(e,t.nodes)}})}function We(e=!1){if(!De)return;if(De=!1,0===Ue.length)return void(De=!0);const t=D();dt(),e?(Be(t),pt(),Ue=[],De=!0):Promise.resolve().then(()=>{Be(t),pt(),Ue=[],De=!0})}function Ve(e){const t=e.attributes,{children:n}=t;return N(t,s)}function $e(e,t){var n;if(!t.nativeName)return null;if(t.meta.skipAddToDom)return null;if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);const r={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,index:t.index,name:t.nativeName,props:x(x({},Ve(t)),{},{style:t.style}),tagName:t.nativeName};return r}function qe(e,t,n,r){const i=[];let o=n;return void 0===o&&t&&t.parentNode&&(o=t.parentNode.childNodes.indexOf(t)),t.traverseChildren(t=>{const n=$e(e,t);n&&i.push(n),"function"==typeof r&&r(t)},o),i}function Qe(e){return!!j&&e instanceof j.containerInfo.constructor}function Ke(e,t,n=-1){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=D(),i=Qe(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const e=qe(r,t,n,e=>{e.isMounted||(e.isMounted=!0)});Ue.push({type:Me.createNode,nodes:e})}}function Ge(e,t,n){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.index=n;const r=D(),i=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r,index:t.index}];Ue.push({type:Me.deleteNode,nodes:i})}function Ye(e){if(!e.isMounted)return;const t=$e(D(),e);t&&Ue.push({type:Me.updateNode,nodes:[t]})}let Xe=0;class Je{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(Xe+=1,Xe%10==0&&(Xe+=1),Xe)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),Ke(this,e,n)}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1),Ge(0,e,n);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),Ke(this,e,r)}appendChild(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.childNodes.push(e),Ke(this,e,this.childNodes.length-1)}}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),Ge(0,e,t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,n)})}}const Ze={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},et={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},tt="turn",nt="rad",rt="deg";function it(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=w(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=rt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case tt:r=""+(360*n).toFixed(2);break;case nt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==et[i]&&(r=et[i]),r}function ot(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Xt(n)}:void 0:{color:Xt(n)}}function at(e){var t;return t=e,Z.test(t)&&(e=e.replace("Capture","")),Q[e]?Q[e][1]:e}class lt extends Je{constructor(e){super(),this.id="",this.style={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,K.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=x(x({},n),e)}):"object"==typeof e&&e&&(n=x(x({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(Ze,e)&&(e=Ze[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof Oe||r instanceof Fe?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof Oe||t instanceof Fe)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Jt(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Xt(t);else if("fontWeight"===e&&t)this.style[e]="string"!=typeof t?t.toString():t;else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=it(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=ot(e);t&&r.push(t)}}else{const t=ot(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=ie(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),Ye(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=qe(D(),e);Ue.push({type:Me.updateNode,nodes:t})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=J(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const t=at(e);this.attributes[t]=!0,this.events[""+t]=!0}else{this.attributes[e]=t;const n=at(e);!0===this.events[""+n]&&"function"!=typeof t&&(this.attributes[n]=!1,delete this.events[""+n])}return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&Ye(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&Ye(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(Ze,e)&&(i=Ze[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Jt(r):i.toLowerCase().indexOf("color")>-1?Xt(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&ee.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Ye(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),Ye(this),We(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=J(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:st,updateNode:ut,deleteNode:ct,flushBatch:ft,startBatch:dt,endBatch:pt,sendRenderError:ht}=L,mt=function(e){return U(t=>t.stateNode&&t.stateNode.nodeId===e)};function yt(e){if(e instanceof lt)return e;if(!e)return null;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof lt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function gt(e){let t=e;if("string"==typeof e){const n=U(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=yt(t);return e?e.nodeId:0}return t.nodeId}function bt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=yt(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;te(o)&&(a=o,o=[]);null!==D()&&(X(),"ios"===_.platform.OS?(te(a)&&Array.isArray(o)&&o.push(a),P.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===_.platform.OS&&(te(a)?P.callNative("UIManagerModule","callUIFunction",[i,t,o],a):P.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function vt(e,t,n){const r=gt(t);return new Promise((t,i)=>r?(X(),P.callNative("UIManagerModule",e,r,r=>(n&&te(n)&&n(r),r&&"object"==typeof r?t(r):i(new Error(`${e} error with response: ${r}`))))):(n&&te(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var wt=Object.freeze({__proto__:null,createNode:st,updateNode:ut,deleteNode:ct,flushBatch:ft,startBatch:dt,endBatch:pt,sendRenderError:ht,getNodeById:mt,getNodeIdByRef:gt,getElementFromFiberRef:yt,callUIFunction:bt,getBoundingClientRect:function(e,t){const n=gt(e);return new Promise((r,i)=>n?(X(),P.callNative("UIManagerModule","getBoundingClientRect",n,t,e=>{if(!e||e.errMsg)return i(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:o,height:a}=e;let l=void 0,s=void 0;return"number"==typeof n&&"number"==typeof a&&(l=n+a),"number"==typeof t&&"number"==typeof o&&(s=t+o),r({x:t,y:n,width:o,height:a,bottom:l,right:s,left:t,top:n})})):i(new Error("getBoundingClientRect cannot get nodeId of "+e)))},measureInWindow:function(e,t){return vt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?vt("measureInWindow",e,t):vt("measureInAppWindow",e,t)}});const St=new ge,kt=new Set,Et={exitApp(){P.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(P.callNative("DeviceEventModule","setListenBackPress",!0),kt.add(e),{remove(){Et.removeListener(e)}}),removeListener(e){kt.delete(e),0===kt.size&&P.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){St.addListener("hardwareBackPress",()=>{let e=!0;[...kt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&Et.exitApp()})}},xt=(Et.initEventListener(),Et);var Ct=Array.isArray,Nt=Object.keys,It=Object.prototype.hasOwnProperty;const Pt=setTimeout,_t=clearTimeout;var Lt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){We(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Pt,cancelTimeout:_t,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){B(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),B(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",J(e)),i.meta={component:{name:"Text"}},B(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=Ct(t),l=Ct(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=Nt(t);if((i=d.length)!==Nt(n).length)return!1;for(r=i;0!=r--;)if(!It.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),q(t)},removeChildFromContainer:function(e,t){e.removeChild(t),q(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=x(x({},t),{},{style:x(x({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const At=o()(x(x({},Lt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{flushSync:Rt}=At,{addEventListener:Tt,removeEventListener:zt,dispatchEvent:Ot,AsyncStorage:jt,Bridge:Ft,Device:Ht,HippyRegister:Mt}=O;var Dt=Object.freeze({__proto__:null,addEventListener:Tt,removeEventListener:zt,dispatchEvent:Ot,AsyncStorage:jt,BackAndroid:xt,Bridge:Ft,Clipboard:ke,Cookie:Ee,Device:Ht,HippyRegister:Mt,ImageLoader:Ne,NetworkInfo:Ae,UIManager:wt,flushSync:Rt});function Ut(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const Bt={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Wt="[-+]?\\d*\\.?\\d+",Vt={rgb:new RegExp("rgb"+Ut(Wt,Wt,Wt)),rgba:new RegExp("rgba"+Ut(Wt,Wt,Wt,Wt)),hsl:new RegExp("hsl"+Ut(Wt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Ut(Wt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Wt)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function $t(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function qt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Qt(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Kt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Qt(i,r,e+1/3),a=Qt(i,r,e),l=Qt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Gt(e){return(parseFloat(e)%360+360)%360/360}function Yt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Xt(e,t={}){if(Number.isInteger(e))return e;let n=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Vt.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Bt,e)?Bt[e]:(t=Vt.rgb.exec(e),Array.isArray(t)?($t(t[1])<<24|$t(t[2])<<16|$t(t[3])<<8|255)>>>0:(t=Vt.rgba.exec(e),t?($t(t[1])<<24|$t(t[2])<<16|$t(t[3])<<8|qt(t[4]))>>>0:(t=Vt.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Vt.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Vt.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Vt.hsl.exec(e),t?(255|Kt(Gt(t[1]),Yt(t[2]),Yt(t[3])))>>>0:(t=Vt.hsla.exec(e),t?(Kt(Gt(t[1]),Yt(t[2]),Yt(t[3]))|qt(t[4]))>>>0:null))))))))}(e);return t.platform||(t.platform="android"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function Jt(e,t){return Array.isArray(e)?e.map(e=>Xt(e,t)):[0]}class Zt extends Je{constructor(){super(),this.documentElement=new lt("document")}createElement(e){return new lt(e)}createElementNS(e,t){return new lt(`${e}:${t}`)}}Zt.createElement=Zt.prototype.createElement,Zt.createElementNS=Zt.prototype.createElementNS;const{createContainer:en,updateContainer:tn,getPublicRootInstance:nn,injectIntoDevTools:rn}=At,on=['%c[Hippy-React "2.16.0"]%c',"color: #61dafb","color: auto"];class an{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new Zt;this.rootContainer=en(t,0,!1,null)}static get Native(){return Dt}start(){Mt.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:o=(()=>{})}=this.config,{__instanceId__:a}=e;X(...on,"Start",t,"with rootViewId",a,e),this.rootContainer.containerInfo.nodeId=a,r&&ne(r),i&&function(e=!1){Y=e}(i),M(a,this.rootContainer);const s=l.a.createElement(n,e);return tn(s,this.rootContainer,null,o),nn(this.rootContainer)}}an.version="2.16.0";const ln={registerComponent(e,t){new an({appName:e,entryPage:t}).start()}};class sn extends l.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){bt(this.instance,"setPressed",[e])}setHotspot(e,t){bt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:o}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==o?void 0:o.color)&&(o.color=Xt(o.color)),l.a.createElement("div",x({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function un(e,t){let{style:n}=e,r=N(e,c);const i=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(i[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=J(r.children);else if("number"==typeof r.children)r.text=J(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=J(e),r.children=r.text)}return l.a.createElement("p",x({ref:t,nativeName:"Text",style:i},r))}un.displayName="Text";const cn=l.a.forwardRef(un);cn.displayName="Text";var fn=Object.freeze({__proto__:null,default:cn});class dn extends l.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=xe(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:i,source:o,sources:a,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:o,sources:a});"ios"===Ht.platform.OS?h.length&&(p.source=h.map(e=>({uri:e}))):"android"===Ht.platform.OS&&(1===h.length?[p.src]=h:h.length>1&&(p.srcs=h)),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=ie(p.defaultSource));const m=x({},n);return this.handleTintColor(m,c,d),p.style=m,t?l.a.createElement(sn,{style:n},l.a.createElement("img",x(x({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):l.a.createElement("img",x(x({},p),{},{nativeName:"Image",alt:"",ref:i}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>ie(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}dn.prefetch=Ce;class pn{constructor(){this.Value=pn.Value}static Value(e){return e}static timing(e,t){return new Oe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}pn.View=sn,pn.Text=fn,pn.Image=dn;const hn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function mn(e){return l.a.createElement("li",x({nativeName:"ListViewItem"},e))}class yn extends l.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){bt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?bt(this.instance,"collapsePullHeaderWithOptions",[e]):bt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return l.a.createElement("div",x({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class gn extends l.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){bt(this.instance,"expandPullFooter",[])}collapsePullFooter(){bt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return l.a.createElement("div",x({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}const bn={onDisappear:"onDisAppear"},vn={onDisappear:"onDisappear"};class wn extends l.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}static convertName(e){return"android"===Ht.platform.OS&&bn[e]?bn[e]:"ios"===Ht.platform.OS&&vn[e]?vn[e]:e}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&bt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&bt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:i,renderPullFooter:o,getRowType:a,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:b,onFooterPulling:v,onFooterReleased:w,onAppear:S,onDisappear:k,onWillAppear:E,onWillDisappear:C}=e,I=N(e,h),P=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,b,u),N=this.getPullFooter(o,v,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||10));for(let e=0;e{"function"==typeof n&&(t[wn.convertName(r)]=()=>{n(e)})}),n&&P.push(l.a.createElement(mn,x({},t),n))}h&&P.unshift(h),N&&P.push(N),"function"==typeof m&&Object.assign(I,{rowShouldSticky:!0});const _=[S,k,E,C];I.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===Ht.platform.OS&&(I.numberOfRows=P.length),void 0!==p&&(I.initialListSize=p),I.style=x({overflow:"scroll"},n)}return l.a.createElement("ul",x({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},I),P.length?P:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,o={};return"function"==typeof r&&(o=r()),"function"==typeof e&&(i=l.a.createElement(yn,{style:o,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,o={};return"function"==typeof r&&(o=r()),"function"==typeof e&&(i=l.a.createElement(gn,{style:o,key:"pull-footer",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),i}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}wn.defaultProps={numberOfRows:0};class Sn extends l.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){bt(this.instance,"startRefresh",null)}refreshCompleted(){bt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return l.a.createElement("div",x({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),l.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class kn{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new an({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),bt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),bt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=N(e.initialRoute,g),r=N(e,y);return r.initialRoute=n,l.a.createElement("div",x({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function xn(e){return l.a.createElement("div",x(x({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class Cn extends l.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&bt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&bt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,b);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),l.a.createElement(xn,x({},t),e)}):i.push(l.a.createElement(xn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),l.a.createElement("div",x({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function Nn(){const e=_.platform.Localization;return!!e&&1===e.direction}const In={caretColor:"caret-color"};class Pn extends l.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{bt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return bt(this.instance,"setValue",[e]),e}focus(){bt(this.instance,"focusTextInput",[])}blur(){bt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{bt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){bt(this.instance,"clear",[])}render(){const e=x({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(In[t]&&(n=In[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),Nn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),l.a.createElement("div",x(x({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props,n=e;"android"===Ht.platform.OS&&(n.keyboardHeight/=Ht.screen.scale),"function"==typeof t&&t(n)}}const _n=Ht.window.scale;let Ln=Math.round(.4*_n)/_n;function An(e){return e}0===Ln&&(Ln=1/_n);var Rn=Object.freeze({__proto__:null,get hairlineWidth(){return Ln},create:An});const Tn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class zn extends l.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,bt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){bt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Tn.contentContainerHorizontal:Tn.contentContainerVertical,t],o=e?Object.assign({},Tn.baseHorizontal,r):Object.assign({},Tn.baseVertical,r);return e&&(o.flexDirection=Nn()?"row-reverse":"row"),l.a.createElement("div",x(x({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:o}),l.a.createElement(sn,{style:i},n))}}const On={modal:{position:"absolute",collapsable:!1},container:{position:"absolute",left:0,top:0}};class jn extends l.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Ht.platform.OS&&(this.eventSubscription=new me("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Ht.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:i}=this.props;if(!1===t)return null;const o={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),l.a.createElement("div",x({nativeName:"Modal",animationType:i,transparent:n,style:On.modal},this.props),l.a.createElement(sn,{style:[On.container,o]},e))}}jn.defaultProps={visible:!0};class Fn extends l.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:i,nextFocusDownId:o,nextFocusUpId:a,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=l.a.Children.only(i);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=o&>(o),b=a&>(a),v=s&>(s),w=u&>(u);let S=c;if("Text"!==y){const e=m.memoizedProps.style;S=x(x({},S),e)}if(Object.assign(S,h?d:f),"Text"===y)return l.a.createElement(sn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:v,nextFocusRightId:w,requestFocus:r,style:S,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return l.a.cloneElement(m,{nextFocusDownId:o,nextFocusUpId:a,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:S,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function Hn(e){return l.a.createElement("iframe",x({title:"hippy",nativeName:"WebView"},e))}let Mn;class Dn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Mn||(Mn=new me("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=x({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Mn.addCallback(this.onWebSocketEvent),P.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,P.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);P.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Mn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Un(e){return l.a.createElement("li",x({nativeName:"WaterfallItem"},e))}class Bn extends l.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){bt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){bt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:i=0,interItemSpacing:o=0,numberOfItems:a=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:b,onFooterPulling:w,onFooterReleased:S,containPullHeader:k=!1,containPullFooter:E=!1,containBannerView:C=!1}=e,I=x(x({},N(e,v)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:o,preloadItemNumber:s,contentInset:m,containPullHeader:k,containPullFooter:E,containBannerView:C}),P=[];if("function"==typeof n){const e=n();e&&(P.push(l.a.createElement(sn,{key:"bannerView"},l.a.cloneElement(e))),I.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,g,b),n=this.getPullFooter(f,w,S);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),P)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=l.a.createElement(yn,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=l.a.createElement(gn,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Dn;const{AsyncStorage:Wn,BackAndroid:Vn,Bridge:$n,Clipboard:qn,Cookie:Qn,Device:Kn,HippyRegister:Gn,ImageLoader:Yn,NetworkInfo:Xn,UIManager:Jn,flushSync:Zn}=Dt,{callNative:er,callNativeWithPromise:tr,callNativeWithCallbackId:nr,removeNativeCallback:rr}=$n,ir=null,or=e.ConsoleModule||e.console,ar=Kn.platform,lr=an,sr=an,ur=dn,cr=Gn,fr=ge,dr=me,pr={get:e=>Kn[e]},hr={get:()=>Kn.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ + */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:I,bridge:P,device:_,document:L,register:A,on:R,off:T,emit:z}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:R,removeEventListener:T,dispatchEvent:z,AsyncStorage:I,Bridge:P,Device:_,HippyRegister:A,UIManager:L});let j,F;const H=new Map;function M(e,t){F=e,j=t}function D(){if(!F)throw new Error("getRootViewId must execute after setRootContainer");return F}function U(e){if(!j)return null;const{current:t}=j,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function B(e,t){H.set(t,e)}function W(e){H.delete(e)}function V(e){return(null==e?void 0:e.stateNode)||null}function $(e){return H.get(e)||null}function q(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?W(t):t&&(W(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const Q={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},K=new RegExp(/^\d+$/);let G=!1,Y=!1;function X(...e){0}function J(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const Z=new RegExp("^on.+Capture$");const ee=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function te(e){return"[object Function]"===Object.prototype.toString.call(e)}function ne(e){G=e}function re(){return Y}function ie(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}function oe(e){return 5===e}class ae{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(...e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,...e):n.eventHandler(...e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class le{constructor(e,t,n){this.type=e,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const se=new Map,ue=["%c[event]%c","color: green","color: auto"];function ce(e,t){let n=e;if(t.memoizedProps&&!t.memoizedProps[e]){const r=Object.keys(Q);for(let i=0;i0){let e,i=!1;const o=V(n);for(;!i&&void 0!==(e=r.shift());)try{const{eventName:n,currentTarget:r,listener:a,isCapture:l}=e,s=new le(n,r,o);Object.assign(s,t),l?(a(s),s.bubbles||(i=!0)):(i=a(s),"boolean"!=typeof i&&(i=!re()),s.bubbles||(i=!0))}catch(e){console.error(e)}}}(i,e,a):function(e,t,n){let r=!1,i=n,o=e;const a=V(n);do{if(o=ce(o,i),fe(o,i))try{const e=V(i),n=new le(o,e,a);Object.assign(n,t),r=i.memoizedProps[o](n),"boolean"!=typeof r&&(r=!re()),n.bubbles||(r=!0)}catch(e){console.error(e)}if(!1===r)for(i=i.return;i&&!oe(i.tag);)i=i.return}while(!r&&i)}(i,e,a)},receiveUIComponentEvent:function(e){if(X(...ue,"receiveUIComponentEvent",e),!e||!Array.isArray(e)||e.length<2)return;const[t,n,r]=e;if("number"!=typeof t||"string"!=typeof n)return;const i=$(t);i&&fe(n,i)&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=pe);class he{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}class me{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=pe.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n{if("string"!=typeof e&&!Array.isArray(e)||"function"!=typeof t)throw new TypeError("Invalid arguments for EventBus.on()");return Array.isArray(e)?e.forEach(e=>{ve(e,t,n)}):ve(e,t,n),Se},off:(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("The event argument is not string or array for EventBus.off()");return Array.isArray(e)?e.forEach(e=>{we(e,t)}):we(e,t),Se},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=be[e];return(null==t?void 0:t.eventMap)?t.eventMap.size:0},emit(e,...t){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.emit()");const n=pe.getHippyEventHub(e);return n?(n.notifyEvent(...t),Se):Se}};var ke=Object.freeze({__proto__:null,getString:function(){return P.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){P.callNative("ClipboardModule","setString",e)}});var Ee=Object.freeze({__proto__:null,getCookies:function(e){return P.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),P.callNative("network","setCookie",e,t,r)}});function xe(e){return P.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Ce(e){P.callNative("ImageLoaderModule","prefetch",e)}var Ne=Object.freeze({__proto__:null,getSize:xe,prefetch:Ce});const Ie=new Map,Pe=new ge;class _e{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Le(this.eventName,this.listener),this.listener=void 0)}}function Le(e,t){if(t instanceof _e)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=Ie.get(t);if(!r)return;r.remove(),Ie.delete(t);Pe.listenerSize(n)<1&&P.callNative("NetInfo","removeListener",n)}var Ae=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Pe.listenerSize(n)<1&&P.callNative("NetInfo","addListener",n);const r=Pe.addListener(n,e=>{t(e)});return Ie.set(t,r),new _e(n,t)},removeEventListener:Le,fetch:function(){return P.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});function Re(e){return"loop"===e?-1:e}const Te=new ge;function ze(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Xt(t):t}class Oe{constructor(e){var t;let n=0;if((null===(t=e.startValue)||void 0===t?void 0:t.constructor)&&"Animation"===e.startValue.constructor.name)n={animationId:e.startValue.animationId};else{const{startValue:t}=e;n=ze(e.valueType,t)}const r=ze(e.valueType,e.toValue);this.mode=e.mode||"timing",this.delay=e.delay||0,this.startValue=n||0,this.toValue=r||0,this.valueType=e.valueType||void 0,this.duration=e.duration||0,this.direction=e.direction||"center",this.timingFunction=e.timingFunction||"linear",this.repeatCount=Re(e.repeatCount||0),this.inputRange=e.inputRange||[],this.outputRange=e.outputRange||[],this.animationId=Ft.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Te.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Te.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Te.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Te.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ft.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),Ft.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ft.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ft.callNative("AnimationModule","resumeAnimation",this.animationId)}updateAnimation(e){if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t=0;if(e.startValue instanceof Oe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=ze(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Re(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),Ft.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:ze(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const je=new ge;class Fe{constructor(e){this.animationList=[],e.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animationId=Ft.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:Re(e.repeatCount||0),children:this.animationList,virtual:e.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=je.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=je.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=je.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=je.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ft.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),this.animationList.forEach(e=>Number.isInteger(e.animationId)&&Ft.callNative("AnimationModule","destroyAnimation",e.animationId)),Ft.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ft.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ft.callNative("AnimationModule","resumeAnimation",this.animationId)}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const He=["%c[native]%c","color: red","color: auto"],Me={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let De=!0,Ue=[];function Be(e){(function(e){const t=[];for(let n=0;n{switch(t.type){case Me.createNode:X(...He,"createNode",t.nodes),st(e,t.nodes);break;case Me.updateNode:X(...He,"updateNode",t.nodes),"ios"===_.platform.OS?t.nodes.forEach(t=>ut(e,[t])):ut(e,t.nodes);break;case Me.deleteNode:X(...He,"deleteNode",t.nodes),"ios"===_.platform.OS?t.nodes.forEach(t=>ct(e,[t])):ct(e,t.nodes)}})}function We(e=!1){if(!De)return;if(De=!1,0===Ue.length)return void(De=!0);const t=D();dt(),e?(Be(t),pt(),Ue=[],De=!0):Promise.resolve().then(()=>{Be(t),pt(),Ue=[],De=!0})}function Ve(e){const t=e.attributes,{children:n}=t;return N(t,s)}function $e(e,t){var n;if(!t.nativeName)return null;if(t.meta.skipAddToDom)return null;if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);const r={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,index:t.index,name:t.nativeName,props:x(x({},Ve(t)),{},{style:t.style}),tagName:t.nativeName};return r}function qe(e,t,n,r){const i=[];let o=n;return void 0===o&&t&&t.parentNode&&(o=t.parentNode.childNodes.indexOf(t)),t.traverseChildren(t=>{const n=$e(e,t);n&&i.push(n),"function"==typeof r&&r(t)},o),i}function Qe(e){return!!j&&e instanceof j.containerInfo.constructor}function Ke(e,t,n=-1){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=D(),i=Qe(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const e=qe(r,t,n,e=>{e.isMounted||(e.isMounted=!0)});Ue.push({type:Me.createNode,nodes:e})}}function Ge(e,t,n){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.index=n;const r=D(),i=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r,index:t.index}];Ue.push({type:Me.deleteNode,nodes:i})}function Ye(e){if(!e.isMounted)return;const t=$e(D(),e);t&&Ue.push({type:Me.updateNode,nodes:[t]})}let Xe=0;class Je{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(Xe+=1,Xe%10==0&&(Xe+=1),Xe)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),Ke(this,e,n)}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1),Ge(0,e,n);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),Ke(this,e,r)}appendChild(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.childNodes.push(e),Ke(this,e,this.childNodes.length-1)}}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),Ge(0,e,t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,n)})}}const Ze={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},et={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},tt="turn",nt="rad",rt="deg";function it(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=w(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=rt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case tt:r=""+(360*n).toFixed(2);break;case nt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==et[i]&&(r=et[i]),r}function ot(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Xt(n)}:void 0:{color:Xt(n)}}function at(e){var t;return t=e,Z.test(t)&&(e=e.replace("Capture","")),Q[e]?Q[e][1]:e}class lt extends Je{constructor(e){super(),this.id="",this.style={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,K.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=x(x({},n),e)}):"object"==typeof e&&e&&(n=x(x({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(Ze,e)&&(e=Ze[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof Oe||r instanceof Fe?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof Oe||t instanceof Fe)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Jt(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Xt(t);else if("fontWeight"===e&&t)this.style[e]="string"!=typeof t?t.toString():t;else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=it(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=ot(e);t&&r.push(t)}}else{const t=ot(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=ie(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),Ye(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=qe(D(),e);Ue.push({type:Me.updateNode,nodes:t})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=J(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const t=at(e);this.attributes[t]=!0,this.events[""+t]=!0}else{this.attributes[e]=t;const n=at(e);!0===this.events[""+n]&&"function"!=typeof t&&(this.attributes[n]=!1,delete this.events[""+n])}return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&Ye(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&Ye(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(Ze,e)&&(i=Ze[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Jt(r):i.toLowerCase().indexOf("color")>-1?Xt(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&ee.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Ye(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),Ye(this),We(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=J(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:st,updateNode:ut,deleteNode:ct,flushBatch:ft,startBatch:dt,endBatch:pt,sendRenderError:ht}=L,mt=function(e){return U(t=>t.stateNode&&t.stateNode.nodeId===e)};function yt(e){if(e instanceof lt)return e;if(!e)return null;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof lt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function gt(e){let t=e;if("string"==typeof e){const n=U(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=yt(t);return e?e.nodeId:0}return t.nodeId}function bt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=yt(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;te(o)&&(a=o,o=[]);null!==D()&&(X(),"ios"===_.platform.OS?(te(a)&&Array.isArray(o)&&o.push(a),P.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===_.platform.OS&&(te(a)?P.callNative("UIManagerModule","callUIFunction",[i,t,o],a):P.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function vt(e,t,n){const r=gt(t);return new Promise((t,i)=>r?(X(),P.callNative("UIManagerModule",e,r,r=>(n&&te(n)&&n(r),r&&"object"==typeof r?t(r):i(new Error(`${e} error with response: ${r}`))))):(n&&te(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var wt=Object.freeze({__proto__:null,createNode:st,updateNode:ut,deleteNode:ct,flushBatch:ft,startBatch:dt,endBatch:pt,sendRenderError:ht,getNodeById:mt,getNodeIdByRef:gt,getElementFromFiberRef:yt,callUIFunction:bt,getBoundingClientRect:function(e,t){const n=gt(e);return new Promise((r,i)=>n?(X(),P.callNative("UIManagerModule","getBoundingClientRect",n,t,e=>{if(!e||e.errMsg)return i(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:o,height:a}=e;let l=void 0,s=void 0;return"number"==typeof n&&"number"==typeof a&&(l=n+a),"number"==typeof t&&"number"==typeof o&&(s=t+o),r({x:t,y:n,width:o,height:a,bottom:l,right:s,left:t,top:n})})):i(new Error("getBoundingClientRect cannot get nodeId of "+e)))},measureInWindow:function(e,t){return vt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?vt("measureInWindow",e,t):vt("measureInAppWindow",e,t)}});const St=new ge,kt=new Set,Et={exitApp(){P.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(P.callNative("DeviceEventModule","setListenBackPress",!0),kt.add(e),{remove(){Et.removeListener(e)}}),removeListener(e){kt.delete(e),0===kt.size&&P.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){St.addListener("hardwareBackPress",()=>{let e=!0;[...kt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&Et.exitApp()})}},xt=(Et.initEventListener(),Et);var Ct=Array.isArray,Nt=Object.keys,It=Object.prototype.hasOwnProperty;const Pt=setTimeout,_t=clearTimeout;var Lt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){We(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Pt,cancelTimeout:_t,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){B(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),B(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",J(e)),i.meta={component:{name:"Text"}},B(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=Ct(t),l=Ct(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=Nt(t);if((i=d.length)!==Nt(n).length)return!1;for(r=i;0!=r--;)if(!It.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),q(t)},removeChildFromContainer:function(e,t){e.removeChild(t),q(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=x(x({},t),{},{style:x(x({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const At=o()(x(x({},Lt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{flushSync:Rt}=At,{addEventListener:Tt,removeEventListener:zt,dispatchEvent:Ot,AsyncStorage:jt,Bridge:Ft,Device:Ht,HippyRegister:Mt}=O;var Dt=Object.freeze({__proto__:null,addEventListener:Tt,removeEventListener:zt,dispatchEvent:Ot,AsyncStorage:jt,BackAndroid:xt,Bridge:Ft,Clipboard:ke,Cookie:Ee,Device:Ht,HippyRegister:Mt,ImageLoader:Ne,NetworkInfo:Ae,UIManager:wt,flushSync:Rt});function Ut(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const Bt={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Wt="[-+]?\\d*\\.?\\d+",Vt={rgb:new RegExp("rgb"+Ut(Wt,Wt,Wt)),rgba:new RegExp("rgba"+Ut(Wt,Wt,Wt,Wt)),hsl:new RegExp("hsl"+Ut(Wt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Ut(Wt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Wt)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function $t(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function qt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Qt(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Kt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Qt(i,r,e+1/3),a=Qt(i,r,e),l=Qt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Gt(e){return(parseFloat(e)%360+360)%360/360}function Yt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Xt(e,t={}){if(Number.isInteger(e))return e;let n=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Vt.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Bt,e)?Bt[e]:(t=Vt.rgb.exec(e),Array.isArray(t)?($t(t[1])<<24|$t(t[2])<<16|$t(t[3])<<8|255)>>>0:(t=Vt.rgba.exec(e),t?($t(t[1])<<24|$t(t[2])<<16|$t(t[3])<<8|qt(t[4]))>>>0:(t=Vt.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Vt.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Vt.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Vt.hsl.exec(e),t?(255|Kt(Gt(t[1]),Yt(t[2]),Yt(t[3])))>>>0:(t=Vt.hsla.exec(e),t?(Kt(Gt(t[1]),Yt(t[2]),Yt(t[3]))|qt(t[4]))>>>0:null))))))))}(e);return t.platform||(t.platform="android"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function Jt(e,t){return Array.isArray(e)?e.map(e=>Xt(e,t)):[0]}class Zt extends Je{constructor(){super(),this.documentElement=new lt("document")}createElement(e){return new lt(e)}createElementNS(e,t){return new lt(`${e}:${t}`)}}Zt.createElement=Zt.prototype.createElement,Zt.createElementNS=Zt.prototype.createElementNS;const{createContainer:en,updateContainer:tn,getPublicRootInstance:nn,injectIntoDevTools:rn}=At,on=['%c[Hippy-React "2.16.1"]%c',"color: #61dafb","color: auto"];class an{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new Zt;this.rootContainer=en(t,0,!1,null)}static get Native(){return Dt}start(){Mt.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:o=(()=>{})}=this.config,{__instanceId__:a}=e;X(...on,"Start",t,"with rootViewId",a,e),this.rootContainer.containerInfo.nodeId=a,r&&ne(r),i&&function(e=!1){Y=e}(i),M(a,this.rootContainer);const s=l.a.createElement(n,e);return tn(s,this.rootContainer,null,o),nn(this.rootContainer)}}an.version="2.16.1";const ln={registerComponent(e,t){new an({appName:e,entryPage:t}).start()}};class sn extends l.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){bt(this.instance,"setPressed",[e])}setHotspot(e,t){bt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:o}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==o?void 0:o.color)&&(o.color=Xt(o.color)),l.a.createElement("div",x({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function un(e,t){let{style:n}=e,r=N(e,c);const i=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(i[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=J(r.children);else if("number"==typeof r.children)r.text=J(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=J(e),r.children=r.text)}return l.a.createElement("p",x({ref:t,nativeName:"Text",style:i},r))}un.displayName="Text";const cn=l.a.forwardRef(un);cn.displayName="Text";var fn=Object.freeze({__proto__:null,default:cn});class dn extends l.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=xe(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:i,source:o,sources:a,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:o,sources:a});"ios"===Ht.platform.OS?h.length&&(p.source=h.map(e=>({uri:e}))):"android"===Ht.platform.OS&&(1===h.length?[p.src]=h:h.length>1&&(p.srcs=h)),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=ie(p.defaultSource));const m=x({},n);return this.handleTintColor(m,c,d),p.style=m,t?l.a.createElement(sn,{style:n},l.a.createElement("img",x(x({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):l.a.createElement("img",x(x({},p),{},{nativeName:"Image",alt:"",ref:i}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>ie(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}dn.prefetch=Ce;class pn{constructor(){this.Value=pn.Value}static Value(e){return e}static timing(e,t){return new Oe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}pn.View=sn,pn.Text=fn,pn.Image=dn;const hn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function mn(e){return l.a.createElement("li",x({nativeName:"ListViewItem"},e))}class yn extends l.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){bt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?bt(this.instance,"collapsePullHeaderWithOptions",[e]):bt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return l.a.createElement("div",x({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class gn extends l.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){bt(this.instance,"expandPullFooter",[])}collapsePullFooter(){bt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return l.a.createElement("div",x({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}const bn={onDisappear:"onDisAppear"},vn={onDisappear:"onDisappear"};class wn extends l.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}static convertName(e){return"android"===Ht.platform.OS&&bn[e]?bn[e]:"ios"===Ht.platform.OS&&vn[e]?vn[e]:e}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&bt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&bt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:i,renderPullFooter:o,getRowType:a,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:b,onFooterPulling:v,onFooterReleased:w,onAppear:S,onDisappear:k,onWillAppear:E,onWillDisappear:C}=e,I=N(e,h),P=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,b,u),N=this.getPullFooter(o,v,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[wn.convertName(r)]=()=>{n(e)})}),n&&P.push(l.a.createElement(mn,x({},t),n))}h&&P.unshift(h),N&&P.push(N),"function"==typeof m&&Object.assign(I,{rowShouldSticky:!0});const _=[S,k,E,C];I.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===Ht.platform.OS&&(I.numberOfRows=P.length),void 0!==p&&(I.initialListSize=p),I.style=x({overflow:"scroll"},n)}return l.a.createElement("ul",x({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},I),P.length?P:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,o={};return"function"==typeof r&&(o=r()),"function"==typeof e&&(i=l.a.createElement(yn,{style:o,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,o={};return"function"==typeof r&&(o=r()),"function"==typeof e&&(i=l.a.createElement(gn,{style:o,key:"pull-footer",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),i}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}wn.defaultProps={numberOfRows:0};class Sn extends l.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){bt(this.instance,"startRefresh",null)}refreshCompleted(){bt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return l.a.createElement("div",x({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),l.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class kn{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new an({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),bt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),bt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=N(e.initialRoute,g),r=N(e,y);return r.initialRoute=n,l.a.createElement("div",x({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function xn(e){return l.a.createElement("div",x(x({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class Cn extends l.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&bt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&bt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,b);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),l.a.createElement(xn,x({},t),e)}):i.push(l.a.createElement(xn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),l.a.createElement("div",x({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function Nn(){const e=_.platform.Localization;return!!e&&1===e.direction}const In={caretColor:"caret-color"};class Pn extends l.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{bt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return bt(this.instance,"setValue",[e]),e}focus(){bt(this.instance,"focusTextInput",[])}blur(){bt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{bt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){bt(this.instance,"clear",[])}render(){const e=x({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(In[t]&&(n=In[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),Nn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),l.a.createElement("div",x(x({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props,n=e;"android"===Ht.platform.OS&&(n.keyboardHeight/=Ht.screen.scale),"function"==typeof t&&t(n)}}const _n=Ht.window.scale;let Ln=Math.round(.4*_n)/_n;function An(e){return e}0===Ln&&(Ln=1/_n);var Rn=Object.freeze({__proto__:null,get hairlineWidth(){return Ln},create:An});const Tn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class zn extends l.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,bt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){bt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Tn.contentContainerHorizontal:Tn.contentContainerVertical,t],o=e?Object.assign({},Tn.baseHorizontal,r):Object.assign({},Tn.baseVertical,r);return e&&(o.flexDirection=Nn()?"row-reverse":"row"),l.a.createElement("div",x(x({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:o}),l.a.createElement(sn,{style:i},n))}}const On={modal:{position:"absolute",collapsable:!1},container:{position:"absolute",left:0,top:0}};class jn extends l.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Ht.platform.OS&&(this.eventSubscription=new me("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Ht.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:i}=this.props;if(!1===t)return null;const o={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),l.a.createElement("div",x({nativeName:"Modal",animationType:i,transparent:n,style:On.modal},this.props),l.a.createElement(sn,{style:[On.container,o]},e))}}jn.defaultProps={visible:!0};class Fn extends l.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:i,nextFocusDownId:o,nextFocusUpId:a,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=l.a.Children.only(i);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=o&>(o),b=a&>(a),v=s&>(s),w=u&>(u);let S=c;if("Text"!==y){const e=m.memoizedProps.style;S=x(x({},S),e)}if(Object.assign(S,h?d:f),"Text"===y)return l.a.createElement(sn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:v,nextFocusRightId:w,requestFocus:r,style:S,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return l.a.cloneElement(m,{nextFocusDownId:o,nextFocusUpId:a,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:S,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function Hn(e){return l.a.createElement("iframe",x({title:"hippy",nativeName:"WebView"},e))}let Mn;class Dn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Mn||(Mn=new me("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=x({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Mn.addCallback(this.onWebSocketEvent),P.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,P.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);P.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Mn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Un(e){return l.a.createElement("li",x({nativeName:"WaterfallItem"},e))}class Bn extends l.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){bt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){bt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:i=0,interItemSpacing:o=0,numberOfItems:a=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:b,onFooterPulling:w,onFooterReleased:S,containPullHeader:k=!1,containPullFooter:E=!1,containBannerView:C=!1}=e,I=x(x({},N(e,v)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:o,preloadItemNumber:s,contentInset:m,containPullHeader:k,containPullFooter:E,containBannerView:C}),P=[];if("function"==typeof n){const e=n();e&&(P.push(l.a.createElement(sn,{key:"bannerView"},l.a.cloneElement(e))),I.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,g,b),n=this.getPullFooter(f,w,S);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),P)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=l.a.createElement(yn,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=l.a.createElement(gn,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Dn;const{AsyncStorage:Wn,BackAndroid:Vn,Bridge:$n,Clipboard:qn,Cookie:Qn,Device:Kn,HippyRegister:Gn,ImageLoader:Yn,NetworkInfo:Xn,UIManager:Jn,flushSync:Zn}=Dt,{callNative:er,callNativeWithPromise:tr,callNativeWithCallbackId:nr,removeNativeCallback:rr}=$n,ir=null,or=e.ConsoleModule||e.console,ar=Kn.platform,lr=an,sr=an,ur=dn,cr=Gn,fr=ge,dr=me,pr={get:e=>Kn[e]},hr={get:()=>Kn.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ /** @license React v0.26.2 * react-reconciler.production.min.js * diff --git a/examples/ios-demo/res/vendor.ios.js b/examples/ios-demo/res/vendor.ios.js index b1eada37d0b..7c4b04f7d23 100644 --- a/examples/ios-demo/res/vendor.ios.js +++ b/examples/ios-demo/res/vendor.ios.js @@ -1,7 +1,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Animated",(function(){return _n})),n.d(t,"Animation",(function(){return Ge})),n.d(t,"AnimationSet",(function(){return Xe})),n.d(t,"AppRegistry",(function(){return En})),n.d(t,"AsyncStorage",(function(){return or})),n.d(t,"BackAndroid",(function(){return ar})),n.d(t,"Clipboard",(function(){return ur})),n.d(t,"ConsoleModule",(function(){return wr})),n.d(t,"Dimensions",(function(){return _r})),n.d(t,"Easing",(function(){return An})),n.d(t,"EventBus",(function(){return Oe})),n.d(t,"Focusable",(function(){return Zn})),n.d(t,"Hippy",(function(){return Er})),n.d(t,"HippyEventEmitter",(function(){return Le})),n.d(t,"HippyEventListener",(function(){return _e})),n.d(t,"HippyRegister",(function(){return fr})),n.d(t,"Image",(function(){return Pn})),n.d(t,"ImageBackground",(function(){return xr})),n.d(t,"ImageLoaderModule",(function(){return dr})),n.d(t,"ListView",(function(){return jn})),n.d(t,"ListViewItem",(function(){return Ln})),n.d(t,"Modal",(function(){return Jn})),n.d(t,"Navigator",(function(){return Hn})),n.d(t,"NetInfo",(function(){return pr})),n.d(t,"NetworkModule",(function(){return sr})),n.d(t,"PixelRatio",(function(){return Ar})),n.d(t,"Platform",(function(){return Sr})),n.d(t,"PullFooter",(function(){return Tn})),n.d(t,"PullHeader",(function(){return Rn})),n.d(t,"RNfqb",(function(){return Cr})),n.d(t,"RNfqbEventEmitter",(function(){return Ir})),n.d(t,"RNfqbEventListener",(function(){return Pr})),n.d(t,"RNfqbRegister",(function(){return Nr})),n.d(t,"RefreshWrapper",(function(){return Fn})),n.d(t,"ScrollView",(function(){return Yn})),n.d(t,"StyleSheet",(function(){return Kn})),n.d(t,"Text",(function(){return Nn})),n.d(t,"TextInput",(function(){return Vn})),n.d(t,"TimerModule",(function(){return kr})),n.d(t,"UIManagerModule",(function(){return hr})),n.d(t,"View",(function(){return Cn})),n.d(t,"ViewPager",(function(){return Un})),n.d(t,"WaterfallView",(function(){return ir})),n.d(t,"WebSocket",(function(){return nr})),n.d(t,"WebView",(function(){return er})),n.d(t,"callNative",(function(){return vr})),n.d(t,"callNativeWithCallbackId",(function(){return gr})),n.d(t,"callNativeWithPromise",(function(){return yr})),n.d(t,"colorParse",(function(){return mn})),n.d(t,"default",(function(){return Sn})),n.d(t,"flushSync",(function(){return mr})),n.d(t,"removeNativeCallback",(function(){return br}));var i=n("./node_modules/@hippy/react-reconciler/index.js"),o=n.n(i),a=n("./node_modules/react/index.js"),l=n.n(a),u=["children"],s=["collapsable","style"],c=["style"],f=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],d=["children"],p=["children"],h=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getHeaderStyle","getFooterStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],m=["children"],v=["component"],y=["initialRoute"],g=["children","onPageScrollStateChanged"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(){C=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),N(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return x(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=M(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},C.apply(this,arguments)}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}function N(e,t){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return o}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||e.didTimeout)&&function e(t){"number"==typeof t?ne(t):t&&(ne(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var ae={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},le=new RegExp(/^\d+$/),ue=!1;function se(){var e;ve()&&(e=console).log.apply(e,arguments)}function ce(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16))}))}var fe=new RegExp("^on.+Capture$");var de=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pe(e){if("number"==typeof e)return e;if("string"==typeof e&&de.test(e))try{return parseFloat(e)}catch(t){return e}return e}function he(e){return"[object Function]"===Object.prototype.toString.call(e)}function me(e){e}function ve(){return!1}function ye(){return ue}function ge(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}function be(e){return 5===e}var ke=function(){function e(t){R(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return z(e,[{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}},{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"notifyEvent",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0)for(var l,u=!1,s=re(n);!u&&void 0!==(l=r.shift());)try{var c=l,f=c.eventName,d=c.currentTarget,p=c.listener,h=c.isCapture,m=new we(f,d,s);Object.assign(m,t),h?(p(m),m.bubbles||(u=!0)):("boolean"!=typeof(u=p(m))&&(u=!ye()),m.bubbles||(u=!0))}catch(e){console.error(e)}}(r,e,o):function(e,t,n){var r=!1,i=n,o=e,a=re(n);do{if(xe(o=Ce(o,i),i))try{var l=re(i),u=new we(o,l,a);Object.assign(u,t),"boolean"!=typeof(r=i.memoizedProps[o](u))&&(r=!ye()),u.bubbles||(r=!0)}catch(e){console.error(e)}if(!1===r)for(i=i.return;i&&!be(i.tag);)i=i.return}while(!r&&i)}(r,e,o)}}},receiveUIComponentEvent:function(e){if(se.apply(void 0,Ee.concat(["receiveUIComponentEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=L(e,3),n=t[0],r=t[1],i=t[2];if("number"==typeof n&&"string"==typeof r){var o=ie(n);o&&xe(r,o)&&o.memoizedProps[r](i)}}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Ie);var Pe=function(){function e(t,n){R(this,e),this.callback=t,this.bindListener=n}return z(e,[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}]),e}(),_e=function(){function e(t){R(this,e),this.eventName=t,this.listenerIdList=[]}return z(e,[{key:"unregister",value:function(){var e=Ie.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for ".concat(this.eventName));for(var t=this.listenerIdList.length,n=0;n1?n-1:0),i=1;i=0?mn(t):t}var Ge=function(){function e(t){var n;R(this,e);var r=0;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{var i=t.startValue;r=Ke(t.valueType,i)}var o=Ke(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=o||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=qe(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animationId=Jt.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return z(e,[{key:"removeEventListener",value:function(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}},{key:"start",value:function(){var e=this;this.removeEventListener();var t="onAnimation";"android"===Zt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Qe.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Qe.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Qe.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Qe.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Jt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),Jt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Jt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Jt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"updateAnimation",value:function(t){var n=this;if("object"!==M(t))throw new TypeError("Invalid arguments");if("string"==typeof t.mode&&t.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(t).forEach((function(r){var i=t[r];if("startValue"===r){var o=0;if(t.startValue instanceof e)o={animationId:t.startValue.animationId};else{var a=t.startValue;o=Ke(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=qe(t.repeatCount||0):Object.defineProperty(n,r,{value:i})})),Jt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Ke(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),e}(),Ye=new Le,Xe=function(){function e(t){var n=this;R(this,e),this.animationList=[],t.children.forEach((function(e){n.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animationId=Jt.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:qe(t.repeatCount||0),children:this.animationList,virtual:t.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return z(e,[{key:"removeEventListener",value:function(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}},{key:"start",value:function(){var e=this;this.removeEventListener();var t="onAnimation";"android"===Zt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ye.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ye.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ye.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ye.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Jt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),this.animationList.forEach((function(e){return Number.isInteger(e.animationId)&&Jt.callNative("AnimationModule","destroyAnimation",e.animationId)})),Jt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Jt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Jt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),e}(),Je=["%c[native]%c","color: red","color: auto"],Ze={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},et=!0,tt=[];function nt(e){(function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(et)if(et=!1,0!==tt.length){var t=Z();Nt(),e?(nt(t),It(),tt=[],et=!0):Promise.resolve().then((function(){nt(t),It(),tt=[],et=!0}))}else et=!0}function it(e){var t=e.attributes;t.children;return A(t,u)}function ot(e,t){var n;if(!t.nativeName)return null;if(t.meta.skipAddToDom)return null;if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var r={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,index:t.index,name:t.nativeName,props:P(P({},it(t)),{},{style:t.style}),tagName:t.nativeName};return r}function at(e,t,n,r){var i=[],o=n;return void 0===o&&t&&t.parentNode&&(o=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((function(t){var n=ot(e,t);n&&i.push(n),"function"==typeof r&&r(t)}),o),i}function lt(e){return!!H&&e instanceof H.containerInfo.constructor}function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(e&&t&&!t.meta.skipAddToDom){var r=Z(),i=lt(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){var a=at(r,t,n,(function(e){e.isMounted||(e.isMounted=!0)}));tt.push({type:Ze.createNode,nodes:a})}}}function st(e,t,n){if(t&&!t.meta.skipAddToDom){t.isMounted=!1,t.index=n;var r=Z(),i=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r,index:t.index}];tt.push({type:Ze.deleteNode,nodes:i})}}function ct(e){if(e.isMounted){var t=ot(Z(),e);t&&tt.push({type:Ze.updateNode,nodes:[t]})}}var ft=0;var dt=function(){function e(){R(this,e),this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=((ft+=1)%10==0&&(ft+=1),ft)}return z(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"isMounted",get:function(){return this.mounted},set:function(e){this.mounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),ut(this,e,n)}}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1),st(0,e,n);var r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),ut(this,e,r)}}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.childNodes.push(e),ut(this,e,this.childNodes.length-1)}}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.meta.skipAddToDom){if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),st(0,e,t)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0;this.index=this.parentNode?n:0,e(this),this.childNodes.length&&this.childNodes.forEach((function(n,r){t.traverseChildren.call(n,e,r)}))}}]),e}(),pt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ht={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},mt="turn",vt="rad",yt="deg";function gt(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=C(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(Array.isArray(n)){var r="180",i=L(n,3),o=i[0],a=i[1],l=i[2];return a&&l?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt,n=parseFloat(e),r=e||"",i=e.split("."),o=L(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case mt:r="".concat((360*n).toFixed(2));break;case vt:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,l):o&&void 0!==ht[o]&&(r=ht[o]),r}}function bt(e){var t=L((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:mn(n)}:void 0:{color:mn(n)}}function kt(e){var t;return t=e,fe.test(t)&&(e=e.replace("Capture","")),ae[e]?ae[e][1]:e}var wt=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.events={},r.tagName=e,r}return z(n,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setStyleAttribute",value:function(e){var t=this;this.style={};var n=e;if(!Array.isArray(n)&&Object.hasOwnProperty.call(n,0)){var r=[],i={};Object.keys(n).forEach((function(e){var t;t=e,le.test(t)?r.push(n[e]):i[e]=n[e]})),n=[].concat(r,[i])}Array.isArray(n)||(n=[n]);var o={};n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){o=P(P({},o),e)})):"object"===M(e)&&e&&(o=P(P({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(pt,e)&&(e=pt[e]),"transform"===e){var r={};if(!Array.isArray(n))throw new TypeError("transform only support array args");n.forEach((function(e){Object.keys(e).forEach((function(t){var n=e[t];n instanceof Ge||n instanceof Xe?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof Ge||n instanceof Xe)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=vn(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=mn(n);else if("fontWeight"===e&&n)t.style[e]="string"!=typeof n?n.toString():n;else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=gt(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var o=bt(e);o&&i.push(o)}}else{var a=bt(e);a&&i.push(a)}})),n.linearGradient.colorStopList=i}else n[e]=ge(t);return n}(e,n,t.style);else if("textShadowOffset"===e){var a=n||{},l=a.x,u=void 0===l?0:l,s=a.width,c=void 0===s?0:s,f=a.y,d=void 0===f?0:f,p=a.height,h=void 0===p?0:p;t.style[e]={width:u||c,height:d||h}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?t.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,n,t.style):t.style[e]=n}))}},{key:"setAttributes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(t)&&t.length>0&&(t.forEach((function(t){if(Array.isArray(t)){var n=L(t,2),r=n[0],i=n[1];e.setAttribute(r,i,{notToNative:!0})}})),ct(this))}},{key:"parseAnimationStyleProp",value:function(e){var t=!1;Object.keys(e).some((function(n){var r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(var i=0;i=0},action:function(){return t===n.id||(n.id=t,function(e){if(e.isMounted){var t=at(Z(),e);tt.push({type:Ze.updateNode,nodes:t})}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ce(t),!1}},{match:function(){return["text"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==M(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=kt(e);n.attributes[r]=!0,n.events["".concat(r)]=!0}else{n.attributes[e]=t;var i=kt(e);!0===n.events["".concat(i)]&&"function"!=typeof t&&(n.attributes[i]=!1,delete n.events["".concat(i)])}return!1}}].some((function(e){return!!e.match()&&(r=e.action(),!0)})),r}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&ct(this));var r=this.parseAttributeProp(e,t);if(r)return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ct(this)}catch(e){}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==t){var r=t,i=e;Object.prototype.hasOwnProperty.call(pt,e)&&(i=pt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?vn(r):i.toLowerCase().indexOf("color")>-1?mn(r):pe(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ct(this))}else delete this.style[e]}},{key:"setNativeProps",value:function(e){var t=this;if(e){var n=e.style;if(n){var r=n;Object.keys(r).forEach((function(e){t.setStyle(e,r[e],!0)})),ct(this),rt(!0)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ce(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(dt),St=$.createNode,Et=$.updateNode,Ct=$.deleteNode,xt=$.flushBatch,Nt=$.startBatch,It=$.endBatch,Pt=$.sendRenderError,_t=function(e){return ee((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function At(e){if(e instanceof wt)return e;if(!e)return null;var t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){for(var n=t.child;n&&!(n.stateNode instanceof wt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function Lt(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=ee((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=At(t);return r?r.nodeId:0}return t.nodeId}function Rt(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=At(e);i&&(r=i.nodeId,n=i.nativeName)}if(!n)throw new Error("callUIFunction is calling a unnamed component");if(!r)throw new Error("callUIFunction is calling a component have no nodeId");for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){te(o,e.nodeId);var a=Object.keys(t||{});if(0!==a.length){var l=a.map((function(e){return[e,t[e]]}));e.setAttributes(l)}},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var o=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),te(i,o.nodeId),o},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",ce(e)),i.meta={component:{name:"Text"}},te(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(n).forEach((function(e){var t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)})),Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==M(t)&&"object"==M(n)){var r,i,o,a=Dt(t),l=Dt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=t instanceof Date,s=n instanceof Date;if(u!=s)return!1;if(u&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=Ut(t);if((i=d.length)!==Ut(n).length)return!1;for(r=i;0!=r--;)if(!Bt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}})),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),oe(t)},removeChildFromContainer:function(e,t){e.removeChild(t),oe(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=P(P({},t),{},{style:P(P({},t.style),{},{display:"flex"})});Object.keys(n).forEach((function(t){return e.setAttribute(t,n[t])}))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),qt=o()(P(P({},$t),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),Qt=qt.flushSync,Kt=Y.addEventListener,Gt=Y.removeEventListener,Yt=Y.dispatchEvent,Xt=Y.AsyncStorage,Jt=Y.Bridge,Zt=Y.Device,en=Y.HippyRegister,tn=Object.freeze({__proto__:null,addEventListener:Kt,removeEventListener:Gt,dispatchEvent:Yt,AsyncStorage:Xt,BackAndroid:Ht,Bridge:Jt,Clipboard:je,Cookie:Fe,Device:Zt,HippyRegister:en,ImageLoader:De,NetworkInfo:$e,UIManager:zt,flushSync:Qt});function nn(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t}function sn(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function cn(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function fn(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=cn(i,r,e+1/3),a=cn(i,r,e),l=cn(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function dn(e){return(parseFloat(e)%360+360)%360/360}function pn(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function hn(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ln.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(rn,e)?rn[e]:(t=ln.rgb.exec(e),Array.isArray(t)?(un(t[1])<<24|un(t[2])<<16|un(t[3])<<8|255)>>>0:(t=ln.rgba.exec(e))?(un(t[1])<<24|un(t[2])<<16|un(t[3])<<8|sn(t[4]))>>>0:(t=ln.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=ln.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=ln.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ln.hsl.exec(e))?(255|fn(dn(t[1]),pn(t[2]),pn(t[3])))>>>0:(t=ln.hsla.exec(e))?(fn(dn(t[1]),pn(t[2]),pn(t[3]))|sn(t[4]))>>>0:null))}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=hn(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function vn(e,t){return Array.isArray(e)?e.map((function(e){return mn(e,t)})):[0]}var yn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.call(this)).documentElement=new wt("document"),e}return z(n,[{key:"createElement",value:function(e){return new wt(e)}},{key:"createElementNS",value:function(e,t){return new wt("".concat(e,":").concat(t))}}]),n}(dt);yn.createElement=yn.prototype.createElement,yn.createElementNS=yn.prototype.createElementNS;var gn=qt.createContainer,bn=qt.updateContainer,kn=qt.getPublicRootInstance,wn=(qt.injectIntoDevTools,['%c[Hippy-React "2.16.0"]%c',"color: #61dafb","color: auto"]),Sn=function(){function e(t){if(R(this,e),!t.appName||!t.entryPage)throw new TypeError("Invalid arguments");this.config=t,this.regist=this.start,this.render=this.render.bind(this);var n=new yn;this.rootContainer=gn(n,0,!1,null)}return z(e,[{key:"start",value:function(){en.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,i=t.silent,o=void 0!==i&&i,a=t.bubbles,u=void 0!==a&&a,s=t.callback,c=void 0===s?function(){}:s,f=e.__instanceId__;se.apply(void 0,wn.concat(["Start",n,"with rootViewId",f,e])),this.rootContainer.containerInfo.nodeId=f,o&&me(o),u&&function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ue=e}(u),J(f,this.rootContainer);var d=l.a.createElement(r,e);return bn(d,this.rootContainer,null,c),kn(this.rootContainer)}}],[{key:"Native",get:function(){return tn}}]),e}();Sn.version="2.16.0";var En={registerComponent:function(e,t){new Sn({appName:e,entryPage:t}).start()}},Cn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"setPressed",value:function(e){Rt(this.instance,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Rt(this.instance,"setHotspot",[e,t])}},{key:"render",value:function(){var e=this,t=this.props,n=t.collapsable,r=t.style,i=void 0===r?{}:r,o=A(t,s),a=i,u=o.nativeBackgroundAndroid;return"boolean"==typeof n&&(a.collapsable=n),void 0!==(null==u?void 0:u.color)&&(u.color=mn(u.color)),l.a.createElement("div",P({ref:function(t){e.instance=t},nativeName:"View",style:a},o))}}]),n}(l.a.Component);function xn(e,t){var n=e.style,r=A(e,c),i=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===M(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(i[0].color="#000"):"object"===M(n)&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ce(r.children);else if("number"==typeof r.children)r.text=ce(r.children.toString());else if(Array.isArray(r.children)){var o=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");o&&(r.text=ce(o),r.children=r.text)}return l.a.createElement("p",P({ref:t,nativeName:"Text",style:i},r))}xn.displayName="Text";var Nn=l.a.forwardRef(xn);Nn.displayName="Text";var In=Object.freeze({__proto__:null,default:Nn}),Pn=function(e){x(n,e);var t=k(n);function n(){return R(this,n),t.apply(this,arguments)}return z(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,i=e.imageRef,o=e.source,a=e.sources,u=e.src,s=e.srcs,c=e.tintColor,d=e.tintColors,p=A(e,f),h=this.getImageUrls({src:u,srcs:s,source:o,sources:a});if("ios"===Zt.platform.OS)h.length&&(p.source=h.map((function(e){return{uri:e}})));else if("android"===Zt.platform.OS)if(1===h.length){var m=L(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=ge(p.defaultSource));var v=P({},n);return this.handleTintColor(v,c,d),p.style=v,t?l.a.createElement(Cn,{style:n},l.a.createElement("img",P(P({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):l.a.createElement("img",P(P({},p),{},{nativeName:"Image",alt:"",ref:i}))}},{key:"getImageUrls",value:function(e){var t=e.src,n=e.srcs,r=e.source,i=e.sources,o=[];if("string"==typeof t&&o.push(t),Array.isArray(n)&&(o=[].concat(O(o),O(n))),r)if("string"==typeof r)o.push(r);else if("object"===M(r)&&null!==r){var a=r.uri;a&&o.push(a)}return i&&Array.isArray(i)&&i.forEach((function(e){"string"==typeof e?o.push(e):"object"===M(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return ge(e)}))),o}},{key:"handleTintColor",value:function(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}],[{key:"resizeMode",get:function(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}},{key:"getSize",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");var r=Me(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(l.a.Component);Pn.prefetch=He;var _n=function(){function e(){R(this,e),this.Value=e.Value}return z(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new Ge({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();_n.View=Cn,_n.Text=In,_n.Image=Pn;var An={step0:function(e){return e>0?1:0},step1:function(e){return e>=1?1:0},linear:function(){return"linear"},ease:function(){return"ease"},quad:function(e){return Math.pow(e,2)},cubic:function(e){return Math.pow(e,3)},poly:function(e){return function(t){return Math.pow(t,e)}},sin:function(e){return 1-Math.cos(e*Math.PI/2)},circle:function(e){return 1-Math.sqrt(1-e*e)},exp:function(e){return Math.pow(2,10*(e-1))},elastic:function(){return"elastic"},back:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((e+1)*t-e)}},bounce:function(e){var t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bezier:function(){return"bezier"},in:function(){return"ease-in"},out:function(){return"ease-out"},inOut:function(){return"ease-in-out"}};function Ln(e){return l.a.createElement("li",P({nativeName:"ListViewItem"},e))}var Rn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"expandPullHeader",value:function(){Rt(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){void 0!==e?Rt(this.instance,"collapsePullHeaderWithOptions",[e]):Rt(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=A(t,d);return l.a.createElement("div",P({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(l.a.Component),Tn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"expandPullFooter",value:function(){Rt(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){Rt(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=A(t,p);return l.a.createElement("div",P({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(l.a.Component),zn={onDisappear:"onDisAppear"},On={onDisappear:"onDisappear"},jn=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(S(r)),r.state={initialListReady:!1},r}return z(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Rt(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Rt(this.instance,"scrollToContentOffset",[e,t,n])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,i=t.style,o=t.renderRow,a=t.renderPullHeader,u=t.renderPullFooter,s=t.getRowType,c=t.getRowStyle,f=t.getHeaderStyle,d=t.getFooterStyle,p=t.getRowKey,m=t.dataSource,v=t.initialListSize,y=t.rowShouldSticky,g=t.onRowLayout,b=t.onHeaderPulling,k=t.onHeaderReleased,w=t.onFooterPulling,S=t.onFooterReleased,E=t.onAppear,C=t.onDisappear,x=t.onWillAppear,N=t.onWillDisappear,I=A(t,h),_=[];if("function"==typeof o){var L=this.state.initialListReady,R=this.props.numberOfRows,T=this.getPullHeader(a,b,k,f),z=this.getPullFooter(u,w,S,d);!R&&m&&(R=m.length),L||(R=Math.min(R,v||10));for(var O=function(t){var r={},i=void 0;i=m?o(m[t],null,t):o(t),e.handleRowProps(r,t,{getRowKey:p,getRowStyle:c,getRowType:s,onRowLayout:g,rowShouldSticky:y}),[{func:E,name:"onAppear"},{func:C,name:"onDisappear"},{func:x,name:"onWillAppear"},{func:N,name:"onWillDisappear"}].forEach((function(e){var i=e.func,o=e.name;"function"==typeof i&&(r[n.convertName(o)]=function(){i(t)})})),i&&_.push(l.a.createElement(Ln,P({},r),i))},j=0;j0&&(this.size-=1),e.data}},{key:"clear",value:function(){this.top=null,this.size=0}},{key:"displayAll",value:function(){var e=[];if(null===this.top)return e;for(var t=this.top,n=0,r=this.size;n1&&this.pop({animated:!0})}},{key:"push",value:function(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName])new Sn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),Rt(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),Rt(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,A(n,v)),i=A(t,y);return i.initialRoute=r,l.a.createElement("div",P({nativeName:"Navigator",ref:function(t){e.instance=t}},i))}}]),n}(l.a.Component);function Dn(e){return l.a.createElement("div",P(P({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Un=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(S(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(S(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(S(r)),r}return z(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&Rt(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&Rt(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,i=A(t,g),o=[];return Array.isArray(n)?o=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),l.a.createElement(Dn,P({},t),e)})):o.push(l.a.createElement(Dn,null,n)),"function"==typeof r&&(i.onPageScrollStateChanged=this.onPageScrollStateChanged),l.a.createElement("div",P({nativeName:"ViewPager",ref:function(t){e.instance=t}},i),o)}}]),n}(l.a.Component);function Bn(){var e=V.platform.Localization;return!!e&&1===e.direction}var Wn={caretColor:"caret-color"},Vn=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r.onChangeText=r.onChangeText.bind(S(r)),r.onKeyboardWillShow=r.onKeyboardWillShow.bind(S(r)),r}return z(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.autoFocus;this._lastNativeText=t,n&&this.focus()}},{key:"componentWillUnmount",value:function(){this.blur()}},{key:"getValue",value:function(){var e=this;return new Promise((function(t){Rt(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return Rt(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){Rt(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){Rt(this.instance,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){Rt(e.instance,"isFocused",(function(e){return t(e.value)}))}))}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}},{key:"clear",value:function(){Rt(this.instance,"clear",[])}},{key:"render",value:function(){var e=this,t=P({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach((function(n){var r=n,i=e.props[n];"string"==typeof e.props[n]&&(Wn[n]&&(r=Wn[n]),Array.isArray(t.style)?t.style.push({[r]:i}):t.style&&"object"===M(t.style)?t.style[r]=i:t.style={[r]:i},delete t[n])})),Bn()&&(t.style?"object"!==M(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),l.a.createElement("div",P(P({nativeName:"TextInput"},t),{},{ref:function(t){e.instance=t},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}},{key:"onChangeText",value:function(e){var t=this.props.onChangeText;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}},{key:"onKeyboardWillShow",value:function(e){var t=this.props.onKeyboardWillShow,n=e;"android"===Zt.platform.OS&&(n.keyboardHeight/=Zt.screen.scale),"function"==typeof t&&t(n)}}]),n}(l.a.Component),$n=Zt.window.scale,qn=Math.round(.4*$n)/$n;function Qn(e){return e}0===qn&&(qn=1/$n);var Kn=Object.freeze({__proto__:null,get hairlineWidth(){return qn},create:Qn}),Gn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},Yn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"object"===M(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,Rt(this.instance,"scrollTo",[r,i,o])}},{key:"scrollToWithDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;Rt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,i=t.children,o=t.style,a=[n?Gn.contentContainerHorizontal:Gn.contentContainerVertical,r],u=n?Object.assign({},Gn.baseHorizontal,o):Object.assign({},Gn.baseVertical,o);return n&&(u.flexDirection=Bn()?"row-reverse":"row"),l.a.createElement("div",P(P({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props),{},{style:u}),l.a.createElement(Cn,{style:a},i))}}]),n}(l.a.Component),Xn={modal:{position:"absolute",collapsable:!1},container:{position:"absolute",left:0,top:0}},Jn=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).eventSubscription=null,r}return z(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===Zt.platform.OS&&(this.eventSubscription=new _e("modalDismissed"),this.eventSubscription.addCallback((function(t){var n=e.props,r=n.primaryKey,i=n.onDismiss;t.primaryKey===r&&"function"==typeof i&&i()})))}},{key:"componentWillUnmount",value:function(){"ios"===Zt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,i=e.animated,o=this.props.animationType;if(!1===n)return null;var a={backgroundColor:r?"transparent":"white"};return o||(o="none",i&&(o="slide")),l.a.createElement("div",P({nativeName:"Modal",animationType:o,transparent:r,style:Xn.modal},this.props),l.a.createElement(Cn,{style:[Xn.container,a]},t))}}]),n}(l.a.Component);Jn.defaultProps={visible:!0};var Zn=function(e){x(n,e);var t=k(n);function n(e){var r;R(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(S(r)),r}return z(n,[{key:"render",value:function(){var e,t,n,r,i=this.props,o=i.requestFocus,a=i.children,u=i.nextFocusDownId,s=i.nextFocusUpId,c=i.nextFocusLeftId,f=i.nextFocusRightId,d=i.style,p=i.noFocusStyle,h=i.focusStyle,m=i.onClick,v=this.state.isFocus,y=l.a.Children.only(a);(null===(t=null===(e=null==y?void 0:y.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?r=y.child.memoizedProps.nativeName:(null===(n=null==y?void 0:y.type)||void 0===n?void 0:n.displayName)&&(r=y.type.displayName);var g=u&&Lt(u),b=s&&Lt(s),k=c&&Lt(c),w=f&&Lt(f),S=d;if("Text"!==r){var E=y.memoizedProps.style;S=P(P({},S),E)}if(Object.assign(S,v?h:p),"Text"===r)return l.a.createElement(Cn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:k,nextFocusRightId:w,requestFocus:o,style:S,onClick:m,onFocus:this.handleFocus},y);var C=y.memoizedProps.children;return l.a.cloneElement(y,{nextFocusDownId:u,nextFocusUpId:s,nextFocusLeftId:c,nextFocusRightId:f,requestFocus:o,onClick:m,focusable:!0,children:C,style:S,onFocus:this.handleFocus})}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;"function"==typeof t&&t(e),this.state.isFocus!==e.focus&&this.setState({isFocus:e.focus})}}]),n}(l.a.Component);function er(e){return l.a.createElement("iframe",P({title:"hippy",nativeName:"WebView"},e))}var tr,nr=function(){function e(t,n,r){var i=this;if(R(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),tr||(tr=new _e("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=P({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)o["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocols");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=tr.addCallback(this.onWebSocketEvent),W.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return z(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,W.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(M(e)));W.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===M(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,tr.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();function rr(e){return l.a.createElement("li",P({nativeName:"WaterfallItem"},e))}var ir=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(S(r)),r}return z(n,[{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;Rt(this.instance,"scrollToIndex",[n,n,i])}},{key:"scrollToContentOffset",value:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,o=e.animated,a=void 0===o||o;Rt(this.instance,"scrollToContentOffset",[n,i,a])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=void 0===n?{}:n,i=t.renderBanner,o=t.numberOfColumns,a=void 0===o?2:o,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,v=t.renderItem,y=t.renderPullHeader,g=t.renderPullFooter,k=t.getItemType,w=t.getItemKey,S=t.getItemStyle,E=t.contentInset,C=void 0===E?{top:0,left:0,bottom:0,right:0}:E,x=t.onItemLayout,N=t.onHeaderPulling,I=t.onHeaderReleased,_=t.onFooterPulling,L=t.onFooterReleased,R=t.containPullHeader,T=void 0!==R&&R,z=t.containPullFooter,O=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,M=P(P({},A(t,b)),{},{style:r,numberOfColumns:a,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:T,containPullFooter:O,containBannerView:F}),H=[];if("function"==typeof i){var D=i();D&&(H.push(l.a.createElement(Cn,{key:"bannerView"},l.a.cloneElement(D))),M.containBannerView=!0)}if("function"==typeof v){for(var U=this.getPullHeader(y,N,I),B=this.getPullFooter(g,_,L),W=0;W0||e.didTimeout)&&function e(t){"number"==typeof t?ne(t):t&&(ne(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var ae={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},le=new RegExp(/^\d+$/),ue=!1;function se(){var e;ve()&&(e=console).log.apply(e,arguments)}function ce(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16))}))}var fe=new RegExp("^on.+Capture$");var de=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pe(e){if("number"==typeof e)return e;if("string"==typeof e&&de.test(e))try{return parseFloat(e)}catch(t){return e}return e}function he(e){return"[object Function]"===Object.prototype.toString.call(e)}function me(e){e}function ve(){return!1}function ye(){return ue}function ge(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}function be(e){return 5===e}var ke=function(){function e(t){R(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return z(e,[{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}},{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"notifyEvent",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0)for(var l,u=!1,s=re(n);!u&&void 0!==(l=r.shift());)try{var c=l,f=c.eventName,d=c.currentTarget,p=c.listener,h=c.isCapture,m=new we(f,d,s);Object.assign(m,t),h?(p(m),m.bubbles||(u=!0)):("boolean"!=typeof(u=p(m))&&(u=!ye()),m.bubbles||(u=!0))}catch(e){console.error(e)}}(r,e,o):function(e,t,n){var r=!1,i=n,o=e,a=re(n);do{if(xe(o=Ce(o,i),i))try{var l=re(i),u=new we(o,l,a);Object.assign(u,t),"boolean"!=typeof(r=i.memoizedProps[o](u))&&(r=!ye()),u.bubbles||(r=!0)}catch(e){console.error(e)}if(!1===r)for(i=i.return;i&&!be(i.tag);)i=i.return}while(!r&&i)}(r,e,o)}}},receiveUIComponentEvent:function(e){if(se.apply(void 0,Ee.concat(["receiveUIComponentEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=L(e,3),n=t[0],r=t[1],i=t[2];if("number"==typeof n&&"string"==typeof r){var o=ie(n);o&&xe(r,o)&&o.memoizedProps[r](i)}}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Ie);var Pe=function(){function e(t,n){R(this,e),this.callback=t,this.bindListener=n}return z(e,[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}]),e}(),_e=function(){function e(t){R(this,e),this.eventName=t,this.listenerIdList=[]}return z(e,[{key:"unregister",value:function(){var e=Ie.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for ".concat(this.eventName));for(var t=this.listenerIdList.length,n=0;n1?n-1:0),i=1;i=0?mn(t):t}var Ge=function(){function e(t){var n;R(this,e);var r=0;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{var i=t.startValue;r=Ke(t.valueType,i)}var o=Ke(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=o||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=qe(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animationId=Jt.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return z(e,[{key:"removeEventListener",value:function(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}},{key:"start",value:function(){var e=this;this.removeEventListener();var t="onAnimation";"android"===Zt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Qe.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Qe.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Qe.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Qe.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Jt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),Jt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Jt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Jt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"updateAnimation",value:function(t){var n=this;if("object"!==M(t))throw new TypeError("Invalid arguments");if("string"==typeof t.mode&&t.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(t).forEach((function(r){var i=t[r];if("startValue"===r){var o=0;if(t.startValue instanceof e)o={animationId:t.startValue.animationId};else{var a=t.startValue;o=Ke(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=qe(t.repeatCount||0):Object.defineProperty(n,r,{value:i})})),Jt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Ke(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),e}(),Ye=new Le,Xe=function(){function e(t){var n=this;R(this,e),this.animationList=[],t.children.forEach((function(e){n.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animationId=Jt.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:qe(t.repeatCount||0),children:this.animationList,virtual:t.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return z(e,[{key:"removeEventListener",value:function(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}},{key:"start",value:function(){var e=this;this.removeEventListener();var t="onAnimation";"android"===Zt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ye.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ye.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ye.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ye.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Jt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),this.animationList.forEach((function(e){return Number.isInteger(e.animationId)&&Jt.callNative("AnimationModule","destroyAnimation",e.animationId)})),Jt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Jt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Jt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),e}(),Je=["%c[native]%c","color: red","color: auto"],Ze={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},et=!0,tt=[];function nt(e){(function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(et)if(et=!1,0!==tt.length){var t=Z();Nt(),e?(nt(t),It(),tt=[],et=!0):Promise.resolve().then((function(){nt(t),It(),tt=[],et=!0}))}else et=!0}function it(e){var t=e.attributes;t.children;return A(t,u)}function ot(e,t){var n;if(!t.nativeName)return null;if(t.meta.skipAddToDom)return null;if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var r={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,index:t.index,name:t.nativeName,props:P(P({},it(t)),{},{style:t.style}),tagName:t.nativeName};return r}function at(e,t,n,r){var i=[],o=n;return void 0===o&&t&&t.parentNode&&(o=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((function(t){var n=ot(e,t);n&&i.push(n),"function"==typeof r&&r(t)}),o),i}function lt(e){return!!H&&e instanceof H.containerInfo.constructor}function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(e&&t&&!t.meta.skipAddToDom){var r=Z(),i=lt(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){var a=at(r,t,n,(function(e){e.isMounted||(e.isMounted=!0)}));tt.push({type:Ze.createNode,nodes:a})}}}function st(e,t,n){if(t&&!t.meta.skipAddToDom){t.isMounted=!1,t.index=n;var r=Z(),i=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r,index:t.index}];tt.push({type:Ze.deleteNode,nodes:i})}}function ct(e){if(e.isMounted){var t=ot(Z(),e);t&&tt.push({type:Ze.updateNode,nodes:[t]})}}var ft=0;var dt=function(){function e(){R(this,e),this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=((ft+=1)%10==0&&(ft+=1),ft)}return z(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"isMounted",get:function(){return this.mounted},set:function(e){this.mounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),ut(this,e,n)}}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1),st(0,e,n);var r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),ut(this,e,r)}}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.childNodes.push(e),ut(this,e,this.childNodes.length-1)}}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.meta.skipAddToDom){if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),st(0,e,t)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0;this.index=this.parentNode?n:0,e(this),this.childNodes.length&&this.childNodes.forEach((function(n,r){t.traverseChildren.call(n,e,r)}))}}]),e}(),pt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ht={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},mt="turn",vt="rad",yt="deg";function gt(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=C(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(Array.isArray(n)){var r="180",i=L(n,3),o=i[0],a=i[1],l=i[2];return a&&l?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt,n=parseFloat(e),r=e||"",i=e.split("."),o=L(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case mt:r="".concat((360*n).toFixed(2));break;case vt:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,l):o&&void 0!==ht[o]&&(r=ht[o]),r}}function bt(e){var t=L((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:mn(n)}:void 0:{color:mn(n)}}function kt(e){var t;return t=e,fe.test(t)&&(e=e.replace("Capture","")),ae[e]?ae[e][1]:e}var wt=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.events={},r.tagName=e,r}return z(n,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setStyleAttribute",value:function(e){var t=this;this.style={};var n=e;if(!Array.isArray(n)&&Object.hasOwnProperty.call(n,0)){var r=[],i={};Object.keys(n).forEach((function(e){var t;t=e,le.test(t)?r.push(n[e]):i[e]=n[e]})),n=[].concat(r,[i])}Array.isArray(n)||(n=[n]);var o={};n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){o=P(P({},o),e)})):"object"===M(e)&&e&&(o=P(P({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(pt,e)&&(e=pt[e]),"transform"===e){var r={};if(!Array.isArray(n))throw new TypeError("transform only support array args");n.forEach((function(e){Object.keys(e).forEach((function(t){var n=e[t];n instanceof Ge||n instanceof Xe?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof Ge||n instanceof Xe)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=vn(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=mn(n);else if("fontWeight"===e&&n)t.style[e]="string"!=typeof n?n.toString():n;else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=gt(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var o=bt(e);o&&i.push(o)}}else{var a=bt(e);a&&i.push(a)}})),n.linearGradient.colorStopList=i}else n[e]=ge(t);return n}(e,n,t.style);else if("textShadowOffset"===e){var a=n||{},l=a.x,u=void 0===l?0:l,s=a.width,c=void 0===s?0:s,f=a.y,d=void 0===f?0:f,p=a.height,h=void 0===p?0:p;t.style[e]={width:u||c,height:d||h}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?t.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,n,t.style):t.style[e]=n}))}},{key:"setAttributes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(t)&&t.length>0&&(t.forEach((function(t){if(Array.isArray(t)){var n=L(t,2),r=n[0],i=n[1];e.setAttribute(r,i,{notToNative:!0})}})),ct(this))}},{key:"parseAnimationStyleProp",value:function(e){var t=!1;Object.keys(e).some((function(n){var r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(var i=0;i=0},action:function(){return t===n.id||(n.id=t,function(e){if(e.isMounted){var t=at(Z(),e);tt.push({type:Ze.updateNode,nodes:t})}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ce(t),!1}},{match:function(){return["text"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==M(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=kt(e);n.attributes[r]=!0,n.events["".concat(r)]=!0}else{n.attributes[e]=t;var i=kt(e);!0===n.events["".concat(i)]&&"function"!=typeof t&&(n.attributes[i]=!1,delete n.events["".concat(i)])}return!1}}].some((function(e){return!!e.match()&&(r=e.action(),!0)})),r}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&ct(this));var r=this.parseAttributeProp(e,t);if(r)return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ct(this)}catch(e){}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==t){var r=t,i=e;Object.prototype.hasOwnProperty.call(pt,e)&&(i=pt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?vn(r):i.toLowerCase().indexOf("color")>-1?mn(r):pe(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ct(this))}else delete this.style[e]}},{key:"setNativeProps",value:function(e){var t=this;if(e){var n=e.style;if(n){var r=n;Object.keys(r).forEach((function(e){t.setStyle(e,r[e],!0)})),ct(this),rt(!0)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ce(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(dt),St=$.createNode,Et=$.updateNode,Ct=$.deleteNode,xt=$.flushBatch,Nt=$.startBatch,It=$.endBatch,Pt=$.sendRenderError,_t=function(e){return ee((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function At(e){if(e instanceof wt)return e;if(!e)return null;var t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){for(var n=t.child;n&&!(n.stateNode instanceof wt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function Lt(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=ee((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=At(t);return r?r.nodeId:0}return t.nodeId}function Rt(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=At(e);i&&(r=i.nodeId,n=i.nativeName)}if(!n)throw new Error("callUIFunction is calling a unnamed component");if(!r)throw new Error("callUIFunction is calling a component have no nodeId");for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){te(o,e.nodeId);var a=Object.keys(t||{});if(0!==a.length){var l=a.map((function(e){return[e,t[e]]}));e.setAttributes(l)}},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var o=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),te(i,o.nodeId),o},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",ce(e)),i.meta={component:{name:"Text"}},te(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(n).forEach((function(e){var t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)})),Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==M(t)&&"object"==M(n)){var r,i,o,a=Dt(t),l=Dt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=t instanceof Date,s=n instanceof Date;if(u!=s)return!1;if(u&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=Ut(t);if((i=d.length)!==Ut(n).length)return!1;for(r=i;0!=r--;)if(!Bt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}})),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),oe(t)},removeChildFromContainer:function(e,t){e.removeChild(t),oe(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=P(P({},t),{},{style:P(P({},t.style),{},{display:"flex"})});Object.keys(n).forEach((function(t){return e.setAttribute(t,n[t])}))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),qt=o()(P(P({},$t),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),Qt=qt.flushSync,Kt=Y.addEventListener,Gt=Y.removeEventListener,Yt=Y.dispatchEvent,Xt=Y.AsyncStorage,Jt=Y.Bridge,Zt=Y.Device,en=Y.HippyRegister,tn=Object.freeze({__proto__:null,addEventListener:Kt,removeEventListener:Gt,dispatchEvent:Yt,AsyncStorage:Xt,BackAndroid:Ht,Bridge:Jt,Clipboard:je,Cookie:Fe,Device:Zt,HippyRegister:en,ImageLoader:De,NetworkInfo:$e,UIManager:zt,flushSync:Qt});function nn(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t}function sn(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function cn(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function fn(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=cn(i,r,e+1/3),a=cn(i,r,e),l=cn(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function dn(e){return(parseFloat(e)%360+360)%360/360}function pn(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function hn(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ln.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(rn,e)?rn[e]:(t=ln.rgb.exec(e),Array.isArray(t)?(un(t[1])<<24|un(t[2])<<16|un(t[3])<<8|255)>>>0:(t=ln.rgba.exec(e))?(un(t[1])<<24|un(t[2])<<16|un(t[3])<<8|sn(t[4]))>>>0:(t=ln.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=ln.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=ln.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ln.hsl.exec(e))?(255|fn(dn(t[1]),pn(t[2]),pn(t[3])))>>>0:(t=ln.hsla.exec(e))?(fn(dn(t[1]),pn(t[2]),pn(t[3]))|sn(t[4]))>>>0:null))}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=hn(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function vn(e,t){return Array.isArray(e)?e.map((function(e){return mn(e,t)})):[0]}var yn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.call(this)).documentElement=new wt("document"),e}return z(n,[{key:"createElement",value:function(e){return new wt(e)}},{key:"createElementNS",value:function(e,t){return new wt("".concat(e,":").concat(t))}}]),n}(dt);yn.createElement=yn.prototype.createElement,yn.createElementNS=yn.prototype.createElementNS;var gn=qt.createContainer,bn=qt.updateContainer,kn=qt.getPublicRootInstance,wn=(qt.injectIntoDevTools,['%c[Hippy-React "2.16.1"]%c',"color: #61dafb","color: auto"]),Sn=function(){function e(t){if(R(this,e),!t.appName||!t.entryPage)throw new TypeError("Invalid arguments");this.config=t,this.regist=this.start,this.render=this.render.bind(this);var n=new yn;this.rootContainer=gn(n,0,!1,null)}return z(e,[{key:"start",value:function(){en.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,i=t.silent,o=void 0!==i&&i,a=t.bubbles,u=void 0!==a&&a,s=t.callback,c=void 0===s?function(){}:s,f=e.__instanceId__;se.apply(void 0,wn.concat(["Start",n,"with rootViewId",f,e])),this.rootContainer.containerInfo.nodeId=f,o&&me(o),u&&function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ue=e}(u),J(f,this.rootContainer);var d=l.a.createElement(r,e);return bn(d,this.rootContainer,null,c),kn(this.rootContainer)}}],[{key:"Native",get:function(){return tn}}]),e}();Sn.version="2.16.1";var En={registerComponent:function(e,t){new Sn({appName:e,entryPage:t}).start()}},Cn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"setPressed",value:function(e){Rt(this.instance,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Rt(this.instance,"setHotspot",[e,t])}},{key:"render",value:function(){var e=this,t=this.props,n=t.collapsable,r=t.style,i=void 0===r?{}:r,o=A(t,s),a=i,u=o.nativeBackgroundAndroid;return"boolean"==typeof n&&(a.collapsable=n),void 0!==(null==u?void 0:u.color)&&(u.color=mn(u.color)),l.a.createElement("div",P({ref:function(t){e.instance=t},nativeName:"View",style:a},o))}}]),n}(l.a.Component);function xn(e,t){var n=e.style,r=A(e,c),i=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===M(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(i[0].color="#000"):"object"===M(n)&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ce(r.children);else if("number"==typeof r.children)r.text=ce(r.children.toString());else if(Array.isArray(r.children)){var o=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");o&&(r.text=ce(o),r.children=r.text)}return l.a.createElement("p",P({ref:t,nativeName:"Text",style:i},r))}xn.displayName="Text";var Nn=l.a.forwardRef(xn);Nn.displayName="Text";var In=Object.freeze({__proto__:null,default:Nn}),Pn=function(e){x(n,e);var t=k(n);function n(){return R(this,n),t.apply(this,arguments)}return z(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,i=e.imageRef,o=e.source,a=e.sources,u=e.src,s=e.srcs,c=e.tintColor,d=e.tintColors,p=A(e,f),h=this.getImageUrls({src:u,srcs:s,source:o,sources:a});if("ios"===Zt.platform.OS)h.length&&(p.source=h.map((function(e){return{uri:e}})));else if("android"===Zt.platform.OS)if(1===h.length){var m=L(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=ge(p.defaultSource));var v=P({},n);return this.handleTintColor(v,c,d),p.style=v,t?l.a.createElement(Cn,{style:n},l.a.createElement("img",P(P({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):l.a.createElement("img",P(P({},p),{},{nativeName:"Image",alt:"",ref:i}))}},{key:"getImageUrls",value:function(e){var t=e.src,n=e.srcs,r=e.source,i=e.sources,o=[];if("string"==typeof t&&o.push(t),Array.isArray(n)&&(o=[].concat(O(o),O(n))),r)if("string"==typeof r)o.push(r);else if("object"===M(r)&&null!==r){var a=r.uri;a&&o.push(a)}return i&&Array.isArray(i)&&i.forEach((function(e){"string"==typeof e?o.push(e):"object"===M(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return ge(e)}))),o}},{key:"handleTintColor",value:function(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}],[{key:"resizeMode",get:function(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}},{key:"getSize",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");var r=Me(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(l.a.Component);Pn.prefetch=He;var _n=function(){function e(){R(this,e),this.Value=e.Value}return z(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new Ge({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();_n.View=Cn,_n.Text=In,_n.Image=Pn;var An={step0:function(e){return e>0?1:0},step1:function(e){return e>=1?1:0},linear:function(){return"linear"},ease:function(){return"ease"},quad:function(e){return Math.pow(e,2)},cubic:function(e){return Math.pow(e,3)},poly:function(e){return function(t){return Math.pow(t,e)}},sin:function(e){return 1-Math.cos(e*Math.PI/2)},circle:function(e){return 1-Math.sqrt(1-e*e)},exp:function(e){return Math.pow(2,10*(e-1))},elastic:function(){return"elastic"},back:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((e+1)*t-e)}},bounce:function(e){var t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bezier:function(){return"bezier"},in:function(){return"ease-in"},out:function(){return"ease-out"},inOut:function(){return"ease-in-out"}};function Ln(e){return l.a.createElement("li",P({nativeName:"ListViewItem"},e))}var Rn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"expandPullHeader",value:function(){Rt(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){void 0!==e?Rt(this.instance,"collapsePullHeaderWithOptions",[e]):Rt(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=A(t,d);return l.a.createElement("div",P({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(l.a.Component),Tn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"expandPullFooter",value:function(){Rt(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){Rt(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=A(t,p);return l.a.createElement("div",P({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(l.a.Component),zn={onDisappear:"onDisAppear"},On={onDisappear:"onDisappear"},jn=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(S(r)),r.state={initialListReady:!1},r}return z(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Rt(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Rt(this.instance,"scrollToContentOffset",[e,t,n])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,i=t.style,o=t.renderRow,a=t.renderPullHeader,u=t.renderPullFooter,s=t.getRowType,c=t.getRowStyle,f=t.getHeaderStyle,d=t.getFooterStyle,p=t.getRowKey,m=t.dataSource,v=t.initialListSize,y=t.rowShouldSticky,g=t.onRowLayout,b=t.onHeaderPulling,k=t.onHeaderReleased,w=t.onFooterPulling,S=t.onFooterReleased,E=t.onAppear,C=t.onDisappear,x=t.onWillAppear,N=t.onWillDisappear,I=A(t,h),_=[];if("function"==typeof o){var L=this.state.initialListReady,R=this.props.numberOfRows,T=this.getPullHeader(a,b,k,f),z=this.getPullFooter(u,w,S,d);!R&&m&&(R=m.length),L||(R=Math.min(R,v||15));for(var O=function(t){var r={},i=void 0;i=m?o(m[t],null,t):o(t),e.handleRowProps(r,t,{getRowKey:p,getRowStyle:c,getRowType:s,onRowLayout:g,rowShouldSticky:y}),[{func:E,name:"onAppear"},{func:C,name:"onDisappear"},{func:x,name:"onWillAppear"},{func:N,name:"onWillDisappear"}].forEach((function(e){var i=e.func,o=e.name;"function"==typeof i&&(r[n.convertName(o)]=function(){i(t)})})),i&&_.push(l.a.createElement(Ln,P({},r),i))},j=0;j0&&(this.size-=1),e.data}},{key:"clear",value:function(){this.top=null,this.size=0}},{key:"displayAll",value:function(){var e=[];if(null===this.top)return e;for(var t=this.top,n=0,r=this.size;n1&&this.pop({animated:!0})}},{key:"push",value:function(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName])new Sn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),Rt(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),Rt(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,A(n,v)),i=A(t,y);return i.initialRoute=r,l.a.createElement("div",P({nativeName:"Navigator",ref:function(t){e.instance=t}},i))}}]),n}(l.a.Component);function Dn(e){return l.a.createElement("div",P(P({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Un=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(S(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(S(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(S(r)),r}return z(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&Rt(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&Rt(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,i=A(t,g),o=[];return Array.isArray(n)?o=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),l.a.createElement(Dn,P({},t),e)})):o.push(l.a.createElement(Dn,null,n)),"function"==typeof r&&(i.onPageScrollStateChanged=this.onPageScrollStateChanged),l.a.createElement("div",P({nativeName:"ViewPager",ref:function(t){e.instance=t}},i),o)}}]),n}(l.a.Component);function Bn(){var e=V.platform.Localization;return!!e&&1===e.direction}var Wn={caretColor:"caret-color"},Vn=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r.onChangeText=r.onChangeText.bind(S(r)),r.onKeyboardWillShow=r.onKeyboardWillShow.bind(S(r)),r}return z(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.autoFocus;this._lastNativeText=t,n&&this.focus()}},{key:"componentWillUnmount",value:function(){this.blur()}},{key:"getValue",value:function(){var e=this;return new Promise((function(t){Rt(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return Rt(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){Rt(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){Rt(this.instance,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){Rt(e.instance,"isFocused",(function(e){return t(e.value)}))}))}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}},{key:"clear",value:function(){Rt(this.instance,"clear",[])}},{key:"render",value:function(){var e=this,t=P({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach((function(n){var r=n,i=e.props[n];"string"==typeof e.props[n]&&(Wn[n]&&(r=Wn[n]),Array.isArray(t.style)?t.style.push({[r]:i}):t.style&&"object"===M(t.style)?t.style[r]=i:t.style={[r]:i},delete t[n])})),Bn()&&(t.style?"object"!==M(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),l.a.createElement("div",P(P({nativeName:"TextInput"},t),{},{ref:function(t){e.instance=t},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}},{key:"onChangeText",value:function(e){var t=this.props.onChangeText;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}},{key:"onKeyboardWillShow",value:function(e){var t=this.props.onKeyboardWillShow,n=e;"android"===Zt.platform.OS&&(n.keyboardHeight/=Zt.screen.scale),"function"==typeof t&&t(n)}}]),n}(l.a.Component),$n=Zt.window.scale,qn=Math.round(.4*$n)/$n;function Qn(e){return e}0===qn&&(qn=1/$n);var Kn=Object.freeze({__proto__:null,get hairlineWidth(){return qn},create:Qn}),Gn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},Yn=function(e){x(n,e);var t=k(n);function n(){var e;return R(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"object"===M(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,Rt(this.instance,"scrollTo",[r,i,o])}},{key:"scrollToWithDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;Rt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,i=t.children,o=t.style,a=[n?Gn.contentContainerHorizontal:Gn.contentContainerVertical,r],u=n?Object.assign({},Gn.baseHorizontal,o):Object.assign({},Gn.baseVertical,o);return n&&(u.flexDirection=Bn()?"row-reverse":"row"),l.a.createElement("div",P(P({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props),{},{style:u}),l.a.createElement(Cn,{style:a},i))}}]),n}(l.a.Component),Xn={modal:{position:"absolute",collapsable:!1},container:{position:"absolute",left:0,top:0}},Jn=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).eventSubscription=null,r}return z(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===Zt.platform.OS&&(this.eventSubscription=new _e("modalDismissed"),this.eventSubscription.addCallback((function(t){var n=e.props,r=n.primaryKey,i=n.onDismiss;t.primaryKey===r&&"function"==typeof i&&i()})))}},{key:"componentWillUnmount",value:function(){"ios"===Zt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,i=e.animated,o=this.props.animationType;if(!1===n)return null;var a={backgroundColor:r?"transparent":"white"};return o||(o="none",i&&(o="slide")),l.a.createElement("div",P({nativeName:"Modal",animationType:o,transparent:r,style:Xn.modal},this.props),l.a.createElement(Cn,{style:[Xn.container,a]},t))}}]),n}(l.a.Component);Jn.defaultProps={visible:!0};var Zn=function(e){x(n,e);var t=k(n);function n(e){var r;R(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(S(r)),r}return z(n,[{key:"render",value:function(){var e,t,n,r,i=this.props,o=i.requestFocus,a=i.children,u=i.nextFocusDownId,s=i.nextFocusUpId,c=i.nextFocusLeftId,f=i.nextFocusRightId,d=i.style,p=i.noFocusStyle,h=i.focusStyle,m=i.onClick,v=this.state.isFocus,y=l.a.Children.only(a);(null===(t=null===(e=null==y?void 0:y.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?r=y.child.memoizedProps.nativeName:(null===(n=null==y?void 0:y.type)||void 0===n?void 0:n.displayName)&&(r=y.type.displayName);var g=u&&Lt(u),b=s&&Lt(s),k=c&&Lt(c),w=f&&Lt(f),S=d;if("Text"!==r){var E=y.memoizedProps.style;S=P(P({},S),E)}if(Object.assign(S,v?h:p),"Text"===r)return l.a.createElement(Cn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:k,nextFocusRightId:w,requestFocus:o,style:S,onClick:m,onFocus:this.handleFocus},y);var C=y.memoizedProps.children;return l.a.cloneElement(y,{nextFocusDownId:u,nextFocusUpId:s,nextFocusLeftId:c,nextFocusRightId:f,requestFocus:o,onClick:m,focusable:!0,children:C,style:S,onFocus:this.handleFocus})}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;"function"==typeof t&&t(e),this.state.isFocus!==e.focus&&this.setState({isFocus:e.focus})}}]),n}(l.a.Component);function er(e){return l.a.createElement("iframe",P({title:"hippy",nativeName:"WebView"},e))}var tr,nr=function(){function e(t,n,r){var i=this;if(R(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),tr||(tr=new _e("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=P({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)o["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocols");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=tr.addCallback(this.onWebSocketEvent),W.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return z(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,W.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(M(e)));W.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===M(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,tr.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();function rr(e){return l.a.createElement("li",P({nativeName:"WaterfallItem"},e))}var ir=function(e){x(n,e);var t=k(n);function n(e){var r;return R(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(S(r)),r}return z(n,[{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;Rt(this.instance,"scrollToIndex",[n,n,i])}},{key:"scrollToContentOffset",value:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,o=e.animated,a=void 0===o||o;Rt(this.instance,"scrollToContentOffset",[n,i,a])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=void 0===n?{}:n,i=t.renderBanner,o=t.numberOfColumns,a=void 0===o?2:o,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,v=t.renderItem,y=t.renderPullHeader,g=t.renderPullFooter,k=t.getItemType,w=t.getItemKey,S=t.getItemStyle,E=t.contentInset,C=void 0===E?{top:0,left:0,bottom:0,right:0}:E,x=t.onItemLayout,N=t.onHeaderPulling,I=t.onHeaderReleased,_=t.onFooterPulling,L=t.onFooterReleased,R=t.containPullHeader,T=void 0!==R&&R,z=t.containPullFooter,O=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,M=P(P({},A(t,b)),{},{style:r,numberOfColumns:a,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:T,containPullFooter:O,containBannerView:F}),H=[];if("function"==typeof i){var D=i();D&&(H.push(l.a.createElement(Cn,{key:"bannerView"},l.a.cloneElement(D))),M.containBannerView=!0)}if("function"==typeof v){for(var U=this.getPullHeader(y,N,I),B=this.getPullFooter(g,_,L),W=0;W *HippyModuleClasses; NSArray *HippyGetModuleClasses(void) { diff --git a/lerna.json b/lerna.json index 48f5fa7e4e0..29f569b42ca 100644 --- a/lerna.json +++ b/lerna.json @@ -3,6 +3,6 @@ "packages": [ "packages/*" ], - "version": "2.16.0", + "version": "2.16.1", "tagVersionPrefix": "" } diff --git a/packages/hippy-react-web/CHANGELOG.md b/packages/hippy-react-web/CHANGELOG.md index 5678221a0aa..e5fe439ed8f 100644 --- a/packages/hippy-react-web/CHANGELOG.md +++ b/packages/hippy-react-web/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + + +### Bug Fixes + +* **@hippy/react-web:** fix text default value and ellipsis not work ([51bb33a](https://github.com/Tencent/Hippy/commit/51bb33a485b2d2173902ff93d4269534329cd996)) + + +### Features + +* **@hippy/react-web:** add build config for the declaration ([a826351](https://github.com/Tencent/Hippy/commit/a8263515906d950a3a936ec127f9396ab8af6b05)) + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) diff --git a/packages/hippy-react-web/package-lock.json b/packages/hippy-react-web/package-lock.json index e92abb7fe5e..a804dd1fda7 100644 --- a/packages/hippy-react-web/package-lock.json +++ b/packages/hippy-react-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/react-web", - "version": "2.16.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/react-web", - "version": "2.16.0", + "version": "2.16.1", "license": "Apache-2.0", "dependencies": { "@hippy/rmc-list-view": "^1.0.0", diff --git a/packages/hippy-react-web/package.json b/packages/hippy-react-web/package.json index 40ddf5811ce..b9d4673205e 100644 --- a/packages/hippy-react-web/package.json +++ b/packages/hippy-react-web/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react-web", - "version": "2.16.0", + "version": "2.16.1", "description": "Web Adapter for Hippy React", "main": "dist/cjs/index.js", "module": "dist/index.js", diff --git a/packages/hippy-react/CHANGELOG.md b/packages/hippy-react/CHANGELOG.md index ec240a53cdd..8e55de2231d 100644 --- a/packages/hippy-react/CHANGELOG.md +++ b/packages/hippy-react/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + + +### Bug Fixes + +* **react:** listview initialListSize default value set to 15 ([064e636](https://github.com/Tencent/Hippy/commit/064e63639f1a9ea59fcc4389ef3e9bfed0648e51)) + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) diff --git a/packages/hippy-react/package-lock.json b/packages/hippy-react/package-lock.json index 505b92babc1..2b75b987542 100644 --- a/packages/hippy-react/package-lock.json +++ b/packages/hippy-react/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/react", - "version": "2.16.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/react", - "version": "2.16.0", + "version": "2.16.1", "license": "Apache-2.0", "dependencies": { "@hippy/react-reconciler": "react17", diff --git a/packages/hippy-react/package.json b/packages/hippy-react/package.json index dc7fa87c49d..273aaa391f2 100644 --- a/packages/hippy-react/package.json +++ b/packages/hippy-react/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.16.0", + "version": "2.16.1", "description": "Hippy react framework", "main": "dist/index.js", "homepage": "https://hippyjs.org", diff --git a/packages/hippy-vue-css-loader/CHANGELOG.md b/packages/hippy-vue-css-loader/CHANGELOG.md index 724d0cd0762..84f2b9b55db 100644 --- a/packages/hippy-vue-css-loader/CHANGELOG.md +++ b/packages/hippy-vue-css-loader/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + +**Note:** Version bump only for package @hippy/vue-css-loader + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) **Note:** Version bump only for package @hippy/vue-css-loader diff --git a/packages/hippy-vue-css-loader/package-lock.json b/packages/hippy-vue-css-loader/package-lock.json index f2cc4ccd89a..ef5a8a0e80d 100644 --- a/packages/hippy-vue-css-loader/package-lock.json +++ b/packages/hippy-vue-css-loader/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue-css-loader", - "version": "2.16.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-css-loader", - "version": "2.16.0", + "version": "2.16.1", "license": "Apache-2.0", "dependencies": { "loader-utils": "^2.0.4" diff --git a/packages/hippy-vue-css-loader/package.json b/packages/hippy-vue-css-loader/package.json index 0e39c15bf82..d19c3340b43 100644 --- a/packages/hippy-vue-css-loader/package.json +++ b/packages/hippy-vue-css-loader/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-css-loader", - "version": "2.16.0", + "version": "2.16.1", "description": "hippy-vue style loader module for webpack", "main": "dist/css-loader.js", "homepage": "https://hippyjs.org", diff --git a/packages/hippy-vue-loader/CHANGELOG.md b/packages/hippy-vue-loader/CHANGELOG.md index a98e7dd1401..3ac5f290bd8 100644 --- a/packages/hippy-vue-loader/CHANGELOG.md +++ b/packages/hippy-vue-loader/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + +**Note:** Version bump only for package @hippy/vue-loader + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) **Note:** Version bump only for package @hippy/vue-loader diff --git a/packages/hippy-vue-loader/package.json b/packages/hippy-vue-loader/package.json index 02412392851..1b5a951c0f1 100644 --- a/packages/hippy-vue-loader/package.json +++ b/packages/hippy-vue-loader/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-loader", - "version": "2.16.0", + "version": "2.16.1", "description": "Vue single-file component loader for Webpack", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/packages/hippy-vue-native-components/CHANGELOG.md b/packages/hippy-vue-native-components/CHANGELOG.md index 1bcac66947e..668e70a1557 100644 --- a/packages/hippy-vue-native-components/CHANGELOG.md +++ b/packages/hippy-vue-native-components/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + + +### Bug Fixes + +* **vue:** make sure start animation after node created ([9517d1b](https://github.com/Tencent/Hippy/commit/9517d1b5cb80be397cb6aa8fed73bbea175a38b9)) + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) **Note:** Version bump only for package @hippy/vue-native-components diff --git a/packages/hippy-vue-native-components/package.json b/packages/hippy-vue-native-components/package.json index 1ff204a7fbc..373fef119c3 100644 --- a/packages/hippy-vue-native-components/package.json +++ b/packages/hippy-vue-native-components/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-native-components", - "version": "2.16.0", + "version": "2.16.1", "description": "Native components middleware for Hippy-Vue, the components only for native, can't compatible with web.", "main": "dist/index.js", "homepage": "https://hippyjs.org", diff --git a/packages/hippy-vue-next-style-parser/CHANGELOG.md b/packages/hippy-vue-next-style-parser/CHANGELOG.md index 86354b117b1..7865adfcd46 100644 --- a/packages/hippy-vue-next-style-parser/CHANGELOG.md +++ b/packages/hippy-vue-next-style-parser/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + +**Note:** Version bump only for package @hippy/hippy-vue-next-style-parser + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) diff --git a/packages/hippy-vue-next-style-parser/package-lock.json b/packages/hippy-vue-next-style-parser/package-lock.json index c916b61797a..177875fd8b8 100644 --- a/packages/hippy-vue-next-style-parser/package-lock.json +++ b/packages/hippy-vue-next-style-parser/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/hippy-vue-next-style-parser", - "version": "2.16.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/hippy-vue-next-style-parser", - "version": "2.16.0", + "version": "2.16.1", "license": "Apache-2.0", "dependencies": { "@vue/shared": "^3.2.21" diff --git a/packages/hippy-vue-next-style-parser/package.json b/packages/hippy-vue-next-style-parser/package.json index c768e28cccb..966031e7ee1 100644 --- a/packages/hippy-vue-next-style-parser/package.json +++ b/packages/hippy-vue-next-style-parser/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/hippy-vue-next-style-parser", - "version": "2.16.0", + "version": "2.16.1", "description": "A css subset parser for hippy-vue-next", "author": "OpenHippy Team", "homepage": "https://hippyjs.org", diff --git a/packages/hippy-vue-next/CHANGELOG.md b/packages/hippy-vue-next/CHANGELOG.md index 215b7d2a765..095cbc32798 100644 --- a/packages/hippy-vue-next/CHANGELOG.md +++ b/packages/hippy-vue-next/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + + +### Bug Fixes + +* **vue:** make sure start animation after node created ([9517d1b](https://github.com/Tencent/Hippy/commit/9517d1b5cb80be397cb6aa8fed73bbea175a38b9)) + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) diff --git a/packages/hippy-vue-next/package-lock.json b/packages/hippy-vue-next/package-lock.json index 12ffffe1cfd..34185865daf 100644 --- a/packages/hippy-vue-next/package-lock.json +++ b/packages/hippy-vue-next/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue-next", - "version": "2.16.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-next", - "version": "2.16.0", + "version": "2.16.1", "license": "Apache-2.0", "dependencies": { "@vue/runtime-core": "^3.2.21", diff --git a/packages/hippy-vue-next/package.json b/packages/hippy-vue-next/package.json index 1a20441b1ae..f66f1b1a236 100644 --- a/packages/hippy-vue-next/package.json +++ b/packages/hippy-vue-next/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-next", - "version": "2.16.0", + "version": "2.16.1", "description": "Vue-Next binding for Hippy native framework", "author": "OpenHippy Team", "homepage": "https://hippyjs.org", diff --git a/packages/hippy-vue-router/CHANGELOG.md b/packages/hippy-vue-router/CHANGELOG.md index 59fa103df66..d4ab03ecdf6 100644 --- a/packages/hippy-vue-router/CHANGELOG.md +++ b/packages/hippy-vue-router/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + +**Note:** Version bump only for package @hippy/vue-router + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) **Note:** Version bump only for package @hippy/vue-router diff --git a/packages/hippy-vue-router/package-lock.json b/packages/hippy-vue-router/package-lock.json index 9c1340bc425..84f5a0f9c37 100644 --- a/packages/hippy-vue-router/package-lock.json +++ b/packages/hippy-vue-router/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue-router", - "version": "2.16.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-router", - "version": "2.16.0", + "version": "2.16.1", "license": "Apache-2.0", "devDependencies": { "path-to-regexp": "^1.7.0" diff --git a/packages/hippy-vue-router/package.json b/packages/hippy-vue-router/package.json index 5f2bc063c62..941f96c6ecd 100644 --- a/packages/hippy-vue-router/package.json +++ b/packages/hippy-vue-router/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-router", - "version": "2.16.0", + "version": "2.16.1", "description": "Official router for hippy-vue", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/hippy-vue/CHANGELOG.md b/packages/hippy-vue/CHANGELOG.md index eb8cda7358a..045a91e3ea2 100644 --- a/packages/hippy-vue/CHANGELOG.md +++ b/packages/hippy-vue/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + + +### Bug Fixes + +* **vue:** fix vue style diff error ([c9add39](https://github.com/Tencent/Hippy/commit/c9add39ea697d44e5b984ef2010130aa655e0e36)) + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) diff --git a/packages/hippy-vue/package-lock.json b/packages/hippy-vue/package-lock.json index c59ec8ee07e..639766b1ad1 100644 --- a/packages/hippy-vue/package-lock.json +++ b/packages/hippy-vue/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue", - "version": "2.16.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue", - "version": "2.16.0", + "version": "2.16.1", "license": "Apache-2.0", "devDependencies": { "ansi-regex": "^5.0.1", diff --git a/packages/hippy-vue/package.json b/packages/hippy-vue/package.json index 5ce901174d1..941ae4af772 100644 --- a/packages/hippy-vue/package.json +++ b/packages/hippy-vue/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.16.0", + "version": "2.16.1", "description": "Vue binding for Hippy native framework", "author": "OpenHippy Team", "license": "Apache-2.0", diff --git a/packages/hippy-web-renderer/CHANGELOG.md b/packages/hippy-web-renderer/CHANGELOG.md index f2c8a3ec6da..a3a851973c3 100644 --- a/packages/hippy-web-renderer/CHANGELOG.md +++ b/packages/hippy-web-renderer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.16.1](https://github.com/Tencent/Hippy/compare/2.16.0...2.16.1) (2023-04-03) + +**Note:** Version bump only for package @hippy/web-renderer + + + + + # [2.16.0](https://github.com/Tencent/Hippy/compare/2.15.5...2.16.0) (2023-03-21) diff --git a/packages/hippy-web-renderer/package-lock.json b/packages/hippy-web-renderer/package-lock.json index cb56668ed5b..917a4d4d48d 100644 --- a/packages/hippy-web-renderer/package-lock.json +++ b/packages/hippy-web-renderer/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/web-renderer", - "version": "2.16.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/web-renderer", - "version": "2.16.0", + "version": "2.16.1", "license": "Apache-2.0", "dependencies": { "@types/hammerjs": "^2.0.41", diff --git a/packages/hippy-web-renderer/package.json b/packages/hippy-web-renderer/package.json index fa5deefaaa2..45e1abbbc73 100644 --- a/packages/hippy-web-renderer/package.json +++ b/packages/hippy-web-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/web-renderer", - "version": "2.16.0", + "version": "2.16.1", "description": "hippy web renderer", "main": "./dist/index.js", "homepage": "https://hippyjs.org",