diff --git a/driver/js/CHANGELOG.md b/driver/js/CHANGELOG.md index 9a63b0c21d1..6215c941604 100644 --- a/driver/js/CHANGELOG.md +++ b/driver/js/CHANGELOG.md @@ -3,6 +3,34 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + + +### Bug Fixes + +* **devtools:** fix vue3 devtools element ([33b3826](https://github.com/Tencent/Hippy/commit/33b3826ff9b9ad55284717b38c24347af264fc72)) +* **ios, android:** performance records inaccurate issues ([1083ed3](https://github.com/Tencent/Hippy/commit/1083ed3721651cc405bbce8d4b1923b1fc4e4631)) +* **ios:** add exception handle process for jsc ([#3976](https://github.com/Tencent/Hippy/issues/3976)) ([3fc7225](https://github.com/Tencent/Hippy/commit/3fc7225b46d86648eb1f9d244c2ed1eaa7996cb0)) +* **ios:** eliminate all warnings and open treat_warning_as_error ([1d9ed5a](https://github.com/Tencent/Hippy/commit/1d9ed5a93bf7c6636953c32db732eec62499d556)) +* **ios:** header and footer refresh bugs ([#3940](https://github.com/Tencent/Hippy/issues/3940)) ([c151da3](https://github.com/Tencent/Hippy/commit/c151da31be6cf2fa71228976ab4b60604f1497d4)) +* **ios:** iOS18 adaptation of TextView component ([773a21f](https://github.com/Tencent/Hippy/commit/773a21f8898bc35f010be5973b06a19faa3c17d9)) +* **ios:** responsable region issue of Textinput ([#3932](https://github.com/Tencent/Hippy/issues/3932)) ([7a2ce1d](https://github.com/Tencent/Hippy/commit/7a2ce1dc70902104620dd9f834bf8d4ddfc91e1d)) +* **vue-next:** fix beforeLoadStyle not work ([35c8d23](https://github.com/Tencent/Hippy/commit/35c8d23513e32293389d8435112fecfb16d150a0)) + + +### Features + +* **ios,android:** add request duration in fetch response header ([c5a676c](https://github.com/Tencent/Hippy/commit/c5a676ce4f348af048df8f070153cdce511cadfb)) +* **ios:** add app bundle and container path support for hpfile url ([64f94ae](https://github.com/Tencent/Hippy/commit/64f94ae2844ae7ce83491bb1a565efa26eae7675)) +* **ios:** add paragraph styles support for TextInput ([5aa12d9](https://github.com/Tencent/Hippy/commit/5aa12d9d985b54215980d6dbdfd619add7a128d9)) +* **react:** add font style inherit ([f717db5](https://github.com/Tencent/Hippy/commit/f717db5428f3b22f8510d7b740f542585c267820)) +* **vue-next:** fix onInterceptTouchEvent not work ([#3995](https://github.com/Tencent/Hippy/issues/3995)) ([fa6dead](https://github.com/Tencent/Hippy/commit/fa6deadaac28fd25281412ca27f74d88571588e2)) +* **vue:** fix default native style is empty ([8d51296](https://github.com/Tencent/Hippy/commit/8d51296ec95a28c5af71eacb1f4566919becc1ff)) + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) diff --git a/driver/js/lerna.json b/driver/js/lerna.json index f431196db2f..831f886a5c3 100644 --- a/driver/js/lerna.json +++ b/driver/js/lerna.json @@ -4,5 +4,5 @@ "packages/*" ], "tagVersionPrefix": "", - "version": "3.3.0" + "version": "3.3.1" } \ No newline at end of file diff --git a/driver/js/packages/hippy-react-web/CHANGELOG.md b/driver/js/packages/hippy-react-web/CHANGELOG.md index 83b609ebc1f..22128ac889e 100644 --- a/driver/js/packages/hippy-react-web/CHANGELOG.md +++ b/driver/js/packages/hippy-react-web/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + +**Note:** Version bump only for package @hippy/react-web + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) **Note:** Version bump only for package @hippy/react-web diff --git a/driver/js/packages/hippy-react-web/package-lock.json b/driver/js/packages/hippy-react-web/package-lock.json index a5540d17321..32f27d60df4 100644 --- a/driver/js/packages/hippy-react-web/package-lock.json +++ b/driver/js/packages/hippy-react-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/react-web", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/react-web", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { "@hippy/rmc-list-view": "^1.0.0", diff --git a/driver/js/packages/hippy-react-web/package.json b/driver/js/packages/hippy-react-web/package.json index 655c886e627..32473410148 100644 --- a/driver/js/packages/hippy-react-web/package.json +++ b/driver/js/packages/hippy-react-web/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react-web", - "version": "3.3.0", + "version": "3.3.1", "description": "Web Adapter for Hippy React", "main": "dist/cjs/index.js", "module": "dist/index.js", diff --git a/driver/js/packages/hippy-react/CHANGELOG.md b/driver/js/packages/hippy-react/CHANGELOG.md index d705e5f4e8b..eed1ae7e7da 100644 --- a/driver/js/packages/hippy-react/CHANGELOG.md +++ b/driver/js/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + + +### Features + +* **react:** add font style inherit ([f717db5](https://github.com/Tencent/Hippy/commit/f717db5428f3b22f8510d7b740f542585c267820)) + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) **Note:** Version bump only for package @hippy/react diff --git a/driver/js/packages/hippy-react/package-lock.json b/driver/js/packages/hippy-react/package-lock.json index 2816b42f8ff..3e016a5ed97 100644 --- a/driver/js/packages/hippy-react/package-lock.json +++ b/driver/js/packages/hippy-react/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/react", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/react", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { "@hippy/react-reconciler": "react17", diff --git a/driver/js/packages/hippy-react/package.json b/driver/js/packages/hippy-react/package.json index 45bf92d40a1..8950b624281 100644 --- a/driver/js/packages/hippy-react/package.json +++ b/driver/js/packages/hippy-react/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "3.3.0", + "version": "3.3.1", "description": "Hippy react framework", "main": "dist/index.js", "homepage": "https://hippyjs.org", diff --git a/driver/js/packages/hippy-vue-css-loader/CHANGELOG.md b/driver/js/packages/hippy-vue-css-loader/CHANGELOG.md index d161d3bfb7b..e3af5891014 100644 --- a/driver/js/packages/hippy-vue-css-loader/CHANGELOG.md +++ b/driver/js/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + +**Note:** Version bump only for package @hippy/vue-css-loader + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) **Note:** Version bump only for package @hippy/vue-css-loader diff --git a/driver/js/packages/hippy-vue-css-loader/package-lock.json b/driver/js/packages/hippy-vue-css-loader/package-lock.json index 7694db06f35..f2952fd71ff 100644 --- a/driver/js/packages/hippy-vue-css-loader/package-lock.json +++ b/driver/js/packages/hippy-vue-css-loader/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue-css-loader", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-css-loader", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { "loader-utils": "^1.4.1" diff --git a/driver/js/packages/hippy-vue-css-loader/package.json b/driver/js/packages/hippy-vue-css-loader/package.json index 1810f55e17a..e2a295ab7b4 100644 --- a/driver/js/packages/hippy-vue-css-loader/package.json +++ b/driver/js/packages/hippy-vue-css-loader/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-css-loader", - "version": "3.3.0", + "version": "3.3.1", "description": "hippy-vue style loader module for webpack", "main": "dist/css-loader.js", "homepage": "https://hippyjs.org", diff --git a/driver/js/packages/hippy-vue-loader/CHANGELOG.md b/driver/js/packages/hippy-vue-loader/CHANGELOG.md index b784a6c2b6c..8746d80fc9a 100644 --- a/driver/js/packages/hippy-vue-loader/CHANGELOG.md +++ b/driver/js/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + +**Note:** Version bump only for package @hippy/vue-loader + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) **Note:** Version bump only for package @hippy/vue-loader diff --git a/driver/js/packages/hippy-vue-loader/package.json b/driver/js/packages/hippy-vue-loader/package.json index f1df554474e..c1c785642e9 100644 --- a/driver/js/packages/hippy-vue-loader/package.json +++ b/driver/js/packages/hippy-vue-loader/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-loader", - "version": "3.3.0", + "version": "3.3.1", "description": "Vue single-file component loader for Webpack", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/driver/js/packages/hippy-vue-native-components/CHANGELOG.md b/driver/js/packages/hippy-vue-native-components/CHANGELOG.md index e9229f875d1..97bcef03614 100644 --- a/driver/js/packages/hippy-vue-native-components/CHANGELOG.md +++ b/driver/js/packages/hippy-vue-native-components/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + +**Note:** Version bump only for package @hippy/vue-native-components + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) **Note:** Version bump only for package @hippy/vue-native-components diff --git a/driver/js/packages/hippy-vue-native-components/package.json b/driver/js/packages/hippy-vue-native-components/package.json index 467ff2e7ec9..56475006338 100644 --- a/driver/js/packages/hippy-vue-native-components/package.json +++ b/driver/js/packages/hippy-vue-native-components/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-native-components", - "version": "3.3.0", + "version": "3.3.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/driver/js/packages/hippy-vue-next-compiler-ssr/CHANGELOG.md b/driver/js/packages/hippy-vue-next-compiler-ssr/CHANGELOG.md index 3987ea31658..3f7efd7d7b9 100644 --- a/driver/js/packages/hippy-vue-next-compiler-ssr/CHANGELOG.md +++ b/driver/js/packages/hippy-vue-next-compiler-ssr/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + +**Note:** Version bump only for package @hippy/vue-next-compiler-ssr + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) diff --git a/driver/js/packages/hippy-vue-next-compiler-ssr/package-lock.json b/driver/js/packages/hippy-vue-next-compiler-ssr/package-lock.json index 0e85b85da28..acfe2c57e50 100644 --- a/driver/js/packages/hippy-vue-next-compiler-ssr/package-lock.json +++ b/driver/js/packages/hippy-vue-next-compiler-ssr/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue-next-compiler-ssr", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-next-compiler-ssr", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": {} }, diff --git a/driver/js/packages/hippy-vue-next-compiler-ssr/package.json b/driver/js/packages/hippy-vue-next-compiler-ssr/package.json index b1f6e06118d..f37e5c4e7bb 100644 --- a/driver/js/packages/hippy-vue-next-compiler-ssr/package.json +++ b/driver/js/packages/hippy-vue-next-compiler-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-next-compiler-ssr", - "version": "3.3.0", + "version": "3.3.1", "description": "Vue-Next server render compiler for Hippy native framework", "author": "OpenHippy Team", "homepage": "https://hippyjs.org", diff --git a/driver/js/packages/hippy-vue-next-server-renderer/CHANGELOG.md b/driver/js/packages/hippy-vue-next-server-renderer/CHANGELOG.md index 3987ea31658..ee38943d672 100644 --- a/driver/js/packages/hippy-vue-next-server-renderer/CHANGELOG.md +++ b/driver/js/packages/hippy-vue-next-server-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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + +**Note:** Version bump only for package @hippy/vue-next-server-renderer + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) diff --git a/driver/js/packages/hippy-vue-next-server-renderer/package-lock.json b/driver/js/packages/hippy-vue-next-server-renderer/package-lock.json index 09d3f853fce..74a6a4ab733 100644 --- a/driver/js/packages/hippy-vue-next-server-renderer/package-lock.json +++ b/driver/js/packages/hippy-vue-next-server-renderer/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue-next-server-renderer", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-next-server-renderer", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": {} }, diff --git a/driver/js/packages/hippy-vue-next-server-renderer/package.json b/driver/js/packages/hippy-vue-next-server-renderer/package.json index ab42f4cf814..dd68b1c9fab 100644 --- a/driver/js/packages/hippy-vue-next-server-renderer/package.json +++ b/driver/js/packages/hippy-vue-next-server-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-next-server-renderer", - "version": "3.3.0", + "version": "3.3.1", "description": "Vue-Next server renderer for Hippy native framework", "author": "OpenHippy Team", "homepage": "https://hippyjs.org", diff --git a/driver/js/packages/hippy-vue-next-style-parser/CHANGELOG.md b/driver/js/packages/hippy-vue-next-style-parser/CHANGELOG.md index 51716233c49..583743f3daa 100644 --- a/driver/js/packages/hippy-vue-next-style-parser/CHANGELOG.md +++ b/driver/js/packages/hippy-vue-next-style-parser/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + + +### Bug Fixes + +* **vue-next:** fix beforeLoadStyle not work ([35c8d23](https://github.com/Tencent/Hippy/commit/35c8d23513e32293389d8435112fecfb16d150a0)) + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) diff --git a/driver/js/packages/hippy-vue-next-style-parser/package-lock.json b/driver/js/packages/hippy-vue-next-style-parser/package-lock.json index 8772ac41a08..e4038336ac6 100644 --- a/driver/js/packages/hippy-vue-next-style-parser/package-lock.json +++ b/driver/js/packages/hippy-vue-next-style-parser/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/hippy-vue-next-style-parser", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hippy/hippy-vue-next-style-parser", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": {} }, diff --git a/driver/js/packages/hippy-vue-next-style-parser/package.json b/driver/js/packages/hippy-vue-next-style-parser/package.json index ce1abf1c092..e3312f416f6 100644 --- a/driver/js/packages/hippy-vue-next-style-parser/package.json +++ b/driver/js/packages/hippy-vue-next-style-parser/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/hippy-vue-next-style-parser", - "version": "3.3.0", + "version": "3.3.1", "description": "A css subset parser for hippy-vue-next", "author": "OpenHippy Team", "homepage": "https://hippyjs.org", diff --git a/driver/js/packages/hippy-vue-next/CHANGELOG.md b/driver/js/packages/hippy-vue-next/CHANGELOG.md index 5fad1b63b72..0a18facc967 100644 --- a/driver/js/packages/hippy-vue-next/CHANGELOG.md +++ b/driver/js/packages/hippy-vue-next/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + + +### Bug Fixes + +* **devtools:** fix vue3 devtools element ([33b3826](https://github.com/Tencent/Hippy/commit/33b3826ff9b9ad55284717b38c24347af264fc72)) + + +### Features + +* **vue-next:** fix onInterceptTouchEvent not work ([#3995](https://github.com/Tencent/Hippy/issues/3995)) ([fa6dead](https://github.com/Tencent/Hippy/commit/fa6deadaac28fd25281412ca27f74d88571588e2)) + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) diff --git a/driver/js/packages/hippy-vue-next/package-lock.json b/driver/js/packages/hippy-vue-next/package-lock.json index c2f0360d9d2..7aeced1f5d3 100644 --- a/driver/js/packages/hippy-vue-next/package-lock.json +++ b/driver/js/packages/hippy-vue-next/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue-next", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-next", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": {} }, diff --git a/driver/js/packages/hippy-vue-next/package.json b/driver/js/packages/hippy-vue-next/package.json index 6286072d6b4..d95e99316a6 100644 --- a/driver/js/packages/hippy-vue-next/package.json +++ b/driver/js/packages/hippy-vue-next/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-next", - "version": "3.3.0", + "version": "3.3.1", "description": "Vue-Next binding for Hippy native framework", "author": "OpenHippy Team", "homepage": "https://hippyjs.org", diff --git a/driver/js/packages/hippy-vue-router/CHANGELOG.md b/driver/js/packages/hippy-vue-router/CHANGELOG.md index 12c2b05094d..8b9f56ed465 100644 --- a/driver/js/packages/hippy-vue-router/CHANGELOG.md +++ b/driver/js/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. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + +**Note:** Version bump only for package @hippy/vue-router + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) **Note:** Version bump only for package @hippy/vue-router diff --git a/driver/js/packages/hippy-vue-router/package-lock.json b/driver/js/packages/hippy-vue-router/package-lock.json index 8c5f33dc1ab..876d0e0ffd2 100644 --- a/driver/js/packages/hippy-vue-router/package-lock.json +++ b/driver/js/packages/hippy-vue-router/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue-router", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-router", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "devDependencies": { "path-to-regexp": "^1.7.0" diff --git a/driver/js/packages/hippy-vue-router/package.json b/driver/js/packages/hippy-vue-router/package.json index 5fb2ff02220..6ecc7012b30 100644 --- a/driver/js/packages/hippy-vue-router/package.json +++ b/driver/js/packages/hippy-vue-router/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-router", - "version": "3.3.0", + "version": "3.3.1", "description": "Official router for hippy-vue", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/driver/js/packages/hippy-vue/CHANGELOG.md b/driver/js/packages/hippy-vue/CHANGELOG.md index a41777c57f0..43dfa7bce4e 100644 --- a/driver/js/packages/hippy-vue/CHANGELOG.md +++ b/driver/js/packages/hippy-vue/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.3.1](https://github.com/Tencent/Hippy/compare/3.3.0...3.3.1) (2024-08-26) + + +### Features + +* **react:** add font style inherit ([f717db5](https://github.com/Tencent/Hippy/commit/f717db5428f3b22f8510d7b740f542585c267820)) +* **vue:** fix default native style is empty ([8d51296](https://github.com/Tencent/Hippy/commit/8d51296ec95a28c5af71eacb1f4566919becc1ff)) + + + + + # [3.3.0](https://github.com/Tencent/Hippy/compare/3.2.0...3.3.0) (2024-06-20) diff --git a/driver/js/packages/hippy-vue/package-lock.json b/driver/js/packages/hippy-vue/package-lock.json index 5ddbc387c16..d728006a3bd 100644 --- a/driver/js/packages/hippy-vue/package-lock.json +++ b/driver/js/packages/hippy-vue/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hippy/vue", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "devDependencies": { "ansi-regex": "^5.0.1", diff --git a/driver/js/packages/hippy-vue/package.json b/driver/js/packages/hippy-vue/package.json index 3f254b8bd77..876e8fd898b 100644 --- a/driver/js/packages/hippy-vue/package.json +++ b/driver/js/packages/hippy-vue/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "3.3.0", + "version": "3.3.1", "description": "Vue binding for Hippy native framework", "author": "OpenHippy Team", "license": "Apache-2.0", diff --git a/framework/android/gradle.properties b/framework/android/gradle.properties index a76e5143579..6490a19b097 100644 --- a/framework/android/gradle.properties +++ b/framework/android/gradle.properties @@ -43,7 +43,7 @@ NDK_VERSION=25.0.8775105 # # Specifies SDK version # -VERSION_NAME=3.3.0 +VERSION_NAME=3.3.1 # # Whether to skip build C/C++ code diff --git a/framework/examples/android-demo/res/react/index.android.js b/framework/examples/android-demo/res/react/index.android.js index 8e362bc1b43..36446f4479a 100644 --- a/framework/examples/android-demo/res/react/index.android.js +++ b/framework/examples/android-demo/res/react/index.android.js @@ -1,4 +1,4 @@ -!function(e){function t(t){for(var n,r,i=t[0],a=t[1],l=0,c=[];l0===l.indexOf(e))){var s=l.split("/"),c=s[s.length-1],h=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+c)}else{var u;h=l.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;lh&&o[n].offset>t;)o[n].offset+=3;return"(.*)"}));for(;i=n.exec(t);){for(var m=0,g=i.index;"\\"===t.charAt(--g);)m++;m%2!=1&&((h+u===o.length||o[h+u].offset>i.index)&&o.splice(h+u,0,{name:d++,optional:!1,offset:i.index}),u++)}return t+=l?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,s)};var n=/\((?!\?)/g},"./node_modules/prop-types/factoryWithThrowingShims.js":function(e,t,n){"use strict";var o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},"./node_modules/prop-types/index.js":function(e,t,n){e.exports=n("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/react-is/cjs/react-is.production.min.js":function(e,t,n){"use strict"; +!function(e){function t(t){for(var n,r,i=t[0],a=t[1],l=0,c=[];l0===l.indexOf(e))){var s=l.split("/"),c=s[s.length-1],h=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+c)}else{var u;h=l.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;lh&&o[n].offset>t;)o[n].offset+=3;return"(.*)"}));for(;i=n.exec(t);){for(var m=0,g=i.index;"\\"===t.charAt(--g);)m++;m%2!=1&&((h+u===o.length||o[h+u].offset>i.index)&&o.splice(h+u,0,{name:d++,optional:!1,offset:i.index}),u++)}return t+=l?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,s)};var n=/\((?!\?)/g},"./node_modules/prop-types/factoryWithThrowingShims.js":function(e,t,n){"use strict";var o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},"./node_modules/prop-types/index.js":function(e,t,n){e.exports=n("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/react-is/cjs/react-is.production.min.js":function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * @@ -6,4 +6,4 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,h=o?Symbol.for("react.context"):60110,u=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,p=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,S=o?Symbol.for("react.responder"):60118,x=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case l:case g:return e;default:switch(e=e&&e.$$typeof){case h:case m:case p:case y:case c:return e;default:return t}}case i:return t}}}function T(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=h,t.ContextProvider=c,t.Element=r,t.ForwardRef=m,t.Fragment=a,t.Lazy=p,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=g,t.isAsyncMode=function(e){return T(e)||E(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return E(e)===h},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===p},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===l||e===g||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===y||e.$$typeof===c||e.$$typeof===h||e.$$typeof===m||e.$$typeof===w||e.$$typeof===S||e.$$typeof===x||e.$$typeof===b)},t.typeOf=E},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){var o=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function m(){}function g(){}var f={};s(f,i,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(v([])));p&&p!==t&&n.call(p,i)&&(f=p);var b=g.prototype=d.prototype=Object.create(f);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=h(e[r],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=h(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var r=h(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function v(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return fn}));var o={};n.r(o),n.d(o,"Focusable",(function(){return N})),n.d(o,"Image",(function(){return q})),n.d(o,"ListView",(function(){return $})),n.d(o,"Modal",(function(){return re})),n.d(o,"RefreshWrapper",(function(){return Re})),n.d(o,"PullHeaderFooter",(function(){return ke})),n.d(o,"ScrollView",(function(){return Oe})),n.d(o,"Text",(function(){return Me})),n.d(o,"TextInput",(function(){return ze})),n.d(o,"View",(function(){return _e})),n.d(o,"ViewPager",(function(){return Je})),n.d(o,"WebView",(function(){return $e})),n.d(o,"BoxShadow",(function(){return nt})),n.d(o,"WaterfallView",(function(){return it})),n.d(o,"RippleViewAndroid",(function(){return dt}));var r={};n.r(r),n.d(r,"Animation",(function(){return yt})),n.d(r,"AsyncStorage",(function(){return bt})),n.d(r,"NetInfo",(function(){return St})),n.d(r,"WebSocket",(function(){return At})),n.d(r,"UIManagerModule",(function(){return It}));var i={};n.r(i),n.d(i,"Slider",(function(){return Mt})),n.d(i,"TabHost",(function(){return zt})),n.d(i,"SetNativeProps",(function(){return _t})),n.d(i,"DynamicImport",(function(){return Wt})),n.d(i,"Localization",(function(){return Ut})),n.d(i,"Turbo",(function(){return Qt})),n.d(i,"NestedScroll",(function(){return Xt}));var a=n("./node_modules/react/index.js"),l=n.n(a),s=n("../../packages/hippy-react/dist/index.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;h--){var m=r[h];"."===m?d(r,h):".."===m?(d(r,h),c++):c&&(d(r,h),c--)}if(!l)for(;c--;c)r.unshift("..");!l||""===r[0]||r[0]&&u(r[0])||r.unshift("");var g=r.join("/");return n&&"/"!==g.substr(-1)&&(g+="/"),g};var g="Invariant failed";function f(e,t){if(!e)throw new Error(g)}function y(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function p(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=h({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=m(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;ot?n.splice(t,n.length-t,o):n.push(o),u({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=p(e,t,d(),x.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(x.entries[x.index]=o,u({action:"REPLACE",location:o}))}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},canGo:function(e){var t=x.index+e;return t>=0&&t=0||(r[n]=e[n]);return r}var A=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),v=n.n(A),R=function(e){var t=Object(x.a)();return t.displayName=e,t}("Router"),V=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(c.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return l.a.createElement(R.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(l.a.Component);var k=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;rthis.onClick(e),requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},l.a.createElement(s.Text,{style:{color:"white"}},t===e?"我被点击了"+e:"没有被点击"+e)))}render(){return l.a.createElement(s.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}var W=n.p+"assets/defaultSource.jpg",K=n.p+"assets/hippyLogoWhite.png";const U="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",G=s.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"},img_result:{width:300,marginTop:-15,marginLeft:16,fontSize:16,color:"#4c9afa",borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4}});class q extends l.a.Component{constructor(e){super(e),this.state={gifLoadResult:{}}}render(){const{width:e,height:t,url:n}=this.state.gifLoadResult;return l.a.createElement(s.ScrollView,{style:G.container_style},l.a.createElement(s.Text,{style:G.info_style},"Contain:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.contain,defaultSource:W,source:{uri:U},onProgress:e=>{console.log("onProgress",e)},onLoadStart:()=>{console.log("image onloadStart")},onLoad:()=>{console.log("image onLoad")},onError:e=>{console.log("image onError",e)},onLoadEnd:()=>{console.log("image onLoadEnd")}}),l.a.createElement(s.Text,{style:G.info_style},"Cover:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"Center:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"CapInsets:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"TintColor:"),l.a.createElement(s.Image,{style:[G.image_style,{tintColor:"#4c9afa99"}],defaultSource:W,source:{uri:K},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"Cover GIF:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.cover,defaultSource:W,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoad:e=>{console.log("gif onLoad result: "+e);const{width:t,height:n,url:o}=e;this.setState({gifLoadResult:{width:t,height:n,url:o}})}}),l.a.createElement(s.Text,{style:G.img_result},`gifLoadResult: { width: ${e}, height: ${t}, url: ${n} }`))}}const Q=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],Y=s.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function X({index:e}){return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 1 UI"))}function J({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 2 UI"))}function Z({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 5 UI"))}class $ extends l.a.Component{constructor(e){super(e),this.state={dataSource:Q,fetchingDataFlag:!1,horizontal:void 0},this.delText="Delete",this.mockFetchData=this.mockFetchData.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.onDelete=this.onDelete.bind(this),this.onAppear=this.onAppear.bind(this),this.onDisappear=this.onDisappear.bind(this),this.onWillAppear=this.onWillAppear.bind(this),this.onWillDisappear=this.onWillDisappear.bind(this),this.rowShouldSticky=this.rowShouldSticky.bind(this),this.onScroll=this.onScroll.bind(this)}onDelete({index:e}){const{dataSource:t}=this.state,n=t.filter((t,n)=>e!==n);this.setState({dataSource:n})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e.concat(n);this.setState({dataSource:o,fetchingDataFlag:!1})}onAppear(e){console.log("onAppear",e)}onScroll(e){console.log("onScroll",e.contentOffset.y),e.contentOffset.y<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1}onDisappear(e){console.log("onDisappear",e)}onWillAppear(e){console.log("onWillAppear",e)}onWillDisappear(e){console.log("onWillDisappear",e)}rowShouldSticky(e){return 2===e}getRowType(e){return this.state.dataSource[e].style}getRowStyle(){const{horizontal:e}=this.state;return e?{width:100,height:50}:{}}getRowKey(e){return"row-"+e}getRenderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(X,{index:e});break;case 2:n=l.a.createElement(J,{index:e});break;case 5:n=l.a.createElement(Z,{index:e});break;case 100:n=l.a.createElement(s.Text,{style:Y.loading},"Loading now...")}return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.View,{style:Y.itemContainer},n),r?null:l.a.createElement(s.View,{style:Y.separatorLine}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(Q),600)})}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{onTouchDown:e=>{console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:e=>{console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:e=>(console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0),bounces:!0,horizontal:t,style:[{backgroundColor:"#ffffff"},t?{height:50}:{flex:1}],numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e),delText:this.delText,editable:!0,getRowStyle:this.getRowStyle,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear,onScroll:this.onScroll,scrollEventThrottle:1e3}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const ee="#4c9afa",te="#4c9afa",ne="white",oe=s.StyleSheet.create({container:{flex:1,flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},buttonView:{borderColor:ee,borderWidth:2,borderStyle:"solid",borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:ee,textAlign:"center",textAlignVertical:"center"},selectionText:{fontSize:20,textAlign:"center",textAlignVertical:"center",marginLeft:10,marginRight:10,padding:5,borderRadius:5,borderWidth:2}});class re extends l.a.Component{constructor(e){super(e),this.state={visible:!1,press:!1,animationType:"fade",immerseStatusBar:!1,hideStatusBar:!1,hideNavigationBar:!1},this.show=this.show.bind(this),this.hide=this.hide.bind(this)}feedback(e){this.setState({press:"in"===e})}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}render(){const{press:e,visible:t}=this.state;return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:oe.container},l.a.createElement(s.View,{onPressIn:()=>this.feedback("in"),onPressOut:()=>this.feedback("out"),onClick:this.show,style:[oe.buttonView,{borderColor:ee,opacity:e?.5:1}]},l.a.createElement(s.Text,{style:[oe.buttonText,{color:ee}]},"点击弹出浮层"))),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"fade"})},style:[oe.selectionText,{borderColor:"fade"===this.state.animationType?"red":ee},{color:"fade"===this.state.animationType?"red":ee}]},"fade"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide"})},style:[oe.selectionText,{borderColor:"slide"===this.state.animationType?"red":ee},{color:"slide"===this.state.animationType?"red":ee}]},"slide"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide_fade"})},style:[oe.selectionText,{borderColor:"slide_fade"===this.state.animationType?"red":ee},{color:"slide_fade"===this.state.animationType?"red":ee}]},"slide_fade")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideStatusBar:!this.state.hideStatusBar})},style:[oe.selectionText,{borderColor:this.state.hideStatusBar?"red":ee},{color:this.state.hideStatusBar?"red":ee}]},"autoHideStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({immerseStatusBar:!this.state.immerseStatusBar})},style:[oe.selectionText,{borderColor:this.state.immerseStatusBar?"red":ee},{color:this.state.immerseStatusBar?"red":ee}]},"immersionStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideNavigationBar:!this.state.hideNavigationBar})},style:[oe.selectionText,{borderColor:this.state.hideNavigationBar?"red":ee},{color:this.state.hideNavigationBar?"red":ee}]},"autoHideNavigationBar")),l.a.createElement(s.Modal,{transparent:!0,animationType:this.state.animationType,visible:t,requestClose:()=>{},orientationChange:e=>{console.log("orientation changed",e.orientation)},supportedOrientations:["portrait"],immersionStatusBar:this.state.immerseStatusBar,autoHideStatusBar:this.state.hideStatusBar,autoHideNavigationBar:this.state.hideNavigationBar},l.a.createElement(s.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},l.a.createElement(s.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:te,marginTop:300,flexDirection:"row",justifyContent:"center"}},l.a.createElement(s.Text,{style:{color:ne,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}const ie="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ae={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ie,ie,ie],subInfo:["三图评论","11评"]}},le={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},se={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var ce=[se,ae,le,ae,le,ae,le,se,ae],he=n("./node_modules/@babel/runtime/helpers/extends.js"),ue=n.n(he);var de={getScreenWidth(){const e=s.Dimensions.get("screen").width,t=s.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray(e){const t=[];for(let n=0;n=812&&s.PixelRatio.get()>=2&&(e=!0),e}};const me=(de.getScreenWidth()-24-12)/3,ge=Math.floor(me/1.35),fe=s.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:ge,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:me,height:ge},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function ye(e){const{itemBean:{title:t,picList:n}}=e;let{itemBean:{subInfo:o}}=e,r=null;if(o&&o.length){o=de.uniqueArray(o);const e=o.join(" ");r=l.a.createElement(s.Text,{style:fe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:{collapsable:!1}}),l.a.createElement(s.Text,{style:[fe.title],numberOfLines:2,enableScale:!0},t),l.a.createElement(s.View,{style:fe.imageContainer},l.a.createElement(s.Image,{style:fe.image,source:{uri:n[0]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:[fe.image,{marginLeft:6,marginRight:6}],source:{uri:n[1]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:fe.image,source:{uri:n[2]},resizeMode:s.Image.resizeMode.cover})),r?l.a.createElement(s.View,{style:fe.tagLine},r):null)}const pe=de.getScreenWidth()-24,be=Math.floor(pe-12)/3,we=Math.floor(be/1.35),Se=s.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:we},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:be,height:we},image:{width:be,height:we},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function xe(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;let n=null;const{title:o,picUrl:r}=t;let{subInfo:i}=t;if(i&&i.length){i=de.uniqueArray(i);const e=i.join(" ");n=l.a.createElement(s.Text,{style:Se.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:Se.container}),l.a.createElement(s.View,{style:Se.leftContainer},l.a.createElement(s.Text,{style:Se.title,numberOfLines:2,enableScale:!0},o),n?l.a.createElement(s.View,{style:Se.tagLine},n):null),l.a.createElement(s.View,{style:Se.imageContainer},l.a.createElement(s.Image,{resizeMode:s.Image.resizeMode.cover,style:Se.image,source:{uri:r}})))}const Ee=de.getScreenWidth()-24,Te=Math.floor(188*Ee/336),Ce=s.StyleSheet.create({text:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ee,height:Te,alignSelf:"center"},image:{width:Ee,height:Te},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ae(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;const{title:n,picUrl:o}=t;let{subInfo:r}=t,i=null;if(r&&r.length){r=de.uniqueArray(r);const e=r.join(" ");i=l.a.createElement(s.Text,{style:Ce.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,e,l.a.createElement(s.Text,{style:Ce.text,numberOfLines:2,enableScale:!0},n),l.a.createElement(s.View,{style:Ce.playerView},l.a.createElement(s.Image,{style:Ce.image,source:{uri:o},resizeMode:s.Image.resizeMode.cover})),i?l.a.createElement(s.View,{style:Ce.tagLine},i):null)}const ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});class Re extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],loadingState:"正在加载..."},this.fetchTimes=0,this.mockFetchData=this.mockFetchData.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e[e.length-1];o&&100===o.style&&e.pop();const r=e.concat(n);this.setState({dataSource:r})}onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}onClickItem(e){console.log(`item: ${e} is clicked..`)}getRenderRow(e){const{dataSource:t,loadingState:n}=this.state;let o=null;const r=t[e],i=t.length===e+1;switch(r.style){case 1:o=l.a.createElement(ye,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 2:o=l.a.createElement(xe,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 5:o=l.a.createElement(Ae,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 100:o=l.a.createElement(s.Text,{style:ve.loading},n)}return l.a.createElement(s.View,{style:ve.container},l.a.createElement(s.View,{style:ve.itemContainer},o),i?null:l.a.createElement(s.View,{style:ve.spliter}))}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:30}},l.a.createElement(s.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.setState({fetchingDataFlag:!1}),this.fetchTimes+=1,this.fetchTimes>=50?e([]):e(ce)),600)})}render(){const{dataSource:e}=this.state;return l.a.createElement(s.RefreshWrapper,{ref:e=>{this.refresh=e},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},l.a.createElement(s.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}const Ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class ke extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.mockFetchData=this.mockFetchData.bind(this),this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.getFooterStyle=this.getFooterStyle.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e}),this.listView.collapsePullHeader()}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(ce),800)})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData(),e=e.reverse()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ve.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}onClickItem(e,t){console.log(`item: ${e} is clicked..`,t.target.nodeId,t.currentTarget.nodeId)}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:Ve.pullContainer},l.a.createElement(s.Text,{style:Ve.pullContent},e))}getFooterStyle(){const{horizontal:e}=this.state;return e?{width:40}:{}}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:Ve.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}renderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 2:n=l.a.createElement(xe,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)})}return l.a.createElement(s.View,{style:Ve.container},l.a.createElement(s.View,{style:Ve.itemContainer},n),r?null:l.a.createElement(s.View,{style:Ve.splitter}))}getRowStyle(){const{horizontal:e}=this.state;return e?{height:300,justifyContent:"center",alignItems:"center"}:{}}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{horizontal:t,onClick:e=>console.log("ListView",e.target.nodeId,e.currentTarget.nodeId),ref:e=>{this.listView=e},style:[{backgroundColor:"#ffffff"},t?{height:300}:{flex:1}],numberOfRows:e.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:e=>0===e}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const Ie=s.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function Oe(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Horizontal ScrollView")),l.a.createElement(s.View,null,l.a.createElement(s.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:e=>console.log("onScroll",e),onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e)},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A"))),l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Vertical ScrollView")),l.a.createElement(s.ScrollView,{bounces:!0,horizontal:!1,style:Ie.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A")))}const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",Pe="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",Le=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}});let je=0;class Me extends l.a.Component{constructor(e){super(e),this.state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},numberOfLines:2,ellipsizeMode:void 0},this.incrementFontSize=this.incrementFontSize.bind(this),this.decrementFontSize=this.decrementFontSize.bind(this),this.incrementLine=this.incrementLine.bind(this),this.decrementLine=this.decrementLine.bind(this),this.changeMode=this.changeMode.bind(this)}incrementFontSize(){const{fontSize:e}=this.state;24!==e&&this.setState({fontSize:e+1})}decrementFontSize(){const{fontSize:e}=this.state;6!==e&&this.setState({fontSize:e-1})}incrementLine(){const{numberOfLines:e}=this.state;e<6&&this.setState({numberOfLines:e+1})}decrementLine(){const{numberOfLines:e}=this.state;e>1&&this.setState({numberOfLines:e-1})}changeMode(e){this.setState({ellipsizeMode:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{fontSize:e,textShadowColor:t,textShadowOffset:n,numberOfLines:o,ellipsizeMode:r,breakStrategy:i}=this.state,a=e=>l.a.createElement(s.View,{style:Le.itemTitle},l.a.createElement(s.Text,{style:!0},e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},a("shadow"),l.a.createElement(s.View,{style:[Le.itemContent,{height:60}],onClick:()=>{let e="red",t={x:10,y:1};je%2==1&&(e="grey",t={x:1,y:1}),je+=1,this.setState({textShadowColor:e,textShadowOffset:t})}},l.a.createElement(s.Text,{style:[Le.normalText,{color:"#242424",textShadowOffset:n,textShadowRadius:3,textShadowColor:t}]},"Text shadow is grey with radius 3 and offset 1")),a("color"),l.a.createElement(s.View,{style:[Le.itemContent,{height:80}]},l.a.createElement(s.Text,{style:[Le.normalText,{color:"#242424"}]},"Text color is black"),l.a.createElement(s.Text,{style:[Le.normalText,{color:"blue"}]},"Text color is blue"),l.a.createElement(s.Text,{style:[Le.normalText,{color:"rgb(228,61,36)"}]},"This is red")),a("fontSize"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[Le.normalText,{fontSize:e}]},"Text fontSize is "+e),l.a.createElement(s.View,{style:Le.button,onClick:this.incrementFontSize},l.a.createElement(s.Text,{style:Le.buttonText},"放大字体")),l.a.createElement(s.View,{style:Le.button,onClick:this.decrementFontSize},l.a.createElement(s.Text,{style:Le.buttonText},"缩小字体"))),a("fontStyle"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[Le.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),l.a.createElement(s.Text,{style:[Le.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),a("numberOfLines and ellipsizeMode"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[Le.normalText,{marginBottom:10}]},`numberOfLines=${o} | ellipsizeMode=${r}`),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),l.a.createElement(s.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),l.a.createElement(s.Text,null,"Text + Attachment")),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:this.incrementLine},l.a.createElement(s.Text,{style:Le.buttonText},"加一行")),l.a.createElement(s.View,{style:Le.button,onClick:this.decrementLine},l.a.createElement(s.Text,{style:Le.buttonText},"减一行"))),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("clip")},l.a.createElement(s.Text,{style:Le.buttonText},"clip")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("head")},l.a.createElement(s.Text,{style:Le.buttonText},"head")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("middle")},l.a.createElement(s.Text,{style:Le.buttonText},"middle")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("tail")},l.a.createElement(s.Text,{style:Le.buttonText},"tail")))),a("textDecoration"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),a("LetterSpacing"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),a("Nest Text"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:3},l.a.createElement(s.Text,{numberOfLines:3,style:[Le.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),l.a.createElement(s.Text,{numberOfLines:3,style:Le.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),a("Custom font"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:Le.customFont},"Hippy 跨端框架")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),a("Text Nested"),l.a.createElement(s.View,{style:[Le.itemContent,{height:150}]},l.a.createElement(s.Text,{style:{height:100,lineHeight:50}},l.a.createElement(s.Text,{numberOfLines:1,style:Le.normalText},"后面有张图片"),l.a.createElement(s.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),l.a.createElement(s.Text,{numberOfLines:1,style:Le.customFont},"前面有张图片")),l.a.createElement(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},l.a.createElement(s.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:De}}),l.a.createElement(s.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===s.Platform.OS&&a("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(s.View,{style:Le.itemContent},l.a.createElement(s.Text,{style:[Le.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:i},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),l.a.createElement(s.Text,{style:Le.normalText},"breakStrategy: "+i),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Le.buttonText},"simple")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Le.buttonText},"high_quality")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Le.buttonText},"balanced")))),a("verticalAlign"),l.a.createElement(s.View,{style:[Le.itemContent,{height:"android"===s.Platform.OS?160:70}]},l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,top:-10},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,top:-5},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,top:3},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字")))),a("tintColor & backgroundColor"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:De}})))),a("margin"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:De}})),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:De}})))))}}const Be=s.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}});class ze extends a.Component{constructor(e){super(e),this.state={textContent:""},this.changeInputContent=this.changeInputContent.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this)}changeInputContent(){this.setState({textContent:"当前时间毫秒:"+Date.now()})}focus(){this.input.focus()}blur(){this.input.blur()}async onFocus(){const e=await this.input.isFocused();this.setState({event:"onFocus",isFocused:e})}async onBlur(){const e=await this.input.isFocused();this.setState({event:"onBlur",isFocused:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{textContent:e,event:t,isFocused:n,breakStrategy:o}=this.state,r=e=>l.a.createElement(s.View,{style:Be.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:Be.container_style},r("text"),l.a.createElement(s.TextInput,{ref:e=>{this.input=e},style:Be.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:e,onBlur:()=>this.onBlur(),onFocus:()=>this.onFocus()}),l.a.createElement(s.Text,{style:Be.itemContent},`事件: ${t} | isFocused: ${n}`),l.a.createElement(s.View,{style:Be.button,onClick:this.changeInputContent},l.a.createElement(s.Text,null,"点击改变输入框内容")),l.a.createElement(s.View,{style:Be.button,onClick:this.focus},l.a.createElement(s.Text,null,"Focus")),l.a.createElement(s.View,{style:Be.button,onClick:this.blur},l.a.createElement(s.Text,null,"Blur")),r("numeric"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"numeric",placeholder:"numeric"}),r("phone-pad"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),r("password"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),r("maxLength"),l.a.createElement(s.TextInput,{caretColor:"yellow",style:Be.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===s.Platform.OS&&r("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.TextInput,{style:Be.input_style_block,breakStrategy:o,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),l.a.createElement(s.Text,{style:{}},"breakStrategy: "+o),l.a.createElement(s.View,{style:Be.buttonBar},l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Be.buttonText},"simple")),l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Be.buttonText},"high_quality")),l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Be.buttonText},"balanced")))))}}var Fe=n.p+"assets/defaultSource.jpg";const He=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function _e(){const e=e=>l.a.createElement(s.View,{style:He.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),l.a.createElement(s.View,{style:[He.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:Fe}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},l.a.createElement(s.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},l.a.createElement(s.Text,{style:{color:"white"}},"渐变色")),e("border props"),l.a.createElement(s.View,{style:[He.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),l.a.createElement(s.View,{style:[He.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"yellow"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"blue"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"green"}]})))}const Ne=s.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),We="SquarePagerView",Ke="TrianglePagerView",Ue="CirclePagerView";function Ge(e,t){const n=t=>l.a.createElement(s.View,{style:Ne.pageContainer,key:t},l.a.createElement(s.View,{style:[Ne.shapeBase,e],key:"shape"}),l.a.createElement(s.View,{style:Ne.mainRec,key:"title"},t?l.a.createElement(s.Text,{style:Ne.title},t):null));return n.displayName=t,n}const qe=Ge(Ne.square,We),Qe=Ge(Ne.triangle,Ke),Ye=Ge(Ne.circle,Ue),Xe=s.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}});class Je extends l.a.Component{constructor(e){super(e),_()(this,"state",{selectedIndex:0}),this.onPageSelected=this.onPageSelected.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageSelected(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}onPageScrollStateChanged(e){console.log("onPageScrollStateChanged",e)}onPageScroll({offset:e,position:t}){console.log("onPageScroll",e,t)}render(){const{selectedIndex:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},l.a.createElement(s.View,{style:Xe.buttonContainer},l.a.createElement(s.View,{style:Xe.button,onClick:()=>{this.viewpager.setPage(2)}},l.a.createElement(s.Text,{style:Xe.buttonText},"动效滑到第3页")),l.a.createElement(s.View,{style:Xe.button,onClick:()=>this.viewpager.setPageWithoutAnimation(0)},l.a.createElement(s.Text,{style:Xe.buttonText},"直接滑到第1页"))),l.a.createElement(s.ViewPager,{ref:e=>{this.viewpager=e},style:Xe.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[qe("squarePager"),Qe("TrianglePager"),Ye("CirclePager")]),l.a.createElement(s.View,{style:Xe.dotContainer},new Array(3).fill(0).map((t,n)=>{const o=n===e;return l.a.createElement(s.View,{style:[Xe.dot,o?Xe.selectDot:null],key:"dot_"+n})})))}}const Ze=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function $e(){return l.a.createElement(s.View,{style:{paddingHorizontal:10,flex:1}},l.a.createElement(s.View,{style:Ze.itemTitle},l.a.createElement(s.Text,null,"WebView 示例")),l.a.createElement(s.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Ze.webViewStyle,onLoad:({url:e})=>console.log("webview onload",e),onLoadStart:({url:e})=>console.log("webview onLoadStart",e),onLoadEnd:({url:e,success:t,error:n})=>console.log("webview onLoadEnd",e,t,n)}))}const et=s.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),tt=s.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function nt(){return l.a.createElement(s.View,{style:et.shadowDemo},"android"===s.Platform.OS?l.a.createElement(s.View,{style:et.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:et.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))):l.a.createElement(s.View,{style:et.shadowDemoCubeIos},l.a.createElement(s.View,{style:et.shadowDemoContentIos},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))),"android"===s.Platform.OS?l.a.createElement(s.View,{style:tt.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:tt.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))):l.a.createElement(s.View,{style:tt.shadowDemoCubeIos},l.a.createElement(s.View,{style:tt.shadowDemoContentIos},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))))}const ot=ce.filter(e=>2!==e.style),rt=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class it extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.numberOfColumns=2,this.columnSpacing=6,this.interItemSpacing=6,this.mockFetchData=this.mockFetchData.bind(this),this.renderItem=this.renderItem.bind(this),this.getItemType=this.getItemType.bind(this),this.getItemKey=this.getItemKey.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this),this.renderBanner=this.renderBanner.bind(this),this.getItemStyle=this.getItemStyle.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.onScroll=this.onScroll.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>rt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:rt.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}async onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}onClickItem(e){console.log(`item: ${e} is clicked..`)}getItemType(e){return this.state.dataSource[e].style}getItemKey(e){return"row-"+e}onItemClick(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}onScroll(e){}renderBanner(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}renderItem(e){const{dataSource:t}=this.state;let n=null;const o=t[e];switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean});break;case 2:n=l.a.createElement(xe,{itemBean:o.itemBean});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean})}return l.a.createElement(s.View,{onClick:()=>this.onItemClick(e),style:rt.container},l.a.createElement(s.View,{style:rt.itemContainer},n),l.a.createElement(s.View,{style:rt.splitter}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>{const t=[...ot,...ot];return e(t)},600)})}getWaterfallContentInset(){return{top:0,left:0,bottom:0,right:0}}getItemStyle(){const{numberOfColumns:e,columnSpacing:t}=this,n=s.Dimensions.get("screen").width-32,o=this.getWaterfallContentInset();return{width:(n-o.left-o.right-(e-1)*t)/e}}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:rt.pullContainer},l.a.createElement(s.Text,{style:rt.pullContent},e))}render(){const{dataSource:e}=this.state,{numberOfColumns:t,columnSpacing:n,interItemSpacing:o}=this,r=this.getWaterfallContentInset();return l.a.createElement(s.WaterfallView,{ref:e=>{this.listView=e},numberOfColumns:t,columnSpacing:n,interItemSpacing:o,numberOfItems:e.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:r})}}var at=n.p+"assets/defaultSource.jpg";function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{i.current.setPressed(!1)},{nativeBackgroundAndroid:h,style:u}=e;return l.a.createElement(s.View,{onLayout:()=>{s.UIManagerModule.measureInAppWindow(i.current,e=>{n(e.x),r(e.y)})},style:u,onTouchDown:e=>{i.current.setHotspot(e.page_x-t,e.page_y-o),i.current.setPressed(!0)},onTouchEnd:c,onTouchCancel:c,ref:i,nativeBackgroundAndroid:st(st({},ct),h)},e.children)}const ut=s.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderStyle:"solid",borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,borderStyle:"solid",backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:at,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function dt(){return"ios"===s.Platform.OS?l.a.createElement(s.Text,null,"iOS暂未支持水波纹效果"):l.a.createElement(s.ScrollView,{style:{margin:10,flex:1}},l.a.createElement(s.View,{style:[ut.imgRectangle,{marginTop:20,backgroundImage:at,backgroundSize:"cover"}]},l.a.createElement(ht,{style:[ut.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white",maxWidth:200}},"外层背景图,内层无边框水波纹,受外层影响始终有边框"))),l.a.createElement(ht,{style:[ut.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},l.a.createElement(s.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),l.a.createElement(ht,{style:[ut.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"#fff"}},"带背景色水波纹")),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white"}},"有边框水波纹,带本地底图效果"))),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"black"}},"有边框水波纹,带网络底图效果"))))}const mt="#4c9afa",gt="#f44837",ft=s.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:gt},showArea:{height:150,marginVertical:10},button:{borderColor:mt,borderWidth:2,borderStyle:"solid",justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:mt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}});class yt extends l.a.Component{constructor(e){super(e),this.state={}}componentWillMount(){this.horizonAnimation=new s.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new s.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.rotateAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:180,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:180,toValue:360,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewXAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewYAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new s.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}componentDidMount(){"web"===s.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef),this.rotateAnimationSet.setRef(this.rotateRef),this.skewXAnimationSet.setRef(this.skewRef),this.skewYAnimationSet.setRef(this.skewRef)),this.horizonAnimation.onAnimationStart(()=>{console.log("on animation start!!!")}),this.horizonAnimation.onAnimationEnd(()=>{console.log("on animation end!!!")}),this.horizonAnimation.onAnimationCancel(()=>{console.log("on animation cancel!!!")}),this.horizonAnimation.onAnimationRepeat(()=>{console.log("on animation repeat!!!")})}componentWillUnmount(){this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.bgColorAnimationSet&&this.bgColorAnimationSet.destroy(),this.txtColorAnimationSet&&this.txtColorAnimationSet.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy(),this.rotateAnimationSet&&this.rotateAnimationSet.destroy(),this.skewXAnimationSet&&this.skewXAnimationSet.destroy(),this.skewYAnimationSet&&this.skewYAnimationSet.destroy()}render(){return l.a.createElement(s.ScrollView,{style:ft.container},l.a.createElement(s.Text,{style:ft.title},"水平位移动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.horizonAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},l.a.createElement(s.Text,{style:ft.buttonText},"更新"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.horizonRef=e},style:[ft.square,{transform:[{translateX:this.horizonAnimation}]}]})),l.a.createElement(s.Text,{style:ft.title},"高度形变动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.verticalAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.verticalRef=e},style:[ft.square,{height:this.verticalAnimation}]})),l.a.createElement(s.Text,{style:ft.title},"旋转动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.rotateAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.rotateRef=e},style:[ft.square,{transform:[{rotate:this.rotateAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"倾斜动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.start(),this.skewYAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.skewXAnimationSet.pause(),this.skewYAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.resume(),this.skewYAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.skewRef=e},style:[ft.square,{transform:[{skewX:this.skewXAnimationSet},{skewY:this.skewYAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"缩放动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.scaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.scaleRef=e},style:[ft.square,{transform:[{scale:this.scaleAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"颜色渐变动画(文字渐变仅Android支持)"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.start(),this.txtColorAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.bgColorAnimationSet.pause(),this.txtColorAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.resume(),this.txtColorAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.bgColorRef=e},style:[ft.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},l.a.createElement(s.Text,{ref:e=>{this.textColorRef=e},style:[ft.colorText,{color:"android"===s.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),l.a.createElement(s.Text,{style:ft.title},"贝塞尔曲线动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.cubicBezierScaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.cubicBezierScaleRef=e},style:[ft.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}const pt=s.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}});class bt extends l.a.Component{constructor(e){super(e),this.state={result:""},this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onTextChangeValue=this.onTextChangeValue.bind(this),this.onClickSet=this.onClickSet.bind(this),this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onClickGet=this.onClickGet.bind(this)}onClickSet(){const{key:e,value:t}=this.state;e&&s.AsyncStorage.setItem(e,t)}onClickGet(){const{key:e}=this.state;e&&s.AsyncStorage.getItem(e).then(e=>{this.setState({result:e})})}onTextChangeKey(e){this.setState({key:e})}onTextChangeValue(e){this.setState({value:e})}render(){const{result:e}=this.state;return l.a.createElement(s.ScrollView,{style:pt.containerStyle},l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeValue})),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickSet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Set")),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{marginTop:60}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{display:"none"}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.Text,{style:[pt.infoStyle,{width:200}]},e)),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickGet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Get")))}}const wt=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},wrapper:{borderColor:"#eee",borderWidth:1,borderStyle:"solid",paddingHorizontal:10,paddingVertical:5,marginVertical:10,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},infoContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginTop:5,marginBottom:5,flexWrap:"wrap"},infoText:{collapsable:!1,marginVertical:5}});class St extends l.a.Component{constructor(e){super(e),this.state={netInfoStatusTxt:"",netInfoChangeTxt:"",fetchInfoTxt:"",cookies:""},this.listener=null}async fetchNetInfoStatus(){this.setState({netInfoStatusTxt:await s.NetInfo.fetch()})}fetchUrl(){fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>(this.setState({fetchInfoTxt:"成功状态: "+e.status}),e)).catch(e=>{this.setState({fetchInfoTxt:"收到错误: "+e})})}setCookies(){s.NetworkModule.setCookie("https://hippyjs.org","name=hippy;network=mobile")}getCookies(){s.NetworkModule.getCookies("https://hippyjs.org").then(e=>{this.setState({cookies:e})})}async componentWillMount(){const e=this;this.listener=s.NetInfo.addEventListener("change",t=>{e.setState({netInfoChangeTxt:""+t.network_info})})}componentWillUnmount(){this.listener&&s.NetInfo.removeEventListener("change",this.listener)}componentDidMount(){this.fetchUrl(),this.fetchNetInfoStatus()}render(){const{netInfoStatusTxt:e,fetchInfoTxt:t,netInfoChangeTxt:n,cookies:o}=this.state,r=e=>l.a.createElement(s.View,{style:wt.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},r("Fetch"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchUrl()},l.a.createElement(s.Text,{style:{color:"white"}},"请求 hippy 网址:")),l.a.createElement(s.Text,{style:wt.infoText},t))),r("NetInfo"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchNetInfoStatus()},l.a.createElement(s.Text,{style:{color:"white"}},"获取网络状态:")),l.a.createElement(s.Text,{style:wt.infoText},e)),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10}},l.a.createElement(s.Text,{style:{color:"white"}},"监听网络变化:")),l.a.createElement(s.Text,{style:wt.infoText},n))),r("NetworkModule"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.setCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"设置Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},"name=hippy;network=mobile")),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.getCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"获取Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},o))))}}const xt=s.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),Et="wss://echo.websocket.org",Tt="Rock it with Hippy WebSocket";let Ct;var At=function(){const e=Object(a.useRef)(null),t=Object(a.useRef)(null),[n,o]=Object(a.useState)([]),r=e=>{o(t=>[e,...t])};return l.a.createElement(s.View,{style:xt.fullScreen},l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Url:"),l.a.createElement(s.TextInput,{ref:e,value:Et,style:xt.input}),l.a.createElement(s.View,{style:xt.row},l.a.createElement(s.Text,{onClick:()=>{e.current.getValue().then(e=>{Ct&&1===Ct.readyState&&Ct.close(),Ct=new WebSocket(e),Ct.onopen=()=>r("[Opened] "+Ct.url),Ct.onclose=()=>r("[Closed] "+Ct.url),Ct.onerror=e=>r("[Error] "+e.reason),Ct.onmessage=e=>r("[Received] "+e.data)})},style:xt.button},"Connect"),l.a.createElement(s.Text,{onClick:()=>Ct.close(),style:xt.button},"Disconnect"))),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Message:"),l.a.createElement(s.TextInput,{ref:t,value:Tt,style:xt.input}),l.a.createElement(s.Text,{onClick:()=>t.current.getValue().then(e=>{r("[Sent] "+e),Ct.send(e)}),style:xt.button},"Send")),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Log:"),l.a.createElement(s.ScrollView,{style:xt.fullScreen},n.map((e,t)=>l.a.createElement(s.Text,{key:t,style:xt.output},e)))))};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t{const e=s.Dimensions.get("screen");({width:t,height:n}=e)});const[o,r]=Object(a.useState)({width:100,height:100,top:10,left:10}),[i,c]=Object(a.useState)({width:0,height:0,x:0,y:0}),h=async(t=!1)=>{try{const n=await s.UIManagerModule.getBoundingClientRect(e.current,{relToContainer:t});c(n)}catch(e){console.error("getBoxPosition error",e)}},u=Rt(Rt({},Vt.box),o);return l.a.createElement(s.View,{style:Vt.full},l.a.createElement(s.View,{style:Vt.demoContent},l.a.createElement(s.View,{ref:e,style:u},l.a.createElement(s.Text,{style:Vt.text,numberOfLines:2},"I am the box"))),l.a.createElement(s.View,{style:Vt.buttonContainer},l.a.createElement(s.View,{onClick:()=>{const e=kt(0,t-100),o=kt(0,n-450),i=kt(80,120);r({left:e,top:o,width:i,height:i})},style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Move position")),l.a.createElement(s.View,{onClick:()=>h(!1),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in App Window")),l.a.createElement(s.View,{onClick:()=>h(!0),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in Container(RootView)"))),l.a.createElement(s.View,{style:Vt.row},l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"Box style:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+u.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+u.height),l.a.createElement(s.Text,{style:Vt.black},"Left: "+u.left),l.a.createElement(s.Text,{style:Vt.black},"Top: "+u.top)),l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"getBoundingClientRect output:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+i.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+i.height),l.a.createElement(s.Text,{style:Vt.black},"X: "+i.x),l.a.createElement(s.Text,{style:Vt.black},"Y: "+i.y))))};const Ot=s.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}});class Dt extends l.a.Component{constructor(e){super(e),this.state={current:e.current||0}}update(e){const{current:t}=this.state;t!==e&&this.setState({current:e})}render(){const{count:e}=this.props,{current:t}=this.state,n=[];for(let o=0;o=r||(this.indicator&&this.indicator.update(o),this.currentIndex=o)}onScrollBeginDrag(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}onScrollEndDrag(){this.doCreateTimer()}onLayout(e){this.width=e.layout.width}doSwitchPage(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}doCreateTimer(){this.doClearTimer(),this.duration<=0||(this.interval=setInterval(()=>{this.doSwitchPage((this.currentIndex+1)%this.itemCount)},this.duration))}doClearTimer(){this.interval&&clearInterval(this.interval),this.interval=null}render(){const{images:e}=this.props,t=[];for(let n=0;n{this.scrollView=e}},t),l.a.createElement(Dt,{ref:e=>{this.indicator=e},count:this.itemCount}))}}_()(Pt,"defaultProps",{duration:0,currentPage:0,images:[]});const Lt=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],jt=s.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Mt(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.Text,{style:jt.infoStyle},"Auto:"),l.a.createElement(Pt,{style:jt.sliderStyle,images:Lt,duration:1e3}),l.a.createElement(s.Text,{style:jt.infoStyle},"Manual:"),l.a.createElement(Pt,{style:jt.sliderStyle,images:Lt,duration:0}))}const Bt=s.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1,borderStyle:"solid"},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}});class zt extends l.a.Component{constructor(e){super(e),this.state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},this.navScrollView=null,this.viewPager=null,this.onViewPagerChange=this.onViewPagerChange.bind(this),this.pressNavItem=this.pressNavItem.bind(this),this.scrollSV=this.scrollSV.bind(this)}static getPage(e,t){switch(t%3){case 0:return qe(e);case 1:return Ye(e);case 2:return Qe(e);default:return null}}componentDidUpdate(){this.scrollSV()}onViewPagerChange({position:e}){this.setState({curIndex:e})}scrollSV(){if(this.navScrollView){const{curIndex:e,navList:t}=this.state,n=t.length,o=de.getScreenWidth(),r=o/2/60,i=60*nn-r?60*n-o:60*e-60*r+30,this.navScrollView.scrollTo({x:a,y:0,animated:!0})}}pressNavItem(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}renderNav(){const{navList:e,curIndex:t}=this.state;return l.a.createElement(s.View,{style:Bt.container},l.a.createElement(s.ScrollView,{style:Bt.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:e=>{this.navScrollView=e}},e.map((e,n)=>l.a.createElement(s.View,{style:Bt.navItem,key:"nav_"+e,activeOpacity:.5,onClick:()=>this.pressNavItem(n)},l.a.createElement(s.Text,{style:[Bt.navItemText,t===n?Bt.navItemTextBlue:Bt.navItemTextNormal],numberOfLines:1},e)))))}render(){const{navList:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),l.a.createElement(s.ViewPager,{ref:e=>{this.viewPager=e},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},e.map((e,t)=>zt.getPage(e,t))))}}const{width:Ft}=s.Dimensions.get("window"),Ht=s.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}});class _t extends l.a.Component{constructor(e){super(e),this.demon1Point=l.a.createRef(),this.demo1PointDom=null,this.state={demo2Left:0},this.isDemon1Layouted=!1,this.idDemon2Layouted=!1,this.onTouchDown1=this.onTouchDown1.bind(this),this.onDemon1Layout=this.onDemon1Layout.bind(this),this.onTouchMove1=this.onTouchMove1.bind(this),this.onTouchDown2=this.onTouchDown2.bind(this),this.onTouchMove2=this.onTouchMove2.bind(this)}componentDidMount(){}onDemon1Layout(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=s.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}onTouchDown1(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchMove1(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchDown2(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.setState({demo2Left:n})}onTouchMove2(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.setState({demo2Left:n})}render(){const{demo2Left:e}=this.state;return l.a.createElement(s.View,{style:Ht.setNativePropsDemo},l.a.createElement(s.Text,null,"setNativeProps实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},l.a.createElement(s.View,{onLayout:this.onDemon1Layout,style:Ht.nativeDemo1Point,ref:this.demon1Point})),l.a.createElement(s.View,{style:Ht.splitter}),l.a.createElement(s.Text,null,"普通渲染实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},l.a.createElement(s.View,{style:[Ht.nativeDemo2Point,{left:e}]})))}}const Nt=s.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Wt extends l.a.Component{constructor(e){super(e),this.state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},this.onAsyncComponentLoad=this.onAsyncComponentLoad.bind(this)}onAsyncComponentLoad(){console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then(e=>{this.setState({AsyncComponentFromLocal:e.default||e})}).catch(e=>console.error("import async local component error",e)),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then(e=>{this.setState({AsyncComponentFromHttp:e.default||e})}).catch(e=>console.error("import async remote component error",e))}render(){const{AsyncComponentFromLocal:e,AsyncComponentFromHttp:t}=this.state;return l.a.createElement(s.View,{style:Nt.dynamicImportDemo},l.a.createElement(s.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),l.a.createElement(s.View,{style:{marginTop:20}},e?l.a.createElement(e,null):null,t?l.a.createElement(t,null):null))}}const Kt=s.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Ut extends l.a.Component{render(){const{country:e,language:t,direction:n}=s.Platform.Localization||{};return l.a.createElement(s.View,{style:Kt.LocalizationDemo},l.a.createElement(s.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},`国际化相关信息:国家 ${e} | 语言 ${t} | 方向 ${1===n?"RTL":"LTR"}`)))}}const Gt=()=>getTurboModule("demoTurbo").getTurboConfig(),qt=s.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}});class Qt extends l.a.Component{constructor(e){super(e),this.state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},this.onTurboFunc=this.onTurboFunc.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.getRowKey=this.getRowKey.bind(this)}async onTurboFunc(e){let t;if("nativeWithPromise"===e)t=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=Gt(),t="获取到config对象";else if("printTurboConfig"===e)n=this.config||Gt(),t=getTurboModule("demoTurbo").printTurboConfig(n);else if("getInfo"===e)t=(this.config||Gt()).getInfo();else if("setInfo"===e)(this.config||Gt()).setInfo("Hello World"),t="设置config信息成功";else{t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[e]()}var n;this.setState({result:t})}renderResultView(){return l.a.createElement(s.View,{style:qt.resultView},l.a.createElement(s.Text,{style:{backgroundColor:"darkseagreen"}},""+this.state.result))}getRenderRow(e){const{funList:t}=this.state;return l.a.createElement(s.View,{style:qt.cellContentView},l.a.createElement(s.View,{style:qt.funcInfo},l.a.createElement(s.Text,{numberofLines:0},"函数名:",t[e])),l.a.createElement(s.Text,{style:qt.actionButton,onClick:()=>this.onTurboFunc(t[e])},"执行"))}getRowKey(e){const{funList:t}=this.state;return t[e]}render(){const{funList:e}=this.state;return l.a.createElement(s.View,{style:qt.container},this.renderResultView(),l.a.createElement(s.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}const Yt=s.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}});class Xt extends l.a.Component{constructor(e){super(e),this.state={layoutHeight:0,currentSlide:0}}selectPage(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}render(){const{layoutHeight:e,currentSlide:t}=this.state;return l.a.createElement(s.ScrollView,{style:Yt.demoWrap,scrollEventThrottle:50,onLayout:e=>this.setState({layoutHeight:e.layout.height})},l.a.createElement(s.View,{style:Yt.banner}),l.a.createElement(s.View,{style:Yt.tabs},l.a.createElement(s.Text,{key:"tab1",style:0===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(0)},"tab 1 (parent first)"),l.a.createElement(s.Text,{key:"tab2",style:1===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(1)},"tab 2 (self first)")),l.a.createElement(s.ViewPager,{ref:e=>this.viewPager=e,initialPage:t,style:{height:e-80},onPageSelected:e=>this.setState({currentSlide:e.position})},l.a.createElement(s.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd}),l.a.createElement(s.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd})))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t 组件",component:$t.View,meta:{type:en.COMPONENT}},{path:"/Text",name:" 组件",component:$t.Text,meta:{type:en.COMPONENT}},{path:"/Image",name:" 组件",component:$t.Image,meta:{type:en.COMPONENT}},{path:"/ListView",name:" 组件",component:$t.ListView,meta:{type:en.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:$t.WaterfallView,meta:{type:en.COMPONENT}},{path:"/PullHeader",name:" 组件",component:$t.PullHeaderFooter,meta:{type:en.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:$t.RefreshWrapper,meta:{type:en.COMPONENT}},{path:"/ScrollView",name:" 组件",component:$t.ScrollView,meta:{type:en.COMPONENT}},{path:"/ViewPager",name:" 组件",component:$t.ViewPager,meta:{type:en.COMPONENT}},{path:"/TextInput",name:" 组件",component:$t.TextInput,meta:{type:en.COMPONENT}},{path:"/Modal",name:" 组件",component:$t.Modal,meta:{type:en.COMPONENT}},{path:"/Slider",name:" 组件",component:$t.Slider,meta:{type:en.COMPONENT}},{path:"/TabHost",name:" 组件",component:$t.TabHost,meta:{type:en.COMPONENT}},{path:"/WebView",name:" 组件",component:$t.WebView,meta:{type:en.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:$t.RippleViewAndroid,meta:{type:en.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:en.TITLE,mapType:en.MODULE}},{path:"/Animation",name:"Animation 模块",component:$t.Animation,meta:{type:en.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:$t.WebSocket,meta:{type:en.MODULE}},{path:"/NetInfo",name:"Network 模块",component:$t.NetInfo,meta:{type:en.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:$t.UIManagerModule,meta:{type:en.MODULE}},{path:"/Others",name:"Others",meta:{type:en.TITLE,mapType:en.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:$t.NestedScroll,meta:{type:en.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:$t.BoxShadow,meta:{type:en.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:$t.SetNativeProps,meta:{type:en.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:$t.DynamicImport,meta:{type:en.OTHER}},{path:"/Localization",name:"Localization 范例",component:$t.Localization,meta:{type:en.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:$t.Turbo,meta:{type:en.OTHER}}],nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC";const on="#1E304A",rn=s.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:on,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:on,lineHeight:16}});var an=F(({history:e,route:t})=>0===e.index?l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,null,l.a.createElement(s.Text,{numberOfLines:1,style:[rn.title]},t.name)),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},"unspecified"!==s.default.version?""+s.default.version:"master"))):l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,{onClick:()=>e.goBack(),style:[rn.headerButton]},l.a.createElement(s.Image,{style:rn.backIcon,source:{uri:nn}})),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},t.name))));function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sn(e){for(var t=1;t{t[en[e]]=!1}),this.state={pressItem:"",dataSource:[...tn],typeVisibleState:t},this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.clickTo=this.clickTo.bind(this),this.clickToggle=this.clickToggle.bind(this)}componentDidMount(){const{history:e}=this.props;"android"===s.Platform.OS&&s.BackAndroid.addListener(()=>(console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)))}getRowType(e){const{dataSource:t}=this.state;return t[e].meta.type}getRowKey(e){const{dataSource:t}=this.state;return t[e].path||""+e}feedback(e){const t=e||"";this.setState({pressItem:t})}clickTo(e){const{history:t}=this.props;t.push(e)}clickToggle(e){this.setState({typeVisibleState:sn(sn({},this.state.typeVisibleState),{},{[e]:!this.state.typeVisibleState[e]})})}renderRow(e){const{dataSource:t,pressItem:n,typeVisibleState:o}=this.state,r=t[e],{type:i}=r.meta;if(i===en.TITLE){const{mapType:e}=r.meta;return l.a.createElement(s.View,{style:[cn.typeContainer,o[e]?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{borderBottomLeftRadius:4,borderBottomRightRadius:4}],onClick:()=>this.clickToggle(e)},l.a.createElement(s.Text,{style:cn.typeText},r.name),l.a.createElement(s.Image,{style:[cn.arrowIcon,o[e]?{transform:[{rotate:"-90deg"}]}:{transform:[{rotate:"180deg"}]}],source:{uri:nn}}))}let a=!1;const c=t[e+1],h=t.length-1;return(c&&c.meta.type===en.TITLE||e===h)&&(a=!0),l.a.createElement(s.View,{style:o[i]?{display:"flex"}:{display:"none"}},l.a.createElement(s.View,{onPressIn:()=>this.feedback(r.path),onPressOut:()=>this.feedback(),onClick:()=>this.clickTo(r.path),style:[cn.buttonView,{opacity:n===r.path?.5:1}]},l.a.createElement(s.Text,{style:cn.buttonText},r.name)),a?null:l.a.createElement(s.View,{style:cn.separatorLine}))}render(){const{dataSource:e}=this.state;return l.a.createElement(s.ListView,{style:{flex:1},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey,paintType:"fcp"})}}const un=[{path:"/Gallery",name:"Hippy React",component:F(hn)},...tn];var dn=()=>l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(k,{initialEntries:["/Gallery"]},un.map(e=>{const t=e.component;return l.a.createElement(P,{key:e.path,exact:!0,path:""+e.path},l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(an,{route:e}),l.a.createElement(t,null)))})));const mn={container:{flex:1,paddingHorizontal:16,backgroundColor:"#E5E5E5"}};class gn extends a.Component{render(){const{children:e}=this.props;return l.a.createElement(s.View,{style:mn.container,onLayout:this.onLayout},e)}}class fn extends a.Component{componentDidMount(){s.ConsoleModule.log("~~~~~~~~~~~~~~~~~ This is a log from ConsoleModule ~~~~~~~~~~~~~~~~~")}render(){return l.a.createElement(gn,null,l.a.createElement(dn,null))}}},"./src/main.js":function(e,t,n){"use strict";n.r(t),function(e){var t=n("../../packages/hippy-react/dist/index.js"),o=n("./src/app.jsx");e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)}),new t.Hippy({appName:"Demo",entryPage:o.a,bubbles:!1,silent:!1}).start()}.call(this,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}}); \ No newline at end of file + */var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,h=o?Symbol.for("react.context"):60110,u=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,p=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,S=o?Symbol.for("react.responder"):60118,x=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case l:case g:return e;default:switch(e=e&&e.$$typeof){case h:case m:case p:case y:case c:return e;default:return t}}case i:return t}}}function T(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=h,t.ContextProvider=c,t.Element=r,t.ForwardRef=m,t.Fragment=a,t.Lazy=p,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=g,t.isAsyncMode=function(e){return T(e)||E(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return E(e)===h},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===p},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===l||e===g||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===y||e.$$typeof===c||e.$$typeof===h||e.$$typeof===m||e.$$typeof===w||e.$$typeof===S||e.$$typeof===x||e.$$typeof===b)},t.typeOf=E},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){var o=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function m(){}function g(){}var f={};s(f,i,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(v([])));p&&p!==t&&n.call(p,i)&&(f=p);var b=g.prototype=d.prototype=Object.create(f);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=h(e[r],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=h(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var r=h(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function v(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return fn}));var o={};n.r(o),n.d(o,"Focusable",(function(){return N})),n.d(o,"Image",(function(){return q})),n.d(o,"ListView",(function(){return $})),n.d(o,"Modal",(function(){return re})),n.d(o,"RefreshWrapper",(function(){return Re})),n.d(o,"PullHeaderFooter",(function(){return ke})),n.d(o,"ScrollView",(function(){return Oe})),n.d(o,"Text",(function(){return Be})),n.d(o,"TextInput",(function(){return ze})),n.d(o,"View",(function(){return _e})),n.d(o,"ViewPager",(function(){return Je})),n.d(o,"WebView",(function(){return $e})),n.d(o,"BoxShadow",(function(){return nt})),n.d(o,"WaterfallView",(function(){return it})),n.d(o,"RippleViewAndroid",(function(){return dt}));var r={};n.r(r),n.d(r,"Animation",(function(){return yt})),n.d(r,"AsyncStorage",(function(){return bt})),n.d(r,"NetInfo",(function(){return St})),n.d(r,"WebSocket",(function(){return At})),n.d(r,"UIManagerModule",(function(){return It}));var i={};n.r(i),n.d(i,"Slider",(function(){return Bt})),n.d(i,"TabHost",(function(){return zt})),n.d(i,"SetNativeProps",(function(){return _t})),n.d(i,"DynamicImport",(function(){return Wt})),n.d(i,"Localization",(function(){return Ut})),n.d(i,"Turbo",(function(){return Qt})),n.d(i,"NestedScroll",(function(){return Xt}));var a=n("./node_modules/react/index.js"),l=n.n(a),s=n("../../packages/hippy-react/dist/index.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;h--){var m=r[h];"."===m?d(r,h):".."===m?(d(r,h),c++):c&&(d(r,h),c--)}if(!l)for(;c--;c)r.unshift("..");!l||""===r[0]||r[0]&&u(r[0])||r.unshift("");var g=r.join("/");return n&&"/"!==g.substr(-1)&&(g+="/"),g};var g="Invariant failed";function f(e,t){if(!e)throw new Error(g)}function y(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function p(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=h({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=m(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;ot?n.splice(t,n.length-t,o):n.push(o),u({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=p(e,t,d(),x.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(x.entries[x.index]=o,u({action:"REPLACE",location:o}))}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},canGo:function(e){var t=x.index+e;return t>=0&&tthis.onClick(e),requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},l.a.createElement(s.Text,{style:{color:"white"}},t===e?"我被点击了"+e:"没有被点击"+e)))}render(){return l.a.createElement(s.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}var W=n.p+"assets/defaultSource.jpg",K=n.p+"assets/hippyLogoWhite.png";const U="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",G=s.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"},img_result:{width:300,marginTop:-15,marginLeft:16,fontSize:16,color:"#4c9afa",borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4}});class q extends l.a.Component{constructor(e){super(e),this.state={gifLoadResult:{}}}render(){const{width:e,height:t,url:n}=this.state.gifLoadResult;return l.a.createElement(s.ScrollView,{style:G.container_style},l.a.createElement(s.Text,{style:G.info_style},"Contain:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.contain,defaultSource:W,source:{uri:U},onProgress:e=>{console.log("onProgress",e)},onLoadStart:()=>{console.log("image onloadStart")},onLoad:()=>{console.log("image onLoad")},onError:e=>{console.log("image onError",e)},onLoadEnd:()=>{console.log("image onLoadEnd")}}),l.a.createElement(s.Text,{style:G.info_style},"Cover:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"Center:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"CapInsets:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"TintColor:"),l.a.createElement(s.Image,{style:[G.image_style,{tintColor:"#4c9afa99"}],defaultSource:W,source:{uri:K},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"Cover GIF:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.cover,defaultSource:W,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoad:e=>{console.log("gif onLoad result: "+e);const{width:t,height:n,url:o}=e;this.setState({gifLoadResult:{width:t,height:n,url:o}})}}),l.a.createElement(s.Text,{style:G.img_result},`gifLoadResult: { width: ${e}, height: ${t}, url: ${n} }`))}}const Q=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],Y=s.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function X({index:e}){return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 1 UI"))}function J({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 2 UI"))}function Z({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 5 UI"))}class $ extends l.a.Component{constructor(e){super(e),this.state={dataSource:Q,fetchingDataFlag:!1,horizontal:void 0},this.delText="Delete",this.mockFetchData=this.mockFetchData.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.onDelete=this.onDelete.bind(this),this.onAppear=this.onAppear.bind(this),this.onDisappear=this.onDisappear.bind(this),this.onWillAppear=this.onWillAppear.bind(this),this.onWillDisappear=this.onWillDisappear.bind(this),this.rowShouldSticky=this.rowShouldSticky.bind(this),this.onScroll=this.onScroll.bind(this)}onDelete({index:e}){const{dataSource:t}=this.state,n=t.filter((t,n)=>e!==n);this.setState({dataSource:n})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e.concat(n);this.setState({dataSource:o,fetchingDataFlag:!1})}onAppear(e){console.log("onAppear",e)}onScroll(e){console.log("onScroll",e.contentOffset.y),e.contentOffset.y<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1}onDisappear(e){console.log("onDisappear",e)}onWillAppear(e){console.log("onWillAppear",e)}onWillDisappear(e){console.log("onWillDisappear",e)}rowShouldSticky(e){return 2===e}getRowType(e){return this.state.dataSource[e].style}getRowStyle(){const{horizontal:e}=this.state;return e?{width:100,height:50}:{}}getRowKey(e){return"row-"+e}getRenderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(X,{index:e});break;case 2:n=l.a.createElement(J,{index:e});break;case 5:n=l.a.createElement(Z,{index:e});break;case 100:n=l.a.createElement(s.Text,{style:Y.loading},"Loading now...")}return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.View,{style:Y.itemContainer},n),r?null:l.a.createElement(s.View,{style:Y.separatorLine}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(Q),600)})}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{onTouchDown:e=>{console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:e=>{console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:e=>(console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0),bounces:!0,horizontal:t,style:[{backgroundColor:"#ffffff"},t?{height:50}:{flex:1}],numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e),delText:this.delText,editable:!0,getRowStyle:this.getRowStyle,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear,onScroll:this.onScroll,scrollEventThrottle:1e3}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const ee="#4c9afa",te="#4c9afa",ne="white",oe=s.StyleSheet.create({container:{flex:1,flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},buttonView:{borderColor:ee,borderWidth:2,borderStyle:"solid",borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:ee,textAlign:"center",textAlignVertical:"center"},selectionText:{fontSize:20,textAlign:"center",textAlignVertical:"center",marginLeft:10,marginRight:10,padding:5,borderRadius:5,borderWidth:2}});class re extends l.a.Component{constructor(e){super(e),this.state={visible:!1,press:!1,animationType:"fade",immerseStatusBar:!1,hideStatusBar:!1,hideNavigationBar:!1},this.show=this.show.bind(this),this.hide=this.hide.bind(this)}feedback(e){this.setState({press:"in"===e})}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}render(){const{press:e,visible:t}=this.state;return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:oe.container},l.a.createElement(s.View,{onPressIn:()=>this.feedback("in"),onPressOut:()=>this.feedback("out"),onClick:this.show,style:[oe.buttonView,{borderColor:ee,opacity:e?.5:1}]},l.a.createElement(s.Text,{style:[oe.buttonText,{color:ee}]},"点击弹出浮层"))),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"fade"})},style:[oe.selectionText,{borderColor:"fade"===this.state.animationType?"red":ee},{color:"fade"===this.state.animationType?"red":ee}]},"fade"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide"})},style:[oe.selectionText,{borderColor:"slide"===this.state.animationType?"red":ee},{color:"slide"===this.state.animationType?"red":ee}]},"slide"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide_fade"})},style:[oe.selectionText,{borderColor:"slide_fade"===this.state.animationType?"red":ee},{color:"slide_fade"===this.state.animationType?"red":ee}]},"slide_fade")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideStatusBar:!this.state.hideStatusBar})},style:[oe.selectionText,{borderColor:this.state.hideStatusBar?"red":ee},{color:this.state.hideStatusBar?"red":ee}]},"autoHideStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({immerseStatusBar:!this.state.immerseStatusBar})},style:[oe.selectionText,{borderColor:this.state.immerseStatusBar?"red":ee},{color:this.state.immerseStatusBar?"red":ee}]},"immersionStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideNavigationBar:!this.state.hideNavigationBar})},style:[oe.selectionText,{borderColor:this.state.hideNavigationBar?"red":ee},{color:this.state.hideNavigationBar?"red":ee}]},"autoHideNavigationBar")),l.a.createElement(s.Modal,{transparent:!0,animationType:this.state.animationType,visible:t,requestClose:()=>{},orientationChange:e=>{console.log("orientation changed",e.orientation)},supportedOrientations:["portrait"],immersionStatusBar:this.state.immerseStatusBar,autoHideStatusBar:this.state.hideStatusBar,autoHideNavigationBar:this.state.hideNavigationBar},l.a.createElement(s.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},l.a.createElement(s.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:te,marginTop:300,flexDirection:"row",justifyContent:"center"}},l.a.createElement(s.Text,{style:{color:ne,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}const ie="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ae={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ie,ie,ie],subInfo:["三图评论","11评"]}},le={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},se={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var ce=[se,ae,le,ae,le,ae,le,se,ae],he=n("./node_modules/@babel/runtime/helpers/extends.js"),ue=n.n(he);var de={getScreenWidth(){const e=s.Dimensions.get("screen").width,t=s.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray(e){const t=[];for(let n=0;n=812&&s.PixelRatio.get()>=2&&(e=!0),e}};const me=(de.getScreenWidth()-24-12)/3,ge=Math.floor(me/1.35),fe=s.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:ge,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:me,height:ge},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function ye(e){const{itemBean:{title:t,picList:n}}=e;let{itemBean:{subInfo:o}}=e,r=null;if(o&&o.length){o=de.uniqueArray(o);const e=o.join(" ");r=l.a.createElement(s.Text,{style:fe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:{collapsable:!1}}),l.a.createElement(s.Text,{style:[fe.title],numberOfLines:2,enableScale:!0},t),l.a.createElement(s.View,{style:fe.imageContainer},l.a.createElement(s.Image,{style:fe.image,source:{uri:n[0]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:[fe.image,{marginLeft:6,marginRight:6}],source:{uri:n[1]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:fe.image,source:{uri:n[2]},resizeMode:s.Image.resizeMode.cover})),r?l.a.createElement(s.View,{style:fe.tagLine},r):null)}const pe=de.getScreenWidth()-24,be=Math.floor(pe-12)/3,we=Math.floor(be/1.35),Se=s.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:we},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:be,height:we},image:{width:be,height:we},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function xe(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;let n=null;const{title:o,picUrl:r}=t;let{subInfo:i}=t;if(i&&i.length){i=de.uniqueArray(i);const e=i.join(" ");n=l.a.createElement(s.Text,{style:Se.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:Se.container}),l.a.createElement(s.View,{style:Se.leftContainer},l.a.createElement(s.Text,{style:Se.title,numberOfLines:2,enableScale:!0},o),n?l.a.createElement(s.View,{style:Se.tagLine},n):null),l.a.createElement(s.View,{style:Se.imageContainer},l.a.createElement(s.Image,{resizeMode:s.Image.resizeMode.cover,style:Se.image,source:{uri:r}})))}const Ee=de.getScreenWidth()-24,Te=Math.floor(188*Ee/336),Ce=s.StyleSheet.create({text:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ee,height:Te,alignSelf:"center"},image:{width:Ee,height:Te},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ae(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;const{title:n,picUrl:o}=t;let{subInfo:r}=t,i=null;if(r&&r.length){r=de.uniqueArray(r);const e=r.join(" ");i=l.a.createElement(s.Text,{style:Ce.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,e,l.a.createElement(s.Text,{style:Ce.text,numberOfLines:2,enableScale:!0},n),l.a.createElement(s.View,{style:Ce.playerView},l.a.createElement(s.Image,{style:Ce.image,source:{uri:o},resizeMode:s.Image.resizeMode.cover})),i?l.a.createElement(s.View,{style:Ce.tagLine},i):null)}const ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});class Re extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],loadingState:"正在加载..."},this.fetchTimes=0,this.mockFetchData=this.mockFetchData.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e[e.length-1];o&&100===o.style&&e.pop();const r=e.concat(n);this.setState({dataSource:r})}onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}onClickItem(e){console.log(`item: ${e} is clicked..`)}getRenderRow(e){const{dataSource:t,loadingState:n}=this.state;let o=null;const r=t[e],i=t.length===e+1;switch(r.style){case 1:o=l.a.createElement(ye,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 2:o=l.a.createElement(xe,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 5:o=l.a.createElement(Ae,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 100:o=l.a.createElement(s.Text,{style:ve.loading},n)}return l.a.createElement(s.View,{style:ve.container},l.a.createElement(s.View,{style:ve.itemContainer},o),i?null:l.a.createElement(s.View,{style:ve.spliter}))}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:30}},l.a.createElement(s.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.setState({fetchingDataFlag:!1}),this.fetchTimes+=1,this.fetchTimes>=50?e([]):e(ce)),600)})}render(){const{dataSource:e}=this.state;return l.a.createElement(s.RefreshWrapper,{ref:e=>{this.refresh=e},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},l.a.createElement(s.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}const Ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class ke extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.mockFetchData=this.mockFetchData.bind(this),this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.getFooterStyle=this.getFooterStyle.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e}),this.listView.collapsePullHeader()}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(ce),800)})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData(),e=e.reverse()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ve.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}onClickItem(e,t){console.log(`item: ${e} is clicked..`,t.target.nodeId,t.currentTarget.nodeId)}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:Ve.pullContainer},l.a.createElement(s.Text,{style:Ve.pullContent},e))}getFooterStyle(){const{horizontal:e}=this.state;return e?{width:40}:{}}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:Ve.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}renderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 2:n=l.a.createElement(xe,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)})}return l.a.createElement(s.View,{style:Ve.container},l.a.createElement(s.View,{style:Ve.itemContainer},n),r?null:l.a.createElement(s.View,{style:Ve.splitter}))}getRowStyle(){const{horizontal:e}=this.state;return e?{height:300,justifyContent:"center",alignItems:"center"}:{}}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{horizontal:t,onClick:e=>console.log("ListView",e.target.nodeId,e.currentTarget.nodeId),ref:e=>{this.listView=e},style:[{backgroundColor:"#ffffff"},t?{height:300}:{flex:1}],numberOfRows:e.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:e=>0===e}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const Ie=s.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function Oe(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Horizontal ScrollView")),l.a.createElement(s.View,null,l.a.createElement(s.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:e=>console.log("onScroll",e),onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e)},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A"))),l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Vertical ScrollView")),l.a.createElement(s.ScrollView,{bounces:!0,horizontal:!1,style:Ie.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A")))}const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",Pe="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",Le=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}});let je=0;class Be extends l.a.Component{constructor(e){super(e),this.state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},scrollColor:"gray",numberOfLines:2,ellipsizeMode:void 0},this.incrementFontSize=this.incrementFontSize.bind(this),this.decrementFontSize=this.decrementFontSize.bind(this),this.incrementLine=this.incrementLine.bind(this),this.decrementLine=this.decrementLine.bind(this),this.changeMode=this.changeMode.bind(this),this.changeColor=this.changeColor.bind(this)}incrementFontSize(){const{fontSize:e}=this.state;24!==e&&this.setState({fontSize:e+1})}decrementFontSize(){const{fontSize:e}=this.state;6!==e&&this.setState({fontSize:e-1})}incrementLine(){const{numberOfLines:e}=this.state;e<6&&this.setState({numberOfLines:e+1})}decrementLine(){const{numberOfLines:e}=this.state;e>1&&this.setState({numberOfLines:e-1})}changeMode(e){this.setState({ellipsizeMode:e})}changeColor(){this.setState({scrollColor:"red"})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{fontSize:e,textShadowColor:t,textShadowOffset:n,numberOfLines:o,ellipsizeMode:r,breakStrategy:i,scrollColor:a}=this.state,c=e=>l.a.createElement(s.View,{style:Le.itemTitle},l.a.createElement(s.Text,{style:!0},e));return l.a.createElement(s.ScrollView,{style:{padding:10,color:a,fontFamily:"TTTGB"}},c("shadow"),l.a.createElement(s.View,{style:[Le.itemContent,{height:60}],onClick:()=>{let e="red",t={x:10,y:1};je%2==1&&(e="grey",t={x:1,y:1}),je+=1,this.setState({textShadowColor:e,textShadowOffset:t})}},l.a.createElement(s.Text,{style:[Le.normalText,{color:"#242424",textShadowOffset:n,textShadowRadius:3,textShadowColor:t}]},"Text shadow is grey with radius 3 and offset 1")),c("color"),l.a.createElement(s.View,{style:[Le.itemContent,{height:80}]},l.a.createElement(s.Text,{style:[Le.normalText,{color:"#242424"}]},"Text color is black"),l.a.createElement(s.Text,{style:[Le.normalText,{color:"blue"}]},"Text color is blue"),l.a.createElement(s.Text,{style:[Le.normalText,{color:"rgb(228,61,36)"}]},"This is red")),c("fontSize"),l.a.createElement(s.View,{style:[Le.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},l.a.createElement(s.Text,{style:[Le.normalText,{fontSize:e}]},"Text fontSize is "+e),l.a.createElement(s.View,{style:Le.button,onClick:this.changeColor},l.a.createElement(s.Text,{style:Le.buttonText},"切换字体颜色")),l.a.createElement(s.View,{style:Le.button,onClick:this.incrementFontSize},l.a.createElement(s.Text,{style:Le.buttonText},"放大字体")),l.a.createElement(s.View,{style:Le.button,onClick:this.decrementFontSize},l.a.createElement(s.Text,{style:Le.buttonText},"缩小字体"))),c("fontStyle"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[Le.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),l.a.createElement(s.Text,{style:[Le.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),c("numberOfLines and ellipsizeMode"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[Le.normalText,{marginBottom:10}]},`numberOfLines=${o} | ellipsizeMode=${r}`),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),l.a.createElement(s.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),l.a.createElement(s.Text,null,"Text + Attachment")),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:this.incrementLine},l.a.createElement(s.Text,{style:Le.buttonText},"加一行")),l.a.createElement(s.View,{style:Le.button,onClick:this.decrementLine},l.a.createElement(s.Text,{style:Le.buttonText},"减一行"))),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("clip")},l.a.createElement(s.Text,{style:Le.buttonText},"clip")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("head")},l.a.createElement(s.Text,{style:Le.buttonText},"head")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("middle")},l.a.createElement(s.Text,{style:Le.buttonText},"middle")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("tail")},l.a.createElement(s.Text,{style:Le.buttonText},"tail")))),c("textDecoration"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),c("LetterSpacing"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),c("Nest Text"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:3},l.a.createElement(s.Text,{numberOfLines:3,style:[Le.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),l.a.createElement(s.Text,{numberOfLines:3,style:Le.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),c("Custom font"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:Le.customFont},"Hippy 跨端框架")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),c("Text Nested"),l.a.createElement(s.View,{style:[Le.itemContent,{height:150}]},l.a.createElement(s.Text,{style:{height:100,lineHeight:50}},l.a.createElement(s.Text,{numberOfLines:1,style:Le.normalText},"后面有张图片"),l.a.createElement(s.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),l.a.createElement(s.Text,{numberOfLines:1,style:Le.customFont},"前面有张图片")),l.a.createElement(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},l.a.createElement(s.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:De}}),l.a.createElement(s.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===s.Platform.OS&&c("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(s.View,{style:Le.itemContent},l.a.createElement(s.Text,{style:[Le.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:i},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),l.a.createElement(s.Text,{style:Le.normalText},"breakStrategy: "+i),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Le.buttonText},"simple")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Le.buttonText},"high_quality")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Le.buttonText},"balanced")))),c("verticalAlign"),l.a.createElement(s.View,{style:[Le.itemContent,{height:"android"===s.Platform.OS?160:70}]},l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,top:-10},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,top:-5},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,top:3},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字")))),c("tintColor & backgroundColor"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:De}})))),c("margin"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:De}})),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:De}})))))}}const Me=s.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}});class ze extends a.Component{constructor(e){super(e),this.state={textContent:""},this.changeInputContent=this.changeInputContent.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this)}changeInputContent(){this.setState({textContent:"当前时间毫秒:"+Date.now()})}focus(){this.input.focus()}blur(){this.input.blur()}async onFocus(){const e=await this.input.isFocused();this.setState({event:"onFocus",isFocused:e})}async onBlur(){const e=await this.input.isFocused();this.setState({event:"onBlur",isFocused:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{textContent:e,event:t,isFocused:n,breakStrategy:o}=this.state,r=e=>l.a.createElement(s.View,{style:Me.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:Me.container_style},r("text"),l.a.createElement(s.TextInput,{ref:e=>{this.input=e},style:Me.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:e,onBlur:()=>this.onBlur(),onFocus:()=>this.onFocus()}),l.a.createElement(s.Text,{style:Me.itemContent},`事件: ${t} | isFocused: ${n}`),l.a.createElement(s.View,{style:Me.button,onClick:this.changeInputContent},l.a.createElement(s.Text,null,"点击改变输入框内容")),l.a.createElement(s.View,{style:Me.button,onClick:this.focus},l.a.createElement(s.Text,null,"Focus")),l.a.createElement(s.View,{style:Me.button,onClick:this.blur},l.a.createElement(s.Text,null,"Blur")),r("numeric"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"numeric",placeholder:"numeric"}),r("phone-pad"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),r("password"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),r("maxLength"),l.a.createElement(s.TextInput,{caretColor:"yellow",style:Me.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===s.Platform.OS&&r("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.TextInput,{style:Me.input_style_block,breakStrategy:o,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),l.a.createElement(s.Text,{style:{}},"breakStrategy: "+o),l.a.createElement(s.View,{style:Me.buttonBar},l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Me.buttonText},"simple")),l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Me.buttonText},"high_quality")),l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Me.buttonText},"balanced")))))}}var Fe=n.p+"assets/defaultSource.jpg";const He=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function _e(){const e=e=>l.a.createElement(s.View,{style:He.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),l.a.createElement(s.View,{style:[He.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:Fe}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},l.a.createElement(s.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},l.a.createElement(s.Text,{style:{color:"white"}},"渐变色")),e("border props"),l.a.createElement(s.View,{style:[He.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),l.a.createElement(s.View,{style:[He.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"yellow"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"blue"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"green"}]})))}const Ne=s.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),We="SquarePagerView",Ke="TrianglePagerView",Ue="CirclePagerView";function Ge(e,t){const n=t=>l.a.createElement(s.View,{style:Ne.pageContainer,key:t},l.a.createElement(s.View,{style:[Ne.shapeBase,e],key:"shape"}),l.a.createElement(s.View,{style:Ne.mainRec,key:"title"},t?l.a.createElement(s.Text,{style:Ne.title},t):null));return n.displayName=t,n}const qe=Ge(Ne.square,We),Qe=Ge(Ne.triangle,Ke),Ye=Ge(Ne.circle,Ue),Xe=s.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}});class Je extends l.a.Component{constructor(e){super(e),_()(this,"state",{selectedIndex:0}),this.onPageSelected=this.onPageSelected.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageSelected(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}onPageScrollStateChanged(e){console.log("onPageScrollStateChanged",e)}onPageScroll({offset:e,position:t}){console.log("onPageScroll",e,t)}render(){const{selectedIndex:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},l.a.createElement(s.View,{style:Xe.buttonContainer},l.a.createElement(s.View,{style:Xe.button,onClick:()=>{this.viewpager.setPage(2)}},l.a.createElement(s.Text,{style:Xe.buttonText},"动效滑到第3页")),l.a.createElement(s.View,{style:Xe.button,onClick:()=>this.viewpager.setPageWithoutAnimation(0)},l.a.createElement(s.Text,{style:Xe.buttonText},"直接滑到第1页"))),l.a.createElement(s.ViewPager,{ref:e=>{this.viewpager=e},style:Xe.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[qe("squarePager"),Qe("TrianglePager"),Ye("CirclePager")]),l.a.createElement(s.View,{style:Xe.dotContainer},new Array(3).fill(0).map((t,n)=>{const o=n===e;return l.a.createElement(s.View,{style:[Xe.dot,o?Xe.selectDot:null],key:"dot_"+n})})))}}const Ze=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function $e(){return l.a.createElement(s.View,{style:{paddingHorizontal:10,flex:1}},l.a.createElement(s.View,{style:Ze.itemTitle},l.a.createElement(s.Text,null,"WebView 示例")),l.a.createElement(s.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Ze.webViewStyle,onLoad:({url:e})=>console.log("webview onload",e),onLoadStart:({url:e})=>console.log("webview onLoadStart",e),onLoadEnd:({url:e,success:t,error:n})=>console.log("webview onLoadEnd",e,t,n)}))}const et=s.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),tt=s.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function nt(){return l.a.createElement(s.View,{style:et.shadowDemo},"android"===s.Platform.OS?l.a.createElement(s.View,{style:et.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:et.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))):l.a.createElement(s.View,{style:et.shadowDemoCubeIos},l.a.createElement(s.View,{style:et.shadowDemoContentIos},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))),"android"===s.Platform.OS?l.a.createElement(s.View,{style:tt.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:tt.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))):l.a.createElement(s.View,{style:tt.shadowDemoCubeIos},l.a.createElement(s.View,{style:tt.shadowDemoContentIos},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))))}const ot=ce.filter(e=>2!==e.style),rt=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class it extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.numberOfColumns=2,this.columnSpacing=6,this.interItemSpacing=6,this.mockFetchData=this.mockFetchData.bind(this),this.renderItem=this.renderItem.bind(this),this.getItemType=this.getItemType.bind(this),this.getItemKey=this.getItemKey.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this),this.renderBanner=this.renderBanner.bind(this),this.getItemStyle=this.getItemStyle.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.onScroll=this.onScroll.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>rt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:rt.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}async onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}onClickItem(e){console.log(`item: ${e} is clicked..`)}getItemType(e){return this.state.dataSource[e].style}getItemKey(e){return"row-"+e}onItemClick(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}onScroll(e){}renderBanner(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}renderItem(e){const{dataSource:t}=this.state;let n=null;const o=t[e];switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean});break;case 2:n=l.a.createElement(xe,{itemBean:o.itemBean});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean})}return l.a.createElement(s.View,{onClick:()=>this.onItemClick(e),style:rt.container},l.a.createElement(s.View,{style:rt.itemContainer},n),l.a.createElement(s.View,{style:rt.splitter}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>{const t=[...ot,...ot];return e(t)},600)})}getWaterfallContentInset(){return{top:0,left:0,bottom:0,right:0}}getItemStyle(){const{numberOfColumns:e,columnSpacing:t}=this,n=s.Dimensions.get("screen").width-32,o=this.getWaterfallContentInset();return{width:(n-o.left-o.right-(e-1)*t)/e}}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:rt.pullContainer},l.a.createElement(s.Text,{style:rt.pullContent},e))}render(){const{dataSource:e}=this.state,{numberOfColumns:t,columnSpacing:n,interItemSpacing:o}=this,r=this.getWaterfallContentInset();return l.a.createElement(s.WaterfallView,{ref:e=>{this.listView=e},numberOfColumns:t,columnSpacing:n,interItemSpacing:o,numberOfItems:e.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:r})}}var at=n.p+"assets/defaultSource.jpg";function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{i.current.setPressed(!1)},{nativeBackgroundAndroid:h,style:u}=e;return l.a.createElement(s.View,{onLayout:()=>{s.UIManagerModule.measureInAppWindow(i.current,e=>{n(e.x),r(e.y)})},style:u,onTouchDown:e=>{i.current.setHotspot(e.page_x-t,e.page_y-o),i.current.setPressed(!0)},onTouchEnd:c,onTouchCancel:c,ref:i,nativeBackgroundAndroid:st(st({},ct),h)},e.children)}const ut=s.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderStyle:"solid",borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,borderStyle:"solid",backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:at,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function dt(){return"ios"===s.Platform.OS?l.a.createElement(s.Text,null,"iOS暂未支持水波纹效果"):l.a.createElement(s.ScrollView,{style:{margin:10,flex:1}},l.a.createElement(s.View,{style:[ut.imgRectangle,{marginTop:20,backgroundImage:at,backgroundSize:"cover"}]},l.a.createElement(ht,{style:[ut.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white",maxWidth:200}},"外层背景图,内层无边框水波纹,受外层影响始终有边框"))),l.a.createElement(ht,{style:[ut.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},l.a.createElement(s.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),l.a.createElement(ht,{style:[ut.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"#fff"}},"带背景色水波纹")),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white"}},"有边框水波纹,带本地底图效果"))),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"black"}},"有边框水波纹,带网络底图效果"))))}const mt="#4c9afa",gt="#f44837",ft=s.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:gt},showArea:{height:150,marginVertical:10},button:{borderColor:mt,borderWidth:2,borderStyle:"solid",justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:mt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}});class yt extends l.a.Component{constructor(e){super(e),this.state={}}componentWillMount(){this.horizonAnimation=new s.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new s.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.rotateAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:180,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:180,toValue:360,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewXAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewYAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new s.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}componentDidMount(){"web"===s.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef),this.rotateAnimationSet.setRef(this.rotateRef),this.skewXAnimationSet.setRef(this.skewRef),this.skewYAnimationSet.setRef(this.skewRef)),this.horizonAnimation.onAnimationStart(()=>{console.log("on animation start!!!")}),this.horizonAnimation.onAnimationEnd(()=>{console.log("on animation end!!!")}),this.horizonAnimation.onAnimationCancel(()=>{console.log("on animation cancel!!!")}),this.horizonAnimation.onAnimationRepeat(()=>{console.log("on animation repeat!!!")})}componentWillUnmount(){this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.bgColorAnimationSet&&this.bgColorAnimationSet.destroy(),this.txtColorAnimationSet&&this.txtColorAnimationSet.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy(),this.rotateAnimationSet&&this.rotateAnimationSet.destroy(),this.skewXAnimationSet&&this.skewXAnimationSet.destroy(),this.skewYAnimationSet&&this.skewYAnimationSet.destroy()}render(){return l.a.createElement(s.ScrollView,{style:ft.container},l.a.createElement(s.Text,{style:ft.title},"水平位移动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.horizonAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},l.a.createElement(s.Text,{style:ft.buttonText},"更新"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.horizonRef=e},style:[ft.square,{transform:[{translateX:this.horizonAnimation}]}]})),l.a.createElement(s.Text,{style:ft.title},"高度形变动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.verticalAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.verticalRef=e},style:[ft.square,{height:this.verticalAnimation}]})),l.a.createElement(s.Text,{style:ft.title},"旋转动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.rotateAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.rotateRef=e},style:[ft.square,{transform:[{rotate:this.rotateAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"倾斜动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.start(),this.skewYAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.skewXAnimationSet.pause(),this.skewYAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.resume(),this.skewYAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.skewRef=e},style:[ft.square,{transform:[{skewX:this.skewXAnimationSet},{skewY:this.skewYAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"缩放动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.scaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.scaleRef=e},style:[ft.square,{transform:[{scale:this.scaleAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"颜色渐变动画(文字渐变仅Android支持)"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.start(),this.txtColorAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.bgColorAnimationSet.pause(),this.txtColorAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.resume(),this.txtColorAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.bgColorRef=e},style:[ft.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},l.a.createElement(s.Text,{ref:e=>{this.textColorRef=e},style:[ft.colorText,{color:"android"===s.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),l.a.createElement(s.Text,{style:ft.title},"贝塞尔曲线动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.cubicBezierScaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.cubicBezierScaleRef=e},style:[ft.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}const pt=s.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}});class bt extends l.a.Component{constructor(e){super(e),this.state={result:""},this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onTextChangeValue=this.onTextChangeValue.bind(this),this.onClickSet=this.onClickSet.bind(this),this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onClickGet=this.onClickGet.bind(this)}onClickSet(){const{key:e,value:t}=this.state;e&&s.AsyncStorage.setItem(e,t)}onClickGet(){const{key:e}=this.state;e&&s.AsyncStorage.getItem(e).then(e=>{this.setState({result:e})})}onTextChangeKey(e){this.setState({key:e})}onTextChangeValue(e){this.setState({value:e})}render(){const{result:e}=this.state;return l.a.createElement(s.ScrollView,{style:pt.containerStyle},l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeValue})),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickSet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Set")),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{marginTop:60}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{display:"none"}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.Text,{style:[pt.infoStyle,{width:200}]},e)),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickGet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Get")))}}const wt=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},wrapper:{borderColor:"#eee",borderWidth:1,borderStyle:"solid",paddingHorizontal:10,paddingVertical:5,marginVertical:10,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},infoContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginTop:5,marginBottom:5,flexWrap:"wrap"},infoText:{collapsable:!1,marginVertical:5}});class St extends l.a.Component{constructor(e){super(e),this.state={netInfoStatusTxt:"",netInfoChangeTxt:"",fetchInfoTxt:"",cookies:""},this.listener=null}async fetchNetInfoStatus(){this.setState({netInfoStatusTxt:await s.NetInfo.fetch()})}fetchUrl(){fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>(this.setState({fetchInfoTxt:"成功状态: "+e.status}),e)).catch(e=>{this.setState({fetchInfoTxt:"收到错误: "+e})})}setCookies(){s.NetworkModule.setCookie("https://hippyjs.org","name=hippy;network=mobile")}getCookies(){s.NetworkModule.getCookies("https://hippyjs.org").then(e=>{this.setState({cookies:e})})}async componentWillMount(){const e=this;this.listener=s.NetInfo.addEventListener("change",t=>{e.setState({netInfoChangeTxt:""+t.network_info})})}componentWillUnmount(){this.listener&&s.NetInfo.removeEventListener("change",this.listener)}componentDidMount(){this.fetchUrl(),this.fetchNetInfoStatus()}render(){const{netInfoStatusTxt:e,fetchInfoTxt:t,netInfoChangeTxt:n,cookies:o}=this.state,r=e=>l.a.createElement(s.View,{style:wt.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},r("Fetch"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchUrl()},l.a.createElement(s.Text,{style:{color:"white"}},"请求 hippy 网址:")),l.a.createElement(s.Text,{style:wt.infoText},t))),r("NetInfo"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchNetInfoStatus()},l.a.createElement(s.Text,{style:{color:"white"}},"获取网络状态:")),l.a.createElement(s.Text,{style:wt.infoText},e)),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10}},l.a.createElement(s.Text,{style:{color:"white"}},"监听网络变化:")),l.a.createElement(s.Text,{style:wt.infoText},n))),r("NetworkModule"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.setCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"设置Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},"name=hippy;network=mobile")),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.getCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"获取Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},o))))}}const xt=s.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),Et="wss://echo.websocket.org",Tt="Rock it with Hippy WebSocket";let Ct;var At=function(){const e=Object(a.useRef)(null),t=Object(a.useRef)(null),[n,o]=Object(a.useState)([]),r=e=>{o(t=>[e,...t])};return l.a.createElement(s.View,{style:xt.fullScreen},l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Url:"),l.a.createElement(s.TextInput,{ref:e,value:Et,style:xt.input}),l.a.createElement(s.View,{style:xt.row},l.a.createElement(s.Text,{onClick:()=>{e.current.getValue().then(e=>{Ct&&1===Ct.readyState&&Ct.close(),Ct=new WebSocket(e),Ct.onopen=()=>r("[Opened] "+Ct.url),Ct.onclose=()=>r("[Closed] "+Ct.url),Ct.onerror=e=>r("[Error] "+e.reason),Ct.onmessage=e=>r("[Received] "+e.data)})},style:xt.button},"Connect"),l.a.createElement(s.Text,{onClick:()=>Ct.close(),style:xt.button},"Disconnect"))),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Message:"),l.a.createElement(s.TextInput,{ref:t,value:Tt,style:xt.input}),l.a.createElement(s.Text,{onClick:()=>t.current.getValue().then(e=>{r("[Sent] "+e),Ct.send(e)}),style:xt.button},"Send")),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Log:"),l.a.createElement(s.ScrollView,{style:xt.fullScreen},n.map((e,t)=>l.a.createElement(s.Text,{key:t,style:xt.output},e)))))};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t{const e=s.Dimensions.get("screen");({width:t,height:n}=e)});const[o,r]=Object(a.useState)({width:100,height:100,top:10,left:10}),[i,c]=Object(a.useState)({width:0,height:0,x:0,y:0}),h=async(t=!1)=>{try{const n=await s.UIManagerModule.getBoundingClientRect(e.current,{relToContainer:t});c(n)}catch(e){console.error("getBoxPosition error",e)}},u=Rt(Rt({},Vt.box),o);return l.a.createElement(s.View,{style:Vt.full},l.a.createElement(s.View,{style:Vt.demoContent},l.a.createElement(s.View,{ref:e,style:u},l.a.createElement(s.Text,{style:Vt.text,numberOfLines:2},"I am the box"))),l.a.createElement(s.View,{style:Vt.buttonContainer},l.a.createElement(s.View,{onClick:()=>{const e=kt(0,t-100),o=kt(0,n-450),i=kt(80,120);r({left:e,top:o,width:i,height:i})},style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Move position")),l.a.createElement(s.View,{onClick:()=>h(!1),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in App Window")),l.a.createElement(s.View,{onClick:()=>h(!0),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in Container(RootView)"))),l.a.createElement(s.View,{style:Vt.row},l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"Box style:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+u.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+u.height),l.a.createElement(s.Text,{style:Vt.black},"Left: "+u.left),l.a.createElement(s.Text,{style:Vt.black},"Top: "+u.top)),l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"getBoundingClientRect output:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+i.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+i.height),l.a.createElement(s.Text,{style:Vt.black},"X: "+i.x),l.a.createElement(s.Text,{style:Vt.black},"Y: "+i.y))))};const Ot=s.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}});class Dt extends l.a.Component{constructor(e){super(e),this.state={current:e.current||0}}update(e){const{current:t}=this.state;t!==e&&this.setState({current:e})}render(){const{count:e}=this.props,{current:t}=this.state,n=[];for(let o=0;o=r||(this.indicator&&this.indicator.update(o),this.currentIndex=o)}onScrollBeginDrag(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}onScrollEndDrag(){this.doCreateTimer()}onLayout(e){this.width=e.layout.width}doSwitchPage(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}doCreateTimer(){this.doClearTimer(),this.duration<=0||(this.interval=setInterval(()=>{this.doSwitchPage((this.currentIndex+1)%this.itemCount)},this.duration))}doClearTimer(){this.interval&&clearInterval(this.interval),this.interval=null}render(){const{images:e}=this.props,t=[];for(let n=0;n{this.scrollView=e}},t),l.a.createElement(Dt,{ref:e=>{this.indicator=e},count:this.itemCount}))}}_()(Pt,"defaultProps",{duration:0,currentPage:0,images:[]});const Lt=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],jt=s.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Bt(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.Text,{style:jt.infoStyle},"Auto:"),l.a.createElement(Pt,{style:jt.sliderStyle,images:Lt,duration:1e3}),l.a.createElement(s.Text,{style:jt.infoStyle},"Manual:"),l.a.createElement(Pt,{style:jt.sliderStyle,images:Lt,duration:0}))}const Mt=s.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1,borderStyle:"solid"},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}});class zt extends l.a.Component{constructor(e){super(e),this.state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},this.navScrollView=null,this.viewPager=null,this.onViewPagerChange=this.onViewPagerChange.bind(this),this.pressNavItem=this.pressNavItem.bind(this),this.scrollSV=this.scrollSV.bind(this)}static getPage(e,t){switch(t%3){case 0:return qe(e);case 1:return Ye(e);case 2:return Qe(e);default:return null}}componentDidUpdate(){this.scrollSV()}onViewPagerChange({position:e}){this.setState({curIndex:e})}scrollSV(){if(this.navScrollView){const{curIndex:e,navList:t}=this.state,n=t.length,o=de.getScreenWidth(),r=o/2/60,i=60*nn-r?60*n-o:60*e-60*r+30,this.navScrollView.scrollTo({x:a,y:0,animated:!0})}}pressNavItem(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}renderNav(){const{navList:e,curIndex:t}=this.state;return l.a.createElement(s.View,{style:Mt.container},l.a.createElement(s.ScrollView,{style:Mt.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:e=>{this.navScrollView=e}},e.map((e,n)=>l.a.createElement(s.View,{style:Mt.navItem,key:"nav_"+e,activeOpacity:.5,onClick:()=>this.pressNavItem(n)},l.a.createElement(s.Text,{style:[Mt.navItemText,t===n?Mt.navItemTextBlue:Mt.navItemTextNormal],numberOfLines:1},e)))))}render(){const{navList:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),l.a.createElement(s.ViewPager,{ref:e=>{this.viewPager=e},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},e.map((e,t)=>zt.getPage(e,t))))}}const{width:Ft}=s.Dimensions.get("window"),Ht=s.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}});class _t extends l.a.Component{constructor(e){super(e),this.demon1Point=l.a.createRef(),this.demo1PointDom=null,this.state={demo2Left:0},this.isDemon1Layouted=!1,this.idDemon2Layouted=!1,this.onTouchDown1=this.onTouchDown1.bind(this),this.onDemon1Layout=this.onDemon1Layout.bind(this),this.onTouchMove1=this.onTouchMove1.bind(this),this.onTouchDown2=this.onTouchDown2.bind(this),this.onTouchMove2=this.onTouchMove2.bind(this)}componentDidMount(){}onDemon1Layout(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=s.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}onTouchDown1(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchMove1(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchDown2(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.setState({demo2Left:n})}onTouchMove2(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.setState({demo2Left:n})}render(){const{demo2Left:e}=this.state;return l.a.createElement(s.View,{style:Ht.setNativePropsDemo},l.a.createElement(s.Text,null,"setNativeProps实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},l.a.createElement(s.View,{onLayout:this.onDemon1Layout,style:Ht.nativeDemo1Point,ref:this.demon1Point})),l.a.createElement(s.View,{style:Ht.splitter}),l.a.createElement(s.Text,null,"普通渲染实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},l.a.createElement(s.View,{style:[Ht.nativeDemo2Point,{left:e}]})))}}const Nt=s.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Wt extends l.a.Component{constructor(e){super(e),this.state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},this.onAsyncComponentLoad=this.onAsyncComponentLoad.bind(this)}onAsyncComponentLoad(){console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then(e=>{this.setState({AsyncComponentFromLocal:e.default||e})}).catch(e=>console.error("import async local component error",e)),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then(e=>{this.setState({AsyncComponentFromHttp:e.default||e})}).catch(e=>console.error("import async remote component error",e))}render(){const{AsyncComponentFromLocal:e,AsyncComponentFromHttp:t}=this.state;return l.a.createElement(s.View,{style:Nt.dynamicImportDemo},l.a.createElement(s.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),l.a.createElement(s.View,{style:{marginTop:20}},e?l.a.createElement(e,null):null,t?l.a.createElement(t,null):null))}}const Kt=s.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Ut extends l.a.Component{render(){const{country:e,language:t,direction:n}=s.Platform.Localization||{};return l.a.createElement(s.View,{style:Kt.LocalizationDemo},l.a.createElement(s.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},`国际化相关信息:国家 ${e} | 语言 ${t} | 方向 ${1===n?"RTL":"LTR"}`)))}}const Gt=()=>getTurboModule("demoTurbo").getTurboConfig(),qt=s.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}});class Qt extends l.a.Component{constructor(e){super(e),this.state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},this.onTurboFunc=this.onTurboFunc.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.getRowKey=this.getRowKey.bind(this)}async onTurboFunc(e){let t;if("nativeWithPromise"===e)t=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=Gt(),t="获取到config对象";else if("printTurboConfig"===e)n=this.config||Gt(),t=getTurboModule("demoTurbo").printTurboConfig(n);else if("getInfo"===e)t=(this.config||Gt()).getInfo();else if("setInfo"===e)(this.config||Gt()).setInfo("Hello World"),t="设置config信息成功";else{t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[e]()}var n;this.setState({result:t})}renderResultView(){return l.a.createElement(s.View,{style:qt.resultView},l.a.createElement(s.Text,{style:{backgroundColor:"darkseagreen"}},""+this.state.result))}getRenderRow(e){const{funList:t}=this.state;return l.a.createElement(s.View,{style:qt.cellContentView},l.a.createElement(s.View,{style:qt.funcInfo},l.a.createElement(s.Text,{numberofLines:0},"函数名:",t[e])),l.a.createElement(s.Text,{style:qt.actionButton,onClick:()=>this.onTurboFunc(t[e])},"执行"))}getRowKey(e){const{funList:t}=this.state;return t[e]}render(){const{funList:e}=this.state;return l.a.createElement(s.View,{style:qt.container},this.renderResultView(),l.a.createElement(s.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}const Yt=s.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}});class Xt extends l.a.Component{constructor(e){super(e),this.state={layoutHeight:0,currentSlide:0}}selectPage(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}render(){const{layoutHeight:e,currentSlide:t}=this.state;return l.a.createElement(s.ScrollView,{style:Yt.demoWrap,scrollEventThrottle:50,onLayout:e=>this.setState({layoutHeight:e.layout.height})},l.a.createElement(s.View,{style:Yt.banner}),l.a.createElement(s.View,{style:Yt.tabs},l.a.createElement(s.Text,{key:"tab1",style:0===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(0)},"tab 1 (parent first)"),l.a.createElement(s.Text,{key:"tab2",style:1===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(1)},"tab 2 (self first)")),l.a.createElement(s.ViewPager,{ref:e=>this.viewPager=e,initialPage:t,style:{height:e-80},onPageSelected:e=>this.setState({currentSlide:e.position})},l.a.createElement(s.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd}),l.a.createElement(s.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd})))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t 组件",component:$t.View,meta:{type:en.COMPONENT}},{path:"/Text",name:" 组件",component:$t.Text,meta:{type:en.COMPONENT}},{path:"/Image",name:" 组件",component:$t.Image,meta:{type:en.COMPONENT}},{path:"/ListView",name:" 组件",component:$t.ListView,meta:{type:en.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:$t.WaterfallView,meta:{type:en.COMPONENT}},{path:"/PullHeader",name:" 组件",component:$t.PullHeaderFooter,meta:{type:en.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:$t.RefreshWrapper,meta:{type:en.COMPONENT}},{path:"/ScrollView",name:" 组件",component:$t.ScrollView,meta:{type:en.COMPONENT}},{path:"/ViewPager",name:" 组件",component:$t.ViewPager,meta:{type:en.COMPONENT}},{path:"/TextInput",name:" 组件",component:$t.TextInput,meta:{type:en.COMPONENT}},{path:"/Modal",name:" 组件",component:$t.Modal,meta:{type:en.COMPONENT}},{path:"/Slider",name:" 组件",component:$t.Slider,meta:{type:en.COMPONENT}},{path:"/TabHost",name:" 组件",component:$t.TabHost,meta:{type:en.COMPONENT}},{path:"/WebView",name:" 组件",component:$t.WebView,meta:{type:en.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:$t.RippleViewAndroid,meta:{type:en.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:en.TITLE,mapType:en.MODULE}},{path:"/Animation",name:"Animation 模块",component:$t.Animation,meta:{type:en.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:$t.WebSocket,meta:{type:en.MODULE}},{path:"/NetInfo",name:"Network 模块",component:$t.NetInfo,meta:{type:en.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:$t.UIManagerModule,meta:{type:en.MODULE}},{path:"/Others",name:"Others",meta:{type:en.TITLE,mapType:en.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:$t.NestedScroll,meta:{type:en.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:$t.BoxShadow,meta:{type:en.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:$t.SetNativeProps,meta:{type:en.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:$t.DynamicImport,meta:{type:en.OTHER}},{path:"/Localization",name:"Localization 范例",component:$t.Localization,meta:{type:en.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:$t.Turbo,meta:{type:en.OTHER}}],nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC";const on="#1E304A",rn=s.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:on,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:on,lineHeight:16}});var an=F(({history:e,route:t})=>0===e.index?l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,null,l.a.createElement(s.Text,{numberOfLines:1,style:[rn.title]},t.name)),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},"unspecified"!==s.default.version?""+s.default.version:"master"))):l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,{onClick:()=>e.goBack(),style:[rn.headerButton]},l.a.createElement(s.Image,{style:rn.backIcon,source:{uri:nn}})),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},t.name))));function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sn(e){for(var t=1;t{t[en[e]]=!1}),this.state={pressItem:"",dataSource:[...tn],typeVisibleState:t},this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.clickTo=this.clickTo.bind(this),this.clickToggle=this.clickToggle.bind(this)}componentDidMount(){const{history:e}=this.props;"android"===s.Platform.OS&&s.BackAndroid.addListener(()=>(console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)))}getRowType(e){const{dataSource:t}=this.state;return t[e].meta.type}getRowKey(e){const{dataSource:t}=this.state;return t[e].path||""+e}feedback(e){const t=e||"";this.setState({pressItem:t})}clickTo(e){const{history:t}=this.props;t.push(e)}clickToggle(e){this.setState({typeVisibleState:sn(sn({},this.state.typeVisibleState),{},{[e]:!this.state.typeVisibleState[e]})})}renderRow(e){const{dataSource:t,pressItem:n,typeVisibleState:o}=this.state,r=t[e],{type:i}=r.meta;if(i===en.TITLE){const{mapType:e}=r.meta;return l.a.createElement(s.View,{style:[cn.typeContainer,o[e]?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{borderBottomLeftRadius:4,borderBottomRightRadius:4}],onClick:()=>this.clickToggle(e)},l.a.createElement(s.Text,{style:cn.typeText},r.name),l.a.createElement(s.Image,{style:[cn.arrowIcon,o[e]?{transform:[{rotate:"-90deg"}]}:{transform:[{rotate:"180deg"}]}],source:{uri:nn}}))}let a=!1;const c=t[e+1],h=t.length-1;return(c&&c.meta.type===en.TITLE||e===h)&&(a=!0),l.a.createElement(s.View,{style:o[i]?{display:"flex"}:{display:"none"}},l.a.createElement(s.View,{onPressIn:()=>this.feedback(r.path),onPressOut:()=>this.feedback(),onClick:()=>this.clickTo(r.path),style:[cn.buttonView,{opacity:n===r.path?.5:1}]},l.a.createElement(s.Text,{style:cn.buttonText},r.name)),a?null:l.a.createElement(s.View,{style:cn.separatorLine}))}render(){const{dataSource:e}=this.state;return l.a.createElement(s.ListView,{style:{flex:1},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey,paintType:"fcp"})}}const un=[{path:"/Gallery",name:"Hippy React",component:F(hn)},...tn];var dn=()=>l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(k,{initialEntries:["/Gallery"]},un.map(e=>{const t=e.component;return l.a.createElement(P,{key:e.path,exact:!0,path:""+e.path},l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(an,{route:e}),l.a.createElement(t,null)))})));const mn={container:{flex:1,paddingHorizontal:16,backgroundColor:"#E5E5E5"}};class gn extends a.Component{render(){const{children:e}=this.props;return l.a.createElement(s.View,{style:mn.container,onLayout:this.onLayout},e)}}class fn extends a.Component{componentDidMount(){s.ConsoleModule.log("~~~~~~~~~~~~~~~~~ This is a log from ConsoleModule ~~~~~~~~~~~~~~~~~")}render(){return l.a.createElement(gn,null,l.a.createElement(dn,null))}}},"./src/main.js":function(e,t,n){"use strict";n.r(t),function(e){var t=n("../../packages/hippy-react/dist/index.js"),o=n("./src/app.jsx");e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)}),new t.Hippy({appName:"Demo",entryPage:o.a,bubbles:!1,silent:!1}).start()}.call(this,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/react/vendor.android.js b/framework/examples/android-demo/res/react/vendor.android.js index aaf2551ffac..773e8edf776 100644 --- a/framework/examples/android-demo/res/react/vendor.android.js +++ b/framework/examples/android-demo/res/react/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 Cn})),n.d(t,"Animation",(function(){return Qe})),n.d(t,"AnimationSet",(function(){return Xe})),n.d(t,"AppRegistry",(function(){return vn})),n.d(t,"AsyncStorage",(function(){return Jn})),n.d(t,"BackAndroid",(function(){return Zn})),n.d(t,"Clipboard",(function(){return tr})),n.d(t,"ConsoleModule",(function(){return hr})),n.d(t,"Dimensions",(function(){return vr})),n.d(t,"Easing",(function(){return xn})),n.d(t,"EventBus",(function(){return Pe})),n.d(t,"Focusable",(function(){return Qn})),n.d(t,"Hippy",(function(){return yr})),n.d(t,"HippyEventEmitter",(function(){return Se})),n.d(t,"HippyEventListener",(function(){return Ee})),n.d(t,"HippyRegister",(function(){return ir})),n.d(t,"Image",(function(){return Sn})),n.d(t,"ImageBackground",(function(){return gr})),n.d(t,"ImageLoaderModule",(function(){return or})),n.d(t,"ListView",(function(){return _n})),n.d(t,"ListViewItem",(function(){return Nn})),n.d(t,"Modal",(function(){return $n})),n.d(t,"Navigator",(function(){return An})),n.d(t,"NetInfo",(function(){return ar})),n.d(t,"NetworkModule",(function(){return nr})),n.d(t,"PixelRatio",(function(){return br})),n.d(t,"Platform",(function(){return mr})),n.d(t,"PullFooter",(function(){return In})),n.d(t,"PullHeader",(function(){return Pn})),n.d(t,"RefreshWrapper",(function(){return Ln})),n.d(t,"ScrollView",(function(){return Wn})),n.d(t,"StyleSheet",(function(){return Dn})),n.d(t,"Text",(function(){return En})),n.d(t,"TextInput",(function(){return Fn})),n.d(t,"TimerModule",(function(){return pr})),n.d(t,"UIManagerModule",(function(){return lr})),n.d(t,"View",(function(){return bn})),n.d(t,"ViewPager",(function(){return zn})),n.d(t,"WaterfallView",(function(){return Xn})),n.d(t,"WebSocket",(function(){return Kn})),n.d(t,"WebView",(function(){return qn})),n.d(t,"callNative",(function(){return ur})),n.d(t,"callNativeWithCallbackId",(function(){return fr})),n.d(t,"callNativeWithPromise",(function(){return cr})),n.d(t,"colorParse",(function(){return He})),n.d(t,"default",(function(){return gn})),n.d(t,"flushSync",(function(){return sr})),n.d(t,"removeNativeCallback",(function(){return dr}));var i=n("./node_modules/react/index.js"),o=n.n(i),a=n("./node_modules/@hippy/react-reconciler/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"],v=["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 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){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}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 E(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 S(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 C(e){for(var t=1;t=0||(i[n]=e[n]);return i} +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 Nn})),n.d(t,"Animation",(function(){return qe})),n.d(t,"AnimationSet",(function(){return Je})),n.d(t,"AppRegistry",(function(){return wn})),n.d(t,"AsyncStorage",(function(){return er})),n.d(t,"BackAndroid",(function(){return tr})),n.d(t,"Clipboard",(function(){return rr})),n.d(t,"ConsoleModule",(function(){return yr})),n.d(t,"Dimensions",(function(){return wr})),n.d(t,"Easing",(function(){return Pn})),n.d(t,"EventBus",(function(){return Ie})),n.d(t,"Focusable",(function(){return Gn})),n.d(t,"Hippy",(function(){return vr})),n.d(t,"HippyEventEmitter",(function(){return xe})),n.d(t,"HippyEventListener",(function(){return ke})),n.d(t,"HippyRegister",(function(){return ar})),n.d(t,"Image",(function(){return Cn})),n.d(t,"ImageBackground",(function(){return br})),n.d(t,"ImageLoaderModule",(function(){return lr})),n.d(t,"ListView",(function(){return Tn})),n.d(t,"ListViewItem",(function(){return In})),n.d(t,"Modal",(function(){return qn})),n.d(t,"Navigator",(function(){return zn})),n.d(t,"NetInfo",(function(){return sr})),n.d(t,"NetworkModule",(function(){return ir})),n.d(t,"PixelRatio",(function(){return Er})),n.d(t,"Platform",(function(){return gr})),n.d(t,"PullFooter",(function(){return Ln})),n.d(t,"PullHeader",(function(){return _n})),n.d(t,"RefreshWrapper",(function(){return An})),n.d(t,"ScrollView",(function(){return $n})),n.d(t,"StyleSheet",(function(){return Wn})),n.d(t,"Text",(function(){return Sn})),n.d(t,"TextInput",(function(){return Mn})),n.d(t,"TimerModule",(function(){return mr})),n.d(t,"UIManagerModule",(function(){return ur})),n.d(t,"View",(function(){return En})),n.d(t,"ViewPager",(function(){return jn})),n.d(t,"WaterfallView",(function(){return Zn})),n.d(t,"WebSocket",(function(){return Xn})),n.d(t,"WebView",(function(){return Kn})),n.d(t,"callNative",(function(){return fr})),n.d(t,"callNativeWithCallbackId",(function(){return pr})),n.d(t,"callNativeWithPromise",(function(){return dr})),n.d(t,"colorParse",(function(){return Me})),n.d(t,"default",(function(){return bn})),n.d(t,"flushSync",(function(){return cr})),n.d(t,"removeNativeCallback",(function(){return hr}));var i=n("./node_modules/react/index.js"),o=n.n(i),a=n("./node_modules/@hippy/react-reconciler/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"],v=["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 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=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){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}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 E(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 S(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||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:P,bridge:I,device:_,document:L,register:T,on:A,off:R,emit:z}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:A,removeEventListener:R,dispatchEvent:z,AsyncStorage:P,Bridge:I,Device:_,HippyRegister:T,UIManager:L});let j,F;const H=new Map;function M(e,t){F=e,j=t}function B(){if(!F)throw new Error("getRootViewId must execute after setRootContainer");return F}function D(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 U(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=0,G=1,K=-1,Y=1,X={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},J={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Z={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const ee=new RegExp(/^\d+$/);let te=!1,ne=!1;function re(...e){ce()&&console.log(...e)}function ie(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const oe=new RegExp("^on.+Capture$");function ae(e){return oe.test(e)}const le=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function se(e){return"[object Function]"===Object.prototype.toString.call(e)}function ue(e){te=e}function ce(){return!1}function fe(){return ne}function de(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class pe{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 he{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const me=new Map,ye=["%c[event]%c","color: green","color: auto"];function ge(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function ve(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return me.get(e)||null}const be={registerNativeEventHub:function(e){if(re(...ye,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=me.get(e);return t||(t=new pe(e),me.set(e,t)),t},getHippyEventHub:ve,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);me.has(e)&&me.delete(e)},receiveNativeEvent:function(e){if(re(...ye,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=ve(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(re(...ye,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a={}}=e,l=$(r),s=$(n);l&&s&&(Z[i]?function(e,t,n,r,i,o){try{let t=!1;const a=V(r),l=V(n),{eventPhase:s}=o;if(ge(e,n)&&ae(e)&&[J.AT_TARGET,J.CAPTURING_PHASE].indexOf(s)>-1){const t=new he(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(ge(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(s)>-1){const r=new he(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!fe()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=V(r),s=V(n);try{const{eventPhase:t}=o;if(ge(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(t)>-1){const r=new he(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!fe(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=be);class we{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 Ee{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=be.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=>{xe(e,t,n)}):xe(e,t,n),Pe},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=>{Ne(e,t)}):Ne(e,t),Pe},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=Ce[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=be.getHippyEventHub(e);return n?(n.notifyEvent(...t),Pe):Pe}};function Ie(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const _e={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},Le="[-+]?\\d*\\.?\\d+",Te={rgb:new RegExp("rgb"+Ie(Le,Le,Le)),rgba:new RegExp("rgba"+Ie(Le,Le,Le,Le)),hsl:new RegExp("hsl"+Ie(Le,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Ie(Le,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Le)),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 Ae(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Re(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ze(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 Oe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ze(i,r,e+1/3),a=ze(i,r,e),l=ze(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function je(e){return(parseFloat(e)%360+360)%360/360}function Fe(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function He(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Te.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(_e,e)?_e[e]:(t=Te.rgb.exec(e),Array.isArray(t)?(Ae(t[1])<<24|Ae(t[2])<<16|Ae(t[3])<<8|255)>>>0:(t=Te.rgba.exec(e),t?(Ae(t[1])<<24|Ae(t[2])<<16|Ae(t[3])<<8|Re(t[4]))>>>0:(t=Te.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Te.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Te.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Te.hsl.exec(e),t?(255|Oe(je(t[1]),Fe(t[2]),Fe(t[3])))>>>0:(t=Te.hsla.exec(e),t?(Oe(je(t[1]),Fe(t[2]),Fe(t[3]))|Re(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Me(e){return Array.isArray(e)?e.map(e=>He(e)):[0]}function Be(e){return"loop"===e?-1:e}function De(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?He(t):t}const Ue="animationstart",We="animationend",Ve="animationcancel",$e="animationrepeat";class Qe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=De(t.valueType,e)}const i=De(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=Be(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,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.animationId=this.animation.getId(),this.destroy=this.destroy.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(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ue),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(We),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ve),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener($e)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ue,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(We,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ve,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener($e,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");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;if(e.startValue instanceof Qe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=De(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Be(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:De(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 qe="animationstart",Ge="animationend",Ke="animationcancel",Ye="animationrepeat";class Xe{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:Be(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),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(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(qe),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ke),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ye)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(qe,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ge,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Je={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let Ze=!0,et=[];function tt(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!Z[e]}(r)?Z[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===G&&t.removeEventListener(n,l,o),i===q&&t.addEventListener(n,l,o,a)})}})}function nt(e,t){0}function rt(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case Je.createNode:nt(e.printedNodes),r.create(e.nodes),tt(e.eventNodes,r);break;case Je.updateNode:nt(e.printedNodes),r.update(e.nodes),tt(e.eventNodes,r);break;case Je.deleteNode:nt(e.printedNodes),r.delete(e.nodes);break;case Je.moveNode:nt(e.printedNodes),r.move(e.nodes)}}),r.build()}function it(e=!1){if(!Ze)return;if(Ze=!1,0===et.length)return void(Ze=!0);const t=B();e?(rt(t),et=[],Ze=!0):Promise.resolve().then(()=>{rt(t),et=[],Ze=!0})}function ot(e){const t=e.attributes,{children:n}=t;return N(t,s)}function at(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);const i={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:C(C({},ot(t)),{},{style:t.style}),tagName:t.tagName},o=function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t);let a=void 0;return[[i,n],o,a]}function lt(e,t,n,r={}){const i=[],o=[],a=[];return t.traverseChildren((t,r)=>{const[l,s,u]=at(e,t,r);l&&i.push(l),s&&o.push(s),u&&a.push(u),"function"==typeof n&&n(t)},r),[i,o,a]}function st(e){return!!j&&e instanceof j.containerInfo.constructor}function ut(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i=st(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const[e,i,o]=lt(r,t,e=>{e.isMounted||(e.isMounted=!0)},n);et.push({type:Je.createNode,nodes:e,eventNodes:i,printedNodes:o})}}function ct(e){if(!e.isMounted)return;const t=B(),[n,r,i]=at(t,e);n&&et.push({type:Je.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}let ft=0;class dt{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(ft+=1,ft%10==0&&(ft+=1),ft)}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),ut(this,e,{refId:t.nodeId,relativeToRef:K})}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);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];et.push({printedNodes:a,type:Je.moveNode,nodes:o,eventNodes:[]})}(this,e,{refId:t.nodeId,relativeToRef:K})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),ut(this,e,n&&{refId:n.nodeId,relativeToRef:Y})}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),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=B(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];et.push({printedNodes:o,type:Je.deleteNode,nodes:i,eventNodes:[]})}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}const 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",yt="rad",gt="deg";function vt(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=gt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case mt:r=""+(360*n).toFixed(2);break;case yt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==ht[i]&&(r=ht[i]),r}function bt(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:He(n)}:void 0:{color:He(n)}}class wt extends dt{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})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}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,ee.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=C(C({},n),e)}):"object"==typeof e&&e&&(n=C(C({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(pt,e)&&(e=pt[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 Qe||r instanceof Xe?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 Qe||t instanceof Xe)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Me(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=He(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=vt(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=bt(e);t&&r.push(t)}}else{const t=bt(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=de(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})}}),ct(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=B(),[n,r,i]=lt(t,e)||{};n&&et.push({type:Je.updateNode,nodes:n,eventNodes:r,printedNodes:i})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ie(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=function(e){return ae(e)&&(e=e.replace("Capture","")),X[e]?X[e][1]:e}(e);this.events[e]?this.events[e]&&this.events[e].type!==q&&(this.events[e].type=q):this.events[e]={name:t,type:q,isCapture:ae(e),listener:(n=t,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};be.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return this.events[e].type=G,!1;this.attributes[e]=t}var n,r;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&&ct(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ct(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(pt,e)&&(i=pt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Me(r):i.toLowerCase().indexOf("color")>-1?He(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&le.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ct(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)}),ct(this),it(!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=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class Et extends dt{constructor(){super(),this.documentElement=new wt("document")}createElement(e){return new wt(e)}createElementNS(e,t){return new wt(`${e}:${t}`)}}Et.createElement=Et.prototype.createElement,Et.createElementNS=Et.prototype.createElementNS;var kt=Array.isArray,St=Object.keys,Ct=Object.prototype.hasOwnProperty;const xt=setTimeout,Nt=clearTimeout;var Pt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){it(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:xt,cancelTimeout:Nt,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){U(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),U(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ie(e)),i.meta={component:{name:"Text"}},U(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=kt(t),l=kt(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=St(t);if((i=d.length)!==St(n).length)return!1;for(r=i;0!=r--;)if(!Ct.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=C(C({},t),{},{style:C(C({},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 It=l()(C(C({},Pt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var _t=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var Lt=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function Tt(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function At(e){I.callNative("ImageLoaderModule","prefetch",e)}var Rt=Object.freeze({__proto__:null,getSize:Tt,prefetch:At});const zt=new Map,Ot=new Se;class jt{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ft(this.eventName,this.listener),this.listener=void 0)}}function Ft(e,t){if(t instanceof jt)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=zt.get(t);if(!r)return;r.remove(),zt.delete(t);Ot.listenerSize(n)<1&&I.callNative("NetInfo","removeListener",n)}var Ht=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Ot.listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);const r=Ot.addListener(n,e=>{t(e)});return zt.set(t,r),new jt(n,t)},removeEventListener:Ft,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Mt,updateNode:Bt,deleteNode:Dt,flushBatch:Ut,endBatch:Wt,sendRenderError:Vt}=L,$t=["%c[native]%c","color: red","color: auto"],Qt=function(e){return D(t=>t.stateNode&&t.stateNode.nodeId===e)};function qt(e){if(e instanceof wt)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 wt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Gt(e){let t=e;if("string"==typeof e){const n=D(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=qt(t);return e?e.nodeId:0}return t.nodeId}function Kt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=qt(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;se(o)&&(a=o,o=[]);null!==B()&&(re(...$t,"callUIFunction",{nodeId:i,funcName:t,paramList:o}),L.callUIFunction(i,t,o,a))}function Yt(e,t,n){const r=Gt(t);return new Promise((t,i)=>r?(re(...$t,"callUIFunction",{nodeId:r,funcName:e,paramList:[]}),L.callUIFunction(r,e,[],e=>(n&&se(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&se(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Xt=Object.freeze({__proto__:null,createNode:Mt,updateNode:Bt,deleteNode:Dt,flushBatch:Ut,endBatch:Wt,sendRenderError:Vt,getNodeById:Qt,getNodeIdByRef:Gt,getElementFromFiberRef:qt,callUIFunction:Kt,getBoundingClientRect:function(e,t){const n=Gt(e);return new Promise((r,i)=>n?(re(...$t,"callUIFunction",{nodeId:n,funcName:"getBoundingClientRect",params:t}),L.callUIFunction(n,"getBoundingClientRect",[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 Yt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?Yt("measureInWindow",e,t):Yt("measureInAppWindow",e,t)}});const Jt=new Se,Zt=new Set,en={exitApp(){I.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(I.callNative("DeviceEventModule","setListenBackPress",!0),Zt.add(e),{remove(){en.removeListener(e)}}),removeListener(e){Zt.delete(e),0===Zt.size&&I.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Jt.addListener("hardwareBackPress",()=>{let e=!0;[...Zt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&en.exitApp()})}},tn=(en.initEventListener(),en),{flushSync:nn}=It,{addEventListener:rn,removeEventListener:on,dispatchEvent:an,AsyncStorage:ln,Bridge:sn,Device:un,HippyRegister:cn}=O;var fn=Object.freeze({__proto__:null,addEventListener:rn,removeEventListener:on,dispatchEvent:an,AsyncStorage:ln,BackAndroid:tn,Bridge:sn,Clipboard:_t,Cookie:Lt,Device:un,HippyRegister:cn,ImageLoader:Rt,NetworkInfo:Ht,UIManager:Xt,flushSync:nn});const{createContainer:dn,updateContainer:pn,getPublicRootInstance:hn,injectIntoDevTools:mn}=It,yn=['%c[Hippy-React "3.3.0"]%c',"color: #61dafb","color: auto"];class gn{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 Et;this.rootContainer=dn(t,0,!1,null)}static get Native(){return fn}start(){cn.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;re(...yn,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ue(r),i&&function(e=!1){ne=e}(i),M(l,this.rootContainer);const s=o.a.createElement(n,e);return pn(s,this.rootContainer,null,a),hn(this.rootContainer)}}gn.version="3.3.0";const vn={registerComponent(e,t){new gn({appName:e,entryPage:t}).start()}};class bn extends o.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Kt(this.instance,"setPressed",[e])}setHotspot(e,t){Kt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=He(a.color)),o.a.createElement("div",C({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function wn(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=ie(r.children);else if("number"==typeof r.children)r.text=ie(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=ie(e),r.children=r.text)}return o.a.createElement("p",C({ref:t,nativeName:"Text",style:i},r))}wn.displayName="Text";const En=o.a.forwardRef(wn);En.displayName="Text";var kn=Object.freeze({__proto__:null,default:En});class Sn extends o.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=Tt(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:a,sources:l,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=de(p.defaultSource));const m=C({},n);return this.handleTintColor(m,c,d),p.style=m,t?o.a.createElement(bn,{style:n},o.a.createElement("img",C(C({},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):o.a.createElement("img",C(C({},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=>de(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}Sn.prefetch=At;class Cn{constructor(){this.Value=Cn.Value}static Value(e){return e}static timing(e,t){return new Qe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Cn.View=bn,Cn.Text=kn,Cn.Image=Sn;const xn={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 Nn(e){return o.a.createElement("li",C({nativeName:"ListViewItem"},e))}class Pn extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Kt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Kt(this.instance,"collapsePullHeaderWithOptions",[e]):Kt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return o.a.createElement("div",C({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class In extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Kt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Kt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return o.a.createElement("div",C({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class _n extends o.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}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Kt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Kt(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:a,getRowType:l,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:b,onFooterReleased:w,onAppear:E,onDisappear:k,onWillAppear:S,onWillDisappear:x}=e,P=N(e,h),I=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,v,u),N=this.getPullFooter(a,b,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&I.push(o.a.createElement(Nn,C({},t),n))}h&&I.unshift(h),N&&I.push(N),"function"==typeof m&&Object.assign(P,{rowShouldSticky:!0});const _=[E,k,S,x];P.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===un.platform.OS&&(P.numberOfRows=I.length),void 0!==p&&(P.initialListSize=p),P.style=C({overflow:"scroll"},n)}return o.a.createElement("ul",C({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},P),I.length?I:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(Pn,{style:a,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(In,{style:a,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))}}_n.defaultProps={numberOfRows:0};class Ln extends o.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Kt(this.instance,"startRefresh",null)}refreshCompleted(){Kt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return o.a.createElement("div",C({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),o.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 Tn{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 gn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Kt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Kt(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,o.a.createElement("div",C({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Rn(e){return o.a.createElement("div",C(C({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class zn extends o.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&&Kt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Kt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,v);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),o.a.createElement(Rn,C({},t),e)}):i.push(o.a.createElement(Rn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",C({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function On(){const e=_.platform.Localization;return!!e&&1===e.direction}const jn={caretColor:"caret-color"};class Fn extends o.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=>{Kt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Kt(this.instance,"setValue",[e]),e}focus(){Kt(this.instance,"focusTextInput",[])}blur(){Kt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{Kt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){Kt(this.instance,"clear",[])}render(){const e=C({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(jn[t]&&(n=jn[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])}),On()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),o.a.createElement("div",C(C({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;"function"==typeof t&&t(e)}}const Hn=un.window.scale;let Mn=Math.round(.4*Hn)/Hn;function Bn(e){return e}0===Mn&&(Mn=1/Hn);var Dn=Object.freeze({__proto__:null,get hairlineWidth(){return Mn},create:Bn});const Un={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 Wn extends o.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,Kt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Kt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Un.contentContainerHorizontal:Un.contentContainerVertical,t],a=e?Object.assign({},Un.baseHorizontal,r):Object.assign({},Un.baseVertical,r);return e&&(a.flexDirection=On()?"row-reverse":"row"),o.a.createElement("div",C(C({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),o.a.createElement(bn,{style:i},n))}}const Vn={modal:{position:"absolute",collapsable:!1}};class $n extends o.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===un.platform.OS&&(this.eventSubscription=new Ee("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===un.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 a={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),o.a.createElement("div",C({nativeName:"Modal",animationType:i,transparent:n,style:[Vn.modal,a]},this.props),e)}}$n.defaultProps={visible:!0};class Qn extends o.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:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=o.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=a&&Gt(a),v=l&&Gt(l),b=s&&Gt(s),w=u&&Gt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=C(C({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return o.a.createElement(bn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:v,nextFocusLeftId:b,nextFocusRightId:w,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return o.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:E,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 qn(e){return o.a.createElement("iframe",C({title:"hippy",nativeName:"WebView"},e))}let Gn;class Kn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Gn||(Gn=new Ee("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=C({},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=Gn.addCallback(this.onWebSocketEvent),I.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,I.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);I.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,Gn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Yn(e){return o.a.createElement("li",C({nativeName:"WaterfallItem"},e))}class Xn extends o.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}){Kt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Kt(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:a=0,numberOfItems:l=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:v,onFooterPulling:w,onFooterReleased:E,containPullHeader:k=!1,containPullFooter:S=!1,containBannerView:x=!1}=e,P=C(C({},N(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:k,containPullFooter:S,containBannerView:x}),I=[];if("function"==typeof n){const e=n();if(e)if("ios"===un.platform.OS)I.push(o.a.createElement(bn,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0;else if("android"===un.platform.OS){const t={key:"bannerView",fullSpan:!0,style:{}};I.push(o.a.createElement(Yn,C({},t),o.a.cloneElement(e)))}}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,w,E);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},P),I)}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=o.a.createElement(Pn,{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=o.a.createElement(In,{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=Kn;const{AsyncStorage:Jn,BackAndroid:Zn,Bridge:er,Clipboard:tr,Cookie:nr,Device:rr,HippyRegister:ir,ImageLoader:or,NetworkInfo:ar,UIManager:lr,flushSync:sr}=fn,{callNative:ur,callNativeWithPromise:cr,callNativeWithCallbackId:fr,removeNativeCallback:dr}=er,pr=null,hr=e.ConsoleModule||e.console,mr=rr.platform,yr=gn,gr=Sn,vr={get:e=>rr[e]},br={get:()=>rr.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{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=0,G=1,K=-1,Y=1,X={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},J={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Z={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const ee=new RegExp(/^\d+$/);let te=!1,ne=!1;function re(...e){ce()&&console.log(...e)}function ie(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const oe=new RegExp("^on.+Capture$");function ae(e){return oe.test(e)}const le=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function se(e){return"[object Function]"===Object.prototype.toString.call(e)}function ue(e){te=e}function ce(){return!1}function fe(){return ne}function de(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}function pe(e){return"string"==typeof e?""!==e.trim():null!=e}class he{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 me{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const ye=new Map,ge=["%c[event]%c","color: green","color: auto"];function ve(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function be(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return ye.get(e)||null}const we={registerNativeEventHub:function(e){if(re(...ge,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=ye.get(e);return t||(t=new he(e),ye.set(e,t)),t},getHippyEventHub:be,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);ye.has(e)&&ye.delete(e)},receiveNativeEvent:function(e){if(re(...ge,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=be(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(re(...ge,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a={}}=e,l=$(r),s=$(n);l&&s&&(Z[i]?function(e,t,n,r,i,o){try{let t=!1;const a=V(r),l=V(n),{eventPhase:s}=o;if(ve(e,n)&&ae(e)&&[J.AT_TARGET,J.CAPTURING_PHASE].indexOf(s)>-1){const t=new me(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(ve(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(s)>-1){const r=new me(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!fe()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=V(r),s=V(n);try{const{eventPhase:t}=o;if(ve(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(t)>-1){const r=new me(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!fe(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=we);class Ee{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 ke{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=we.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=>{Ne(e,t,n)}):Ne(e,t,n),Ie},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=>{Pe(e,t)}):Pe(e,t),Ie},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=Ce[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=we.getHippyEventHub(e);return n?(n.notifyEvent(...t),Ie):Ie}};function _e(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const Le={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},Te="[-+]?\\d*\\.?\\d+",Ae={rgb:new RegExp("rgb"+_e(Te,Te,Te)),rgba:new RegExp("rgba"+_e(Te,Te,Te,Te)),hsl:new RegExp("hsl"+_e(Te,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+_e(Te,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Te)),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 Re(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ze(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Oe(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 je(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Oe(i,r,e+1/3),a=Oe(i,r,e),l=Oe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Fe(e){return(parseFloat(e)%360+360)%360/360}function He(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Me(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ae.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Le,e)?Le[e]:(t=Ae.rgb.exec(e),Array.isArray(t)?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|255)>>>0:(t=Ae.rgba.exec(e),t?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|ze(t[4]))>>>0:(t=Ae.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ae.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Ae.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ae.hsl.exec(e),t?(255|je(Fe(t[1]),He(t[2]),He(t[3])))>>>0:(t=Ae.hsla.exec(e),t?(je(Fe(t[1]),He(t[2]),He(t[3]))|ze(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Be(e){return Array.isArray(e)?e.map(e=>Me(e)):[0]}function De(e){return"loop"===e?-1:e}function Ue(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Me(t):t}const We="animationstart",Ve="animationend",$e="animationcancel",Qe="animationrepeat";class qe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=Ue(t.valueType,e)}const i=Ue(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=De(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,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.animationId=this.animation.getId(),this.destroy=this.destroy.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(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(We),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ve),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener($e),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(Qe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(We,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ve,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener($e,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Qe,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");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;if(e.startValue instanceof qe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Ue(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=De(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Ue(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 Ge="animationstart",Ke="animationend",Ye="animationcancel",Xe="animationrepeat";class Je{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:De(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),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(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ke),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ye),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Xe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ge,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ye,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Ye,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Ze={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let et=!0,tt=[];function nt(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!Z[e]}(r)?Z[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===G&&t.removeEventListener(n,l,o),i===q&&t.addEventListener(n,l,o,a)})}})}function rt(e,t){0}function it(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case Ze.createNode:rt(e.printedNodes),r.create(e.nodes),nt(e.eventNodes,r);break;case Ze.updateNode:rt(e.printedNodes),r.update(e.nodes),nt(e.eventNodes,r);break;case Ze.deleteNode:rt(e.printedNodes),r.delete(e.nodes);break;case Ze.moveNode:rt(e.printedNodes),r.move(e.nodes)}}),r.build()}function ot(e=!1){if(!et)return;if(et=!1,0===tt.length)return void(et=!0);const t=B();e?(it(t),tt=[],et=!0):Promise.resolve().then(()=>{it(t),tt=[],et=!0})}function at(e){const t=e.attributes,{children:n}=t;return N(t,s)}function lt(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i=t.style;if(t.parentNode instanceof kt){const e=Object.assign({},t.parentNode.inheritStyle,t.parentNode.style),{style:n,inheritStyle:r}=t;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!pe(n[t])&&pe(e[t])&&(r[t]=e[t])}),function(e){return e&&"Text"===e.nativeName||-1!==["p","span"].indexOf(e.tagName)}(t)&&(i=Object.assign({},r,n))}const o={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:x(x({},at(t)),{},{style:i}),tagName:t.tagName},a=function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t);let l=void 0;return[[o,n],a,l]}function st(e,t,n,r={}){const i=[],o=[],a=[];return t.traverseChildren((t,r)=>{const[l,s,u]=lt(e,t,r);l&&i.push(l),s&&o.push(s),u&&a.push(u),"function"==typeof n&&n(t)},r),[i,o,a]}function ut(e){return!!j&&e instanceof j.containerInfo.constructor}function ct(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i=ut(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const[e,i,o]=st(r,t,e=>{e.isMounted||(e.isMounted=!0)},n);tt.push({type:Ze.createNode,nodes:e,eventNodes:i,printedNodes:o})}}function ft(e){if(!e.isMounted)return;const t=B(),[n,r,i]=lt(t,e);n&&tt.push({type:Ze.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}function dt(e){if(!e.isMounted)return;const t=B(),[n,r,i]=st(t,e)||{};n&&tt.push({type:Ze.updateNode,nodes:n,eventNodes:r,printedNodes:i})}let pt=0;class ht{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(pt+=1,pt%10==0&&(pt+=1),pt)}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),ct(this,e,{refId:t.nodeId,relativeToRef:K})}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);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];tt.push({printedNodes:a,type:Ze.moveNode,nodes:o,eventNodes:[]})}(this,e,{refId:t.nodeId,relativeToRef:K})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),ct(this,e,n&&{refId:n.nodeId,relativeToRef:Y})}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),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=B(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];tt.push({printedNodes:o,type:Ze.deleteNode,nodes:i,eventNodes:[]})}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}const mt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},yt={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},gt="turn",vt="rad",bt="deg";function wt(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=bt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case gt:r=""+(360*n).toFixed(2);break;case vt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==yt[i]&&(r=yt[i]),r}function Et(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:Me(n)}:void 0:{color:Me(n)}}class kt extends ht{constructor(e){super(),this.id="",this.style={},this.inheritStyle={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}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,ee.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(mt,e)&&(e=mt[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 qe||r instanceof Je?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 qe||t instanceof Je)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Be(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Me(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=wt(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=Et(e);t&&r.push(t)}}else{const t=Et(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=de(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})}}),ft(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,dt(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ie(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>{if("object"!=typeof t||null==t)return!0;this.setStyleAttribute(t);return["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].some(e=>Object.prototype.hasOwnProperty.call(t,e))&&dt(this),!1}},{match:()=>!0,action:()=>{if("function"==typeof t){const t=function(e){return ae(e)&&(e=e.replace("Capture","")),X[e]?X[e][1]:e}(e);this.events[e]?this.events[e]&&this.events[e].type!==q&&(this.events[e].type=q):this.events[e]={name:t,type:q,isCapture:ae(e),listener:(n=t,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};we.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return this.events[e].type=G,!1;this.attributes[e]=t}var n,r;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&&ft(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ft(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(mt,e)&&(i=mt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Be(r):i.toLowerCase().indexOf("color")>-1?Me(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&le.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ft(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)}),ft(this),ot(!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=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class St extends ht{constructor(){super(),this.documentElement=new kt("document")}createElement(e){return new kt(e)}createElementNS(e,t){return new kt(`${e}:${t}`)}}St.createElement=St.prototype.createElement,St.createElementNS=St.prototype.createElementNS;var xt=Array.isArray,Ct=Object.keys,Nt=Object.prototype.hasOwnProperty;const Pt=setTimeout,It=clearTimeout;var _t=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){ot(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Pt,cancelTimeout:It,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){U(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),U(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ie(e)),i.meta={component:{name:"Text"}},U(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=xt(t),l=xt(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=Ct(t);if((i=d.length)!==Ct(n).length)return!1;for(r=i;0!=r--;)if(!Nt.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 Lt=l()(x(x({},_t),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var Tt=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var At=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function Rt(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function zt(e){I.callNative("ImageLoaderModule","prefetch",e)}var Ot=Object.freeze({__proto__:null,getSize:Rt,prefetch:zt});const jt=new Map,Ft=new xe;class Ht{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Mt(this.eventName,this.listener),this.listener=void 0)}}function Mt(e,t){if(t instanceof Ht)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=jt.get(t);if(!r)return;r.remove(),jt.delete(t);Ft.listenerSize(n)<1&&I.callNative("NetInfo","removeListener",n)}var Bt=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Ft.listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);const r=Ft.addListener(n,e=>{t(e)});return jt.set(t,r),new Ht(n,t)},removeEventListener:Mt,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Dt,updateNode:Ut,deleteNode:Wt,flushBatch:Vt,endBatch:$t,sendRenderError:Qt}=L,qt=["%c[native]%c","color: red","color: auto"],Gt=function(e){return D(t=>t.stateNode&&t.stateNode.nodeId===e)};function Kt(e){if(e instanceof kt)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 kt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Yt(e){let t=e;if("string"==typeof e){const n=D(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=Kt(t);return e?e.nodeId:0}return t.nodeId}function Xt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Kt(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;se(o)&&(a=o,o=[]);null!==B()&&(re(...qt,"callUIFunction",{nodeId:i,funcName:t,paramList:o}),L.callUIFunction(i,t,o,a))}function Jt(e,t,n){const r=Yt(t);return new Promise((t,i)=>r?(re(...qt,"callUIFunction",{nodeId:r,funcName:e,paramList:[]}),L.callUIFunction(r,e,[],e=>(n&&se(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&se(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Zt=Object.freeze({__proto__:null,createNode:Dt,updateNode:Ut,deleteNode:Wt,flushBatch:Vt,endBatch:$t,sendRenderError:Qt,getNodeById:Gt,getNodeIdByRef:Yt,getElementFromFiberRef:Kt,callUIFunction:Xt,getBoundingClientRect:function(e,t){const n=Yt(e);return new Promise((r,i)=>n?(re(...qt,"callUIFunction",{nodeId:n,funcName:"getBoundingClientRect",params:t}),L.callUIFunction(n,"getBoundingClientRect",[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 Jt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?Jt("measureInWindow",e,t):Jt("measureInAppWindow",e,t)}});const en=new xe,tn=new Set,nn={exitApp(){I.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(I.callNative("DeviceEventModule","setListenBackPress",!0),tn.add(e),{remove(){nn.removeListener(e)}}),removeListener(e){tn.delete(e),0===tn.size&&I.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){en.addListener("hardwareBackPress",()=>{let e=!0;[...tn].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&nn.exitApp()})}},rn=(nn.initEventListener(),nn),{flushSync:on}=Lt,{addEventListener:an,removeEventListener:ln,dispatchEvent:sn,AsyncStorage:un,Bridge:cn,Device:fn,HippyRegister:dn}=O;var pn=Object.freeze({__proto__:null,addEventListener:an,removeEventListener:ln,dispatchEvent:sn,AsyncStorage:un,BackAndroid:rn,Bridge:cn,Clipboard:Tt,Cookie:At,Device:fn,HippyRegister:dn,ImageLoader:Ot,NetworkInfo:Bt,UIManager:Zt,flushSync:on});const{createContainer:hn,updateContainer:mn,getPublicRootInstance:yn,injectIntoDevTools:gn}=Lt,vn=['%c[Hippy-React "3.3.1"]%c',"color: #61dafb","color: auto"];class bn{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 St;this.rootContainer=hn(t,0,!1,null)}static get Native(){return pn}start(){dn.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;re(...vn,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ue(r),i&&function(e=!1){ne=e}(i),M(l,this.rootContainer);const s=o.a.createElement(n,e);return mn(s,this.rootContainer,null,a),yn(this.rootContainer)}}bn.version="3.3.1";const wn={registerComponent(e,t){new bn({appName:e,entryPage:t}).start()}};class En extends o.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Xt(this.instance,"setPressed",[e])}setHotspot(e,t){Xt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=Me(a.color)),o.a.createElement("div",x({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function kn(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=ie(r.children);else if("number"==typeof r.children)r.text=ie(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=ie(e),r.children=r.text)}return o.a.createElement("p",x({ref:t,nativeName:"Text",style:i},r))}kn.displayName="Text";const Sn=o.a.forwardRef(kn);Sn.displayName="Text";var xn=Object.freeze({__proto__:null,default:Sn});class Cn extends o.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=Rt(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:a,sources:l,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=de(p.defaultSource));const m=x({},n);return this.handleTintColor(m,c,d),p.style=m,t?o.a.createElement(En,{style:n},o.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):o.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=>de(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}Cn.prefetch=zt;class Nn{constructor(){this.Value=Nn.Value}static Value(e){return e}static timing(e,t){return new qe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Nn.View=En,Nn.Text=xn,Nn.Image=Cn;const Pn={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 In(e){return o.a.createElement("li",x({nativeName:"ListViewItem"},e))}class _n extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Xt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Xt(this.instance,"collapsePullHeaderWithOptions",[e]):Xt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return o.a.createElement("div",x({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class Ln extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Xt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Xt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return o.a.createElement("div",x({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class Tn extends o.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}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Xt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Xt(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:a,getRowType:l,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:b,onFooterReleased:w,onAppear:E,onDisappear:k,onWillAppear:S,onWillDisappear:C}=e,P=N(e,h),I=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,v,u),N=this.getPullFooter(a,b,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&I.push(o.a.createElement(In,x({},t),n))}h&&I.unshift(h),N&&I.push(N),"function"==typeof m&&Object.assign(P,{rowShouldSticky:!0});const _=[E,k,S,C];P.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===fn.platform.OS&&(P.numberOfRows=I.length),void 0!==p&&(P.initialListSize=p),P.style=x({overflow:"scroll"},n)}return o.a.createElement("ul",x({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},P),I.length?I:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(_n,{style:a,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(Ln,{style:a,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))}}Tn.defaultProps={numberOfRows:0};class An extends o.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Xt(this.instance,"startRefresh",null)}refreshCompleted(){Xt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return o.a.createElement("div",x({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),o.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 Rn{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 bn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Xt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Xt(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,o.a.createElement("div",x({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function On(e){return o.a.createElement("div",x(x({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class jn extends o.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&&Xt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Xt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,v);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),o.a.createElement(On,x({},t),e)}):i.push(o.a.createElement(On,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",x({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function Fn(){const e=_.platform.Localization;return!!e&&1===e.direction}const Hn={caretColor:"caret-color"};class Mn extends o.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=>{Xt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Xt(this.instance,"setValue",[e]),e}focus(){Xt(this.instance,"focusTextInput",[])}blur(){Xt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{Xt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){Xt(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]&&(Hn[t]&&(n=Hn[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])}),Fn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),o.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;"function"==typeof t&&t(e)}}const Bn=fn.window.scale;let Dn=Math.round(.4*Bn)/Bn;function Un(e){return e}0===Dn&&(Dn=1/Bn);var Wn=Object.freeze({__proto__:null,get hairlineWidth(){return Dn},create:Un});const Vn={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 $n extends o.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,Xt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Xt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Vn.contentContainerHorizontal:Vn.contentContainerVertical,t],a=e?Object.assign({},Vn.baseHorizontal,r):Object.assign({},Vn.baseVertical,r);return e&&(a.flexDirection=Fn()?"row-reverse":"row"),o.a.createElement("div",x(x({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),o.a.createElement(En,{style:i},n))}}const Qn={modal:{position:"absolute",collapsable:!1}};class qn extends o.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===fn.platform.OS&&(this.eventSubscription=new ke("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===fn.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 a={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),o.a.createElement("div",x({nativeName:"Modal",animationType:i,transparent:n,style:[Qn.modal,a]},this.props),e)}}qn.defaultProps={visible:!0};class Gn extends o.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:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=o.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=a&&Yt(a),v=l&&Yt(l),b=s&&Yt(s),w=u&&Yt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=x(x({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return o.a.createElement(En,{focusable:!0,nextFocusDownId:g,nextFocusUpId:v,nextFocusLeftId:b,nextFocusRightId:w,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return o.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:E,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 Kn(e){return o.a.createElement("iframe",x({title:"hippy",nativeName:"WebView"},e))}let Yn;class Xn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Yn||(Yn=new ke("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=Yn.addCallback(this.onWebSocketEvent),I.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,I.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);I.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,Yn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Jn(e){return o.a.createElement("li",x({nativeName:"WaterfallItem"},e))}class Zn extends o.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}){Xt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Xt(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:a=0,numberOfItems:l=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:v,onFooterPulling:w,onFooterReleased:E,containPullHeader:k=!1,containPullFooter:S=!1,containBannerView:C=!1}=e,P=x(x({},N(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:k,containPullFooter:S,containBannerView:C}),I=[];if("function"==typeof n){const e=n();if(e)if("ios"===fn.platform.OS)I.push(o.a.createElement(En,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0;else if("android"===fn.platform.OS){const t={key:"bannerView",fullSpan:!0,style:{}};I.push(o.a.createElement(Jn,x({},t),o.a.cloneElement(e)))}}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,w,E);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},P),I)}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=o.a.createElement(_n,{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=o.a.createElement(Ln,{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=Xn;const{AsyncStorage:er,BackAndroid:tr,Bridge:nr,Clipboard:rr,Cookie:ir,Device:or,HippyRegister:ar,ImageLoader:lr,NetworkInfo:sr,UIManager:ur,flushSync:cr}=pn,{callNative:fr,callNativeWithPromise:dr,callNativeWithCallbackId:pr,removeNativeCallback:hr}=nr,mr=null,yr=e.ConsoleModule||e.console,gr=or.platform,vr=bn,br=Cn,wr={get:e=>or[e]},Er={get:()=>or.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 * @@ -29,7 +29,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var vt=null,bt=null;(0,a.unstable_now)();var wt=0,Et=8;function kt(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=kt(s),i=Et):0!==(l&=o)&&(r=kt(l),i=Et)}else 0!==(o=n&~a)?(r=kt(o),i=Et):0!==l&&(r=kt(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Tt|0)|0},Lt=Math.log,Tt=Math.LN2;var At=a.unstable_runWithPriority,Rt=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Bt=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Ut=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},Qt=null,qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Bt:return 98;case Dt:return 97;case Ut:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Bt;case 97:return Dt;case 96:return Ut;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),Rt(e,t,n)}function tn(){if(null!==qt){var e=qt;qt=null,zt(e)}nn()}function nn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(i,d,v.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(i,d),c;if(null===d){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,u))&&(a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return c}for(d=r(i,d);!v.done;p++,v=s.next())null!==(v=g(d,i,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===E&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ua(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Da(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return v(r,o,s,d);if(P(s))return b(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Bn=Mn(!0),Dn=Mn(!1),Un={},Wn=it(Un),Vn=it(Un),$n=it(Un);function Qn(e){if(e===Un)throw Error(l(174));return e}function qn(e,t){at($n,t),at(Vn,e),at(Wn,Un),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=Qn($n.current),n=Qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=Qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function Cr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,ko|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ao=r),Li(0,t)},n}function Ri(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ka(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),va(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):xe(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Ce(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(bt&&"function"==typeof bt.onCommitFiberUnmount)try{bt.onCommitFiberUnmount(vt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){ka(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ka(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Te(t),ze(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(ke(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ze(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ai(0,o,t));break e;case 1:o=s;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ro||!Ro.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ri(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=Qr,null===e?Qr:e}function sa(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&ko)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=Eo),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ki(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),vn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,En(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,zn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===b)return 14;if(e===E)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,kn(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{vt=t.inject(e),bt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Cn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; +e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var vt=null,bt=null;(0,a.unstable_now)();var wt=0,Et=8;function kt(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=kt(s),i=Et):0!==(l&=o)&&(r=kt(l),i=Et)}else 0!==(o=n&~a)?(r=kt(o),i=Et):0!==l&&(r=kt(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Tt|0)|0},Lt=Math.log,Tt=Math.LN2;var At=a.unstable_runWithPriority,Rt=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Bt=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Ut=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},Qt=null,qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Bt:return 98;case Dt:return 97;case Ut:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Bt;case 97:return Dt;case 96:return Ut;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),Rt(e,t,n)}function tn(){if(null!==qt){var e=qt;qt=null,zt(e)}nn()}function nn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(i,d,v.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(i,d),c;if(null===d){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,u))&&(a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return c}for(d=r(i,d);!v.done;p++,v=s.next())null!==(v=g(d,i,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===E&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ua(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Da(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return v(r,o,s,d);if(P(s))return b(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Bn=Mn(!0),Dn=Mn(!1),Un={},Wn=it(Un),Vn=it(Un),$n=it(Un);function Qn(e){if(e===Un)throw Error(l(174));return e}function qn(e,t){at($n,t),at(Vn,e),at(Wn,Un),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=Qn($n.current),n=Qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=Qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function xr(e,t){return"function"==typeof t?t(e):t}function Cr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,ko|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ao=r),Li(0,t)},n}function Ri(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ka(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),va(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):Ce(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?xe(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(bt&&"function"==typeof bt.onCommitFiberUnmount)try{bt.onCommitFiberUnmount(vt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){ka(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ka(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Te(t),ze(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(ke(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ze(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~xo,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,Cn(d,Ai(0,o,t));break e;case 1:o=s;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ro||!Ro.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,Cn(d,Ri(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=Qr,null===e?Qr:e}function sa(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&ko)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):xo|=n),Xo(e,t)}function xa(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=Eo),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function Ca(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xa(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),xa(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ki(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),vn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,En(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,zn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===b)return 14;if(e===E)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,kn(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{vt=t.inject(e),bt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),xn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -42,7 +42,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n("./node_modules/object-assign/index.js"),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,T=3,A=!1,R=!1,z=!1;function O(e){for(var t=C(I);null!==t;){if(null===t.callback)x(I);else{if(!(t.startTime<=e))break;x(I),t.sortIndex=t.expirationTime,S(P,t)}t=C(I)}}function j(e){if(z=!1,O(e),!R)if(null!==C(P))R=!0,r(F);else{var t=C(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),A=!0;var r=T;try{for(O(n),L=C(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===C(P)&&x(P),O(n)}else x(P);L=C(P)}if(null!==L)var s=!0;else{var u=C(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,T=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===C(P)&&e===C(I)&&(z?o():z=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),R||A||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,v=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,T=3,A=!1,R=!1,z=!1;function O(e){for(var t=x(I);null!==t;){if(null===t.callback)C(I);else{if(!(t.startTime<=e))break;C(I),t.sortIndex=t.expirationTime,S(P,t)}t=x(I)}}function j(e){if(z=!1,O(e),!R)if(null!==x(P))R=!0,r(F);else{var t=x(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),A=!0;var r=T;try{for(O(n),L=x(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===x(P)&&C(P),O(n)}else C(P);L=x(P)}if(null!==L)var s=!0;else{var u=x(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,T=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===x(P)&&e===x(I)&&(z?o():z=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),R||A||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue2/index.android.js b/framework/examples/android-demo/res/vue2/index.android.js index febc3531df1..f8b23c754bd 100644 --- a/framework/examples/android-demo/res/vue2/index.android.js +++ b/framework/examples/android-demo/res/vue2/index.android.js @@ -1,8 +1,8 @@ -!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), +!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), /*! - * @hippy/vue-router v3.3.0 - * (Using Vue v2.6.14 and Hippy-Vue v3.3.0) - * Build at: Thu Jun 20 2024 15:23:49 GMT+0800 (中国标准时间) + * @hippy/vue-router v3.3.1 + * (Using Vue v2.6.14 and Hippy-Vue v3.3.1) + * Build at: Mon Aug 26 2024 14:48:40 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -22,4 +22,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"==t(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function I(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(I(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo"},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},I=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));I.options.__file="src/components/demos/demo-p.vue";var L=I.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};M._withStripped=!0;const F=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:L},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"}]}};var Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Ie={data:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})},Le=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Ie,Ve,[],!1,null,"ca89125a",null));Le.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Le.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;const Me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onOrientationChange(e){console.log("orientation changed",e.nativeParams)},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"==t(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function I(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(I(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo",style:{color:e.topColor}},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextColor}},[e._v("\n 验证属性继承更改效果,点击可改变整体颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({topColor:"grey",Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},changeTextColor(){this.topColor=this.textShadowIndex%2==1?"red":"grey",this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},I=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));I.options.__file="src/components/demos/demo-p.vue";var L=I.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};M._withStripped=!0;const F=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:L},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"}]}};var Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Ie={data:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})},Le=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Ie,Ve,[],!1,null,"ca89125a",null));Le.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Le.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;const Me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onOrientationChange(e){console.log("orientation changed",e.nativeParams)},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue2/vendor.android.js b/framework/examples/android-demo/res/vue2/vendor.android.js index 624fe11639b..891124a4b9b 100644 --- a/framework/examples/android-demo/res/vue2/vendor.android.js +++ b/framework/examples/android-demo/res/vue2/vendor.android.js @@ -1,8 +1,8 @@ -var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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-vue-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return u})),n.d(t,"DialogComponent",(function(){return d})),n.d(t,"ListRefreshComponent",(function(){return h})),n.d(t,"PullsComponents",(function(){return y})),n.d(t,"SwiperComponent",(function(){return m})),n.d(t,"WaterfallComponent",(function(){return g})),n.d(t,"default",(function(){return v}));const o=["mode","valueType","startValue","toValue"],r=["transform"],i=["transform"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||(r[n]=e[n]);return r} +var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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-vue-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return u})),n.d(t,"DialogComponent",(function(){return d})),n.d(t,"ListRefreshComponent",(function(){return h})),n.d(t,"PullsComponents",(function(){return y})),n.d(t,"SwiperComponent",(function(){return m})),n.d(t,"WaterfallComponent",(function(){return g})),n.d(t,"default",(function(){return v}));const o=["mode","valueType","startValue","toValue"],r=["transform"],i=["transform"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function s(e,n){return"color"===e&&["number","string"].indexOf(typeof n)>=0?t.Native.parseColor(n):n}function c(t){const{mode:r="timing",valueType:i,startValue:c,toValue:d}=t,f=l(t,o),p=a(a({},n),f);void 0!==i&&(p.valueType=t.valueType),p.startValue=s(p.valueType,c),p.toValue=s(p.valueType,d),p.repeatCount=u(p.repeatCount),p.mode=r;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function u(e){return"loop"===e?-1:e}function d(t,n={}){const o={};return Object.keys(t).forEach(r=>{if(Array.isArray(t[r])){const i=t[r],{repeatCount:s}=i[i.length-1],a=i.map(e=>{const{animationId:t,animation:o}=c(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:l,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(a,u(s));o[r]={animationId:l},Object.assign(n,{[l]:d})}else{const e=t[r],{animationId:i,animation:s}=c(e);Object.assign(n,{[i]:s}),o[r]={animationId:i}}}),o}function f(e){const{transform:t}=e,n=l(e,r);let o=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:o}=t[n];"number"==typeof o&&o%1==0&&e.push(o)}})),o=[...o,...e]}return o}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{"function"==typeof this.$listeners.actionsDidUpdate&&this.$listeners.actionsDidUpdate()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=l(e.actions,i);this.animationIdsMap={};const o=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);o.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=o},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.destroy()})}},template:'\n \n \n \n '})}function d(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render(e){const t=(n=this.$slots.default)?Array.isArray(n)?n[0]:n||void 0:null;var n;t&&(t.data.attrs?Object.assign(t.data.attrs,{__modalFirstChild__:!0}):t.data.attrs={__modalFirstChild__:!0});const{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}=this;return e("hi-dialog",{on:a({},this.$listeners),attrs:{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}},this.$slots.default)}})}function f(e){return"string"!=typeof e?"":`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function p(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+f(o)]?t[e]=this["on"+f(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+f(e)]?t[e]=this["on"+f(e)]:t[e]=t=>this.$emit(e,t))}),t}function h(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(e){return e("hi-ul-refresh-wrapper",{on:p.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function m(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render(e){return e("hi-swiper",{on:p.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function y(e){const{callUIFunction:t}=e.Native;[["Header","header"],["Footer","footer"]].forEach(([n,o])=>{e.registerElement("hi-pull-"+o,{component:{name:`Pull${n}View`,processEventData(e,t,o){switch(t){case`on${n}Released`:case`on${n}Pulling`:Object.assign(e,o)}return e}}}),e.component("pull-"+o,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(e){const{released:t,pulling:r,idle:i}=this.$listeners,s={layout:this.onLayout};return"function"==typeof t&&(s[o+"Released"]=this[`on${n}Released`]),"function"!=typeof r&&"function"!=typeof i||(s[o+"Pulling"]=this[`on${n}Pulling`]),e("hi-pull-"+o,{on:s,ref:"instance"},this.$slots.default)}})})}function g(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":{const{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s}=n;Object.assign(e,{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){"number"==typeof e&&"boolean"==typeof t&&this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(e){return e("hi-waterfall",{on:p.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render(e){return e("hi-waterfall-item",{on:a({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const v={install(e){u(e),d(e),h(e),m(e),y(e),g(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,o,r){function i(){i=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),a(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},i.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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0?t.Native.parseColor(n):n}function c(t){const{mode:r="timing",valueType:i,startValue:c,toValue:d}=t,f=l(t,o),p=a(a({},n),f);void 0!==i&&(p.valueType=t.valueType),p.startValue=s(p.valueType,c),p.toValue=s(p.valueType,d),p.repeatCount=u(p.repeatCount),p.mode=r;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function u(e){return"loop"===e?-1:e}function d(t,n={}){const o={};return Object.keys(t).forEach(r=>{if(Array.isArray(t[r])){const i=t[r],{repeatCount:s}=i[i.length-1],a=i.map(e=>{const{animationId:t,animation:o}=c(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:l,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(a,u(s));o[r]={animationId:l},Object.assign(n,{[l]:d})}else{const e=t[r],{animationId:i,animation:s}=c(e);Object.assign(n,{[i]:s}),o[r]={animationId:i}}}),o}function f(e){const{transform:t}=e,n=l(e,r);let o=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:o}=t[n];"number"==typeof o&&o%1==0&&e.push(o)}})),o=[...o,...e]}return o}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{"function"==typeof this.$listeners.actionsDidUpdate&&this.$listeners.actionsDidUpdate()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=l(e.actions,i);this.animationIdsMap={};const o=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);o.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=o},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.destroy()})}},template:'\n \n \n \n '})}function d(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render(e){const t=(n=this.$slots.default)?Array.isArray(n)?n[0]:n||void 0:null;var n;t&&(t.data.attrs?Object.assign(t.data.attrs,{__modalFirstChild__:!0}):t.data.attrs={__modalFirstChild__:!0});const{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}=this;return e("hi-dialog",{on:a({},this.$listeners),attrs:{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}},this.$slots.default)}})}function f(e){return"string"!=typeof e?"":`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function p(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+f(o)]?t[e]=this["on"+f(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+f(e)]?t[e]=this["on"+f(e)]:t[e]=t=>this.$emit(e,t))}),t}function h(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(e){return e("hi-ul-refresh-wrapper",{on:p.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function m(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render(e){return e("hi-swiper",{on:p.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function y(e){const{callUIFunction:t}=e.Native;[["Header","header"],["Footer","footer"]].forEach(([n,o])=>{e.registerElement("hi-pull-"+o,{component:{name:`Pull${n}View`,processEventData(e,t,o){switch(t){case`on${n}Released`:case`on${n}Pulling`:Object.assign(e,o)}return e}}}),e.component("pull-"+o,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(e){const{released:t,pulling:r,idle:i}=this.$listeners,s={layout:this.onLayout};return"function"==typeof t&&(s[o+"Released"]=this[`on${n}Released`]),"function"!=typeof r&&"function"!=typeof i||(s[o+"Pulling"]=this[`on${n}Pulling`]),e("hi-pull-"+o,{on:s,ref:"instance"},this.$slots.default)}})})}function g(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":{const{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s}=n;Object.assign(e,{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){"number"==typeof e&&"boolean"==typeof t&&this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(e){return e("hi-waterfall",{on:p.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render(e){return e("hi-waterfall-item",{on:a({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const v={install(e){u(e),d(e),h(e),m(e),y(e),g(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,o,r){function i(){i=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=RegExp(e,o);return t.set(i,r||t.get(e)),a(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},i.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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0&&Math.floor(t)===t&&isFinite(e)}function w(e){return p(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function $(e){return null==e?"":Array.isArray(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e)}function S(e){const t=parseFloat(e);return isNaN(t)?e:t}function x(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const k=x("slot,component",!0),O=x("key,ref,slot,slot-scope,is");function N(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const C=Object.prototype.hasOwnProperty;function E(e,t){return C.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const A=/-(\w)/g,T=I(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=/\B([A-Z])/g,L=I(e=>e.replace(j,"-$1").toLowerCase());const M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function D(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function F(e,t){for(const n in t)e[n]=t[n];return e}function R(e,t,n){}const V=(e,t,n)=>!1,B=e=>e;function U(e,t){if(e===t)return!0;const n=y(e),o=y(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every((e,n)=>U(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>U(e[n],t[n]))}}catch(e){return!1}}function H(e,t){for(let n=0;n!1,ce=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}const ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&le(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let fe=R;let pe=0;class he{constructor(){this.id=pe++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){N(this.subs,e)}depend(){he.target&&he.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new ve;return t.text=e,t.isComment=!0,t};function _e(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){const t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}const $e=Array.prototype,Se=Object.create($e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=$e[e];X(Se,e,(function(...n){const o=t.apply(this,n),r=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&r.observeArray(i),r.dep.notify(),o}))}));const xe=Object.getOwnPropertyNames(Se);let ke=!0;function Oe(e){ke=e}class Ne{constructor(e){this.value=e,this.dep=new he,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(Z?function(e,t){e.__proto__=t}(e,Se):function(e,t,n){for(let o=0,r=n.length;o{Pe[e]=Me}),z.forEach((function(e){Pe[e+"s"]=De})),Pe.watch=function(e,t,n,o){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};F(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!Array.isArray(n)&&(n=[n]),r[e]=n?n.concat(o):Array.isArray(o)?o:[o]}return r},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return F(r,e),t&&F(r,t),r},Pe.provide=Le;const Fe=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,i,s;if(Array.isArray(n))for(r=n.length;r--;)i=n[r],"string"==typeof i&&(s=T(i),o[s]={type:null});else if(v(n))for(const e in n)i=n[e],s=T(e),o[s]=v(i)?i:{type:i};else 0;e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(Array.isArray(n))for(let e=0;e-1)if(i&&!E(r,"default"))s=!1;else if(""===s||s===L(e)){const e=ze(String,r.type);(e<0||aYe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ye(e,o,r)}return i}function Ge(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!Q&&!ee||"undefined"==typeof console)throw e;console.error(e)}const Xe=[];let Je,Ze=!1;function Qe(){Ze=!1;const e=Xe.slice(0);Xe.length=0;for(let t=0;t{e.then(Qe),re&&setTimeout(R)}}else if(oe||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Je=void 0!==o&&le(o)?()=>{o(Qe)}:()=>{setTimeout(Qe,0)};else{let e=1;const t=new MutationObserver(Qe),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Je=()=>{e=(e+1)%2,n.data=String(e)}}function et(e,t){let n;if(Xe.push(()=>{if(e)try{e.call(t)}catch(e){Ye(e,t,"nextTick")}else n&&n(t)}),Ze||(Ze=!0,Je()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const tt=new de;function nt(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!y(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(i)for(o=t.length;o--;)e(t[o],n);else for(r=Object.keys(t),o=r.length;o--;)e(t[r[o]],n)}(e,tt),tt.clear()}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}});function rt(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Ke(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),lt(i[0])&<(a)&&(o[s]=_e(a.text+i[0].text),i.shift()),o.push.apply(o,i)):m(i)?lt(a)?o[s]=_e(a.text+i):""!==i&&o.push(_e(i)):lt(i)&<(a)?o[s]=_e(a.text+i.text):(h(t._isVList)&&p(i.tag)&&f(i.key)&&p(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function lt(e){return p(e)&&p(e.text)&&!1===e.isComment}function ut(e,t){if(e){const n=Object.create(null),o=ue?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,i=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==d&&s===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=mt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=yt(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",i),X(o,"$key",s),X(o,"$hasNormal",r),o}function mt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function yt(e,t){return()=>e[t]}function gt(e,t){let n,o,r,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,r=e.length;o(this.$slots||ht(e.scopedSlots,this.$slots=dt(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ht(e.scopedSlots,this.slots())}}),a&&(this.$options=i,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),i._scopeId?this._c=(e,t,n,r)=>{const a=Rt(s,e,t,n,r,c);return a&&!Array.isArray(a)&&(a.fnScopeId=i._scopeId,a.fnContext=o),a}:this._c=(e,t,n,o)=>Rt(s,e,t,n,o,c)}function Pt(e,t,n,o,r){const i=we(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function jt(e,t){for(const n in t)e[T(n)]=t[n]}At(Tt.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;p(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const i=o.data.scopedSlots,s=e.$scopedSlots,a=!!(i&&!i.$stable||s!==d&&!s.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(r||e.$options._renderChildren||a);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||d,e.$listeners=n||d,t&&e.$options.props){Oe(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;rN(o,n));const a=e=>{for(let e=0,t=o.length;e{e.resolved=Ut(n,t),r?o.length=0:a(!0)}),l=W(t=>{p(e.errorComp)&&(e.error=!0,a(!0))}),u=e(c,l);return y(u)&&(w(u)?f(e.resolved)&&u.then(c,l):w(u.component)&&(u.component.then(c,l),p(u.error)&&(e.errorComp=Ut(u.error,t)),p(u.loading)&&(e.loadingComp=Ut(u.loading,t),0===u.delay?e.loading=!0:i=setTimeout(()=>{i=null,f(e.resolved)&&f(e.error)&&(e.loading=!0,a(!1))},u.delay||200)),p(u.timeout)&&(s=setTimeout(()=>{s=null,f(e.resolved)&&l(null)},u.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(s,i))))return function(e,t,n,o,r){const i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(s,t,n,o,r);t=t||{},yn(e),p(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),i=r[o],s=t.model.callback;p(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const a=function(e,t,n){const o=t.options.props;if(f(o))return;const r={},{attrs:i,props:s}=e;if(p(i)||p(s))for(const e in o){const t=L(e);0,at(r,s,e,t,!0)||at(r,i,e,t,!1)}return r}(t,e);if(h(e.options.functional))return function(e,t,n,o,r){const i=e.options,s={},a=i.props;if(p(a))for(const e in a)s[e]=Be(e,a,t||d);else p(n.attrs)&&jt(s,n.attrs),p(n.props)&&jt(s,n.props);const c=new Tt(n,s,r,o,e),l=i.render.call(null,c._c,c);if(l instanceof ve)return Pt(l,n,c.parent,i,c);if(Array.isArray(l)){const e=ct(l)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Rt(e,t,n,o,r,i){return(Array.isArray(n)||m(n))&&(r=o,o=n,n=void 0),h(i)&&(r=2),function(e,t,n,o,r){if(p(n)&&p(n.__ob__))return be();p(n)&&p(n.is)&&(t=n.is);if(!t)return be();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=ct(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(on=()=>e.now())}function rn(){let e,t;for(on(),tn=!0,Jt.sort((e,t)=>e.id-t.id),nn=0;nnnn&&Jt[t].id>e.id;)t--;Jt.splice(t+1,0,e)}else Jt.push(e);en||(en=!0,et(rn))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||y(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.active){this.vm._isBeingDestroyed||N(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const cn={enumerable:!0,configurable:!0,get:R,set:R};function ln(e,t,n){cn.get=function(){return this[t][n]},cn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,cn)}function un(e){e._watchers=[];const t=e.$options;t.props&&function(e,t){const n=e.$options.propsData||{},o=e._props={},r=e.$options._propKeys=[];e.$parent&&Oe(!1);for(const i in t){r.push(i);const s=Be(i,t,n,e);Ee(o,i,s),i in e||ln(e,"_props",i)}Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ye();try{return e.call(t,t)}catch(e){return Ye(e,t,"data()"),{}}finally{ge()}}(t,e):t||{},v(t)||(t={});const n=Object.keys(t),o=e.$options.props;e.$options.methods;let r=n.length;for(;r--;){const t=n[r];0,o&&E(o,t)||q(t)||ln(e,"_data",t)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null);for(const o in t){const r=t[o],i="function"==typeof r?r:r.get;0,n[o]=new an(e,i||R,R,dn),o in e||fn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==ie&&function(e,t){for(const n in t){const o=t[n];if(Array.isArray(o))for(let t=0;t-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!b(e)&&e.test(t)}function wn(e,t){const{cache:n,keys:o,_vnode:r}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&$n(n,e,o,r)}}}function $n(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,N(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mn++,t._isVue=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(yn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=d,e._c=(t,n,o,r)=>Rt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Rt(e,t,n,o,r,!0);const r=n&&n.data;Ee(e,"$attrs",r&&r.attrs||d,null,!0),Ee(e,"$listeners",t._parentListeners||d,null,!0)}(t),Xt(t,"beforeCreate"),function(e){const t=ut(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Ee(e,n,t[n])}),Oe(!0))}(t),un(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(gn),function(e){const t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){const o=this;if(v(t))return hn(o,e,t,n);(n=n||{}).user=!0;const r=new an(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ye(),Ke(t,o,[r.value],o,e),ge()}return function(){r.teardown()}}}(gn),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const o=this;if(Array.isArray(e))for(let t=0,r=e.length;t1?D(n):n;const o=D(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Kt=t}}(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){const e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||N(t.$children,e),e._watcher&&e._watcher.teardown();let n=e._watchers.length;for(;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(gn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ht(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Bt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ye(t,e,"render"),o=e._vnode}finally{Bt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof ve||(o=be()),o.parent=n,o}}(gn);const Sn=[String,RegExp,Array];var xn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:i,componentOptions:s}=n;e[o]={name:bn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)$n(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{wn(this,t=>_n(e,t))}),this.$watch("exclude",e=>{wn(this,t=>!_n(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tK};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:F,mergeOptions:Re,defineReactive:Ee},e.set=Ie,e.delete=Ae,e.nextTick=et,e.observable=e=>(Ce(e),e),e.options=Object.create(null),z.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,F(e.options.components,xn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=D(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){z.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&v(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(gn),Object.defineProperty(gn.prototype,"$isServer",{get:ae}),Object.defineProperty(gn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.14",x("style,class");const kn=x("input,textarea,option,select,progress");function On(e){let t=e.data,n=e,o=e;for(;p(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=Nn(o.data,t));for(;p(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(p(e)||p(t))return Cn(e,En(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:Cn(e.staticClass,t.staticClass),class:p(e.class)?[e.class,t.class]:t.class}}function Cn(e,t){return e?t?e+" "+t:e:t||""}function En(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,r=e.length;o=0&&(t=e.charAt(n)," "===t);n--);t&&Pn.test(t)||(l=!0)}}else void 0===r?(p=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(p,o).trim()),p=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==p&&h(),i)for(o=0;o{const t=e[0].replace(Dn,"\\$&"),n=e[1].replace(Dn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Rn(e,t){console.error("[Vue compiler]: "+e)}function Vn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Bn(e,t,n,o,r){(e.props||(e.props=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Un(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Hn(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Xn({name:t,value:n},o))}function Wn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Xn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function zn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Yn(e,t,n,o,r,i,s,a){let c;(o=o||d).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=zn("!",t,a)),o.once&&(delete o.once,t=zn("~",t,a)),o.passive&&(delete o.passive,t=zn("&",t,a)),o.native?(delete o.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});const l=Xn({value:n.trim(),dynamic:a},s);o!==d&&(l.modifiers=o);const u=c[t];Array.isArray(u)?r?u.unshift(l):u.push(l):c[t]=u?r?[l,u]:[u,l]:l,e.plain=!1}function Kn(e,t,n){const o=Gn(e,":"+t)||Gn(e,"v-bind:"+t);if(null!=o)return jn(o);if(!1!==n){const n=Gn(e,t);if(null!=n)return JSON.stringify(n)}}function Gn(e,t,n){let o;if(null!=(o=e.attrsMap[t])){const n=e.attrsList;for(let e=0,o=n.length;e1&&(t[o[0].trim()]=o[1].trim())}})),t}));var Qn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Gn(e,"style");n&&(e.staticStyle=JSON.stringify(Zn(n)));const o=Kn(e,"style",!1);o&&(e.styleBinding=o)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};var eo=function(e){return e};const to=x("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=x("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),oo=x("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ro=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,so=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${G.source}]*`,ao=`((?:${so}\\:)?${so})`,co=new RegExp("^<"+ao),lo=/^\s*(\/?)>/,uo=new RegExp(`^<\\/${ao}[^>]*>`),fo=/^]+>/i,po=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},vo=/&(?:lt|gt|quot|amp|#39);/g,bo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_o=x("pre,textarea",!0),wo=(e,t)=>e&&_o(e)&&"\n"===t[0];function $o(e,t){const n=t?bo:vo;return e.replace(n,e=>go[e])}function So(e,t,n){const{number:o,trim:r}=n||{};let i="$$v";r&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(i=`_n(${i})`);const s=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),ko=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Co),key:'"'+e.slice(Co+1)+'"'}:{exp:e,key:null};Oo=e,Co=Eo=Io=0;for(;!To();)No=Ao(),Po(No)?Lo(No):91===No&&jo(No);return{exp:e.slice(0,Eo),key:e.slice(Eo+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ko,Oo,No,Co,Eo,Io;function Ao(){return Oo.charCodeAt(++Co)}function To(){return Co>=ko}function Po(e){return 34===e||39===e}function jo(e){let t=1;for(Eo=Co;!To();)if(Po(e=Ao()))Lo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Co;break}}function Lo(e){const t=e;for(;!To()&&(e=Ao())!==t;);}const Mo=/^@|^v-on:/,Do=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vo=/^\(|\)$/g,Bo=/^\[.*\]$/,Uo=/:(.*)$/,Ho=/^:|^\.|^v-bind:/,Wo=/^\./,zo=/\.[^.\]]+(?=[^\]]*$)/g,Yo=/^v-slot(:|$)|^#/,Ko=/[\r\n]/,Go=/[ \f\t\r\n]+/g,qo=I(eo);let Xo,Jo,Zo,Qo,er,tr,nr,or,rr;function ir(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fr(t),rawAttrsMap:{},parent:n,children:[]}}function sr(e,t){Xo=t.warn||Rn,tr=t.isPreTag||V,nr=t.mustUseProp||V,or=t.getTagNamespace||V;const n=t.isReservedTag||V;rr=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Zo=Vn(t.modules,"transformNode"),Qo=Vn(t.modules,"preTransformNode"),er=Vn(t.modules,"postTransformNode"),Jo=t.delimiters;const o=[],r=!1!==t.preserveWhitespace,i=t.whitespace;let s,a,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=ar(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&lr(s,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&lr(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter(e=>!e.slotScope),d(e),e.pre&&(c=!1),tr(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,mo(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),wo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,f(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(po.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment(e.substring(4,n),c,c+n+3),l(n+3);continue}}if(ho.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(fo);if(n){l(n[0].length);continue}const o=e.match(uo);if(o){const e=c;l(o[0].length),f(o[1],e,c);continue}const r=u();if(r){d(r),wo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(uo.test(o)||co.test(o)||po.test(o)||ho.test(o)||(r=o.indexOf("<",1),r<0));)i+=r,o=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===s){t.chars&&t.chars(e);break}}function l(t){c+=t,e=e.substring(t)}function u(){const t=e.match(co);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(lo))&&(r=e.match(io)||e.match(ro));)r.start=c,l(r[0].length),r.end=c,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=c,n}}function d(e){const s=e.tagName,c=e.unarySlash;o&&("p"===a&&oo(s)&&f(a),i(s)&&a===s&&f(s));const l=r(s)||!!c,u=e.attrs.length,d=new Array(u);for(let n=0;n=0&&n[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,o,r);n.length=i,a=i&&n[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,o,r):"p"===s&&(t.start&&t.start(e,[],!1,o,r),t.end&&t.end(e,o,r))}f()}(e,{warn:Xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,n,r,i,d){const f=a&&a.ns||or(e);oe&&"svg"===f&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=jn(i[1].trim());o.push(`_s(${t})`),r.push({"@binding":t}),c=s+i[0].length}return c{if(!e.slotScope)return e.parent=i,!0}),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Kn(n,"name")),function(e){let t;(t=Kn(e,"is"))&&(e.component=t);null!=Gn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function fr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Yn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${s});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Kn(e,"value")||"null";r=o?`_n(${r})`:r,Bn(e,"checked",`_q(${t},${r})`),Yn(e,"change",xo(t,r),null,!0)}(e,o,r);else if("input"===i||"textarea"===i)!function(e,t,n){const o=e.attrsMap.type;0;const{lazy:r,number:i,trim:s}=n||{},a=!r&&"range"!==o,c=r?"change":"range"===o?"__r":"input";let l="$event.target.value";s&&(l="$event.target.value.trim()");i&&(l=`_n(${l})`);let u=xo(t,l);a&&(u="if($event.target.composing)return;"+u);Bn(e,"value",`(${t})`),Yn(e,c,u,null,!0),(s||i)&&Yn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!K.isReservedTag(i))return So(e,o,r),!1}return!0},text:function(e,t){t.value&&Bn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Bn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:to,mustUseProp:(e,t,n)=>"value"===n&&kn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:no,isReservedTag:e=>In(e)||An(e),getTagNamespace:function(e){return An(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(yr)};let br,_r;const wr=I((function(e){return x("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function $r(e,t){e&&(br=wr(t.staticKeys||""),_r=t.isReservedTag||V,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||k(e.tag)||!_r(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(br)))}(t),1===t.type){if(!_r(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,xr=/\([^)]*?\);*$/,kr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Or={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Nr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Cr=e=>`if(${e})return null;`,Er={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Cr("$event.target !== $event.currentTarget"),ctrl:Cr("!$event.ctrlKey"),shift:Cr("!$event.shiftKey"),alt:Cr("!$event.altKey"),meta:Cr("!$event.metaKey"),left:Cr("'button' in $event && $event.button !== 0"),middle:Cr("'button' in $event && $event.button !== 1"),right:Cr("'button' in $event && $event.button !== 2")};function Ir(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=Ar(e[t]);e[t]&&e[t].dynamic?r+=`${t},${n},`:o+=`"${t}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function Ar(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>Ar(e)).join(",")}]`;const t=kr.test(e.value),n=Sr.test(e.value),o=kr.test(e.value.replace(xr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Er[t])i+=Er[t],Or[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=Cr(["ctrl","shift","alt","meta"].filter(e=>!t[e]).map(e=>`$event.${e}Key`).join("||"))}else s.push(t);s.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Tr).join("&&")+")return null;"}(s)),i&&(r+=i);return`function($event){${r}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:o?"return "+e.value:e.value}}`}return t||n?e.value:`function($event){${o?"return "+e.value:e.value}}`}function Tr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=Or[e],o=Nr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Pr={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:R};class jr{constructor(e){this.options=e,this.warn=e.warn||Rn,this.transforms=Vn(e.modules,"transformCode"),this.dataGenFns=Vn(e.modules,"genData"),this.directives=F(F({},Pr),e.directives);const t=e.isReservedTag||V;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Lr(e,t){const n=new jr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Mr(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Mr(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Dr(e,t);if(e.once&&!e.onceProcessed)return Fr(e,t);if(e.for&&!e.forProcessed)return Vr(e,t);if(e.if&&!e.ifProcessed)return Rr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Wr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Kr((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:T(e.name),value:e.value,dynamic:e.dynamic}))):null,s=e.attrsMap["v-bind"];!i&&!s||o||(r+=",null");i&&(r+=","+i);s&&(r+=`${i?"":",null"},${s}`);return r+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const o=t.inlineTemplate?null:Wr(t,n,!0);return`_c(${e},${Br(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Br(e,t));const r=e.inlineTemplate?null:Wr(e,t,!0);n=`_c('${e.tag}'${o?","+o:""}${r?","+r:""})`}for(let o=0;o{const n=t[e];return n.slotTargetDynamic||n.if||n.for||Ur(n)}),r=!!e.if;if(!o){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){o=!0;break}t.if&&(r=!0),t=t.parent}}const i=Object.keys(t).map(e=>Hr(t[e],n)).join(",");return`scopedSlots:_u([${i}]${o?",null,true":""}${!o&&r?",null,false,"+function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i):""})`}(e,e.scopedSlots,t)+","),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const o=function(e,t){const n=e.children[0];0;if(n&&1===n.type){const e=Lr(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map(e=>`function(){${e}}`).join(",")}]}`}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Kr(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ur(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ur))}function Hr(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Rr(e,t,Hr,"null");if(e.for&&!e.forProcessed)return Vr(e,t,Hr);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Wr(e,t)||"undefined"}:undefined`:Wr(e,t)||"undefined":Mr(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Wr(e,t,n,o,r){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const r=n?t.maybeComponent(e)?",1":",0":"";return`${(o||Mr)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;ozr(e.block))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(e=>t(e.block)))&&(n=1)}}return n}(i,t.maybeComponent):0,a=r||Yr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function zr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Yr(e,t){return 1===e.type?Mr(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Gr(JSON.stringify(e.text))})`}(e)}function Kr(e){let t="",n="";for(let o=0;oqr(e,c)),t[i]=a}}const Jr=(Zr=function(e,t){const n=sr(e.trim(),t);!1!==t.optimize&&$r(n,t);const o=Lr(n,t);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(e){function t(t,n){const o=Object.create(e),r=[],i=[];if(n){n.modules&&(o.modules=(e.modules||[]).concat(n.modules)),n.directives&&(o.directives=F(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(o[e]=n[e])}o.warn=(e,t,n)=>{(n?i:r).push(e)};const s=Zr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Xr(t)}});var Zr;const{compile:Qr,compileToFunctions:ei}=Jr(vr),ti=`http://127.0.0.1:${r.env.PORT}/`;let ni,oi,ri=e=>e,ii=()=>{};function si(e){ni=e}function ai(){return ni}function ci(){return ri}const li=W(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ui(...e){(null==oi?void 0:oi.config.silent)&&li()}function di(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fi=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pi(e){return"[object Function]"===Object.prototype.toString.call(e)}function hi(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function mi(e){return null==e}function yi(e){return"string"==typeof e?""!==e.trim():null!=e}const gi=Symbol.for("View"),vi=Symbol.for("Image"),bi=Symbol.for("ListView"),_i=Symbol.for("ListViewItem"),wi=Symbol.for("Text"),$i=Symbol.for("TextInput"),Si=Symbol.for("WebView"),xi=Symbol.for("VideoPlayer"),ki={[gi]:"View",[vi]:"Image",[bi]:"ListView",[_i]:"ListViewItem",[wi]:"Text",[$i]:"TextInput",[Si]:"WebView",[xi]:"VideoPlayer"};function Oi(...e){const t={};if(Array.isArray(e[0]))e[0].forEach(([e,n])=>{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const Ni={number:"numeric",text:"default",search:"web-search"},Ci={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},Ei={symbol:gi,component:{name:ki[gi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},Ci),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus}return e}}},Ii={symbol:gi,component:l(l({},Ei.component),{},{name:ki[gi],defaultNativeStyle:{}})},Ai={symbol:gi,component:{name:ki[gi]}},Ti={symbol:vi,component:l(l({},Ei.component),{},{name:ki[vi],defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=hi(e);return t&&t.indexOf(ti)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>hi(e)},Ci),processEventData(e,t,n){switch(t){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus;break;case"onLoad":{const{width:t,height:o,url:r}=n;e.width=t,e.height=o,e.url=r;break}}return e}})},Pi={symbol:bi,component:{name:ki[bi],defaultNativeStyle:{flex:1},attributeMaps:l({},Ci),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":e.index=n.index}return e}}},ji={symbol:_i,component:{name:ki[_i],attributeMaps:l({},Ci),eventNamesMap:Oi([["disappear","onDisappear"]])}},Li={symbol:gi,component:l(l({},Ei.component),{},{name:ki[wi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},Mi=Li,Di=Li,Fi={component:l(l({},Li.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Ri={symbol:$i,component:{name:ki[$i],attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=Ni[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Ci),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Oi([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t,n){switch(t){case"onChangeText":case"onEndEditing":e.value=n.text;break;case"onSelectionChange":e.start=n.selection.start,e.end=n.selection.end;break;case"onKeyboardWillShow":e.keyboardHeight=n.keyboardHeight;break;case"onContentSizeChange":e.width=n.contentSize.width,e.height=n.contentSize.height}return e}}},Vi={symbol:$i,component:{name:ki[$i],defaultNativeProps:l(l({},Ri.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},Ri.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Ri.component.defaultNativeStyle,eventNamesMap:Ri.component.eventNamesMap,processEventData:Ri.component.processEventData}},Bi={symbol:Si,component:{name:ki[Si],defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t,n){switch(t){case"onLoad":case"onLoadStart":e.url=n.url;break;case"onLoadEnd":e.url=n.url,e.success=n.success,e.error=n.error}return e}}};var Ui=Object.freeze({__proto__:null,button:Ii,div:Ei,form:Ai,img:Ti,input:Ri,label:Mi,li:ji,p:Di,span:Li,a:Fi,textarea:Vi,ul:Pi,iframe:Bi});const Hi=x("template,script,style,element,content,slot,button,div,form,img,input,label,li,p,span,textarea,ul",!0),Wi=new Map,zi={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,mustUseProp:!1,model:null,component:null};function Yi(e){return e.toLowerCase()}function Ki(e,t){if(!e)throw new Error("RegisterElement cannot set empty name");const n=Yi(e),o=l(l({},zi),t);if(Wi.has(n))throw new Error(`Element for ${e} already registered.`);o.component=l(l({},function(e,t,n){return{name:e,functional:!0,model:t.model,render:(e,{data:t,children:o})=>e(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===di(T(e))&&o.component.name;const r={meta:o};return Wi.set(n,r),r}function Gi(e){const t=Yi(e);let n=zi;const o=Wi.get(t);return(null==o?void 0:o.meta)&&(n=o.meta),n}class qi{constructor(e){this.value="",this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){this.cancelable&&(this.isCanceled=!0)}initEvent(e,t=!0,n=!0){return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}class Xi{constructor(e){this.element=e,this.observers={}}getEventListeners(){return this.observers}addEventListener(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!pi(t))throw new TypeError("callback must be function.");const o=e.split(",");for(let e=0,r=o.length;e=0&&e.splice(o,1),0===e.length&&(this.observers[r]=void 0)}}else this.observers[r]=void 0}return this.observers}emit(e){var t,n;const{type:o}=e,r=this.observers[o];if(r)for(let o=r.length-1;o>=0;o-=1){const i=r[o];(null===(t=i.options)||void 0===t?void 0:t.once)&&r.splice(o,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventList(e,t){let n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&U(e.options,n):e.callback===t)}}const Ji=new Map;function Zi(e){return Ji.get(e)||null}function Qi(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){var n;o=t.nodeId,Ji.delete(o),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t));var o}(t)},{timeout:50})}function es(e=[],t=0){let n=e[t];for(let o=t;o-1){const e=new cs(i);if(Object.assign(e,{eventPhase:a,nativeParams:s||{}}),"onLayout"===r){const{layout:{x:t,y:n,height:o,width:r}}=s;e.top=n,e.left=t,e.bottom=n+o,e.right=t+r,e.width=r,e.height=o}else{const{processEventData:t}=c._meta.component;t&&t(e,r,s)}c.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(r,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=us);const ds={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},fs=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,ps="[-+]?\\d*\\.?\\d+",hs={rgb:new RegExp("rgb"+fs(ps,ps,ps)),rgba:new RegExp("rgba"+fs(ps,ps,ps,ps)),hsl:new RegExp("hsl"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ps)),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})$/},ms=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ys=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},gs=(e,t,n)=>{let o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},vs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=gs(r,o,e+1/3),s=gs(r,o,e),a=gs(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},bs=e=>(parseFloat(e)%360+360)%360/360,_s=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function ws(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hs.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ds,e)?ds[e]:(t=hs.rgb.exec(e),Array.isArray(t)?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|255)>>>0:(t=hs.rgba.exec(e),t?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|ys(t[4]))>>>0:(t=hs.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hs.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=hs.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hs.hsl.exec(e),t?(255|vs(bs(t[1]),_s(t[2]),_s(t[3])))>>>0:(t=hs.hsla.exec(e),t?(vs(bs(t[1]),_s(t[2]),_s(t[3]))|ys(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const $s={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};var Ss;function xs(){const e=za.Localization;return!!e&&e.direction===Ss.RTL}!function(e){e[e.RTL=1]="RTL"}(Ss||(Ss={}));const ks=new Map;function Os(e){return ks.get(e)||{}}class Ns{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}trackChanges(e,t){this.dynamic&&t.addAttribute(e,"")}}class Cs extends Ns{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}match(e){return!1}}function Es(e){return e?` ${e} `:""}const Is=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class As extends Cs{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Cs&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Es(this.combinator||"")}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof Cs&&this.head.lookupSort(e,t||this)}removeSort(e,t){this.head&&this.head instanceof Cs&&this.head.removeSort(e,t||this)}}const Ts=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ps={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},js={};function Ls(e,t,n){let o="";Ts&&(o="gy"),js[e]||(js[e]=new RegExp(Ps[e],o));const r=js[e];let i;if(Ts)r.lastIndex=n||0,i=r.exec(t);else{if(t=t.slice(n,t.length),i=r.exec(t),!i)return{result:null,regexp:r};r.lastIndex=n||0+i[0].length}return{result:i,regexp:r}}function Ms(e,t){return function(e,t){const{result:n,regexp:o}=Ls("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:r}}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("attributeSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:r}}return{value:{type:"[]",property:i},start:t,end:r}}(e,t)}function Ds(e,t){let n=Ms(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=Ms(e,o);return{start:t,end:o,value:r}}function Fs(e,t){const{result:n,regexp:o}=Ls("combinatorRegEx",e,t);if(!n)return null;let r;r=Ts?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}class Rs{constructor(e,t,n){e.forEach(e=>(e.ruleSet=this,null)),this.hash=n,this.selectors=e,this.declarations=t}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}class Vs extends Cs{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n}match(e){if(!this.test)return!(!e||!e.attributes)&&!mi(Is(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;const t=""+Is(e,this.attribute);if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){const e=t.split(" ");return e&&-1!==e.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith(this.value+"-"))}toString(){return`[${this.attribute}${Es(this.test)}${this.test&&this.value||""}]${Es(this.combinator||"")}`}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Bs extends Cs{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Es(this.combinator||"")}`}match(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,t||this)}removeSort(e,t){e.removeByClass(this.className,t||this)}}class Us extends Cs{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Es(this.combinator||"")}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class Hs extends Cs{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}}class Ws extends Cs{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Es(this.combinator||"")}`}match(e){return!!e}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}class zs{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)})}}class Ys{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)})}}class Ks extends Ns{constructor(e){super();const t=[void 0," ",">","+"];let n=[],o=[];const r=[];this.selectors=e,this.selectors.reverse().forEach(e=>{if(-1===t.indexOf(e.combinator))throw new Error(`Unsupported combinator "${e.combinator}".`);void 0!==e.combinator&&" "!==e.combinator||r.push(o=[n=[]]),">"===e.combinator&&o.push(n=[]),n.push(e)}),this.groups=r.map(e=>new zs(e.map(e=>new Ys(e))));const[i]=e;this.last=i,this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.dynamic=e.some(e=>e.dynamic)}toString(){return this.selectors.join("")}match(e){let t=e;return this.groups.every((n,o)=>{if(0===o)return t=n.match(e),!!t;let r=t;for(;r=null==r?void 0:r.parentNode;)if(t=n.match(r))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){let n=e;if(!this.dynamic)return this.match(n);const o=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return o.push({left:e,right:e}),n=r,!!n}let i=e;for(;i=i.parentNode;){const e=t.mayMatch(i);if(e)return o.push({left:i,right:void 0}),n=e,!0}return!1});if(!r)return!1;if(!t)return r;for(let e=0;e{if(!Ts){if(""===e)return;n=0}do{const t=Ds(e,n);if(!t){if(c)return null;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=Fs(e,n),s&&({end:n}=s),c=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e);return t?function(e){if(0===e.length)return new Hs(new Error("Empty selector."));if(1===e.length)return Zs(e[0][0]);const t=[];for(let n=0;ne.lookupSort(this))}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e){const{tagName:t,id:n,classList:o}=e,r=[this.universal,this.id[n],this.type[t]];o.size&&o.forEach(e=>r.push(this.class[e]));const i=r.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new ea;return s.selectors=i.filter(t=>t.sel.accumulateChanges(e,s)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),s}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeById(e,t){this.removeFromMap(this.id,e,t)}removeByClass(e,t){this.removeFromMap(this.class,e,t)}removeByType(e,t){this.removeFromMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,o;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(o=e.ruleSet)||void 0===o?void 0:o.hash)});-1!==t&&this.universal.splice(t)}addToMap(e,t,n){const o=e;this.position+=1;const r=o[t];r?r.push(this.makeDocSelector(n)):o[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>{var t,o;return(null===(t=e.sel.ruleSet)||void 0===t?void 0:t.hash)===(null===(o=n.ruleSet)||void 0===o?void 0:o.hash)});-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}const na={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode"),updateEvent:Symbol("updateEvent")};let oa,ra=!0,ia=[];function sa(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:o}=e;o.forEach(e=>{const{name:o,type:r,listener:i}=e;let s;s=function(e){return!!rs[e]}(o)?rs[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===os&&t.removeEventListener(n,s,i),r===ns&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function aa(e,t){0}function ca(t){if(!ra)return;if(ra=!1,0===ia.length)return void(ra=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case na.createNode:aa(e.printedNodes),n.create(e.nodes),sa(e.eventNodes,n);break;case na.updateNode:aa(e.printedNodes),n.update(e.nodes),sa(e.eventNodes,n);break;case na.deleteNode:aa(e.printedNodes),n.delete(e.nodes);break;case na.moveNode:aa(e.printedNodes),n.move(e.nodes);break;case na.updateEvent:sa(e.eventNodes,n)}}),n.build(),ra=!0,ia=[]})}function la(){if(!oa||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ci();return e.map(e=>{const n=e.declarations.filter(Xs).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Qs);return new Rs(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);oa?oa.append(t):oa=new ta(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{oa.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),oa}function ua(e){const t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach(n=>{if(void 0!==e.getAttribute(n))return;const o=e.meta.component.defaultNativeProps[n];pi(o)?t[n]=o(e):t[n]=o}),Object.keys(e.attributes).forEach(n=>{let o=e.getAttribute(n);if(!e.meta.component.attributeMaps||!e.meta.component.attributeMaps[n])return void(t[n]=o);const r=e.meta.component.attributeMaps[n];if("string"==typeof r)return void(t[r]=o);if(pi(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;pi(s)&&(o=s(o)),a?(t[a]=t[a]||{},Object.assign(t[a],{[i]:o})):t[i]=o}),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function da(e){const t=Object.create(null);try{la().query(e).selectors.forEach(n=>{(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){console.error("getDomCss Error:",e)}return t}function fa(e){let t=void 0;const n=e.events;if(n){const o=[];Object.keys(n).forEach(e=>{const{name:t,type:r,isCapture:i,listener:s}=n[e];o.push({name:t,type:r,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:o}}return t}function pa(e,t,n={},o=!1){var r;if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i;if(o)i=Os(t.nodeId);else{if(i=da(t),i=l(l({},i),t.style),ii(),t.parentNode){const e=Os(t.parentNode.nodeId);["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!yi(i[t])&&yi(e[t])&&(i[t]=e[t])})}t.meta.component.defaultNativeStyle&&(i=l(l({},t.meta.component.defaultNativeStyle),i)),function(e,t){ks.set(e,t)}(t.nodeId,i)}const s={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.meta.component.name,props:l(l({},ua(t)),{},{style:i}),tagName:t.tagName};!function(e){if(e.props.__modalFirstChild__){const t=e.props.style;Object.keys(t).some(e=>"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach(e=>delete t[e]),!0))}}(s),function(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=xs()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=hi(n.backgroundImage)))}(t,s,i),function(e,t){"TextInput"===e.meta.component.name&&xs()&&(t.textAlign||(t.textAlign="right"))}(t,i);const a=fa(t);let c=void 0;return[[s,n],a,c]}function ha(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=pa(e,t,o);a&&r.push(a),c&&i.push(c),l&&s.push(l),"function"==typeof n&&n(t)},o),[r,i,s]}function ma(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ai();if(!o)return;const{$options:{rootViewId:r,rootView:i}}=o,s=function(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}(e,i)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(s||a){const[i,a,c]=ha(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,Ji.set(n,t)},n);ia.push({type:na.createNode,nodes:i,eventNodes:a,printedNodes:c}),ca(o)}}function ya(e){if(!e.isMounted)return;const t=ai(),n=fa(e);ia.push({type:na.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),ca(t)}function ga(e,t=!1){if(!e.isMounted)return;const n=ai(),{$options:{rootViewId:o}}=n,[r,i,s]=pa(o,e,{},t);r&&(ia.push({type:na.updateNode,nodes:r?[r]:[],eventNodes:i?[i]:[],printedNodes:[]}),ca(n))}function va(e){if(!e.isMounted)return;const t=ai(),{$options:{rootViewId:n}}=t,[o,r,i]=ha(n,e);ia.push({type:na.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ca(t)}const ba=new Set;let _a,wa=!1;const $a={exitApp(){za.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(wa||(wa=!0,$a.initEventListener()),za.callNative("DeviceEventModule","setListenBackPress",!0),ba.add(e),{remove(){$a.removeListener(e)}}),removeListener(e){ba.delete(e),0===ba.size&&za.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){_a||(_a=ai()),_a.$on("hardwareBackPress",()=>{let e=!0;Array.from(ba).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$a.exitApp()})}},Sa={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},xa="android"===Hippy.device.platform.OS?$a:Sa;let ka;const Oa=new Map;class Na{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ca(this.eventName,this.listener),this.listener=void 0)}}function Ca(e,t){if(t instanceof Na)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=Oa.get(t);o&&(ka||(ka=ai()),ka.$off(n,o),Oa.delete(t),Oa.size<1&&za.callNative("NetInfo","removeListener",n))}var Ea=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===Oa.size&&za.callNative("NetInfo","addListener",n),ka||(ka=ai()),ka.$on(n,t),Oa.set(t,t),new Na(n,t)},removeEventListener:Ca,fetch:function(){return za.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:Na});const{on:Ia,off:Aa,emit:Ta,bridge:{callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La},device:{platform:{OS:Ma,Localization:Da={}},screen:{scale:Fa}},device:Ra,document:Va,register:Ba}=Hippy,Ua={},Ha=["%c[native]%c","color: red","color: auto"],Wa=function(e,t){const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:o}=e;return ui(...Ha,"callUIFunction",{nodeId:o,funcName:t,params:[]}),new Promise(e=>Va.callUIFunction(o,t,[],t=>{if(!t||"object"!=typeof t||void 0===o)return e(n);const{x:r,y:i,height:s,width:a}=t;return e({top:i,left:r,width:a,height:s,bottom:i+s,right:r+a})}))},za={callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La,UIManagerModule:Va,ConsoleModule:e.ConsoleModule||e.console,on:Ia,off:Aa,emit:Ta,PixelRatio:Fa,Platform:Ma,Localization:Da,version:"3.3.0",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return ja.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");let o="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");o=n.toUTCString()}Pa.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return ja.call(this,"ClipboardModule","getString")},setString(e){Pa.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!p(Ua.isIPhoneX)){let e=!1;"ios"===za.Platform&&(e=20!==za.Dimensions.screen.statusBarHeight),Ua.isIPhoneX=e}return Ua.isIPhoneX},get screenIsVertical(){return za.Dimensions.window.widthWa(e,"measureInWindow"),measureInAppWindow:e=>"android"===za.Platform?Wa(e,"measureInWindow"):Wa(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((o,r)=>{if(!e.isMounted||!n)return r(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));ui(...Ha,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Va.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=0,c=0;return"number"==typeof n&&"number"==typeof s&&(a=n+s),"number"==typeof t&&"number"==typeof i&&(c=t+i),o({x:t,y:n,width:i,height:s,bottom:a,right:c,left:t,top:n})})})},parseColor(e,t={platform:za.Platform}){if(Number.isInteger(e))return e;const n=Ua.COLOR_PARSER||(Ua.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=ws(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:xa,ImageLoader:{getSize(e){return ja.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Pa.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Ea,getElemCss:da};let Ya=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ya=e.__GLOBAL__.nodeId);class Ka{constructor(){this._ownerDocument=null,this._isMounted=!1,this.nodeId=(Ya+=1,Ya%10==0&&(Ya+=1),Ya%10==0&&(Ya+=1),Ya),this.index=0,this.childNodes=[]}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get meta(){return this._meta?this._meta:{}}get ownerDocument(){if(this._ownerDocument)return this._ownerDocument;let e=this;for(;"DocumentNode"!==e.constructor.name&&(e=e.parentNode,e););return this._ownerDocument=e,e}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");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);let o=t;return t.meta.skipAddToDom&&(o=es(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),o.meta.skipAddToDom?ma(this,e):ma(this,e,{refId:o.nodeId,relativeToRef:ts})}moveChild(e,t){if(!e)throw new Error("Can't move child.");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),o=this.childNodes.indexOf(t);let r=t;if(t.meta.skipAddToDom&&(r=es(this.childNodes,o)),o===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=e),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),r.meta.skipAddToDom?ma(this,e):function(e,t,n={}){if((null==e?void 0:e.meta)&&pi(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;const o=ai(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];ia.push({printedNodes:a,type:na.moveNode,nodes:s,eventNodes:[]}),ca(o)}(this,e,{refId:r.nodeId,relativeToRef:ts})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ma(this,e))}removeChild(e){if(!e)throw new Error("Can't remove child.");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.");if(e.meta.skipAddToDom)return;e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=ai(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];ia.push({printedNodes:s,type:na.deleteNode,nodes:i,eventNodes:[]}),ca(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}class Ga extends Ka{constructor(e){super(),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}const qa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Xa="turn",Ja="rad",Za="deg",Qa="beforeLoadStyleDisabled",ec="class",tc="id",nc="text",oc="value",rc="defaultValue",ic="placeholder",sc="numberOfRows",ac="caretColor",cc="caret-color",lc="break-strategy",uc="placeholderTextColor",dc="placeholder-text-color",fc="underlineColorAndroid",pc="underline-color-android",hc="nativeBackgroundAndroid",mc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function yc(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=i(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,s,a]=n;return s&&a?o=function(e,t=Za){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Xa:o=""+(360*n).toFixed(2);break;case Ja:o=""+(180/Math.PI*n).toFixed(2)}return o}(s,a):r&&void 0!==qa[r]&&(o=qa[r]),o}function gc(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,o]=t.split(/\s+(?![^(]*?\))/),r=/^([+-]?\d+\.?\d*)%$/g;return!n||r.exec(n)||o?n&&r.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:za.parseColor(n)}:void 0:{color:za.parseColor(n)}}function vc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function bc(e,t,n){void 0===t&&(delete n[e],vc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[mc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function _c(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,o=n.length;ee.trim()));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let o=n.next().value;for(;o;){if(!t.has(o))return!1;o=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&va(this))}case tc:if(r===this.id)return;return this.id=r,void(!n.notToNative&&va(this));case nc:case oc:case rc:case ic:if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!oi||void 0===oi.config.trimWhitespace||oi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}(r)),r=function(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}(r);break;case sc:if("ios"!==za.Platform)return;break;case ac:case cc:o="caret-color",r=za.parseColor(r);break;case lc:o="breakStrategy";break;case uc:case dc:o="placeholderTextColor",r=za.parseColor(r);break;case fc:case pc:o="underlineColorAndroid",r=za.parseColor(r);break;case hc:{const e=r;void 0!==e.color&&(e.color=za.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&ga(this,n.notUpdateStyle)}catch(e){0}}removeAttribute(e){delete this.attributes[e]}setStyles(e){e&&"object"==typeof e&&0!==Object.keys(e).length&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),ga(this))}setStyle(e,t,n=!1){let o=e,r=t;if(this.getAttribute(Qa)||({value:r,property:o}=this.beforeLoadStyle({property:e,value:t})),void 0===t)return bc(o,r,this.style),void(n||ga(this));switch(o){case"fontWeight":"string"!=typeof r&&(r=r.toString());break;case"backgroundImage":[o,r]=function(e,t,n){delete n[e],vc(e,t,n);let o=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),n=[];o={},e.forEach((e,t)=>{if(0===t){const t=yc(e);if(t)o.angle=t;else{o.angle="180";const t=gc(e);t&&n.push(t)}}else{const t=gc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(o,r,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[o,r]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[mc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(o,r,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:o=0}=r||{};r={width:e||t,height:n||o};break}default:Object.prototype.hasOwnProperty.call($s,o)&&(o=$s[o]),"string"==typeof r&&(r=r.trim(),r=o.toLowerCase().indexOf("color")>=0?za.parseColor(r):function(e,t,n){if(e.endsWith)return e.endsWith(t,n);let o=n;return(void 0===o||o>e.length)&&(o=e.length),e.slice(o-t.length,o)===t}(r,"px")?parseFloat(r.slice(0,r.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&fi.test(e))try{return parseFloat(e)}catch(e){}return e}(r))}null!=r&&this.style[o]!==r&&(this.style[o]=r,n||ga(this))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){va(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}isTextNode(e){return(null==e?void 0:e.meta.symbol)===wi}appendChild(e){(null==e?void 0:e.meta.symbol)===wi&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){this.isTextNode(e)&&e instanceof Ga&&this.setText("",{notToNative:!0}),super.removeChild(e)}setText(e,t={}){return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+di(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;(null==n?void 0:n[e])&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Xi(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){const e=200;this.attributes.scrollEventThrottle=e}"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(ss,e,t,n)),this._emitter.addEventListener(e,t,n),_c(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ns&&(this.events[t].type=ns):this.events[t]={name:t,type:ns,listener:(n=t,o=e,e=>{const{id:t,currentId:r,params:i,eventPhase:s}=e,a={id:t,nativeName:n,originalName:o,currentId:r,params:i,eventPhase:s};us.receiveComponentEvent(a,e)}),isCapture:!1}}),ya(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(as,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return _c(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=os)}),ya(this),o}dispatchEvent(e,t,n){if(!(e instanceof qi))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return za.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let o=n;!1===o&&(o=0),za.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:o}])}scrollTo(e,t,n){let o=n;if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto"}=e;({duration:o}=e),this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setPressed(e){za.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){za.callUIFunction(this,"setHotspot",[e,t])}}class $c extends wc{constructor(e){super("comment"),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}}class Sc extends wc{getValue(){return new Promise(e=>za.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){za.callUIFunction(this,"setValue",[e])}focus(){za.callUIFunction(this,"focusTextInput",[])}blur(){za.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>za.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){za.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class xc extends wc{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class kc extends Ka{constructor(){super(),this.documentElement=new wc("document")}static createComment(e){return new $c(e)}static createElement(e){switch(e){case"input":case"textarea":return new Sc(e);case"ul":return new xc(e);default:return new wc(e)}}static createElementNS(e,t){return new wc(`${e}:${t}`)}static createTextNode(e){return new Ga(e)}static createEvent(e){return new qi(e)}}var Oc={create(e,t){Nc(t)},update(e,t){e.data.ref!==t.data.ref&&(Nc(e,!0),Nc(t))},destroy(e){Nc(e,!0)}};function Nc(e,t){const n=e.data.ref;if(!p(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[n])?N(i[n],r):i[n]===r&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(r)<0&&i[n].push(r):i[n]=[r]:i[n]=r}const Cc=new ve("",{},[]),Ec=["create","activate","update","remove","destroy"];function Ic(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&p(e.data)===p(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=p(n=e.data)&&p(n=n.attrs)&&n.type,r=p(n=t.data)&&p(n=n.attrs)&&n.type;return o===r||Tn(o)&&Tn(r)}(e,t)||h(e.isAsyncPlaceholder)&&f(t.asyncFactory.error))}function Ac(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,p(r)&&(i[r]=o);return i}var Tc={create:Pc,update:Pc,destroy:function(e){Pc(e,Cc)}};function Pc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Cc,o=t===Cc,r=Lc(e.data.directives,e.context),i=Lc(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=r[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,Dc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Dc(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const o=()=>{for(let n=0;n{for(let n=0;n{const t=r[e],o=i[e];null!=t&&null==o&&(n[e]=void 0)}),Object.keys(i).forEach(e=>{const t=r[e],o=i[e];t!==o&&(n[e]=o)}),Object.keys(n).forEach(e=>{o.setAttribute(e,n[e])})}var Vc={create:Rc,update:Rc};function Bc(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=On(t);const s=n._transitionClasses;s&&(i=Cn(i,En(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Uc={create:Bc,update:Bc};let Hc;function Wc(e,t,n,o){(o||Hc).removeEventListener(e)}function zc(e,t,n,o,r){n||Hc.addEventListener(e,t)}function Yc(e,t,n){const o=Hc;return function(){const n=t(...arguments);null!==n&&Wc(e,0,0,o)}}function Kc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Hc=t.elm,it(n,o,zc,Wc,Yc,t.context)}var Gc={create:Kc,update:Kc};const qc=I(T);function Xc(e){const t={};for(let n=0;n{const r=e[o],i=t[o];!mi(r)&&mi(i)&&(n[qc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];mi(i)||i===r||(n[qc(o)]=i)}),n}function Zc(e,t){if(!t.elm||!function(e,t){return!(!e.data&&!t.data)&&!!(e.data.style||t.data.style||e.data.staticStyle||t.data.staticStyle)}(e,t))return;const n=Jc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Xc(r),t.data.style=r),i&&(r=F({},r),t.data.style=r);const s=Jc(o,r);t.elm.setStyles(l(l({},n),s))}var Qc=[Vc,Uc,Gc,{create:Zc,update:Zc}];function el(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){var o;if(!e||!e.data)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=(null===(o=e.data)||void 0===o?void 0:o.attrs)||{};i.__ob__&&(i=F({},i),e.data.attrs=i),Object.keys(i).forEach(e=>{r.setAttribute(e,i[e],{notToNative:!!n.notToNative})})}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;const{staticStyle:r}=e.data;r&&Object.keys(r).forEach(e=>{const t=r[e];t&&o.setStyle(qc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Xc(i),e.data.style=i),t&&(i=F({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(qc(e),i[e],!!n.notToNative)})}}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;const{data:o}=e;if(!o.staticClass&&!o.class)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=On(e);const s=r._transitionClasses;s&&(i=Cn(i,En(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const tl=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(u=f(n[b+1])?null:n[b+1].elm,v(e,u,n,h,b,o)):h>b&&_(t,d,m)}(l,y,g,n,c):p(g)?(p(e.text)&&i.setTextContent(l,""),v(l,null,g,0,g.length-1,n)):p(y)?_(y,0,y.length-1):p(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),p(m)&&p(u=m.hook)&&p(u=u.postpatch)&&u(e,t)}function k(e,t,n){if(h(n)&&p(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Qi(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:Qc.concat(Fc)});function nl(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let ol=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const rl={inserted(e,t){"ios"===za.Platform&&ol!==nl&&(ol=nl),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",({value:t})=>{const n=new qi("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,ol(e,t,n)}};function il(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const sl={bind(e,{value:t},n){void 0===e.style.display&&(e.style.display="block");const o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,il(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&il(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var al=Object.freeze({__proto__:null,model:rl,show:sl});const cl=['%c[Hippy-Vue "3.3.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],ll=new kc;gn.$document=ll,gn.prototype.$document=ll,gn.$Document=kc,gn.$Event=qi,gn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},gn.config.isReservedTag=Hi,gn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},gn.compile=ei,gn.registerElement=Ki,F(gn.options.directives,al),gn.prototype.__patch__=tl,gn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return fe("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=ei(e,{delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return function(e,t,n){let o;return e.$el=t,e.$options.render||(e.$options.render=be),Xt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new an(e,o,R,{before(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e,t)},gn.prototype.$start=function(e,t){var n;si(this),pi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ri=n),Wi.forEach(e=>{gn.component(e.meta.component.name,e.meta.component)}),Ba.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ui(...cl,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();si(new(gn.extend(this.$options))(this.$options))}if(pi(t)&&t(this,n),this.$mount(),"ios"===za.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;const o=new wc("div"),{statusBarHeight:r}=za.Dimensions.screen;za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0);let i=4282431619;if("number"==typeof n.backgroundColor&&({backgroundColor:i}=n),o.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){const t=new wc("img");t.setStyle("width",za.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0)}),o}(this.$options);e&&(this.$el.childNodes.length?this.$el.insertBefore(e,this.$el.childNodes[0]):this.$el.appendChild(e))}pi(e)&&e(this,n)})};let ul=1;gn.component=function(e,t){return t?(v(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},gn.extend=function(e){e=e||{};const t=this,n=t.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];const r=e.name||t.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(t.prototype)).constructor=i,ul+=1,i.cid=ul,i.options=Re(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>ln(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>fn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,z.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=F({},i.options),o[n]=i,i},gn.Native=za,gn.getApp=ai,gn.use((function(){Object.keys(Ui).forEach(e=>{Ki(e,Ui[e])})})),K.devtools&&ce&&ce.emit("init",gn);gn.config._setBeforeRenderToNative=(e,t)=>{pi(e)&&(1===t?ii=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const dl=new Proxy(gn,{construct(e,t){const n=new e(...t);return n}});let fl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,fl=ai(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=l({},n);if(fl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};za.callNativeWithPromise("websocket","connect",r).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,za.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);za.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 t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,fl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];pi(n)&&n(e.data)}},dl.config.silent=!1,dl.config.trimWhitespace=!0,function(e){oi=e}(dl)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",(function(){return fl}));const d=Object.freeze({});function f(e){return null==e}function p(e){return null!=e}function h(e){return!0===e}function m(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function y(e){return null!==e&&"object"==typeof e}const g=Object.prototype.toString;function v(e){return"[object Object]"===g.call(e)}function b(e){return"[object RegExp]"===g.call(e)}function _(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function w(e){return p(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function $(e){return null==e?"":Array.isArray(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e)}function S(e){const t=parseFloat(e);return isNaN(t)?e:t}function x(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const k=x("slot,component",!0),O=x("key,ref,slot,slot-scope,is");function N(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const C=Object.prototype.hasOwnProperty;function E(e,t){return C.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const A=/-(\w)/g,T=I(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=/\B([A-Z])/g,L=I(e=>e.replace(j,"-$1").toLowerCase());const M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function D(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function F(e,t){for(const n in t)e[n]=t[n];return e}function R(e,t,n){}const V=(e,t,n)=>!1,B=e=>e;function H(e,t){if(e===t)return!0;const n=y(e),o=y(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every((e,n)=>H(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>H(e[n],t[n]))}}catch(e){return!1}}function U(e,t){for(let n=0;n!1,ce=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}const ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&le(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let fe=R;let pe=0;class he{constructor(){this.id=pe++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){N(this.subs,e)}depend(){he.target&&he.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new ve;return t.text=e,t.isComment=!0,t};function _e(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){const t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}const $e=Array.prototype,Se=Object.create($e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=$e[e];X(Se,e,(function(...n){const o=t.apply(this,n),r=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&r.observeArray(i),r.dep.notify(),o}))}));const xe=Object.getOwnPropertyNames(Se);let ke=!0;function Oe(e){ke=e}class Ne{constructor(e){this.value=e,this.dep=new he,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(Z?function(e,t){e.__proto__=t}(e,Se):function(e,t,n){for(let o=0,r=n.length;o{Pe[e]=Me}),z.forEach((function(e){Pe[e+"s"]=De})),Pe.watch=function(e,t,n,o){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};F(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!Array.isArray(n)&&(n=[n]),r[e]=n?n.concat(o):Array.isArray(o)?o:[o]}return r},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return F(r,e),t&&F(r,t),r},Pe.provide=Le;const Fe=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,i,s;if(Array.isArray(n))for(r=n.length;r--;)i=n[r],"string"==typeof i&&(s=T(i),o[s]={type:null});else if(v(n))for(const e in n)i=n[e],s=T(e),o[s]=v(i)?i:{type:i};else 0;e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(Array.isArray(n))for(let e=0;e-1)if(i&&!E(r,"default"))s=!1;else if(""===s||s===L(e)){const e=ze(String,r.type);(e<0||aYe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ye(e,o,r)}return i}function Ge(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!Q&&!ee||"undefined"==typeof console)throw e;console.error(e)}const Xe=[];let Je,Ze=!1;function Qe(){Ze=!1;const e=Xe.slice(0);Xe.length=0;for(let t=0;t{e.then(Qe),re&&setTimeout(R)}}else if(oe||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Je=void 0!==o&&le(o)?()=>{o(Qe)}:()=>{setTimeout(Qe,0)};else{let e=1;const t=new MutationObserver(Qe),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Je=()=>{e=(e+1)%2,n.data=String(e)}}function et(e,t){let n;if(Xe.push(()=>{if(e)try{e.call(t)}catch(e){Ye(e,t,"nextTick")}else n&&n(t)}),Ze||(Ze=!0,Je()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const tt=new de;function nt(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!y(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(i)for(o=t.length;o--;)e(t[o],n);else for(r=Object.keys(t),o=r.length;o--;)e(t[r[o]],n)}(e,tt),tt.clear()}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}});function rt(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Ke(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),lt(i[0])&<(a)&&(o[s]=_e(a.text+i[0].text),i.shift()),o.push.apply(o,i)):m(i)?lt(a)?o[s]=_e(a.text+i):""!==i&&o.push(_e(i)):lt(i)&<(a)?o[s]=_e(a.text+i.text):(h(t._isVList)&&p(i.tag)&&f(i.key)&&p(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function lt(e){return p(e)&&p(e.text)&&!1===e.isComment}function ut(e,t){if(e){const n=Object.create(null),o=ue?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,i=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==d&&s===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=mt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=yt(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",i),X(o,"$key",s),X(o,"$hasNormal",r),o}function mt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function yt(e,t){return()=>e[t]}function gt(e,t){let n,o,r,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,r=e.length;o(this.$slots||ht(e.scopedSlots,this.$slots=dt(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ht(e.scopedSlots,this.slots())}}),a&&(this.$options=i,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),i._scopeId?this._c=(e,t,n,r)=>{const a=Rt(s,e,t,n,r,c);return a&&!Array.isArray(a)&&(a.fnScopeId=i._scopeId,a.fnContext=o),a}:this._c=(e,t,n,o)=>Rt(s,e,t,n,o,c)}function Pt(e,t,n,o,r){const i=we(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function jt(e,t){for(const n in t)e[T(n)]=t[n]}At(Tt.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;p(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const i=o.data.scopedSlots,s=e.$scopedSlots,a=!!(i&&!i.$stable||s!==d&&!s.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(r||e.$options._renderChildren||a);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||d,e.$listeners=n||d,t&&e.$options.props){Oe(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;rN(o,n));const a=e=>{for(let e=0,t=o.length;e{e.resolved=Ht(n,t),r?o.length=0:a(!0)}),l=W(t=>{p(e.errorComp)&&(e.error=!0,a(!0))}),u=e(c,l);return y(u)&&(w(u)?f(e.resolved)&&u.then(c,l):w(u.component)&&(u.component.then(c,l),p(u.error)&&(e.errorComp=Ht(u.error,t)),p(u.loading)&&(e.loadingComp=Ht(u.loading,t),0===u.delay?e.loading=!0:i=setTimeout(()=>{i=null,f(e.resolved)&&f(e.error)&&(e.loading=!0,a(!1))},u.delay||200)),p(u.timeout)&&(s=setTimeout(()=>{s=null,f(e.resolved)&&l(null)},u.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(s,i))))return function(e,t,n,o,r){const i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(s,t,n,o,r);t=t||{},yn(e),p(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),i=r[o],s=t.model.callback;p(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const a=function(e,t,n){const o=t.options.props;if(f(o))return;const r={},{attrs:i,props:s}=e;if(p(i)||p(s))for(const e in o){const t=L(e);0,at(r,s,e,t,!0)||at(r,i,e,t,!1)}return r}(t,e);if(h(e.options.functional))return function(e,t,n,o,r){const i=e.options,s={},a=i.props;if(p(a))for(const e in a)s[e]=Be(e,a,t||d);else p(n.attrs)&&jt(s,n.attrs),p(n.props)&&jt(s,n.props);const c=new Tt(n,s,r,o,e),l=i.render.call(null,c._c,c);if(l instanceof ve)return Pt(l,n,c.parent,i,c);if(Array.isArray(l)){const e=ct(l)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Rt(e,t,n,o,r,i){return(Array.isArray(n)||m(n))&&(r=o,o=n,n=void 0),h(i)&&(r=2),function(e,t,n,o,r){if(p(n)&&p(n.__ob__))return be();p(n)&&p(n.is)&&(t=n.is);if(!t)return be();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=ct(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(on=()=>e.now())}function rn(){let e,t;for(on(),tn=!0,Jt.sort((e,t)=>e.id-t.id),nn=0;nnnn&&Jt[t].id>e.id;)t--;Jt.splice(t+1,0,e)}else Jt.push(e);en||(en=!0,et(rn))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||y(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.active){this.vm._isBeingDestroyed||N(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const cn={enumerable:!0,configurable:!0,get:R,set:R};function ln(e,t,n){cn.get=function(){return this[t][n]},cn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,cn)}function un(e){e._watchers=[];const t=e.$options;t.props&&function(e,t){const n=e.$options.propsData||{},o=e._props={},r=e.$options._propKeys=[];e.$parent&&Oe(!1);for(const i in t){r.push(i);const s=Be(i,t,n,e);Ee(o,i,s),i in e||ln(e,"_props",i)}Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ye();try{return e.call(t,t)}catch(e){return Ye(e,t,"data()"),{}}finally{ge()}}(t,e):t||{},v(t)||(t={});const n=Object.keys(t),o=e.$options.props;e.$options.methods;let r=n.length;for(;r--;){const t=n[r];0,o&&E(o,t)||q(t)||ln(e,"_data",t)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null);for(const o in t){const r=t[o],i="function"==typeof r?r:r.get;0,n[o]=new an(e,i||R,R,dn),o in e||fn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==ie&&function(e,t){for(const n in t){const o=t[n];if(Array.isArray(o))for(let t=0;t-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!b(e)&&e.test(t)}function wn(e,t){const{cache:n,keys:o,_vnode:r}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&$n(n,e,o,r)}}}function $n(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,N(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mn++,t._isVue=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(yn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=d,e._c=(t,n,o,r)=>Rt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Rt(e,t,n,o,r,!0);const r=n&&n.data;Ee(e,"$attrs",r&&r.attrs||d,null,!0),Ee(e,"$listeners",t._parentListeners||d,null,!0)}(t),Xt(t,"beforeCreate"),function(e){const t=ut(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Ee(e,n,t[n])}),Oe(!0))}(t),un(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(gn),function(e){const t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){const o=this;if(v(t))return hn(o,e,t,n);(n=n||{}).user=!0;const r=new an(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ye(),Ke(t,o,[r.value],o,e),ge()}return function(){r.teardown()}}}(gn),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const o=this;if(Array.isArray(e))for(let t=0,r=e.length;t1?D(n):n;const o=D(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Kt=t}}(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){const e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||N(t.$children,e),e._watcher&&e._watcher.teardown();let n=e._watchers.length;for(;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(gn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ht(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Bt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ye(t,e,"render"),o=e._vnode}finally{Bt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof ve||(o=be()),o.parent=n,o}}(gn);const Sn=[String,RegExp,Array];var xn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:i,componentOptions:s}=n;e[o]={name:bn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)$n(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{wn(this,t=>_n(e,t))}),this.$watch("exclude",e=>{wn(this,t=>!_n(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tK};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:F,mergeOptions:Re,defineReactive:Ee},e.set=Ie,e.delete=Ae,e.nextTick=et,e.observable=e=>(Ce(e),e),e.options=Object.create(null),z.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,F(e.options.components,xn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=D(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){z.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&v(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(gn),Object.defineProperty(gn.prototype,"$isServer",{get:ae}),Object.defineProperty(gn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.14",x("style,class");const kn=x("input,textarea,option,select,progress");function On(e){let t=e.data,n=e,o=e;for(;p(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=Nn(o.data,t));for(;p(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(p(e)||p(t))return Cn(e,En(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:Cn(e.staticClass,t.staticClass),class:p(e.class)?[e.class,t.class]:t.class}}function Cn(e,t){return e?t?e+" "+t:e:t||""}function En(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,r=e.length;o=0&&(t=e.charAt(n)," "===t);n--);t&&Pn.test(t)||(l=!0)}}else void 0===r?(p=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(p,o).trim()),p=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==p&&h(),i)for(o=0;o{const t=e[0].replace(Dn,"\\$&"),n=e[1].replace(Dn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Rn(e,t){console.error("[Vue compiler]: "+e)}function Vn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Bn(e,t,n,o,r){(e.props||(e.props=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Hn(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Un(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Xn({name:t,value:n},o))}function Wn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Xn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function zn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Yn(e,t,n,o,r,i,s,a){let c;(o=o||d).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=zn("!",t,a)),o.once&&(delete o.once,t=zn("~",t,a)),o.passive&&(delete o.passive,t=zn("&",t,a)),o.native?(delete o.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});const l=Xn({value:n.trim(),dynamic:a},s);o!==d&&(l.modifiers=o);const u=c[t];Array.isArray(u)?r?u.unshift(l):u.push(l):c[t]=u?r?[l,u]:[u,l]:l,e.plain=!1}function Kn(e,t,n){const o=Gn(e,":"+t)||Gn(e,"v-bind:"+t);if(null!=o)return jn(o);if(!1!==n){const n=Gn(e,t);if(null!=n)return JSON.stringify(n)}}function Gn(e,t,n){let o;if(null!=(o=e.attrsMap[t])){const n=e.attrsList;for(let e=0,o=n.length;e1&&(t[o[0].trim()]=o[1].trim())}})),t}));var Qn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Gn(e,"style");n&&(e.staticStyle=JSON.stringify(Zn(n)));const o=Kn(e,"style",!1);o&&(e.styleBinding=o)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};var eo=function(e){return e};const to=x("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=x("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),oo=x("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ro=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,so=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${G.source}]*`,ao=`((?:${so}\\:)?${so})`,co=new RegExp("^<"+ao),lo=/^\s*(\/?)>/,uo=new RegExp(`^<\\/${ao}[^>]*>`),fo=/^]+>/i,po=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},vo=/&(?:lt|gt|quot|amp|#39);/g,bo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_o=x("pre,textarea",!0),wo=(e,t)=>e&&_o(e)&&"\n"===t[0];function $o(e,t){const n=t?bo:vo;return e.replace(n,e=>go[e])}function So(e,t,n){const{number:o,trim:r}=n||{};let i="$$v";r&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(i=`_n(${i})`);const s=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),ko=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Co),key:'"'+e.slice(Co+1)+'"'}:{exp:e,key:null};Oo=e,Co=Eo=Io=0;for(;!To();)No=Ao(),Po(No)?Lo(No):91===No&&jo(No);return{exp:e.slice(0,Eo),key:e.slice(Eo+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ko,Oo,No,Co,Eo,Io;function Ao(){return Oo.charCodeAt(++Co)}function To(){return Co>=ko}function Po(e){return 34===e||39===e}function jo(e){let t=1;for(Eo=Co;!To();)if(Po(e=Ao()))Lo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Co;break}}function Lo(e){const t=e;for(;!To()&&(e=Ao())!==t;);}const Mo=/^@|^v-on:/,Do=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vo=/^\(|\)$/g,Bo=/^\[.*\]$/,Ho=/:(.*)$/,Uo=/^:|^\.|^v-bind:/,Wo=/^\./,zo=/\.[^.\]]+(?=[^\]]*$)/g,Yo=/^v-slot(:|$)|^#/,Ko=/[\r\n]/,Go=/[ \f\t\r\n]+/g,qo=I(eo);let Xo,Jo,Zo,Qo,er,tr,nr,or,rr;function ir(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fr(t),rawAttrsMap:{},parent:n,children:[]}}function sr(e,t){Xo=t.warn||Rn,tr=t.isPreTag||V,nr=t.mustUseProp||V,or=t.getTagNamespace||V;const n=t.isReservedTag||V;rr=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Zo=Vn(t.modules,"transformNode"),Qo=Vn(t.modules,"preTransformNode"),er=Vn(t.modules,"postTransformNode"),Jo=t.delimiters;const o=[],r=!1!==t.preserveWhitespace,i=t.whitespace;let s,a,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=ar(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&lr(s,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&lr(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter(e=>!e.slotScope),d(e),e.pre&&(c=!1),tr(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,mo(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),wo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,f(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(po.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment(e.substring(4,n),c,c+n+3),l(n+3);continue}}if(ho.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(fo);if(n){l(n[0].length);continue}const o=e.match(uo);if(o){const e=c;l(o[0].length),f(o[1],e,c);continue}const r=u();if(r){d(r),wo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(uo.test(o)||co.test(o)||po.test(o)||ho.test(o)||(r=o.indexOf("<",1),r<0));)i+=r,o=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===s){t.chars&&t.chars(e);break}}function l(t){c+=t,e=e.substring(t)}function u(){const t=e.match(co);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(lo))&&(r=e.match(io)||e.match(ro));)r.start=c,l(r[0].length),r.end=c,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=c,n}}function d(e){const s=e.tagName,c=e.unarySlash;o&&("p"===a&&oo(s)&&f(a),i(s)&&a===s&&f(s));const l=r(s)||!!c,u=e.attrs.length,d=new Array(u);for(let n=0;n=0&&n[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,o,r);n.length=i,a=i&&n[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,o,r):"p"===s&&(t.start&&t.start(e,[],!1,o,r),t.end&&t.end(e,o,r))}f()}(e,{warn:Xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,n,r,i,d){const f=a&&a.ns||or(e);oe&&"svg"===f&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=jn(i[1].trim());o.push(`_s(${t})`),r.push({"@binding":t}),c=s+i[0].length}return c{if(!e.slotScope)return e.parent=i,!0}),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Kn(n,"name")),function(e){let t;(t=Kn(e,"is"))&&(e.component=t);null!=Gn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function fr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Yn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${s});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Kn(e,"value")||"null";r=o?`_n(${r})`:r,Bn(e,"checked",`_q(${t},${r})`),Yn(e,"change",xo(t,r),null,!0)}(e,o,r);else if("input"===i||"textarea"===i)!function(e,t,n){const o=e.attrsMap.type;0;const{lazy:r,number:i,trim:s}=n||{},a=!r&&"range"!==o,c=r?"change":"range"===o?"__r":"input";let l="$event.target.value";s&&(l="$event.target.value.trim()");i&&(l=`_n(${l})`);let u=xo(t,l);a&&(u="if($event.target.composing)return;"+u);Bn(e,"value",`(${t})`),Yn(e,c,u,null,!0),(s||i)&&Yn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!K.isReservedTag(i))return So(e,o,r),!1}return!0},text:function(e,t){t.value&&Bn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Bn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:to,mustUseProp:(e,t,n)=>"value"===n&&kn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:no,isReservedTag:e=>In(e)||An(e),getTagNamespace:function(e){return An(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(yr)};let br,_r;const wr=I((function(e){return x("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function $r(e,t){e&&(br=wr(t.staticKeys||""),_r=t.isReservedTag||V,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||k(e.tag)||!_r(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(br)))}(t),1===t.type){if(!_r(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,xr=/\([^)]*?\);*$/,kr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Or={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Nr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Cr=e=>`if(${e})return null;`,Er={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Cr("$event.target !== $event.currentTarget"),ctrl:Cr("!$event.ctrlKey"),shift:Cr("!$event.shiftKey"),alt:Cr("!$event.altKey"),meta:Cr("!$event.metaKey"),left:Cr("'button' in $event && $event.button !== 0"),middle:Cr("'button' in $event && $event.button !== 1"),right:Cr("'button' in $event && $event.button !== 2")};function Ir(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=Ar(e[t]);e[t]&&e[t].dynamic?r+=`${t},${n},`:o+=`"${t}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function Ar(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>Ar(e)).join(",")}]`;const t=kr.test(e.value),n=Sr.test(e.value),o=kr.test(e.value.replace(xr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Er[t])i+=Er[t],Or[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=Cr(["ctrl","shift","alt","meta"].filter(e=>!t[e]).map(e=>`$event.${e}Key`).join("||"))}else s.push(t);s.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Tr).join("&&")+")return null;"}(s)),i&&(r+=i);return`function($event){${r}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:o?"return "+e.value:e.value}}`}return t||n?e.value:`function($event){${o?"return "+e.value:e.value}}`}function Tr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=Or[e],o=Nr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Pr={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:R};class jr{constructor(e){this.options=e,this.warn=e.warn||Rn,this.transforms=Vn(e.modules,"transformCode"),this.dataGenFns=Vn(e.modules,"genData"),this.directives=F(F({},Pr),e.directives);const t=e.isReservedTag||V;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Lr(e,t){const n=new jr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Mr(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Mr(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Dr(e,t);if(e.once&&!e.onceProcessed)return Fr(e,t);if(e.for&&!e.forProcessed)return Vr(e,t);if(e.if&&!e.ifProcessed)return Rr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Wr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Kr((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:T(e.name),value:e.value,dynamic:e.dynamic}))):null,s=e.attrsMap["v-bind"];!i&&!s||o||(r+=",null");i&&(r+=","+i);s&&(r+=`${i?"":",null"},${s}`);return r+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const o=t.inlineTemplate?null:Wr(t,n,!0);return`_c(${e},${Br(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Br(e,t));const r=e.inlineTemplate?null:Wr(e,t,!0);n=`_c('${e.tag}'${o?","+o:""}${r?","+r:""})`}for(let o=0;o{const n=t[e];return n.slotTargetDynamic||n.if||n.for||Hr(n)}),r=!!e.if;if(!o){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){o=!0;break}t.if&&(r=!0),t=t.parent}}const i=Object.keys(t).map(e=>Ur(t[e],n)).join(",");return`scopedSlots:_u([${i}]${o?",null,true":""}${!o&&r?",null,false,"+function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i):""})`}(e,e.scopedSlots,t)+","),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const o=function(e,t){const n=e.children[0];0;if(n&&1===n.type){const e=Lr(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map(e=>`function(){${e}}`).join(",")}]}`}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Kr(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Hr(e){return 1===e.type&&("slot"===e.tag||e.children.some(Hr))}function Ur(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Rr(e,t,Ur,"null");if(e.for&&!e.forProcessed)return Vr(e,t,Ur);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Wr(e,t)||"undefined"}:undefined`:Wr(e,t)||"undefined":Mr(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Wr(e,t,n,o,r){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const r=n?t.maybeComponent(e)?",1":",0":"";return`${(o||Mr)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;ozr(e.block))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(e=>t(e.block)))&&(n=1)}}return n}(i,t.maybeComponent):0,a=r||Yr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function zr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Yr(e,t){return 1===e.type?Mr(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Gr(JSON.stringify(e.text))})`}(e)}function Kr(e){let t="",n="";for(let o=0;oqr(e,c)),t[i]=a}}const Jr=(Zr=function(e,t){const n=sr(e.trim(),t);!1!==t.optimize&&$r(n,t);const o=Lr(n,t);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(e){function t(t,n){const o=Object.create(e),r=[],i=[];if(n){n.modules&&(o.modules=(e.modules||[]).concat(n.modules)),n.directives&&(o.directives=F(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(o[e]=n[e])}o.warn=(e,t,n)=>{(n?i:r).push(e)};const s=Zr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Xr(t)}});var Zr;const{compile:Qr,compileToFunctions:ei}=Jr(vr),ti=`http://127.0.0.1:${r.env.PORT}/`;let ni,oi,ri=e=>e,ii=()=>{};function si(e){ni=e}function ai(){return ni}function ci(){return ri}const li=W(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ui(...e){(null==oi?void 0:oi.config.silent)&&li()}function di(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fi=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pi(e){return"[object Function]"===Object.prototype.toString.call(e)}function hi(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function mi(e){return null==e}function yi(e){return"string"==typeof e?""!==e.trim():null!=e}const gi=Symbol.for("View"),vi=Symbol.for("Image"),bi=Symbol.for("ListView"),_i=Symbol.for("ListViewItem"),wi=Symbol.for("Text"),$i=Symbol.for("TextInput"),Si=Symbol.for("WebView"),xi=Symbol.for("VideoPlayer"),ki={[gi]:"View",[vi]:"Image",[bi]:"ListView",[_i]:"ListViewItem",[wi]:"Text",[$i]:"TextInput",[Si]:"WebView",[xi]:"VideoPlayer"};function Oi(...e){const t={};if(Array.isArray(e[0]))e[0].forEach(([e,n])=>{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const Ni={number:"numeric",text:"default",search:"web-search"},Ci={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},Ei={symbol:gi,component:{name:ki[gi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},Ci),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus}return e}}},Ii={symbol:gi,component:l(l({},Ei.component),{},{name:ki[gi],defaultNativeStyle:{}})},Ai={symbol:gi,component:{name:ki[gi]}},Ti={symbol:vi,component:l(l({},Ei.component),{},{name:ki[vi],defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=hi(e);return t&&t.indexOf(ti)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>hi(e)},Ci),processEventData(e,t,n){switch(t){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus;break;case"onLoad":{const{width:t,height:o,url:r}=n;e.width=t,e.height=o,e.url=r;break}}return e}})},Pi={symbol:bi,component:{name:ki[bi],defaultNativeStyle:{flex:1},attributeMaps:l({},Ci),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":e.index=n.index}return e}}},ji={symbol:_i,component:{name:ki[_i],attributeMaps:l({},Ci),eventNamesMap:Oi([["disappear","onDisappear"]])}},Li={symbol:gi,component:l(l({},Ei.component),{},{name:ki[wi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},Mi=Li,Di=Li,Fi={component:l(l({},Li.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Ri={symbol:$i,component:{name:ki[$i],attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=Ni[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Ci),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Oi([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t,n){switch(t){case"onChangeText":case"onEndEditing":e.value=n.text;break;case"onSelectionChange":e.start=n.selection.start,e.end=n.selection.end;break;case"onKeyboardWillShow":e.keyboardHeight=n.keyboardHeight;break;case"onContentSizeChange":e.width=n.contentSize.width,e.height=n.contentSize.height}return e}}},Vi={symbol:$i,component:{name:ki[$i],defaultNativeProps:l(l({},Ri.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},Ri.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Ri.component.defaultNativeStyle,eventNamesMap:Ri.component.eventNamesMap,processEventData:Ri.component.processEventData}},Bi={symbol:Si,component:{name:ki[Si],defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t,n){switch(t){case"onLoad":case"onLoadStart":e.url=n.url;break;case"onLoadEnd":e.url=n.url,e.success=n.success,e.error=n.error}return e}}};var Hi=Object.freeze({__proto__:null,button:Ii,div:Ei,form:Ai,img:Ti,input:Ri,label:Mi,li:ji,p:Di,span:Li,a:Fi,textarea:Vi,ul:Pi,iframe:Bi});const Ui=x("template,script,style,element,content,slot,button,div,form,img,input,label,li,p,span,textarea,ul",!0),Wi=new Map,zi={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,mustUseProp:!1,model:null,component:null};function Yi(e){return e.toLowerCase()}function Ki(e,t){if(!e)throw new Error("RegisterElement cannot set empty name");const n=Yi(e),o=l(l({},zi),t);if(Wi.has(n))throw new Error(`Element for ${e} already registered.`);o.component=l(l({},function(e,t,n){return{name:e,functional:!0,model:t.model,render:(e,{data:t,children:o})=>e(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===di(T(e))&&o.component.name;const r={meta:o};return Wi.set(n,r),r}function Gi(e){const t=Yi(e);let n=zi;const o=Wi.get(t);return(null==o?void 0:o.meta)&&(n=o.meta),n}class qi{constructor(e){this.value="",this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){this.cancelable&&(this.isCanceled=!0)}initEvent(e,t=!0,n=!0){return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}class Xi{constructor(e){this.element=e,this.observers={}}getEventListeners(){return this.observers}addEventListener(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!pi(t))throw new TypeError("callback must be function.");const o=e.split(",");for(let e=0,r=o.length;e=0&&e.splice(o,1),0===e.length&&(this.observers[r]=void 0)}}else this.observers[r]=void 0}return this.observers}emit(e){var t,n;const{type:o}=e,r=this.observers[o];if(r)for(let o=r.length-1;o>=0;o-=1){const i=r[o];(null===(t=i.options)||void 0===t?void 0:t.once)&&r.splice(o,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventList(e,t){let n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&H(e.options,n):e.callback===t)}}const Ji=new Map;function Zi(e){return Ji.get(e)||null}function Qi(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){var n;o=t.nodeId,Ji.delete(o),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t));var o}(t)},{timeout:50})}function es(e=[],t=0){let n=e[t];for(let o=t;o-1){const e=new cs(i);if(Object.assign(e,{eventPhase:a,nativeParams:s||{}}),"onLayout"===r){const{layout:{x:t,y:n,height:o,width:r}}=s;e.top=n,e.left=t,e.bottom=n+o,e.right=t+r,e.width=r,e.height=o}else{const{processEventData:t}=c._meta.component;t&&t(e,r,s)}c.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(r,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=us);const ds={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},fs=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,ps="[-+]?\\d*\\.?\\d+",hs={rgb:new RegExp("rgb"+fs(ps,ps,ps)),rgba:new RegExp("rgba"+fs(ps,ps,ps,ps)),hsl:new RegExp("hsl"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ps)),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})$/},ms=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ys=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},gs=(e,t,n)=>{let o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},vs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=gs(r,o,e+1/3),s=gs(r,o,e),a=gs(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},bs=e=>(parseFloat(e)%360+360)%360/360,_s=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function ws(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hs.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ds,e)?ds[e]:(t=hs.rgb.exec(e),Array.isArray(t)?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|255)>>>0:(t=hs.rgba.exec(e),t?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|ys(t[4]))>>>0:(t=hs.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hs.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=hs.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hs.hsl.exec(e),t?(255|vs(bs(t[1]),_s(t[2]),_s(t[3])))>>>0:(t=hs.hsla.exec(e),t?(vs(bs(t[1]),_s(t[2]),_s(t[3]))|ys(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const $s={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};var Ss;function xs(){const e=za.Localization;return!!e&&e.direction===Ss.RTL}!function(e){e[e.RTL=1]="RTL"}(Ss||(Ss={}));const ks=new Map;function Os(e){return ks.get(e)||{}}class Ns{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}trackChanges(e,t){this.dynamic&&t.addAttribute(e,"")}}class Cs extends Ns{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}match(e){return!1}}function Es(e){return e?` ${e} `:""}const Is=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class As extends Cs{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Cs&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Es(this.combinator||"")}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof Cs&&this.head.lookupSort(e,t||this)}removeSort(e,t){this.head&&this.head instanceof Cs&&this.head.removeSort(e,t||this)}}const Ts=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ps={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},js={};function Ls(e,t,n){let o="";Ts&&(o="gy"),js[e]||(js[e]=new RegExp(Ps[e],o));const r=js[e];let i;if(Ts)r.lastIndex=n||0,i=r.exec(t);else{if(t=t.slice(n,t.length),i=r.exec(t),!i)return{result:null,regexp:r};r.lastIndex=n||0+i[0].length}return{result:i,regexp:r}}function Ms(e,t){return function(e,t){const{result:n,regexp:o}=Ls("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:r}}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("attributeSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:r}}return{value:{type:"[]",property:i},start:t,end:r}}(e,t)}function Ds(e,t){let n=Ms(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=Ms(e,o);return{start:t,end:o,value:r}}function Fs(e,t){const{result:n,regexp:o}=Ls("combinatorRegEx",e,t);if(!n)return null;let r;r=Ts?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}class Rs{constructor(e,t,n){e.forEach(e=>(e.ruleSet=this,null)),this.hash=n,this.selectors=e,this.declarations=t}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}class Vs extends Cs{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n}match(e){if(!this.test)return!(!e||!e.attributes)&&!mi(Is(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;const t=""+Is(e,this.attribute);if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){const e=t.split(" ");return e&&-1!==e.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith(this.value+"-"))}toString(){return`[${this.attribute}${Es(this.test)}${this.test&&this.value||""}]${Es(this.combinator||"")}`}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Bs extends Cs{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Es(this.combinator||"")}`}match(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,t||this)}removeSort(e,t){e.removeByClass(this.className,t||this)}}class Hs extends Cs{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Es(this.combinator||"")}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class Us extends Cs{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}}class Ws extends Cs{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Es(this.combinator||"")}`}match(e){return!!e}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}class zs{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)})}}class Ys{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)})}}class Ks extends Ns{constructor(e){super();const t=[void 0," ",">","+"];let n=[],o=[];const r=[];this.selectors=e,this.selectors.reverse().forEach(e=>{if(-1===t.indexOf(e.combinator))throw new Error(`Unsupported combinator "${e.combinator}".`);void 0!==e.combinator&&" "!==e.combinator||r.push(o=[n=[]]),">"===e.combinator&&o.push(n=[]),n.push(e)}),this.groups=r.map(e=>new zs(e.map(e=>new Ys(e))));const[i]=e;this.last=i,this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.dynamic=e.some(e=>e.dynamic)}toString(){return this.selectors.join("")}match(e){let t=e;return this.groups.every((n,o)=>{if(0===o)return t=n.match(e),!!t;let r=t;for(;r=null==r?void 0:r.parentNode;)if(t=n.match(r))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){let n=e;if(!this.dynamic)return this.match(n);const o=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return o.push({left:e,right:e}),n=r,!!n}let i=e;for(;i=i.parentNode;){const e=t.mayMatch(i);if(e)return o.push({left:i,right:void 0}),n=e,!0}return!1});if(!r)return!1;if(!t)return r;for(let e=0;e{if(!Ts){if(""===e)return;n=0}do{const t=Ds(e,n);if(!t){if(c)return null;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=Fs(e,n),s&&({end:n}=s),c=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e);return t?function(e){if(0===e.length)return new Us(new Error("Empty selector."));if(1===e.length)return Zs(e[0][0]);const t=[];for(let n=0;ne.lookupSort(this))}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e){const{tagName:t,id:n,classList:o}=e,r=[this.universal,this.id[n],this.type[t]];o.size&&o.forEach(e=>r.push(this.class[e]));const i=r.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new ea;return s.selectors=i.filter(t=>t.sel.accumulateChanges(e,s)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),s}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeById(e,t){this.removeFromMap(this.id,e,t)}removeByClass(e,t){this.removeFromMap(this.class,e,t)}removeByType(e,t){this.removeFromMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,o;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(o=e.ruleSet)||void 0===o?void 0:o.hash)});-1!==t&&this.universal.splice(t)}addToMap(e,t,n){const o=e;this.position+=1;const r=o[t];r?r.push(this.makeDocSelector(n)):o[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>{var t,o;return(null===(t=e.sel.ruleSet)||void 0===t?void 0:t.hash)===(null===(o=n.ruleSet)||void 0===o?void 0:o.hash)});-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}const na={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode"),updateEvent:Symbol("updateEvent")};let oa,ra=!0,ia=[];function sa(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:o}=e;o.forEach(e=>{const{name:o,type:r,listener:i}=e;let s;s=function(e){return!!rs[e]}(o)?rs[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===os&&t.removeEventListener(n,s,i),r===ns&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function aa(e,t){0}function ca(t){if(!ra)return;if(ra=!1,0===ia.length)return void(ra=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case na.createNode:aa(e.printedNodes),n.create(e.nodes),sa(e.eventNodes,n);break;case na.updateNode:aa(e.printedNodes),n.update(e.nodes),sa(e.eventNodes,n);break;case na.deleteNode:aa(e.printedNodes),n.delete(e.nodes);break;case na.moveNode:aa(e.printedNodes),n.move(e.nodes);break;case na.updateEvent:sa(e.eventNodes,n)}}),n.build(),ra=!0,ia=[]})}function la(){if(!oa||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ci();return e.map(e=>{const n=e.declarations.filter(Xs).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Qs);return new Rs(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);oa?oa.append(t):oa=new ta(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{oa.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),oa}function ua(e){const t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach(n=>{if(void 0!==e.getAttribute(n))return;const o=e.meta.component.defaultNativeProps[n];pi(o)?t[n]=o(e):t[n]=o}),Object.keys(e.attributes).forEach(n=>{let o=e.getAttribute(n);if(!e.meta.component.attributeMaps||!e.meta.component.attributeMaps[n])return void(t[n]=o);const r=e.meta.component.attributeMaps[n];if("string"==typeof r)return void(t[r]=o);if(pi(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;pi(s)&&(o=s(o)),a?(t[a]=t[a]||{},Object.assign(t[a],{[i]:o})):t[i]=o}),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function da(e){const t=Object.create(null);try{la().query(e).selectors.forEach(n=>{(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){console.error("getDomCss Error:",e)}return t}function fa(e){let t=void 0;const n=e.events;if(n){const o=[];Object.keys(n).forEach(e=>{const{name:t,type:r,isCapture:i,listener:s}=n[e];o.push({name:t,type:r,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:o}}return t}function pa(e,t,n={},o=!1){var r;if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i,s;if(o)i=Os(t.nodeId),s=i;else{i=da(t),i=l(l({},i),t.style),ii();const e=Object.assign({},i);if(t.parentNode){const e=Os(t.parentNode.nodeId);["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!yi(i[t])&&yi(e[t])&&(i[t]=e[t])})}!function(e,t){ks.set(e,t)}(t.nodeId,i),s=function(e){var t;return(null===(t=e.meta)||void 0===t?void 0:t.component)&&"Text"===e.meta.component.name}(t)?i:e,t.meta.component.defaultNativeStyle&&(s=l(l({},t.meta.component.defaultNativeStyle),s))}const a={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.meta.component.name,props:l(l({},ua(t)),{},{style:s}),tagName:t.tagName};!function(e){if(e.props.__modalFirstChild__){const t=e.props.style;Object.keys(t).some(e=>"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach(e=>delete t[e]),!0))}}(a),function(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=xs()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=hi(n.backgroundImage)))}(t,a,s),function(e,t){"TextInput"===e.meta.component.name&&xs()&&(t.textAlign||(t.textAlign="right"))}(t,s);const c=fa(t);let u=void 0;return[[a,n],c,u]}function ha(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=pa(e,t,o);a&&r.push(a),c&&i.push(c),l&&s.push(l),"function"==typeof n&&n(t)},o),[r,i,s]}function ma(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ai();if(!o)return;const{$options:{rootViewId:r,rootView:i}}=o,s=function(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}(e,i)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(s||a){const[i,a,c]=ha(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,Ji.set(n,t)},n);ia.push({type:na.createNode,nodes:i,eventNodes:a,printedNodes:c}),ca(o)}}function ya(e){if(!e.isMounted)return;const t=ai(),n=fa(e);ia.push({type:na.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),ca(t)}function ga(e,t=!1){if(!e.isMounted)return;const n=ai(),{$options:{rootViewId:o}}=n,[r,i,s]=pa(o,e,{},t);r&&(ia.push({type:na.updateNode,nodes:r?[r]:[],eventNodes:i?[i]:[],printedNodes:[]}),ca(n))}function va(e){if(!e.isMounted)return;const t=ai(),{$options:{rootViewId:n}}=t,[o,r,i]=ha(n,e);ia.push({type:na.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ca(t)}const ba=new Set;let _a,wa=!1;const $a={exitApp(){za.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(wa||(wa=!0,$a.initEventListener()),za.callNative("DeviceEventModule","setListenBackPress",!0),ba.add(e),{remove(){$a.removeListener(e)}}),removeListener(e){ba.delete(e),0===ba.size&&za.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){_a||(_a=ai()),_a.$on("hardwareBackPress",()=>{let e=!0;Array.from(ba).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$a.exitApp()})}},Sa={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},xa="android"===Hippy.device.platform.OS?$a:Sa;let ka;const Oa=new Map;class Na{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ca(this.eventName,this.listener),this.listener=void 0)}}function Ca(e,t){if(t instanceof Na)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=Oa.get(t);o&&(ka||(ka=ai()),ka.$off(n,o),Oa.delete(t),Oa.size<1&&za.callNative("NetInfo","removeListener",n))}var Ea=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===Oa.size&&za.callNative("NetInfo","addListener",n),ka||(ka=ai()),ka.$on(n,t),Oa.set(t,t),new Na(n,t)},removeEventListener:Ca,fetch:function(){return za.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:Na});const{on:Ia,off:Aa,emit:Ta,bridge:{callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La},device:{platform:{OS:Ma,Localization:Da={}},screen:{scale:Fa}},device:Ra,document:Va,register:Ba}=Hippy,Ha={},Ua=["%c[native]%c","color: red","color: auto"],Wa=function(e,t){const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:o}=e;return ui(...Ua,"callUIFunction",{nodeId:o,funcName:t,params:[]}),new Promise(e=>Va.callUIFunction(o,t,[],t=>{if(!t||"object"!=typeof t||void 0===o)return e(n);const{x:r,y:i,height:s,width:a}=t;return e({top:i,left:r,width:a,height:s,bottom:i+s,right:r+a})}))},za={callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La,UIManagerModule:Va,ConsoleModule:e.ConsoleModule||e.console,on:Ia,off:Aa,emit:Ta,PixelRatio:Fa,Platform:Ma,Localization:Da,version:"3.3.1",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return ja.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");let o="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");o=n.toUTCString()}Pa.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return ja.call(this,"ClipboardModule","getString")},setString(e){Pa.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!p(Ha.isIPhoneX)){let e=!1;"ios"===za.Platform&&(e=20!==za.Dimensions.screen.statusBarHeight),Ha.isIPhoneX=e}return Ha.isIPhoneX},get screenIsVertical(){return za.Dimensions.window.widthWa(e,"measureInWindow"),measureInAppWindow:e=>"android"===za.Platform?Wa(e,"measureInWindow"):Wa(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((o,r)=>{if(!e.isMounted||!n)return r(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));ui(...Ua,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Va.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=0,c=0;return"number"==typeof n&&"number"==typeof s&&(a=n+s),"number"==typeof t&&"number"==typeof i&&(c=t+i),o({x:t,y:n,width:i,height:s,bottom:a,right:c,left:t,top:n})})})},parseColor(e,t={platform:za.Platform}){if(Number.isInteger(e))return e;const n=Ha.COLOR_PARSER||(Ha.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=ws(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:xa,ImageLoader:{getSize(e){return ja.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Pa.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Ea,getElemCss:da};let Ya=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ya=e.__GLOBAL__.nodeId);class Ka{constructor(){this._ownerDocument=null,this._isMounted=!1,this.nodeId=(Ya+=1,Ya%10==0&&(Ya+=1),Ya%10==0&&(Ya+=1),Ya),this.index=0,this.childNodes=[]}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get meta(){return this._meta?this._meta:{}}get ownerDocument(){if(this._ownerDocument)return this._ownerDocument;let e=this;for(;"DocumentNode"!==e.constructor.name&&(e=e.parentNode,e););return this._ownerDocument=e,e}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");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);let o=t;return t.meta.skipAddToDom&&(o=es(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),o.meta.skipAddToDom?ma(this,e):ma(this,e,{refId:o.nodeId,relativeToRef:ts})}moveChild(e,t){if(!e)throw new Error("Can't move child.");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),o=this.childNodes.indexOf(t);let r=t;if(t.meta.skipAddToDom&&(r=es(this.childNodes,o)),o===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=e),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),r.meta.skipAddToDom?ma(this,e):function(e,t,n={}){if((null==e?void 0:e.meta)&&pi(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;const o=ai(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];ia.push({printedNodes:a,type:na.moveNode,nodes:s,eventNodes:[]}),ca(o)}(this,e,{refId:r.nodeId,relativeToRef:ts})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ma(this,e))}removeChild(e){if(!e)throw new Error("Can't remove child.");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.");if(e.meta.skipAddToDom)return;e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=ai(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];ia.push({printedNodes:s,type:na.deleteNode,nodes:i,eventNodes:[]}),ca(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}class Ga extends Ka{constructor(e){super(),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}const qa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Xa="turn",Ja="rad",Za="deg",Qa="beforeLoadStyleDisabled",ec="class",tc="id",nc="text",oc="value",rc="defaultValue",ic="placeholder",sc="numberOfRows",ac="caretColor",cc="caret-color",lc="break-strategy",uc="placeholderTextColor",dc="placeholder-text-color",fc="underlineColorAndroid",pc="underline-color-android",hc="nativeBackgroundAndroid",mc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function yc(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=i(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,s,a]=n;return s&&a?o=function(e,t=Za){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Xa:o=""+(360*n).toFixed(2);break;case Ja:o=""+(180/Math.PI*n).toFixed(2)}return o}(s,a):r&&void 0!==qa[r]&&(o=qa[r]),o}function gc(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,o]=t.split(/\s+(?![^(]*?\))/),r=/^([+-]?\d+\.?\d*)%$/g;return!n||r.exec(n)||o?n&&r.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:za.parseColor(n)}:void 0:{color:za.parseColor(n)}}function vc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function bc(e,t,n){void 0===t&&(delete n[e],vc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[mc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function _c(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,o=n.length;ee.trim()));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let o=n.next().value;for(;o;){if(!t.has(o))return!1;o=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&va(this))}case tc:if(r===this.id)return;return this.id=r,void(!n.notToNative&&va(this));case nc:case oc:case rc:case ic:if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!oi||void 0===oi.config.trimWhitespace||oi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}(r)),r=function(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}(r);break;case sc:if("ios"!==za.Platform)return;break;case ac:case cc:o="caret-color",r=za.parseColor(r);break;case lc:o="breakStrategy";break;case uc:case dc:o="placeholderTextColor",r=za.parseColor(r);break;case fc:case pc:o="underlineColorAndroid",r=za.parseColor(r);break;case hc:{const e=r;void 0!==e.color&&(e.color=za.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&ga(this,n.notUpdateStyle)}catch(e){0}}removeAttribute(e){delete this.attributes[e]}setStyles(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)return;Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)});wc.some(t=>Object.prototype.hasOwnProperty.call(e,t))?va(this):ga(this)}setStyle(e,t,n=!1){let o=e,r=t;if(this.getAttribute(Qa)||({value:r,property:o}=this.beforeLoadStyle({property:e,value:t})),void 0===t)return bc(o,r,this.style),void(n||ga(this));switch(o){case"fontWeight":"string"!=typeof r&&(r=r.toString());break;case"backgroundImage":[o,r]=function(e,t,n){delete n[e],vc(e,t,n);let o=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),n=[];o={},e.forEach((e,t)=>{if(0===t){const t=yc(e);if(t)o.angle=t;else{o.angle="180";const t=gc(e);t&&n.push(t)}}else{const t=gc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(o,r,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[o,r]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[mc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(o,r,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:o=0}=r||{};r={width:e||t,height:n||o};break}default:Object.prototype.hasOwnProperty.call($s,o)&&(o=$s[o]),"string"==typeof r&&(r=r.trim(),r=o.toLowerCase().indexOf("color")>=0?za.parseColor(r):function(e,t,n){if(e.endsWith)return e.endsWith(t,n);let o=n;return(void 0===o||o>e.length)&&(o=e.length),e.slice(o-t.length,o)===t}(r,"px")?parseFloat(r.slice(0,r.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&fi.test(e))try{return parseFloat(e)}catch(e){}return e}(r))}null!=r&&this.style[o]!==r&&(this.style[o]=r,n||(wc.indexOf(o)>=0?va(this):ga(this)))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){va(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}isTextNode(e){return(null==e?void 0:e.meta.symbol)===wi}appendChild(e){(null==e?void 0:e.meta.symbol)===wi&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){this.isTextNode(e)&&e instanceof Ga&&this.setText("",{notToNative:!0}),super.removeChild(e)}setText(e,t={}){return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+di(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;(null==n?void 0:n[e])&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Xi(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){const e=200;this.attributes.scrollEventThrottle=e}"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(ss,e,t,n)),this._emitter.addEventListener(e,t,n),_c(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ns&&(this.events[t].type=ns):this.events[t]={name:t,type:ns,listener:(n=t,o=e,e=>{const{id:t,currentId:r,params:i,eventPhase:s}=e,a={id:t,nativeName:n,originalName:o,currentId:r,params:i,eventPhase:s};us.receiveComponentEvent(a,e)}),isCapture:!1}}),ya(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(as,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return _c(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=os)}),ya(this),o}dispatchEvent(e,t,n){if(!(e instanceof qi))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return za.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let o=n;!1===o&&(o=0),za.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:o}])}scrollTo(e,t,n){let o=n;if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto"}=e;({duration:o}=e),this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setPressed(e){za.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){za.callUIFunction(this,"setHotspot",[e,t])}}class Sc extends $c{constructor(e){super("comment"),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}}class xc extends $c{getValue(){return new Promise(e=>za.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){za.callUIFunction(this,"setValue",[e])}focus(){za.callUIFunction(this,"focusTextInput",[])}blur(){za.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>za.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){za.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class kc extends $c{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class Oc extends Ka{constructor(){super(),this.documentElement=new $c("document")}static createComment(e){return new Sc(e)}static createElement(e){switch(e){case"input":case"textarea":return new xc(e);case"ul":return new kc(e);default:return new $c(e)}}static createElementNS(e,t){return new $c(`${e}:${t}`)}static createTextNode(e){return new Ga(e)}static createEvent(e){return new qi(e)}}var Nc={create(e,t){Cc(t)},update(e,t){e.data.ref!==t.data.ref&&(Cc(e,!0),Cc(t))},destroy(e){Cc(e,!0)}};function Cc(e,t){const n=e.data.ref;if(!p(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[n])?N(i[n],r):i[n]===r&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(r)<0&&i[n].push(r):i[n]=[r]:i[n]=r}const Ec=new ve("",{},[]),Ic=["create","activate","update","remove","destroy"];function Ac(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&p(e.data)===p(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=p(n=e.data)&&p(n=n.attrs)&&n.type,r=p(n=t.data)&&p(n=n.attrs)&&n.type;return o===r||Tn(o)&&Tn(r)}(e,t)||h(e.isAsyncPlaceholder)&&f(t.asyncFactory.error))}function Tc(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,p(r)&&(i[r]=o);return i}var Pc={create:jc,update:jc,destroy:function(e){jc(e,Ec)}};function jc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Ec,o=t===Ec,r=Mc(e.data.directives,e.context),i=Mc(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=r[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,Fc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Fc(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const o=()=>{for(let n=0;n{for(let n=0;n{const t=r[e],o=i[e];null!=t&&null==o&&(n[e]=void 0)}),Object.keys(i).forEach(e=>{const t=r[e],o=i[e];t!==o&&(n[e]=o)}),Object.keys(n).forEach(e=>{o.setAttribute(e,n[e])})}var Bc={create:Vc,update:Vc};function Hc(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=On(t);const s=n._transitionClasses;s&&(i=Cn(i,En(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Uc={create:Hc,update:Hc};let Wc;function zc(e,t,n,o){(o||Wc).removeEventListener(e)}function Yc(e,t,n,o,r){n||Wc.addEventListener(e,t)}function Kc(e,t,n){const o=Wc;return function(){const n=t(...arguments);null!==n&&zc(e,0,0,o)}}function Gc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Wc=t.elm,it(n,o,Yc,zc,Kc,t.context)}var qc={create:Gc,update:Gc};const Xc=I(T);function Jc(e){const t={};for(let n=0;n{const r=e[o],i=t[o];!mi(r)&&mi(i)&&(n[Xc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];mi(i)||i===r||(n[Xc(o)]=i)}),n}function Qc(e,t){if(!t.elm||!function(e,t){return!(!e.data&&!t.data)&&!!(e.data.style||t.data.style||e.data.staticStyle||t.data.staticStyle)}(e,t))return;const n=Zc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Jc(r),t.data.style=r),i&&(r=F({},r),t.data.style=r);const s=Zc(o,r);t.elm.setStyles(l(l({},n),s))}var el=[Bc,Uc,qc,{create:Qc,update:Qc}];function tl(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){var o;if(!e||!e.data)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=(null===(o=e.data)||void 0===o?void 0:o.attrs)||{};i.__ob__&&(i=F({},i),e.data.attrs=i),Object.keys(i).forEach(e=>{r.setAttribute(e,i[e],{notToNative:!!n.notToNative})})}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;const{staticStyle:r}=e.data;r&&Object.keys(r).forEach(e=>{const t=r[e];t&&o.setStyle(Xc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Jc(i),e.data.style=i),t&&(i=F({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Xc(e),i[e],!!n.notToNative)})}}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;const{data:o}=e;if(!o.staticClass&&!o.class)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=On(e);const s=r._transitionClasses;s&&(i=Cn(i,En(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const nl=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(u=f(n[b+1])?null:n[b+1].elm,v(e,u,n,h,b,o)):h>b&&_(t,d,m)}(l,y,g,n,c):p(g)?(p(e.text)&&i.setTextContent(l,""),v(l,null,g,0,g.length-1,n)):p(y)?_(y,0,y.length-1):p(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),p(m)&&p(u=m.hook)&&p(u=u.postpatch)&&u(e,t)}function k(e,t,n){if(h(n)&&p(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Qi(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:el.concat(Rc)});function ol(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let rl=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const il={inserted(e,t){"ios"===za.Platform&&rl!==ol&&(rl=ol),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",({value:t})=>{const n=new qi("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,rl(e,t,n)}};function sl(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const al={bind(e,{value:t},n){void 0===e.style.display&&(e.style.display="block");const o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,sl(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&sl(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var cl=Object.freeze({__proto__:null,model:il,show:al});const ll=['%c[Hippy-Vue "3.3.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],ul=new Oc;gn.$document=ul,gn.prototype.$document=ul,gn.$Document=Oc,gn.$Event=qi,gn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},gn.config.isReservedTag=Ui,gn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},gn.compile=ei,gn.registerElement=Ki,F(gn.options.directives,cl),gn.prototype.__patch__=nl,gn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return fe("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=ei(e,{delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return function(e,t,n){let o;return e.$el=t,e.$options.render||(e.$options.render=be),Xt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new an(e,o,R,{before(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e,t)},gn.prototype.$start=function(e,t){var n;si(this),pi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ri=n),Wi.forEach(e=>{gn.component(e.meta.component.name,e.meta.component)}),Ba.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ui(...ll,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();si(new(gn.extend(this.$options))(this.$options))}if(pi(t)&&t(this,n),this.$mount(),"ios"===za.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;const o=new $c("div"),{statusBarHeight:r}=za.Dimensions.screen;za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0);let i=4282431619;if("number"==typeof n.backgroundColor&&({backgroundColor:i}=n),o.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){const t=new $c("img");t.setStyle("width",za.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0)}),o}(this.$options);e&&(this.$el.childNodes.length?this.$el.insertBefore(e,this.$el.childNodes[0]):this.$el.appendChild(e))}pi(e)&&e(this,n)})};let dl=1;gn.component=function(e,t){return t?(v(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},gn.extend=function(e){e=e||{};const t=this,n=t.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];const r=e.name||t.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(t.prototype)).constructor=i,dl+=1,i.cid=dl,i.options=Re(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>ln(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>fn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,z.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=F({},i.options),o[n]=i,i},gn.Native=za,gn.getApp=ai,gn.use((function(){Object.keys(Hi).forEach(e=>{Ki(e,Hi[e])})})),K.devtools&&ce&&ce.emit("init",gn);gn.config._setBeforeRenderToNative=(e,t)=>{pi(e)&&(1===t?ii=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const fl=new Proxy(gn,{construct(e,t){const n=new e(...t);return n}});let pl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,pl=ai(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=l({},n);if(pl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};za.callNativeWithPromise("websocket","connect",r).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,za.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);za.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 t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,pl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];pi(n)&&n(e.data)}},fl.config.silent=!1,fl.config.trimWhitespace=!0,function(e){oi=e}(fl)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue3/index.android.js b/framework/examples/android-demo/res/vue3/index.android.js index 2717e3d411a..d4b2e90940e 100644 --- a/framework/examples/android-demo/res/vue3/index.android.js +++ b/framework/examples/android-demo/res/vue3/index.android.js @@ -1,7 +1,22 @@ -!function(e){function t(t){for(var o,n,r=t[0],l=t[1],c=0,s=[];c0===c.indexOf(e))){var i=c.split("/"),s=i[i.length-1],d=s.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+s)}else{var p;d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=a[e];0!==o&&o&&o[1](t),a[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},n.m=e,n.c=o,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},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.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;c(r.push(e),()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)}),destroy(){r=[],t=[""],o=0},go(e,l=!0){const c=this.location,i=e<0?n.back:n.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:n}){const l={direction:o,delta:n,type:a.pop};for(const o of r)o(e,t,l)}(this.location,c,{direction:i,delta:e})},get position(){return o}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t[o]}),i}t.createHippyHistory=p,t.createHippyRouter=function(e){var t;const o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:p(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){function a(e,t){const o=Object.create(null),a=e.split(",");for(let e=0;e!!o[e.toLowerCase()]:e=>!!o[e]}o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return j})),o.d(t,"c",(function(){return x})),o.d(t,"d",(function(){return i})),o.d(t,"e",(function(){return _})),o.d(t,"f",(function(){return T})),o.d(t,"g",(function(){return w})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return u})),o.d(t,"j",(function(){return A})),o.d(t,"k",(function(){return c})),o.d(t,"l",(function(){return v})),o.d(t,"m",(function(){return l})),o.d(t,"n",(function(){return k})),o.d(t,"o",(function(){return d})),o.d(t,"p",(function(){return E})),o.d(t,"q",(function(){return b})),o.d(t,"r",(function(){return I})),o.d(t,"s",(function(){return L})),o.d(t,"t",(function(){return S})),o.d(t,"u",(function(){return C}));const n={},r=/^on[^a-z]/,l=e=>r.test(e),c=e=>e.startsWith("onUpdate:"),i=Object.assign,s=(Object.prototype.hasOwnProperty,Array.isArray),d=e=>"[object Set]"===g(e),p=e=>"[object Date]"===g(e),u=e=>"function"==typeof e,b=e=>"string"==typeof e,y=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,g=e=>f.call(e),m=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},h=/-(\w)/g,j=m(e=>e.replace(h,(e,t)=>t?t.toUpperCase():"")),O=/\B([A-Z])/g,_=m(e=>e.replace(O,"-$1").toLowerCase()),x=m(e=>e.charAt(0).toUpperCase()+e.slice(1)),w=(m(e=>e?"on"+x(e):""),(e,t)=>{for(let o=0;o{const t=parseFloat(e);return isNaN(t)?e:t},C=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};const A=a("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),k=a("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),P="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",E=a(P);function T(e){return!!e||""===e}function I(e,t){if(e===t)return!0;let o=p(e),a=p(t);if(o||a)return!(!o||!a)&&e.getTime()===t.getTime();if(o=y(e),a=y(t),o||a)return e===t;if(o=s(e),a=s(t),o||a)return!(!o||!a)&&function(e,t){if(e.length!==t.length)return!1;let o=!0;for(let a=0;o&&aI(e,t))}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-loader/dist/exportHelper.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,a]of t)o[e]=a;return o}},"./node_modules/vue-router/dist/vue-router.mjs":function(e,t,o){"use strict";o.r(t),o.d(t,"NavigationFailureType",(function(){return Y})),o.d(t,"RouterLink",(function(){return Le})),o.d(t,"RouterView",(function(){return Be})),o.d(t,"START_LOCATION",(function(){return L})),o.d(t,"createMemoryHistory",(function(){return E})),o.d(t,"createRouter",(function(){return He})),o.d(t,"createRouterMatcher",(function(){return W})),o.d(t,"createWebHashHistory",(function(){return T})),o.d(t,"createWebHistory",(function(){return P})),o.d(t,"isNavigationFailure",(function(){return B})),o.d(t,"loadRouteLocation",(function(){return Te})),o.d(t,"matchedRouteKey",(function(){return je})),o.d(t,"onBeforeRouteLeave",(function(){return Ae})),o.d(t,"onBeforeRouteUpdate",(function(){return ke})),o.d(t,"parseQuery",(function(){return ge})),o.d(t,"routeLocationKey",(function(){return xe})),o.d(t,"routerKey",(function(){return _e})),o.d(t,"routerViewLocationKey",(function(){return we})),o.d(t,"stringifyQuery",(function(){return me})),o.d(t,"useLink",(function(){return Ie})),o.d(t,"useRoute",(function(){return Ue})),o.d(t,"useRouter",(function(){return Re})),o.d(t,"viewDepthKey",(function(){return Oe}));var a=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js"); +!function(e){function t(t){for(var o,n,r=t[0],l=t[1],c=0,i=[];c0===c.indexOf(e))){var s=c.split("/"),i=s[s.length-1],d=i.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+i)}else{var p;d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=a[e];0!==o&&o&&o[1](t),a[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},n.m=e,n.c=o,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},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.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;c(r.push(e),()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)}),destroy(){r=[],t=[""],o=0},go(e,l=!0){const c=this.location,s=e<0?n.back:n.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:n}){const l={direction:o,delta:n,type:a.pop};for(const o of r)o(e,t,l)}(this.location,c,{direction:s,delta:e})},get position(){return o}};return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t[o]}),s}t.createHippyHistory=p,t.createHippyRouter=function(e){var t;const o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:p(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){ +/** +* @vue/shared v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +/*! #__NO_SIDE_EFFECTS__ */ +function a(e,t){const o=new Set(e.split(","));return t?e=>o.has(e.toLowerCase()):e=>o.has(e)}o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return r})),o.d(t,"c",(function(){return j})),o.d(t,"d",(function(){return w})),o.d(t,"e",(function(){return s})),o.d(t,"f",(function(){return _})),o.d(t,"g",(function(){return L})),o.d(t,"h",(function(){return x})),o.d(t,"i",(function(){return i})),o.d(t,"j",(function(){return u})),o.d(t,"k",(function(){return C})),o.d(t,"l",(function(){return P})),o.d(t,"m",(function(){return c})),o.d(t,"n",(function(){return v})),o.d(t,"o",(function(){return l})),o.d(t,"p",(function(){return k})),o.d(t,"q",(function(){return d})),o.d(t,"r",(function(){return T})),o.d(t,"s",(function(){return b})),o.d(t,"t",(function(){return y})),o.d(t,"u",(function(){return I})),o.d(t,"v",(function(){return D})),o.d(t,"w",(function(){return S})),o.d(t,"x",(function(){return A}));const n={},r=()=>{},l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),s=Object.assign,i=(Object.prototype.hasOwnProperty,Array.isArray),d=e=>"[object Set]"===m(e),p=e=>"[object Date]"===m(e),u=e=>"function"==typeof e,b=e=>"string"==typeof e,y=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,m=e=>f.call(e),g=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},h=/-(\w)/g,j=g(e=>e.replace(h,(e,t)=>t?t.toUpperCase():"")),O=/\B([A-Z])/g,_=g(e=>e.replace(O,"-$1").toLowerCase()),w=g(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(g(e=>e?"on"+w(e):""),(e,...t)=>{for(let o=0;o{const t=parseFloat(e);return isNaN(t)?e:t},A=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};const C=a("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),k=a("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),P=a("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),E="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",T=a(E);function L(e){return!!e||""===e}function I(e,t){if(e===t)return!0;let o=p(e),a=p(t);if(o||a)return!(!o||!a)&&e.getTime()===t.getTime();if(o=y(e),a=y(t),o||a)return e===t;if(o=i(e),a=i(t),o||a)return!(!o||!a)&&function(e,t){if(e.length!==t.length)return!1;let o=!0;for(let a=0;o&&aI(e,t))}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-loader/dist/exportHelper.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,a]of t)o[e]=a;return o}},"./node_modules/vue-router/dist/vue-router.mjs":function(e,t,o){"use strict";o.r(t),o.d(t,"NavigationFailureType",(function(){return $})),o.d(t,"RouterLink",(function(){return Ie})),o.d(t,"RouterView",(function(){return He})),o.d(t,"START_LOCATION",(function(){return V})),o.d(t,"createMemoryHistory",(function(){return q})),o.d(t,"createRouter",(function(){return Be})),o.d(t,"createRouterMatcher",(function(){return de})),o.d(t,"createWebHashHistory",(function(){return Q})),o.d(t,"createWebHistory",(function(){return J})),o.d(t,"isNavigationFailure",(function(){return te})),o.d(t,"loadRouteLocation",(function(){return Te})),o.d(t,"matchedRouteKey",(function(){return je})),o.d(t,"onBeforeRouteLeave",(function(){return Ce})),o.d(t,"onBeforeRouteUpdate",(function(){return ke})),o.d(t,"parseQuery",(function(){return me})),o.d(t,"routeLocationKey",(function(){return we})),o.d(t,"routerKey",(function(){return _e})),o.d(t,"routerViewLocationKey",(function(){return xe})),o.d(t,"stringifyQuery",(function(){return ge})),o.d(t,"useLink",(function(){return Le})),o.d(t,"useRoute",(function(){return Ne})),o.d(t,"useRouter",(function(){return Re})),o.d(t,"viewDepthKey",(function(){return Oe}));var a=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js"); /*! - * vue-router v4.2.2 - * (c) 2023 Eduardo San Martin Morote + * vue-router v4.4.3 + * (c) 2024 Eduardo San Martin Morote * @license MIT */ -const n="undefined"!=typeof window;function r(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const l=Object.assign;function c(e,t){const o={};for(const a in t){const n=t[a];o[a]=s(n)?n.map(e):e(n)}return o}const i=()=>{},s=Array.isArray;const d=/\/$/;function p(e,t,o="/"){let a,n={},r="",l="";const c=t.indexOf("#");let i=t.indexOf("?");return c=0&&(i=-1),i>-1&&(a=t.slice(0,i),r=t.slice(i+1,c>-1?c:t.length),n=e(r)),c>-1&&(a=a||t.slice(0,c),l=t.slice(c,t.length)),a=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),a=e.split("/"),n=a[a.length-1];".."!==n&&"."!==n||a.push("");let r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+a.slice(r-(r===a.length?1:0)).join("/")}(null!=a?a:t,o),{fullPath:a+(r&&"?")+r+l,path:a,query:n,hash:l}}function u(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function b(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!v(e[o],t[o]))return!1;return!0}function v(e,t){return s(e)?f(e,t):s(t)?f(t,e):e===t}function f(e,t){return s(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}var g,m;!function(e){e.pop="pop",e.push="push"}(g||(g={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(m||(m={}));function h(e){if(!e)if(n){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(d,"")}const j=/^[^#]+#/;function O(e,t){return e.replace(j,"#")+t}const _=()=>({left:window.pageXOffset,top:window.pageYOffset});function x(e){let t;if("el"in e){const o=e.el,a="string"==typeof o&&o.startsWith("#");0;const n="string"==typeof o?a?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=function(e,t){const o=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-o.left-(t.left||0),top:a.top-o.top-(t.top||0)}}(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function w(e,t){return(history.state?history.state.position-t:-1)+e}const S=new Map;let C=()=>location.protocol+"//"+location.host;function A(e,t){const{pathname:o,search:a,hash:n}=t,r=e.indexOf("#");if(r>-1){let t=n.includes(e.slice(r))?e.slice(r).length:1,o=n.slice(t);return"/"!==o[0]&&(o="/"+o),u(o,"")}return u(o,e)+a+n}function k(e,t,o,a=!1,n=!1){return{back:e,current:t,forward:o,replaced:a,position:window.history.length,scroll:n?_():null}}function P(e){const t=function(e){const{history:t,location:o}=window,a={value:A(e,o)},n={value:t.state};function r(a,r,l){const c=e.indexOf("#"),i=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+a:C()+e+a;try{t[l?"replaceState":"pushState"](r,"",i),n.value=r}catch(e){console.error(e),o[l?"replace":"assign"](i)}}return n.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:n,push:function(e,o){const c=l({},n.value,t.state,{forward:e,scroll:_()});r(c.current,c,!0),r(e,l({},k(a.value,e,null),{position:c.position+1},o),!1),a.value=e},replace:function(e,o){r(e,l({},t.state,k(n.value.back,e,n.value.forward,!0),o,{position:n.value.position}),!0),a.value=e}}}(e=h(e)),o=function(e,t,o,a){let n=[],r=[],c=null;const i=({state:r})=>{const l=A(e,location),i=o.value,s=t.value;let d=0;if(r){if(o.value=l,t.value=r,c&&c===i)return void(c=null);d=s?r.position-s.position:0}else a(l);n.forEach(e=>{e(o.value,i,{delta:d,type:g.pop,direction:d?d>0?m.forward:m.back:m.unknown})})};function s(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:_()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){n.push(e);const t=()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);const a=l({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:O.bind(null,e)},t,o);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function E(e=""){let t=[],o=[""],a=0;function n(e){a++,a===o.length||o.splice(a),o.push(e)}const r={location:"",state:{},base:e=h(e),createHref:O.bind(null,e),replace(e){o.splice(a--,1),n(e)},push(e,t){n(e)},listen:e=>(t.push(e),()=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],a=0},go(e,n=!0){const r=this.location,l=e<0?m.back:m.forward;a=Math.max(0,Math.min(a+e,o.length-1)),n&&function(e,o,{direction:a,delta:n}){const r={direction:a,delta:n,type:g.pop};for(const a of t)a(e,o,r)}(this.location,r,{direction:l,delta:e})}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>o[a]}),r}function T(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),P(e)}function I(e){return"string"==typeof e||"symbol"==typeof e}const L={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},V=Symbol("");var Y;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Y||(Y={}));function D(e,t){return l(new Error,{type:e,[V]:!0},t)}function B(e,t){return e instanceof Error&&V in e&&(null==t||!!(e.type&t))}const H={sensitive:!1,strict:!1,start:!0,end:!0},R=/[.+*?^${}()[\]/\\]/g;function U(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function N(e,t){let o=0;const a=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const z={type:0,value:""},F=/[a-zA-Z0-9_]/;function G(e,t,o){const a=function(e,t){const o=l({},H,t),a=[];let n=o.start?"^":"";const r=[];for(const t of e){const e=t.length?[]:[90];o.strict&&!t.length&&(n+="/");for(let a=0;a1&&("*"===c||"+"===c)&&t(`A repeatable param (${s}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:s,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),s="")}function u(){s+=c}for(;i{r(y)}:i}function r(e){if(I(e)){const t=a.get(e);t&&(a.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){let t=0;for(;t=0&&(e.record.path!==o[t].record.path||!J(e,o[t]));)t++;o.splice(t,0,e),e.record.name&&!Q(e)&&a.set(e.record.name,e)}return t=Z({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>n(e)),{addRoute:n,resolve:function(e,t){let n,r,c,i={};if("name"in e&&e.name){if(n=a.get(e.name),!n)throw D(1,{location:e});0,c=n.record.name,i=l(K(t.params,n.keys.filter(e=>!e.optional).map(e=>e.name)),e.params&&K(e.params,n.keys.map(e=>e.name))),r=n.stringify(i)}else if("path"in e)r=e.path,n=o.find(e=>e.re.test(r)),n&&(i=n.parse(r),c=n.record.name);else{if(n=t.name?a.get(t.name):o.find(e=>e.re.test(t.path)),!n)throw D(1,{location:e,currentLocation:t});c=n.record.name,i=l({},t.params,e.params),r=n.stringify(i)}const s=[];let d=n;for(;d;)s.unshift(d.record),d=d.parent;return{name:c,path:r,params:i,matched:s,meta:X(s)}},removeRoute:r,getRoutes:function(){return o},getRecordMatcher:function(e){return a.get(e)}}}function K(e,t){const o={};for(const a of t)a in e&&(o[a]=e[a]);return o}function q(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const a in e.components)t[a]="boolean"==typeof o?o:o[a];return t}function Q(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function X(e){return e.reduce((e,t)=>l(e,t.meta),{})}function Z(e,t){const o={};for(const a in e)o[a]=a in t?t[a]:e[a];return o}function J(e,t){return t.children.some(t=>t===e||J(e,t))}const $=/#/g,ee=/&/g,te=/\//g,oe=/=/g,ae=/\?/g,ne=/\+/g,re=/%5B/g,le=/%5D/g,ce=/%5E/g,ie=/%60/g,se=/%7B/g,de=/%7C/g,pe=/%7D/g,ue=/%20/g;function be(e){return encodeURI(""+e).replace(de,"|").replace(re,"[").replace(le,"]")}function ye(e){return be(e).replace(ne,"%2B").replace(ue,"+").replace($,"%23").replace(ee,"%26").replace(ie,"`").replace(se,"{").replace(pe,"}").replace(ce,"^")}function ve(e){return null==e?"":function(e){return be(e).replace($,"%23").replace(ae,"%3F")}(e).replace(te,"%2F")}function fe(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}function ge(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&ye(e)):[a&&ye(a)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))})}return t}function he(e){const t={};for(const o in e){const a=e[o];void 0!==a&&(t[o]=s(a)?a.map(e=>null==e?null:""+e):null==a?a:""+a)}return t}const je=Symbol(""),Oe=Symbol(""),_e=Symbol(""),xe=Symbol(""),we=Symbol("");function Se(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e,reset:function(){e=[]}}}function Ce(e,t,o){const n=()=>{e[t].delete(o)};Object(a.s)(n),Object(a.r)(n),Object(a.q)(()=>{e[t].add(o)}),e[t].add(o)}function Ae(e){const t=Object(a.m)(je,{}).value;t&&Ce(t,"leaveGuards",e)}function ke(e){const t=Object(a.m)(je,{}).value;t&&Ce(t,"updateGuards",e)}function Pe(e,t,o,a,n){const r=a&&(a.enterCallbacks[n]=a.enterCallbacks[n]||[]);return()=>new Promise((l,c)=>{const i=e=>{var i;!1===e?c(D(4,{from:o,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(D(2,{from:t,to:e})):(r&&a.enterCallbacks[n]===r&&"function"==typeof e&&r.push(e),l())},s=e.call(a&&a.instances[n],t,o,i);let d=Promise.resolve(s);e.length<3&&(d=d.then(i)),d.catch(e=>c(e))})}function Ee(e,t,o,a){const n=[];for(const c of e){0;for(const e in c.components){let i=c.components[e];if("beforeRouteEnter"===t||c.instances[e])if("object"==typeof(l=i)||"displayName"in l||"props"in l||"__vccOpts"in l){const r=(i.__vccOpts||i)[t];r&&n.push(Pe(r,o,a,c,e))}else{let l=i();0,n.push(()=>l.then(n=>{if(!n)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${c.path}"`));const l=r(n)?n.default:n;c.components[e]=l;const i=(l.__vccOpts||l)[t];return i&&Pe(i,o,a,c,e)()}))}}}var l;return n}function Te(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,o)=>{const a=e.components[o];return"function"!=typeof a||"displayName"in a||t.push(a().then(t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${e.path}". Ensure you passed a function that returns a promise.`));const a=r(t)?t.default:t;e.components[o]=a})),t},[])))).then(()=>e)}function Ie(e){const t=Object(a.m)(_e),o=Object(a.m)(xe),n=Object(a.c)(()=>t.resolve(Object(a.D)(e.to))),r=Object(a.c)(()=>{const{matched:e}=n.value,{length:t}=e,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;const l=r.findIndex(b.bind(null,a));if(l>-1)return l;const c=Ve(e[t-2]);return t>1&&Ve(a)===c&&r[r.length-1].path!==c?r.findIndex(b.bind(null,e[t-2])):l}),l=Object(a.c)(()=>r.value>-1&&function(e,t){for(const o in t){const a=t[o],n=e[o];if("string"==typeof a){if(a!==n)return!1}else if(!s(n)||n.length!==a.length||a.some((e,t)=>e!==n[t]))return!1}return!0}(o.params,n.value.params)),c=Object(a.c)(()=>r.value>-1&&r.value===o.matched.length-1&&y(o.params,n.value.params));return{route:n,href:Object(a.c)(()=>n.value.href),isActive:l,isExactActive:c,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Object(a.D)(e.replace)?"replace":"push"](Object(a.D)(e.to)).catch(i):Promise.resolve()}}}const Le=Object(a.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ie,setup(e,{slots:t}){const o=Object(a.v)(Ie(e)),{options:n}=Object(a.m)(_e),r=Object(a.c)(()=>({[Ye(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Ye(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const n=t.default&&t.default(o);return e.custom?n:Object(a.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},n)}}});function Ve(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ye=(e,t,o)=>null!=e?e:null!=t?t:o;function De(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const Be=Object(a.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Object(a.m)(we),r=Object(a.c)(()=>e.route||n.value),c=Object(a.m)(Oe,0),i=Object(a.c)(()=>{let e=Object(a.D)(c);const{matched:t}=r.value;let o;for(;(o=t[e])&&!o.components;)e++;return e}),s=Object(a.c)(()=>r.value.matched[i.value]);Object(a.u)(Oe,Object(a.c)(()=>i.value+1)),Object(a.u)(je,s),Object(a.u)(we,r);const d=Object(a.w)();return Object(a.F)(()=>[d.value,s.value,e.name],([e,t,o],[a,n,r])=>{t&&(t.instances[o]=e,n&&n!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=n.leaveGuards),t.updateGuards.size||(t.updateGuards=n.updateGuards))),!e||!t||n&&b(t,n)&&a||(t.enterCallbacks[o]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const n=r.value,c=e.name,i=s.value,p=i&&i.components[c];if(!p)return De(o.default,{Component:p,route:n});const u=i.props[c],b=u?!0===u?n.params:"function"==typeof u?u(n):u:null,y=Object(a.l)(p,l({},b,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(i.instances[c]=null)},ref:d}));return De(o.default,{Component:y,route:n})||y}}});function He(e){const t=W(e.routes,e),o=e.parseQuery||ge,r=e.stringifyQuery||me,d=e.history;const u=Se(),v=Se(),f=Se(),m=Object(a.B)(L);let h=L;n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const j=c.bind(null,e=>""+e),O=c.bind(null,ve),C=c.bind(null,fe);function A(e,a){if(a=l({},a||m.value),"string"==typeof e){const n=p(o,e,a.path),r=t.resolve({path:n.path},a),c=d.createHref(n.fullPath);return l(n,r,{params:C(r.params),hash:fe(n.hash),redirectedFrom:void 0,href:c})}let n;if("path"in e)n=l({},e,{path:p(o,e.path,a.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];n=l({},e,{params:O(t)}),a.params=O(a.params)}const c=t.resolve(n,a),i=e.hash||"";c.params=j(C(c.params));const s=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(r,l({},e,{hash:(u=i,be(u).replace(se,"{").replace(pe,"}").replace(ce,"^")),path:c.path}));var u;const b=d.createHref(s);return l({fullPath:s,hash:i,query:r===me?he(e.query):e.query||{}},c,{redirectedFrom:void 0,href:b})}function k(e){return"string"==typeof e?p(o,e,m.value.path):l({},e)}function P(e,t){if(h!==e)return D(8,{from:t,to:e})}function E(e){return V(e)}function T(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let a="function"==typeof o?o(e):o;return"string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=k(a):{path:a},a.params={}),l({query:e.query,hash:e.hash,params:"path"in a?{}:e.params},a)}}function V(e,t){const o=h=A(e),a=m.value,n=e.state,c=e.force,i=!0===e.replace,s=T(o);if(s)return V(l(k(s),{state:"object"==typeof s?l({},n,s.state):n,force:c,replace:i}),t||o);const d=o;let p;return d.redirectedFrom=t,!c&&function(e,t,o){const a=t.matched.length-1,n=o.matched.length-1;return a>-1&&a===n&&b(t.matched[a],o.matched[n])&&y(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(r,a,o)&&(p=D(16,{to:d,from:a}),X(a,a,!0,!1)),(p?Promise.resolve(p):R(d,a)).catch(e=>B(e)?B(e,2)?e:Q(e):q(e,d,a)).then(e=>{if(e){if(B(e,2))return V(l({replace:i},k(e.to),{state:"object"==typeof e.to?l({},n,e.to.state):n,force:c}),t||d)}else e=N(d,a,!0,i,n);return U(d,a,e),e})}function Y(e,t){const o=P(e,t);return o?Promise.reject(o):Promise.resolve()}function H(e){const t=$.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function R(e,t){let o;const[a,n,r]=function(e,t){const o=[],a=[],n=[],r=Math.max(t.matched.length,e.matched.length);for(let l=0;lb(e,r))?a.push(r):o.push(r));const c=e.matched[l];c&&(t.matched.find(e=>b(e,c))||n.push(c))}return[o,a,n]}(e,t);o=Ee(a.reverse(),"beforeRouteLeave",e,t);for(const n of a)n.leaveGuards.forEach(a=>{o.push(Pe(a,e,t))});const l=Y.bind(null,e,t);return o.push(l),te(o).then(()=>{o=[];for(const a of u.list())o.push(Pe(a,e,t));return o.push(l),te(o)}).then(()=>{o=Ee(n,"beforeRouteUpdate",e,t);for(const a of n)a.updateGuards.forEach(a=>{o.push(Pe(a,e,t))});return o.push(l),te(o)}).then(()=>{o=[];for(const a of e.matched)if(a.beforeEnter&&!t.matched.includes(a))if(s(a.beforeEnter))for(const n of a.beforeEnter)o.push(Pe(n,e,t));else o.push(Pe(a.beforeEnter,e,t));return o.push(l),te(o)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),o=Ee(r,"beforeRouteEnter",e,t),o.push(l),te(o))).then(()=>{o=[];for(const a of v.list())o.push(Pe(a,e,t));return o.push(l),te(o)}).catch(e=>B(e,8)?e:Promise.reject(e))}function U(e,t,o){for(const a of f.list())H(()=>a(e,t,o))}function N(e,t,o,a,r){const c=P(e,t);if(c)return c;const i=t===L,s=n?history.state:{};o&&(a||i?d.replace(e.fullPath,l({scroll:i&&s&&s.scroll},r)):d.push(e.fullPath,r)),m.value=e,X(e,t,o,i),Q()}let M;function z(){M||(M=d.listen((e,t,o)=>{if(!ee.listening)return;const a=A(e),r=T(a);if(r)return void V(l(r,{replace:!0}),a).catch(i);h=a;const c=m.value;var s,p;n&&(s=w(c.fullPath,o.delta),p=_(),S.set(s,p)),R(a,c).catch(e=>B(e,12)?e:B(e,2)?(V(e.to,a).then(e=>{B(e,20)&&!o.delta&&o.type===g.pop&&d.go(-1,!1)}).catch(i),Promise.reject()):(o.delta&&d.go(-o.delta,!1),q(e,a,c))).then(e=>{(e=e||N(a,c,!1))&&(o.delta&&!B(e,8)?d.go(-o.delta,!1):o.type===g.pop&&B(e,20)&&d.go(-1,!1)),U(a,c,e)}).catch(i)}))}let F,G=Se(),K=Se();function q(e,t,o){Q(e);const a=K.list();return a.length?a.forEach(a=>a(e,t,o)):console.error(e),Promise.reject(e)}function Q(e){return F||(F=!e,z(),G.list().forEach(([t,o])=>e?o(e):t()),G.reset()),e}function X(t,o,r,l){const{scrollBehavior:c}=e;if(!n||!c)return Promise.resolve();const i=!r&&function(e){const t=S.get(e);return S.delete(e),t}(w(t.fullPath,0))||(l||!r)&&history.state&&history.state.scroll||null;return Object(a.n)().then(()=>c(t,o,i)).then(e=>e&&x(e)).catch(e=>q(e,t,o))}const Z=e=>d.go(e);let J;const $=new Set,ee={currentRoute:m,listening:!0,addRoute:function(e,o){let a,n;return I(e)?(a=t.getRecordMatcher(e),n=o):n=e,t.addRoute(n,a)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:A,options:e,push:E,replace:function(e){return E(l(k(e),{replace:!0}))},go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:u.add,beforeResolve:v.add,afterEach:f.add,onError:K.add,isReady:function(){return F&&m.value!==L?Promise.resolve():new Promise((e,t)=>{G.add([e,t])})},install(e){e.component("RouterLink",Le),e.component("RouterView",Be),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(a.D)(m)}),n&&!J&&m.value===L&&(J=!0,E(d.location).catch(e=>{0}));const t={};for(const e in L)t[e]=Object(a.c)(()=>m.value[e]);e.provide(_e,this),e.provide(xe,Object(a.v)(t)),e.provide(we,m);const o=e.unmount;$.add(e),e.unmount=function(){$.delete(e),$.size<1&&(h=L,M&&M(),M=null,m.value=L,J=!1,F=!1),o()}}};function te(e){return e.reduce((e,t)=>e.then(()=>H(t)),Promise.resolve())}return ee}function Re(){return Object(a.m)(_e)}function Ue(){return Object(a.m)(xe)}},"./node_modules/vue/dist/vue.runtime.esm-bundler.js":function(e,t,o){"use strict";o.d(t,"v",(function(){return a.reactive})),o.d(t,"w",(function(){return a.ref})),o.d(t,"B",(function(){return a.shallowRef})),o.d(t,"D",(function(){return a.unref})),o.d(t,"o",(function(){return a.normalizeClass})),o.d(t,"p",(function(){return a.normalizeStyle})),o.d(t,"C",(function(){return a.toDisplayString})),o.d(t,"a",(function(){return a.Fragment})),o.d(t,"b",(function(){return a.KeepAlive})),o.d(t,"c",(function(){return a.computed})),o.d(t,"d",(function(){return a.createBlock})),o.d(t,"e",(function(){return a.createCommentVNode})),o.d(t,"f",(function(){return a.createElementBlock})),o.d(t,"g",(function(){return a.createElementVNode})),o.d(t,"h",(function(){return a.createTextVNode})),o.d(t,"i",(function(){return a.createVNode})),o.d(t,"j",(function(){return a.defineComponent})),o.d(t,"k",(function(){return a.getCurrentInstance})),o.d(t,"l",(function(){return a.h})),o.d(t,"m",(function(){return a.inject})),o.d(t,"n",(function(){return a.nextTick})),o.d(t,"q",(function(){return a.onActivated})),o.d(t,"r",(function(){return a.onDeactivated})),o.d(t,"s",(function(){return a.onUnmounted})),o.d(t,"t",(function(){return a.openBlock})),o.d(t,"u",(function(){return a.provide})),o.d(t,"x",(function(){return a.renderList})),o.d(t,"y",(function(){return a.renderSlot})),o.d(t,"z",(function(){return a.resolveComponent})),o.d(t,"A",(function(){return a.resolveDynamicComponent})),o.d(t,"F",(function(){return a.watch})),o.d(t,"G",(function(){return a.withCtx})),o.d(t,"H",(function(){return a.withDirectives})),o.d(t,"E",(function(){return x})),o.d(t,"I",(function(){return _}));var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),n=o("./node_modules/@vue/shared/dist/shared.esm-bundler.js");"undefined"!=typeof document&&document;"undefined"!=typeof HTMLElement&&HTMLElement;const r=(e,{slots:t})=>Object(a.h)(a.BaseTransition,s(e),t);r.displayName="Transition";const l={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},c=(r.props=Object(n.d)({},a.BaseTransitionPropsValidators,l),(e,t=[])=>{Object(n.h)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),i=e=>!!e&&(Object(n.h)(e)?e.some(e=>e.length>1):e.length>1);function s(e){const t={};for(const o in e)o in l||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:a,duration:r,enterFromClass:s=o+"-enter-from",enterActiveClass:y=o+"-enter-active",enterToClass:f=o+"-enter-to",appearFromClass:g=s,appearActiveClass:m=y,appearToClass:j=f,leaveFromClass:O=o+"-leave-from",leaveActiveClass:_=o+"-leave-active",leaveToClass:x=o+"-leave-to"}=e,w=function(e){if(null==e)return null;if(Object(n.l)(e))return[d(e.enter),d(e.leave)];{const t=d(e);return[t,t]}}(r),S=w&&w[0],C=w&&w[1],{onBeforeEnter:A,onEnter:k,onEnterCancelled:P,onLeave:E,onLeaveCancelled:T,onBeforeAppear:I=A,onAppear:L=k,onAppearCancelled:V=P}=t,Y=(e,t,o)=>{u(e,t?j:f),u(e,t?m:y),o&&o()},D=(e,t)=>{e._isLeaving=!1,u(e,O),u(e,x),u(e,_),t&&t()},B=e=>(t,o)=>{const n=e?L:k,r=()=>Y(t,e,o);c(n,[t,r]),b(()=>{u(t,e?g:s),p(t,e?j:f),i(n)||v(t,a,S,r)})};return Object(n.d)(t,{onBeforeEnter(e){c(A,[e]),p(e,s),p(e,y)},onBeforeAppear(e){c(I,[e]),p(e,g),p(e,m)},onEnter:B(!1),onAppear:B(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>D(e,t);p(e,O),h(),p(e,_),b(()=>{e._isLeaving&&(u(e,O),p(e,x),i(E)||v(e,a,C,o))}),c(E,[e,o])},onEnterCancelled(e){Y(e,!1),c(P,[e])},onAppearCancelled(e){Y(e,!0),c(V,[e])},onLeaveCancelled(e){D(e),c(T,[e])}})}function d(e){return Object(n.u)(e)}function p(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e._vtc||(e._vtc=new Set)).add(t)}function u(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const{_vtc:o}=e;o&&(o.delete(t),o.size||(e._vtc=void 0))}function b(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let y=0;function v(e,t,o,a){const n=e._endId=++y,r=()=>{n===e._endId&&a()};if(o)return setTimeout(r,o);const{type:l,timeout:c,propCount:i}=f(e,t);if(!l)return a();const s=l+"end";let d=0;const p=()=>{e.removeEventListener(s,u),r()},u=t=>{t.target===e&&++d>=i&&p()};setTimeout(()=>{d(o[e]||"").split(", "),n=a("transitionDelay"),r=a("transitionDuration"),l=g(n,r),c=a("animationDelay"),i=a("animationDuration"),s=g(c,i);let d=null,p=0,u=0;"transition"===t?l>0&&(d="transition",p=l,u=r.length):"animation"===t?s>0&&(d="animation",p=s,u=i.length):(p=Math.max(l,s),d=p>0?l>s?"transition":"animation":null,u=d?"transition"===d?r.length:i.length:0);return{type:d,timeout:p,propCount:u,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(a("transitionProperty").toString())}}function g(e,t){for(;e.lengthm(t)+m(e[o])))}function m(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function h(){return document.body.offsetHeight}const j=["ctrl","shift","alt","meta"],O={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>j.some(o=>e[o+"Key"]&&!t.includes(o))},_=(e,t)=>(o,...a)=>{for(let e=0;e{w(e,!1)}):w(e,t))},beforeUnmount(e,{value:t}){w(e,t)}};function w(e,t){e.style.display=t?e._vod:"none"}},"./node_modules/webpack/buildin/global.js":function(e,t,o){e.exports=o("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,o){"use strict";var a=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var n=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=Object(n.defineComponent)({name:"App",setup(){const e=Object(r.useRouter)(),t=Object(r.useRoute)(),o=Object(n.ref)(""),a=Object(n.ref)(0),l=Object(n.ref)([{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]);return{activatedTab:a,backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC",currentRoute:t,subTitle:o,tabs:l,goBack:()=>{e.back()},navigateTo:(t,o)=>{o!==a.value&&(a.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const i=o.n(c)()(l,[["render",function(e,t,o,n,r,l){const c=Object(a.z)("router-view");return Object(a.t)(),Object(a.f)("div",{id:"root"},[Object(a.g)("div",{id:"header"},[Object(a.g)("div",{class:"left-title"},[Object(a.H)(Object(a.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},null,8,["src"]),[[a.E,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(a.t)(),Object(a.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(a.e)("v-if",!0)]),Object(a.g)("label",{class:"title"},Object(a.C)(e.subTitle),1)]),Object(a.g)("div",{class:"body-container",onClick:Object(a.I)(()=>{},["stop"])},[Object(a.e)(" if you don't need keep-alive, just use '' "),Object(a.i)(c,null,{default:Object(a.G)(({Component:e,route:t})=>[(Object(a.t)(),Object(a.d)(a.b,null,[(Object(a.t)(),Object(a.d)(Object(a.A)(e),{key:t.path}))],1024))]),_:1})],8,["onClick"]),Object(a.g)("div",{class:"bottom-tabs"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tabs,(t,o)=>(Object(a.t)(),Object(a.f)("div",{key:"tab-"+o,class:Object(a.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(a.I)(a=>e.navigateTo(t,o),["stop"])},[Object(a.g)("span",{class:"bottom-tab-text"},Object(a.C)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=i},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return i})),o.d(t,"b",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"f",(function(){return a})),o.d(t,"g",(function(){return d})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return p}));const a=t=>e.getTurboModule("demoTurbo").getString(t),n=t=>e.getTurboModule("demoTurbo").getNum(t),r=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),c=t=>e.getTurboModule("demoTurbo").getObject(t),i=t=>e.getTurboModule("demoTurbo").getArray(t),s=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),d=()=>e.getTurboModule("demoTurbo").getTurboConfig(),p=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("../../packages/hippy-vue-next/dist/index.js"),a=o("./src/app.vue"),n=o("./src/routes.ts"),r=o("./src/util.ts");e.Hippy.on("uncaughtException",e=>{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const l=Object(t.createApp)(a.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0}),c=Object(n.a)();l.use(c),t.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(t.setScreenSize)({width:e.width,height:e.height})});l.$start().then(({superProps:e,rootViewId:o})=>{Object(r.b)({superProps:e,rootViewId:o}),c.push("/"),t.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),l.mount("#root")})}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return ht}));var a=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var r=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),l=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)(!1);Object(r.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-button-Deactivated")});return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:()=>{e.value=!e.value},onTouchBtnStart:e=>{console.log("onBtnTouchDown",e)},onTouchBtnMove:e=>{console.log("onBtnTouchMove",e)},onTouchBtnEnd:e=>{console.log("onBtnTouchEnd",e)},onClickViewOnce:()=>{o.value=!o.value}}}}),c=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),i=o.n(c);var s=i()(l,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"button-demo"},[Object(n.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(n.g)("button",{class:Object(n.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(n.I)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.I)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.I)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(n.t)(),Object(n.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(n.t)(),Object(n.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(n.H)(Object(n.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[n.E,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),d=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=o.n(d);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function b(e){for(var t=1;th},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(r.toRefs)(e),o=Object(r.ref)(null),a=Object(r.ref)(t.value);let n=0,l=0;Object(r.watch)(t,e=>{a.value=e});return{scrollOffsetY:e.positionY,demo1Style:h,ripple1:o,onLayout:()=>{o.value&&y.Native.measureInAppWindow(o.value).then(e=>{n=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-n,t.clientY+a.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var O=i()(j,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"ripple1",style:Object(n.p)(e.wrapperStyle),nativeBackgroundAndroid:m({},e.nativeBackgroundAndroid),onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),onTouchcancel:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[Object(n.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const _=e=>{console.log("onScroll",e)},x=e=>{console.log("onMomentumScrollBegin",e)},w=e=>{console.log("onMomentumScrollEnd",e)},S=e=>{console.log("onScrollBeginDrag",e)},C=e=>{console.log("onScrollEndDrag",e)};var A=Object(r.defineComponent)({components:{DemoRippleDiv:O},setup(){const e=Object(r.ref)(0),t=Object(r.ref)(null);return Object(r.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(r.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+f.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+f.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"},Native:y.Native,offsetY:e,onScroll:_,onMomentumScrollBegin:x,onMomentumScrollEnd:w,onScrollBeginDrag:S,onScrollEndDrag:C,onOuterScroll:t=>{e.value=t.offsetY}}}});o("./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css");var k=i()(A,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("demo-ripple-div");return Object(n.t)(),Object(n.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(n.g)("div",null,["ios"!==e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0},[Object(n.g)("label",null,"水波纹效果: "),Object(n.g)("div",{style:Object(n.p)(b(b({},e.imgRectangle),e.imgRectangleExtra))},[Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(n.G)(()=>[Object(n.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(n.G)(()=>[Object(n.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(n.G)(()=>[Object(n.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"背景图效果:"),Object(n.g)("div",{style:Object(n.p)(e.demo1Style),accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(n.g)("label",null,"渐变色效果:"),Object(n.g)("div",{class:"div-demo-1-1"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(n.g)("label",null,"Transform"),Object(n.g)("div",{class:"div-demo-transform"},[Object(n.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(n.g)("label",null,"水平滚动:"),Object(n.g)("div",{ref:"demo2",class:"div-demo-2",bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1,onScroll:t[0]||(t[0]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[1]||(t[1]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[2]||(t[2]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[3]||(t[3]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[4]||(t[4]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[Object(n.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(n.g)("div",{class:"display-flex flex-row"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])],544),Object(n.g)("label",null,"垂直滚动:"),Object(n.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(n.g)("div",{class:"display-flex flex-column"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var P=Object(r.defineComponent)({components:{AsyncComponentFromLocal:Object(r.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-local.vue"))),AsyncComponentFromHttp:Object(r.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-http.vue")))},setup(){const e=Object(r.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o("./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css");var E=i()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),i=Object(n.z)("AsyncComponentFromHttp");return Object(n.t)(),Object(n.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(n.I)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(n.g)("div",{class:"import-btn"},[Object(n.g)("p",null,"点我异步加载")]),e.loaded?(Object(n.t)(),Object(n.f)("div",{key:0,class:"async-com-wrapper"},[Object(n.i)(c,{class:"async-component-outer-local"}),Object(n.i)(i)])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var T=Object(r.defineComponent)({setup(){const e=Object(r.ref)("https://hippyjs.org"),t=Object(r.ref)("https://hippyjs.org"),o=Object(r.ref)(null),a=Object(r.ref)(null),n=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":y.Native?100:"100vh"},input:o,iframe:a,onLoad:o=>{let{url:n}=o;void 0===n&&a.value&&(n=a.value.src),n&&n!==e.value&&(t.value=n)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&n(o.value))},goToUrl:n,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:a}=e;console.log("onLoadEnd",t,o,a)}}}});o("./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css");var I=i()(T,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"iframe-demo",style:Object(n.p)(e.iframeStyle)},[Object(n.g)("label",null,"地址栏:"),Object(n.g)("input",{id:"address",ref:"input",name:"targetUrl",returnKeyType:"go",value:e.displayUrl,"on:endEditing":t[0]||(t[0]=(...t)=>e.goToUrl&&e.goToUrl(...t)),onKeyup:t[1]||(t[1]=(...t)=>e.onKeyUp&&e.onKeyUp(...t))},null,40,["value"]),Object(n.g)("iframe",{id:"iframe",ref:e.iframe,src:e.targetUrl,method:"get",onLoad:t[2]||(t[2]=(...t)=>e.onLoad&&e.onLoad(...t)),"on:loadStart":t[3]||(t[3]=(...t)=>e.onLoadStart&&e.onLoadStart(...t)),"on:loadEnd":t[4]||(t[4]=(...t)=>e.onLoadEnd&&e.onLoadEnd(...t))},null,40,["src"])],4)}]]);var L=o("./src/assets/hippyLogoWhite.png"),V=o.n(L),Y=Object(r.defineComponent)({setup(){const e=Object(r.ref)({});return{defaultImage:f.a,hippyLogoImage:V.a,gifLoadResult:e,onTouchEnd:e=>{console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onTouchMove:e=>{console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchStart:e=>{console.log("onTouchDown",e),e.stopPropagation()},onLoad:t=>{console.log("onLoad",t);const{width:o,height:a,url:n}=t;e.value={width:o,height:a,url:n}}}}});o("./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css");var D=i()(Y,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-img"},[Object(n.g)("div",{id:"demo-img-container"},[Object(n.g)("label",null,"Contain:"),Object(n.g)("img",{alt:"",src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage,class:"image contain",onTouchstart:t[0]||(t[0]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[1]||(t[1]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},null,40,["placeholder"]),Object(n.g)("label",null,"Cover:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover"},null,8,["placeholder"]),Object(n.g)("label",null,"Center:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image center"},null,8,["placeholder"]),Object(n.g)("label",null,"CapInsets:"),Object(n.g)("img",{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover",capInsets:{top:50,left:50,bottom:50,right:50}},null,8,["placeholder"]),Object(n.g)("label",null,"TintColor:"),Object(n.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(n.g)("label",null,"Gif:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",class:"image cover",onLoad:t[3]||(t[3]=(...t)=>e.onLoad&&e.onLoad(...t))},null,40,["placeholder"]),Object(n.g)("div",{class:"img-result"},[Object(n.g)("p",null,"Load Result: "+Object(n.C)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const B=e=>{e.stopPropagation()},H=e=>{console.log(e.value)},R=e=>{console.log("onKeyboardWillShow",e)},U=()=>{console.log("onKeyboardWillHide")};var N=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(""),a=Object(r.ref)(""),n=Object(r.ref)(!1),l=()=>{if(e.value){const t=e.value;if(t.childNodes.length){let e=t.childNodes;return e=e.filter(e=>"input"===e.tagName),e}}return[]};Object(r.onMounted)(()=>{Object(r.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:a,isFocused:n,blur:e=>{e.stopPropagation(),t.value&&t.value.blur()},clearTextContent:()=>{o.value=""},focus:e=>{e.stopPropagation(),t.value&&t.value.focus()},blurAllInput:()=>{const e=l();e.length&&e.map(e=>(e.blur(),!0))},onKeyboardWillShow:R,onKeyboardWillHide:U,stopPropagation:B,textChange:H,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onBlur")},onFocus:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onFocus")}}}});o("./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css");var M=i()(N,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(n.I)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(n.g)("label",null,"文本:"),Object(n.g)("input",{ref:"input",placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0,class:"input",value:e.text,onChange:t[0]||(t[0]=t=>e.text=t.value),onClick:t[1]||(t[1]=(...t)=>e.stopPropagation&&e.stopPropagation(...t)),"on:keyboardWillShow":t[2]||(t[2]=(...t)=>e.onKeyboardWillShow&&e.onKeyboardWillShow(...t)),"on:keyboardWillHide":t[3]||(t[3]=(...t)=>e.onKeyboardWillHide&&e.onKeyboardWillHide(...t)),onBlur:t[4]||(t[4]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[5]||(t[5]=(...t)=>e.onFocus&&e.onFocus(...t))},null,40,["value"]),Object(n.g)("div",null,[Object(n.g)("span",null,"文本内容为:"),Object(n.g)("span",null,Object(n.C)(e.text),1)]),Object(n.g)("div",null,[Object(n.g)("span",null,Object(n.C)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(n.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(n.I)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(n.g)("span",null,"清空文本内容")]),Object(n.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(n.I)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(n.g)("span",null,"Focus")]),Object(n.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(n.I)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(n.g)("span",null,"Blur")]),Object(n.g)("label",null,"数字:"),Object(n.g)("input",{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number",class:"input",onChange:t[9]||(t[9]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[10]||(t[10]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"密码:"),Object(n.g)("input",{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password",class:"input",onChange:t[11]||(t[11]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[12]||(t[12]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"文本(限制5个字符):"),Object(n.g)("input",{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符",class:"input",onChange:t[13]||(t[13]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[14]||(t[14]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32)],512)}],["__scopeId","data-v-ebfef7c0"]]);const z=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],F=e=>{console.log("onAppear",e)},G=e=>{console.log("onDisappear",e)},W=e=>{console.log("onWillAppear",e)},K=e=>{console.log("onWillDisappear",e)},q=e=>{console.log("momentumScrollBegin",e)},Q=e=>{console.log("momentumScrollEnd",e)},X=e=>{console.log("onScrollBeginDrag",e)},Z=e=>{console.log("onScrollEndDrag",e)};var J=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)([]),o=Object(r.ref)(null),a=Object(r.ref)(!1);let n=!1;let l=!1;return Object(r.onMounted)(()=>{n=!1,t.value=[...z]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:a,Platform:y.Native.Platform,onAppear:F,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:G,onEndReached:async o=>{if(console.log("endReached",o),n)return;const a=t.value;n=!0,e.value="Loading now...",t.value=[...a,[{style:100}]];const r=await(async()=>new Promise(e=>{setTimeout(()=>e(z),600)}))();t.value=[...a,...r],n=!1},onWillAppear:W,onWillDisappear:K,changeDirection:()=>{a.value=!a.value},onScroll:e=>{console.log("onScroll",e.offsetY),e.offsetY<=0?l||(l=!0,console.log("onTopReached")):l=!1},onMomentumScrollBegin:q,onMomentumScrollEnd:Q,onScrollBeginDrag:X,onScrollEndDrag:Z}}});o("./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css");var $=i()(J,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-list"},[Object(n.g)("ul",{id:"list",ref:"list",style:Object(n.p)(e.horizontal&&{height:50,flex:0}),horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3,"on:endReached":t[0]||(t[0]=(...t)=>e.onEndReached&&e.onEndReached(...t)),onDelete:t[1]||(t[1]=(...t)=>e.onDelete&&e.onDelete(...t)),onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[3]||(t[3]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[4]||(t[4]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[5]||(t[5]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[6]||(t[6]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.f)("li",{key:o,class:Object(n.o)(e.horizontal&&"item-horizontal-style"),type:t.style,sticky:1===o,onAppear:t=>e.onAppear(o),onDisappear:t=>e.onDisappear(o),"on:willAppear":t=>e.onWillAppear(o),"on:willDisappear":t=>e.onWillDisappear(o)},[1===t.style?(Object(n.t)(),Object(n.f)("div",{key:0,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.C)(o+": Style 1 UI"),1)])])):2===t.style?(Object(n.t)(),Object(n.f)("div",{key:1,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.C)(o+": Style 2 UI"),1)])])):5===t.style?(Object(n.t)(),Object(n.f)("div",{key:2,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.C)(o+": Style 5 UI"),1)])])):(Object(n.t)(),Object(n.f)("div",{key:3,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{id:"loading"},Object(n.C)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(n.t)(),Object(n.f)("div",{key:4,class:"separator-line"})):Object(n.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},onClick:t[7]||(t[7]=(...t)=>e.changeDirection&&e.changeDirection(...t))},[Object(n.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(n.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)(0),o=Object(r.ref)({numberOfLines:2,ellipsizeMode:"tail"}),a=Object(r.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),n=Object(r.ref)("simple");return{img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",labelTouchStatus:e,textMode:o,textShadow:a,textShadowIndex:t,Platform:y.Native.Platform,breakStrategy:n,onTouchTextEnd:t=>{e.value="touch end",console.log("onTextTouchEnd",t),console.log(t)},onTouchTextMove:t=>{e.value="touch move",console.log("onTextTouchMove",t),console.log(t)},onTouchTextStart:t=>{e.value="touch start",console.log("onTextTouchDown",t)},decrementLine:()=>{o.value.numberOfLines>1&&(o.value.numberOfLines-=1)},incrementLine:()=>{o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:e=>{o.value.ellipsizeMode=e},changeTextShadow:()=>{a.value.textShadowOffsetX=t.value%2==1?10:1,a.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{n.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var te=i()(ee,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"p-demo"},[Object(n.g)("div",null,[Object(n.g)("label",null,"不带样式:"),Object(n.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(n.I)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.I)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.I)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(n.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(n.C)(e.labelTouchStatus),1),Object(n.g)("label",null,"颜色:"),Object(n.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(n.g)("label",null,"尺寸:"),Object(n.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(n.g)("label",null,"粗体:"),Object(n.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(n.g)("label",null,"下划线:"),Object(n.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(n.g)("label",null,"删除线:"),Object(n.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(n.g)("label",null,"自定义字体:"),Object(n.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(n.g)("label",null,"文字阴影:"),Object(n.g)("p",{class:"p-demo-7 p-demo-content",style:Object(n.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(n.g)("label",null,"文本字符间距"),Object(n.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(n.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(n.g)("label",null,"字体 style:"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(n.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(n.g)("p",null,"font-style: [not set]")]),Object(n.g)("label",null,"numberOfLines="+Object(n.C)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(n.C)(e.textMode.ellipsizeMode),1),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(n.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(n.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(n.C)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(n.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(n.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(n.g)("span",null,"加一行")]),Object(n.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(n.g)("span",null,"减一行")])]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(n.g)("span",null,"clip")]),Object(n.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(n.g)("span",null,"head")]),Object(n.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(n.g)("span",null,"middle")]),Object(n.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(n.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.C)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"p-demo-content"},[Object(n.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(n.C)(e.longText),9,["break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(n.I)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(n.I)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(n.I)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"vertical-align"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字")])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"tint-color & background-color"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"margin"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(r.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var ae=i()(oe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"offset-shadow-demo-content-android"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(r.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:e=>{console.log(e)},changeBreakStrategy:e=>{t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var re=i()(ne,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-textarea"},[Object(n.g)("label",null,"多行文本:"),Object(n.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=t=>e.content=t.value),"on:contentSizeChange":t[1]||(t[1]=(...t)=>e.contentSizeChange&&e.contentSizeChange(...t))},null,40,["value"]),Object(n.g)("div",{class:"output-container"},[Object(n.g)("p",{class:"output"}," 输入的文本为:"+Object(n.C)(e.content),1)]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.C)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1},[Object(n.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o("./src/components/demo/demoTurbo.ts"),ce=Object(r.defineComponent)({setup(){let e=null;const t=Object(r.ref)("");return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:async o=>{if("nativeWithPromise"===o)t.value=await Object(le.h)("aaa");else if("getTurboConfig"===o)e=Object(le.g)(),t.value="获取到config对象";else if("printTurboConfig"===o){var a;t.value=Object(le.i)(null!==(a=e)&&void 0!==a?a:Object(le.g)())}else if("getInfo"===o){var n;t.value=(null!==(n=e)&&void 0!==n?n:Object(le.g)()).getInfo()}else if("setInfo"===o){var r;(null!==(r=e)&&void 0!==r?r:Object(le.g)()).setInfo("Hello World"),t.value="设置config信息成功"}else{const e={getString:()=>Object(le.f)("123"),getNum:()=>Object(le.d)(1024),getBoolean:()=>Object(le.b)(!0),getMap:()=>Object(le.c)(new Map([["a","1"],["b","2"]])),getObject:()=>Object(le.e)({c:"3",d:"4"}),getArray:()=>Object(le.a)(["a","b","c"])};t.value=e[o]()}}}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var ie=i()(ce,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"demo-turbo"},[Object(n.g)("span",{class:"result"},Object(n.C)(e.result),1),Object(n.g)("ul",{style:{flex:"1"}},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.funList,t=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"cell"},[Object(n.g)("div",{class:"contentView"},[Object(n.g)("div",{class:"func-info"},[Object(n.g)("span",{numberOfLines:0},"函数名:"+Object(n.C)(t),1)]),Object(n.g)("span",{class:"action-button",onClick:Object(n.I)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let se=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{se&&1===se.readyState&&se.close()};var be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null);return{output:de,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{ue(),se=new WebSocket(e),se.onopen=()=>{var e;return pe("[Opened] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onclose=()=>{var e;return pe("[Closed] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onerror=e=>{pe("[Error] "+e.reason)},se.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),se&&se.send(e)})(e)})}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var ye={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:ae},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:s},demoImg:{name:"img 组件",component:D},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:I},demoWebSocket:{name:"WebSocket",component:i()(be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"websocket-demo"},[Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Url: "),Object(n.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(n.g)("div",{class:"row"},[Object(n.g)("button",{onClick:t[0]||(t[0]=Object(n.I)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(n.g)("span",null,"Connect")]),Object(n.g)("button",{onClick:t[1]||(t[1]=Object(n.I)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(n.g)("span",null,"Disconnect")])])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Message: "),Object(n.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(n.g)("button",{onClick:t[2]||(t[2]=Object(n.I)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(n.g)("span",null,"Send")])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Log: "),Object(n.g)("div",{class:"output fullscreen"},[Object(n.g)("div",null,[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.output,(e,t)=>(Object(n.t)(),Object(n.f)("p",{key:t},Object(n.C)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:E},demoTurbo:{name:"Turbo",component:ie}};var ve=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(0),o=Object(r.ref)(0);Object(r.onMounted)(()=>{o.value=y.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const a=t.touches[0].clientX-40;console.log("touchdown x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const a=t.touches[0].clientX-40;console.log("touchmove x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var fe=i()(ve,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"set-native-props-demo"},[Object(n.g)("label",null,"setNativeProps实现拖动效果"),Object(n.g)("div",{class:"native-demo-1-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(n.I)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.I)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(n.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(n.g)("div",{class:"splitter"}),Object(n.g)("label",null,"普通渲染实现拖动效果"),Object(n.g)("div",{class:"native-demo-2-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(n.I)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(n.I)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(n.g)("div",{class:"native-demo-2-point",style:Object(n.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const ge={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var me=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:ge})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var he=i()(me,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(n.G)(()=>[Object(n.g)("div",{class:"color-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);const je={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}};var Oe=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(r.ref)(null);return Object(r.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var _e=i()(Oe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(n.G)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const xe={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},we={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se=Object(r.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(r.toRefs)(e),o=Object(r.ref)(""),a=Object(r.ref)(null);return Object(r.watch)(t,e=>{switch(e){case"horizon":o.value=xe;break;case"vertical":o.value=we;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(r.onMounted)(()=>{e.onRef&&e.onRef(a.value)}),{loopActions:o,animationLoop:a}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Ce=i()(Se,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(n.G)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const Ae={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ke={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Pe=Object(r.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(r.ref)(null),o=Object(r.ref)({face:Ae,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),{isChanged:a}=Object(r.toRefs)(e);return Object(r.watch)(a,(e,a)=>{!a&&e?(console.log("changed to face2"),o.value.face=ke):a&&!e&&(console.log("changed to face1"),o.value.face=Ae),setTimeout(()=>{t.value&&t.value.start()},10)}),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:()=>{console.log("animation-start callback")},animationEnd:()=>{console.log("animation-end callback")},animationRepeat:()=>{console.log("animation-repeat callback")},animationCancel:()=>{console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ee=i()(Pe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(n.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Te=Object(r.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Ie=i()(Te,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Le=Object(r.defineComponent)({components:{Loop:Ce,colorComponent:he,CubicBezier:_e},setup(){const e=Object(r.ref)(!0),t=Object(r.ref)(!0),o=Object(r.ref)(!0),a=Object(r.ref)("horizon"),n=Object(r.ref)(!0),l=Object(r.ref)(null),c=Object(r.shallowRef)(Ie);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:a,voteComponent:c,colorComponent:he,isChanged:n,animationRef:l,voteUp:()=>{c.value=Ie},voteDown:()=>{c.value=Ee,n.value=!n.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{a.value="horizon"===a.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(r.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var Ve=i()(Le,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),i=Object(n.z)("color-component"),s=Object(n.z)("cubic-bezier");return Object(n.t)(),Object(n.f)("ul",{id:"animation-demo"},[Object(n.g)("li",null,[Object(n.g)("label",null,"控制动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(n.t)(),Object(n.f)("span",{key:0},"切换为纵向")):(Object(n.t)(),Object(n.f)("span",{key:1},"切换为横向"))])]),Object(n.g)("div",{style:{height:"150px"}},[Object(n.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(n.G)(()=>[Object(n.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"点赞笑脸动画:"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(n.g)("span",null,"点赞 👍")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(n.g)("span",null,"踩 👎")])]),Object(n.g)("div",{class:"vote-face-container center"},[(Object(n.t)(),Object(n.d)(Object(n.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"渐变色动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(i,{playing:e.colorPlaying},{default:Object(n.G)(()=>[Object(n.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"贝塞尔曲线动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(s,{playing:e.cubicPlaying},{default:Object(n.G)(()=>[Object(n.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ye=o("./node_modules/vue-router/dist/vue-router.mjs");const De=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var Be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)("fade"),a=Object(r.ref)(!1),n=Object(r.ref)(!1),l=Object(r.ref)(!1);return Object(Ye.onBeforeRouteLeave)((t,o,a)=>{e.value||a()}),{supportedOrientations:De,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:a,autoHideStatusBar:n,autoHideNavigationBar:l,stopPropagation:e=>{e.stopPropagation()},onClose:o=>{o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:()=>{console.log("Dialog is opening")},onClickView:(t="")=>{e.value=!e.value,o.value=t},onClickOpenSecond:e=>{e.stopPropagation(),t.value=!t.value},onClickDialogConfig:e=>{switch(e){case"hideStatusBar":n.value=!n.value;break;case"immerseStatusBar":a.value=!a.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var He=i()(Be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"dialog-demo"},[Object(n.g)("label",null,"显示或者隐藏对话框:"),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(n.I)(()=>e.onClickView("slide"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(n.I)(()=>e.onClickView("fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(n.I)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(n.I)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(n.I)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(n.I)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(n.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=(...t)=>e.onShow&&e.onShow(...t)),"on:requestClose":t[13]||(t[13]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[14]||(t[14]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.e)(" dialog on iOS platform can only have one child node "),Object(n.g)("div",{class:"dialog-demo-wrapper"},[Object(n.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(n.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(n.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[10]||(t[10]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(n.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Re=o("./src/util.ts");let Ue;var Ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("ready to set"),t=Object(r.ref)(""),o=Object(r.ref)(""),a=Object(r.ref)("正在获取..."),n=Object(r.ref)(""),l=Object(r.ref)(""),c=Object(r.ref)(""),i=Object(r.ref)(null),s=Object(r.ref)("请求网址中..."),d=Object(r.ref)("ready to set"),p=Object(r.ref)(""),u=Object(r.ref)(0);return Object(r.onMounted)(()=>{c.value=JSON.stringify(Object(Re.a)()),y.Native.NetInfo.fetch().then(e=>{a.value=e}),Ue=y.Native.NetInfo.addEventListener("change",e=>{a.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{s.value="成功状态: "+e.status}).catch(e=>{s.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:i,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:s,cookieString:d,cookiesValue:p,getSize:async()=>{const e=await y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),o.value=`${e.width}x${e.height}`},setItem:()=>{y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await y.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:()=>{y.Native.Cookie.getAll("https://hippyjs.org").then(e=>{p.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await y.Native.getBoundingClientRect(i.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):n.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{y.EventBus.$emit("testEvent")},eventTriggeredTimes:u}},beforeDestroy(){Ue&&y.Native.NetInfo.removeEventListener("change",Ue),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Me=i()(Ne,[["render",function(e,t,o,a,r,l){var c,i;return Object(n.t)(),Object(n.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(n.g)("div",null,[Object(n.e)(" platform "),e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(n.g)("p",null,Object(n.C)(e.Native.Platform),1)])):Object(n.e)("v-if",!0),Object(n.e)(" device name "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Device"),Object(n.g)("p",null,Object(n.C)(e.Native.Device),1)]),Object(n.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:1,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(n.g)("p",null,Object(n.C)(e.Native.isIPhoneX),1)])):Object(n.e)("v-if",!0),Object(n.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:2,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(n.g)("p",null,Object(n.C)(e.Native.OSVersion||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Internationalization related information "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(n.g)("p",null,Object(n.C)("国际化相关信息")),Object(n.g)("p",null,Object(n.C)("国家 "+(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(n.g)("p",null,Object(n.C)("语言 "+(null===(i=e.Native.Localization)||void 0===i?void 0:i.language)),1),Object(n.g)("p",null,Object(n.C)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(n.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:3,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(n.g)("p",null,Object(n.C)(e.Native.APILevel||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Whether the screen is vertically displayed "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(n.g)("p",null,Object(n.C)(e.Native.screenIsVertical),1)]),Object(n.e)(" width of window "),e.Native.Dimensions.window.width?(Object(n.t)(),Object(n.f)("div",{key:4,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.window.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(n.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(n.t)(),Object(n.f)("div",{key:5,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.window.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(n.t)(),Object(n.f)("div",{key:6,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(n.t)(),Object(n.f)("div",{key:7,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" the pt value of a pixel "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(n.g)("p",null,Object(n.C)(e.Native.OnePixel),1)]),Object(n.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:8,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(n.t)(),Object(n.f)("div",{key:9,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:10,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The startup parameters passed from the native "),e.superProps?(Object(n.t)(),Object(n.f)("div",{key:11,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(n.g)("p",null,Object(n.C)(e.superProps),1)])):Object(n.e)("v-if",!0),Object(n.e)(" A demo of Native Event,Just show how to use "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"App event"),Object(n.g)("div",null,[Object(n.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(n.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(n.g)("div",{class:"event-btn-result"},[Object(n.g)("p",null,"Event triggered times: "+Object(n.C)(e.eventTriggeredTimes),1)])])]),Object(n.e)(" example of measuring the size of an element "),Object(n.g)("div",{ref:"measure-block",class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(n.g)("span",null,"relative to App")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.C)(e.rect1),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(n.g)("span",null,"relative to Container")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.C)(e.rect2),1)])],512),Object(n.e)(" local storage "),e.Native.AsyncStorage?(Object(n.t)(),Object(n.f)("div",{key:12,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(n.g)("span",null,"setItem")]),Object(n.g)("span",null,Object(n.C)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(n.g)("span",null,"removeItem")]),Object(n.g)("span",null,Object(n.C)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(n.g)("span",null,"getItem")]),Object(n.g)("span",null,Object(n.C)(e.storageValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" ImageLoader "),e.Native.ImageLoader?(Object(n.t)(),Object(n.f)("div",{key:13,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(n.g)("span",null,"getSize")]),Object(n.g)("span",null,Object(n.C)(e.imageSize),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Fetch "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.C)(e.fetchText),1)])]),Object(n.e)(" network info "),e.Native.NetInfo?(Object(n.t)(),Object(n.f)("div",{key:14,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.C)(e.netInfoText),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Cookie "),e.Native.Cookie?(Object(n.t)(),Object(n.f)("div",{key:15,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(n.g)("span",null,"setCookie")]),Object(n.g)("span",null,Object(n.C)(e.cookieString),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(n.g)("span",null,"getCookie")]),Object(n.g)("span",null,Object(n.C)(e.cookiesValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" iOS platform "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:16,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(n.g)("p",null,Object(n.C)(e.Native.isIOS()),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Android platform "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:17,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(n.g)("p",null,Object(n.C)(e.Native.isAndroid()),1)])):Object(n.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const ze="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Fe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ze,ze,ze],subInfo:["三图评论","11评"]}},Ge={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},We={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ke=[We,Fe,Ge,Fe,Ge,Fe,Ge,We,Fe];var qe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Qe=i()(qe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-one"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.C)(e.itemBean.title),1),Object(n.g)("div",{class:"style-one-image-container"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.itemBean.picList,(e,t)=>(Object(n.t)(),Object(n.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.C)(e.itemBean.subInfo.join("")),1)])])}]]);var Xe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Ze=i()(Xe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-two"},[Object(n.g)("div",{class:"style-two-left-container"},[Object(n.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(n.C)(e.itemBean.title),1),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.C)(e.itemBean.subInfo.join("")),1)])]),Object(n.g)("div",{class:"style-two-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Je=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=i()(Je,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-five"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.C)(e.itemBean.title),1),Object(n.g)("div",{class:"style-five-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.C)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(r.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ke),800)});var at=Object(r.defineComponent)({components:{StyleOne:Qe,StyleTwo:Ze,StyleFive:$e},setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.ref)([...Ke]);let n=!1,l=!1;const c=Object(r.ref)(""),i=Object(r.ref)("继续下拉触发刷新"),s=Object(r.ref)("正在加载...");return Object(r.onMounted)(()=>{n=!1,l=!1,a.value=[...Ke],et=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:c,dataSource:a,headerRefreshText:i,footerRefreshText:s,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,s.value="加载更多...";const t=await ot();0===t.length&&(s.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),i.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,i.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?i.value="松手,即可触发刷新":i.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(y.Native){if(e.value){const t=e.value;console.log("scroll to next page",e,tt.value,et);const o=tt.value.top+et-200;t.scrollTo({left:tt.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:()=>{if(y.Native){if(e.value){const t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var nt=i()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),i=Object(n.z)("style-one"),s=Object(n.z)("style-two"),d=Object(n.z)("style-five"),p=Object(n.z)("pull-footer");return Object(n.t)(),Object(n.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(n.g)("span",null,"翻动到底部")]),Object(n.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(n.C)(e.dataSource.length),1)]),Object(n.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(n.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.G)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.C)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(e,t)=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(n.t)(),Object(n.d)(i,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===e.style?(Object(n.t)(),Object(n.d)(s,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===e.style?(Object(n.t)(),Object(n.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(n.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.G)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.C)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var rt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("idle"),t=Object(r.ref)(2),o=Object(r.ref)(2);return{dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:()=>{console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:()=>{console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:e=>{console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:e=>{console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:t=>{console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var lt=i()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),i=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-swiper"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(n.g)("span",null,"翻到上一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("p",{class:"toolbar-text"}," 当前第 "+Object(n.C)(e.currentSlideNum+1)+" 页 ",1)]),Object(n.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(n.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(n.G)(()=>[Object(n.e)(" slides "),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,e=>(Object(n.t)(),Object(n.d)(c,{key:e,style:Object(n.p)({backgroundColor:4278222848+100*e})},{default:Object(n.G)(()=>[Object(n.g)("p",null,"I'm Slide "+Object(n.C)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(n.e)(" A Demo of dots "),Object(n.g)("div",{id:"swiper-dots"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,t=>(Object(n.t)(),Object(n.f)("div",{key:t,class:Object(n.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let ct=0;const it={top:0,left:5,bottom:0,right:5},st="ios"===y.Native.Platform,dt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ke,...Ke])),600)});var pt=Object(r.defineComponent)({components:{StyleOne:Qe,StyleTwo:Ze,StyleFive:$e},setup(){const e=Object(r.ref)([...Ke,...Ke,...Ke,...Ke]);let t=!1,o=!1;const a=Object(r.ref)(!1),n=Object(r.ref)("正在加载..."),l=Object(r.ref)(null),c=Object(r.ref)(null);let i="继续下拉触发刷新",s="正在加载...";const d=Object(r.computed)(()=>a.value?"正在刷新":"下拉刷新"),p=Object(r.ref)(null),u=Object(r.ref)(null),b=Object(r.computed)(()=>(y.Native.Dimensions.screen.width-it.left-it.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:it,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await dt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,s="加载更多...";const o=await dt();0===o.length&&(s="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:st,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),i=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),i="刷新数据中,请稍等",o=!1,i="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:i,footerRefreshText:s,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ut=i()(pt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),i=Object(n.z)("waterfall-item"),s=Object(n.z)("style-one"),d=Object(n.z)("style-two"),p=Object(n.z)("style-five"),u=Object(n.z)("pull-footer"),b=Object(n.z)("waterfall");return Object(n.t)(),Object(n.f)("div",{id:"demo-waterfall"},[Object(n.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(n.G)(()=>[Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.G)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.C)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])):(Object(n.t)(),Object(n.d)(i,{key:1,"full-span":!0,class:"banner-view"},{default:Object(n.G)(()=>[Object(n.g)("span",null,"BannerView")]),_:1})),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(i,{key:o,style:Object(n.p)({width:e.itemWidth}),type:t.style,onClick:Object(n.I)(()=>e.onClickItem(o),["stop"])},{default:Object(n.G)(()=>[1===t.style?(Object(n.t)(),Object(n.d)(s,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===t.style?(Object(n.t)(),Object(n.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===t.style?(Object(n.t)(),Object(n.d)(p,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(n.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.G)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.C)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var bt=Object(r.defineComponent)({setup(){const e=Object(r.ref)(0),t=Object(r.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:t=>{e.value=t.height},onTabClick:e=>{t.value=e-1},onDropped:e=>{t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var yt={demoNative:{name:"Native 能力",component:Me},demoAnimation:{name:"animation 组件",component:Ve},demoDialog:{name:"dialog 组件",component:He},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:nt},demoWaterfall:{name:"waterfall 组件",component:ut},demoNestedScroll:{name:"nested scroll 示例",component:i()(bt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),i=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(n.g)("div",{id:"demo-content"},[Object(n.g)("div",{id:"banner"}),Object(n.g)("div",{id:"tabs"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(2,t=>Object(n.g)("p",{key:"tab"+t,class:Object(n.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(n.C)(t)+" "+Object(n.C)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(n.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(n.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(n.G)(()=>[Object(n.i)(c,{key:"slide1"},{default:Object(n.G)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.C)(e),1)],2)),64))])]),_:1}),Object(n.i)(c,{key:"slide2"},{default:Object(n.G)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"self"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.C)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:fe}};var vt=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(yt).map(e=>({id:e,name:yt[e].name}));return Object(r.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:r.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var ft=i()(vt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("router-link");return Object(n.t)(),Object(n.f)("ul",{class:"feature-list"},[Object(n.g)("li",null,[Object(n.g)("div",{id:"version-info"},[Object(n.g)("p",{class:"feature-title"}," Vue: "+Object(n.C)(e.version),1),e.Native?(Object(n.t)(),Object(n.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(n.C)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(n.e)("v-if",!0)])]),Object(n.g)("li",null,[Object(n.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.featureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.G)(()=>[Object(n.h)(Object(n.C)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(n.t)(),Object(n.f)("li",{key:0},[Object(n.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(n.e)("v-if",!0),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.nativeFeatureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.G)(()=>[Object(n.h)(Object(n.C)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var gt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(r.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Re.a)();y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");const mt=[{path:"/",component:ft},{path:"/remote-debug",component:i()(gt,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(n.I)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(n.g)("div",{class:"tips-wrap"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tips,(t,o)=>(Object(n.t)(),Object(n.f)("p",{key:o,class:"tips-item",style:Object(n.p)(e.styles.tipText)},Object(n.C)(o+1)+". "+Object(n.C)(t),5))),128))]),Object(n.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(n.I)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value","onClick"]),Object(n.g)("div",{class:"buttonContainer",style:Object(n.p)(e.styles.buttonContainer)},[Object(n.g)("button",{style:Object(n.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(n.I)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(n.g)("span",{style:Object(n.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(ye).map(e=>({path:"/demo/"+e,name:ye[e].name,component:ye[e].component})),...Object.keys(yt).map(e=>({path:"/demo/"+e,name:yt[e].name,component:yt[e].component}))];function ht(){return Object(a.createHippyRouter)({routes:mt})}},"./src/util.ts":function(e,t,o){"use strict";let a;function n(e){a=e}function r(){return a}o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +const n="undefined"!=typeof document;function r(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const l=Object.assign;function c(e,t){const o={};for(const a in t){const n=t[a];o[a]=i(n)?n.map(e):e(n)}return o}const s=()=>{},i=Array.isArray;const d=/#/g,p=/&/g,u=/\//g,b=/=/g,y=/\?/g,v=/\+/g,f=/%5B/g,m=/%5D/g,g=/%5E/g,h=/%60/g,j=/%7B/g,O=/%7C/g,_=/%7D/g,w=/%20/g;function x(e){return encodeURI(""+e).replace(O,"|").replace(f,"[").replace(m,"]")}function S(e){return x(e).replace(v,"%2B").replace(w,"+").replace(d,"%23").replace(p,"%26").replace(h,"`").replace(j,"{").replace(_,"}").replace(g,"^")}function A(e){return null==e?"":function(e){return x(e).replace(d,"%23").replace(y,"%3F")}(e).replace(u,"%2F")}function C(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const k=/\/$/;function P(e,t,o="/"){let a,n={},r="",l="";const c=t.indexOf("#");let s=t.indexOf("?");return c=0&&(s=-1),s>-1&&(a=t.slice(0,s),r=t.slice(s+1,c>-1?c:t.length),n=e(r)),c>-1&&(a=a||t.slice(0,c),l=t.slice(c,t.length)),a=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),a=e.split("/"),n=a[a.length-1];".."!==n&&"."!==n||a.push("");let r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+a.slice(r).join("/")}(null!=a?a:t,o),{fullPath:a+(r&&"?")+r+l,path:a,query:n,hash:C(l)}}function E(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function T(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!I(e[o],t[o]))return!1;return!0}function I(e,t){return i(e)?D(e,t):i(t)?D(t,e):e===t}function D(e,t){return i(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}const V={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Y,H;!function(e){e.pop="pop",e.push="push"}(Y||(Y={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(H||(H={}));function B(e){if(!e)if(n){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(k,"")}const R=/^[^#]+#/;function N(e,t){return e.replace(R,"#")+t}const U=()=>({left:window.scrollX,top:window.scrollY});function M(e){let t;if("el"in e){const o=e.el,a="string"==typeof o&&o.startsWith("#");0;const n="string"==typeof o?a?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=function(e,t){const o=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-o.left-(t.left||0),top:a.top-o.top-(t.top||0)}}(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function z(e,t){return(history.state?history.state.position-t:-1)+e}const F=new Map;let W=()=>location.protocol+"//"+location.host;function K(e,t){const{pathname:o,search:a,hash:n}=t,r=e.indexOf("#");if(r>-1){let t=n.includes(e.slice(r))?e.slice(r).length:1,o=n.slice(t);return"/"!==o[0]&&(o="/"+o),E(o,"")}return E(o,e)+a+n}function G(e,t,o,a=!1,n=!1){return{back:e,current:t,forward:o,replaced:a,position:window.history.length,scroll:n?U():null}}function J(e){const t=function(e){const{history:t,location:o}=window,a={value:K(e,o)},n={value:t.state};function r(a,r,l){const c=e.indexOf("#"),s=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+a:W()+e+a;try{t[l?"replaceState":"pushState"](r,"",s),n.value=r}catch(e){console.error(e),o[l?"replace":"assign"](s)}}return n.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:n,push:function(e,o){const c=l({},n.value,t.state,{forward:e,scroll:U()});r(c.current,c,!0),r(e,l({},G(a.value,e,null),{position:c.position+1},o),!1),a.value=e},replace:function(e,o){r(e,l({},t.state,G(n.value.back,e,n.value.forward,!0),o,{position:n.value.position}),!0),a.value=e}}}(e=B(e)),o=function(e,t,o,a){let n=[],r=[],c=null;const s=({state:r})=>{const l=K(e,location),s=o.value,i=t.value;let d=0;if(r){if(o.value=l,t.value=r,c&&c===s)return void(c=null);d=i?r.position-i.position:0}else a(l);n.forEach(e=>{e(o.value,s,{delta:d,type:Y.pop,direction:d?d>0?H.forward:H.back:H.unknown})})};function i(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:U()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){n.push(e);const t=()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",i)}}}(e,t.state,t.location,t.replace);const a=l({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:N.bind(null,e)},t,o);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function q(e=""){let t=[],o=[""],a=0;function n(e){a++,a!==o.length&&o.splice(a),o.push(e)}const r={location:"",state:{},base:e=B(e),createHref:N.bind(null,e),replace(e){o.splice(a--,1),n(e)},push(e,t){n(e)},listen:e=>(t.push(e),()=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],a=0},go(e,n=!0){const r=this.location,l=e<0?H.back:H.forward;a=Math.max(0,Math.min(a+e,o.length-1)),n&&function(e,o,{direction:a,delta:n}){const r={direction:a,delta:n,type:Y.pop};for(const a of t)a(e,o,r)}(this.location,r,{direction:l,delta:e})}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>o[a]}),r}function Q(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),J(e)}function X(e){return"string"==typeof e||"symbol"==typeof e}const Z=Symbol("");var $;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}($||($={}));function ee(e,t){return l(new Error,{type:e,[Z]:!0},t)}function te(e,t){return e instanceof Error&&Z in e&&(null==t||!!(e.type&t))}const oe={sensitive:!1,strict:!1,start:!0,end:!0},ae=/[.+*?^${}()[\]/\\]/g;function ne(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function re(e,t){let o=0;const a=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const ce={type:0,value:""},se=/[a-zA-Z0-9_]/;function ie(e,t,o){const a=function(e,t){const o=l({},oe,t),a=[];let n=o.start?"^":"";const r=[];for(const t of e){const e=t.length?[]:[90];o.strict&&!t.length&&(n+="/");for(let a=0;a1&&("*"===c||"+"===c)&&t(`A repeatable param (${i}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:i,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),i="")}function u(){i+=c}for(;s{r(y)}:s}function r(e){if(X(e)){const t=a.get(e);t&&(a.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){const t=function(e,t){let o=0,a=t.length;for(;o!==a;){const n=o+a>>1;re(e,t[n])<0?a=n:o=n+1}const n=function(e){let t=e;for(;t=t.parent;)if(fe(t)&&0===re(e,t))return t;return}(e);n&&(a=t.lastIndexOf(n,a-1));return a}(e,o);o.splice(t,0,e),e.record.name&&!be(e)&&a.set(e.record.name,e)}return t=ve({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>n(e)),{addRoute:n,resolve:function(e,t){let n,r,c,s={};if("name"in e&&e.name){if(n=a.get(e.name),!n)throw ee(1,{location:e});0,c=n.record.name,s=l(pe(t.params,n.keys.filter(e=>!e.optional).concat(n.parent?n.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&pe(e.params,n.keys.map(e=>e.name))),r=n.stringify(s)}else if(null!=e.path)r=e.path,n=o.find(e=>e.re.test(r)),n&&(s=n.parse(r),c=n.record.name);else{if(n=t.name?a.get(t.name):o.find(e=>e.re.test(t.path)),!n)throw ee(1,{location:e,currentLocation:t});c=n.record.name,s=l({},t.params,e.params),r=n.stringify(s)}const i=[];let d=n;for(;d;)i.unshift(d.record),d=d.parent;return{name:c,path:r,params:s,matched:i,meta:ye(i)}},removeRoute:r,clearRoutes:function(){o.length=0,a.clear()},getRoutes:function(){return o},getRecordMatcher:function(e){return a.get(e)}}}function pe(e,t){const o={};for(const a of t)a in e&&(o[a]=e[a]);return o}function ue(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const a in e.components)t[a]="object"==typeof o?o[a]:o;return t}function be(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ye(e){return e.reduce((e,t)=>l(e,t.meta),{})}function ve(e,t){const o={};for(const a in e)o[a]=a in t?t[a]:e[a];return o}function fe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function me(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&S(e)):[a&&S(a)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))})}return t}function he(e){const t={};for(const o in e){const a=e[o];void 0!==a&&(t[o]=i(a)?a.map(e=>null==e?null:""+e):null==a?a:""+a)}return t}const je=Symbol(""),Oe=Symbol(""),_e=Symbol(""),we=Symbol(""),xe=Symbol("");function Se(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ae(e,t,o){const n=()=>{e[t].delete(o)};Object(a.s)(n),Object(a.r)(n),Object(a.q)(()=>{e[t].add(o)}),e[t].add(o)}function Ce(e){const t=Object(a.m)(je,{}).value;t&&Ae(t,"leaveGuards",e)}function ke(e){const t=Object(a.m)(je,{}).value;t&&Ae(t,"updateGuards",e)}function Pe(e,t,o,a,n,r=(e=>e())){const l=a&&(a.enterCallbacks[n]=a.enterCallbacks[n]||[]);return()=>new Promise((c,s)=>{const i=e=>{var r;!1===e?s(ee(4,{from:o,to:t})):e instanceof Error?s(e):"string"==typeof(r=e)||r&&"object"==typeof r?s(ee(2,{from:t,to:e})):(l&&a.enterCallbacks[n]===l&&"function"==typeof e&&l.push(e),c())},d=r(()=>e.call(a&&a.instances[n],t,o,i));let p=Promise.resolve(d);e.length<3&&(p=p.then(i)),p.catch(e=>s(e))})}function Ee(e,t,o,a,n=(e=>e())){const l=[];for(const s of e){0;for(const e in s.components){let i=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(c=i)||"displayName"in c||"props"in c||"__vccOpts"in c){const r=(i.__vccOpts||i)[t];r&&l.push(Pe(r,o,a,s,e,n))}else{let c=i();0,l.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const c=r(l)?l.default:l;s.components[e]=c;const i=(c.__vccOpts||c)[t];return i&&Pe(i,o,a,s,e,n)()}))}}}var c;return l}function Te(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,o)=>{const a=e.components[o];return"function"!=typeof a||"displayName"in a||t.push(a().then(t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${e.path}". Ensure you passed a function that returns a promise.`));const a=r(t)?t.default:t;e.components[o]=a})),t},[])))).then(()=>e)}function Le(e){const t=Object(a.m)(_e),o=Object(a.m)(we);const n=Object(a.c)(()=>{const o=Object(a.E)(e.to);return t.resolve(o)}),r=Object(a.c)(()=>{const{matched:e}=n.value,{length:t}=e,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;const l=r.findIndex(T.bind(null,a));if(l>-1)return l;const c=De(e[t-2]);return t>1&&De(a)===c&&r[r.length-1].path!==c?r.findIndex(T.bind(null,e[t-2])):l}),l=Object(a.c)(()=>r.value>-1&&function(e,t){for(const o in t){const a=t[o],n=e[o];if("string"==typeof a){if(a!==n)return!1}else if(!i(n)||n.length!==a.length||a.some((e,t)=>e!==n[t]))return!1}return!0}(o.params,n.value.params)),c=Object(a.c)(()=>r.value>-1&&r.value===o.matched.length-1&&L(o.params,n.value.params));return{route:n,href:Object(a.c)(()=>n.value.href),isActive:l,isExactActive:c,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Object(a.E)(e.replace)?"replace":"push"](Object(a.E)(e.to)).catch(s):Promise.resolve()}}}const Ie=Object(a.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Le,setup(e,{slots:t}){const o=Object(a.v)(Le(e)),{options:n}=Object(a.m)(_e),r=Object(a.c)(()=>({[Ve(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Ve(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const n=t.default&&t.default(o);return e.custom?n:Object(a.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},n)}}});function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ve=(e,t,o)=>null!=e?e:null!=t?t:o;function Ye(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const He=Object(a.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Object(a.m)(xe),r=Object(a.c)(()=>e.route||n.value),c=Object(a.m)(Oe,0),s=Object(a.c)(()=>{let e=Object(a.E)(c);const{matched:t}=r.value;let o;for(;(o=t[e])&&!o.components;)e++;return e}),i=Object(a.c)(()=>r.value.matched[s.value]);Object(a.u)(Oe,Object(a.c)(()=>s.value+1)),Object(a.u)(je,i),Object(a.u)(xe,r);const d=Object(a.w)();return Object(a.G)(()=>[d.value,i.value,e.name],([e,t,o],[a,n,r])=>{t&&(t.instances[o]=e,n&&n!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=n.leaveGuards),t.updateGuards.size||(t.updateGuards=n.updateGuards))),!e||!t||n&&T(t,n)&&a||(t.enterCallbacks[o]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const n=r.value,c=e.name,s=i.value,p=s&&s.components[c];if(!p)return Ye(o.default,{Component:p,route:n});const u=s.props[c],b=u?!0===u?n.params:"function"==typeof u?u(n):u:null,y=Object(a.l)(p,l({},b,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[c]=null)},ref:d}));return Ye(o.default,{Component:y,route:n})||y}}});function Be(e){const t=de(e.routes,e),o=e.parseQuery||me,r=e.stringifyQuery||ge,d=e.history;const p=Se(),u=Se(),b=Se(),y=Object(a.C)(V);let v=V;n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=c.bind(null,e=>""+e),m=c.bind(null,A),h=c.bind(null,C);function O(e,a){if(a=l({},a||y.value),"string"==typeof e){const n=P(o,e,a.path),r=t.resolve({path:n.path},a),c=d.createHref(n.fullPath);return l(n,r,{params:h(r.params),hash:C(n.hash),redirectedFrom:void 0,href:c})}let n;if(null!=e.path)n=l({},e,{path:P(o,e.path,a.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];n=l({},e,{params:m(t)}),a.params=m(a.params)}const c=t.resolve(n,a),s=e.hash||"";c.params=f(h(c.params));const i=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(r,l({},e,{hash:(p=s,x(p).replace(j,"{").replace(_,"}").replace(g,"^")),path:c.path}));var p;const u=d.createHref(i);return l({fullPath:i,hash:s,query:r===ge?he(e.query):e.query||{}},c,{redirectedFrom:void 0,href:u})}function w(e){return"string"==typeof e?P(o,e,y.value.path):l({},e)}function S(e,t){if(v!==e)return ee(8,{from:t,to:e})}function k(e){return I(e)}function E(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let a="function"==typeof o?o(e):o;return"string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=w(a):{path:a},a.params={}),l({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function I(e,t){const o=v=O(e),a=y.value,n=e.state,c=e.force,s=!0===e.replace,i=E(o);if(i)return I(l(w(i),{state:"object"==typeof i?l({},n,i.state):n,force:c,replace:s}),t||o);const d=o;let p;return d.redirectedFrom=t,!c&&function(e,t,o){const a=t.matched.length-1,n=o.matched.length-1;return a>-1&&a===n&&T(t.matched[a],o.matched[n])&&L(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(r,a,o)&&(p=ee(16,{to:d,from:a}),$(a,a,!0,!1)),(p?Promise.resolve(p):B(d,a)).catch(e=>te(e)?te(e,2)?e:Z(e):Q(e,d,a)).then(e=>{if(e){if(te(e,2))return I(l({replace:s},w(e.to),{state:"object"==typeof e.to?l({},n,e.to.state):n,force:c}),t||d)}else e=N(d,a,!0,s,n);return R(d,a,e),e})}function D(e,t){const o=S(e,t);return o?Promise.reject(o):Promise.resolve()}function H(e){const t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function B(e,t){let o;const[a,n,r]=function(e,t){const o=[],a=[],n=[],r=Math.max(t.matched.length,e.matched.length);for(let l=0;lT(e,r))?a.push(r):o.push(r));const c=e.matched[l];c&&(t.matched.find(e=>T(e,c))||n.push(c))}return[o,a,n]}(e,t);o=Ee(a.reverse(),"beforeRouteLeave",e,t);for(const n of a)n.leaveGuards.forEach(a=>{o.push(Pe(a,e,t))});const l=D.bind(null,e,t);return o.push(l),le(o).then(()=>{o=[];for(const a of p.list())o.push(Pe(a,e,t));return o.push(l),le(o)}).then(()=>{o=Ee(n,"beforeRouteUpdate",e,t);for(const a of n)a.updateGuards.forEach(a=>{o.push(Pe(a,e,t))});return o.push(l),le(o)}).then(()=>{o=[];for(const a of r)if(a.beforeEnter)if(i(a.beforeEnter))for(const n of a.beforeEnter)o.push(Pe(n,e,t));else o.push(Pe(a.beforeEnter,e,t));return o.push(l),le(o)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),o=Ee(r,"beforeRouteEnter",e,t,H),o.push(l),le(o))).then(()=>{o=[];for(const a of u.list())o.push(Pe(a,e,t));return o.push(l),le(o)}).catch(e=>te(e,8)?e:Promise.reject(e))}function R(e,t,o){b.list().forEach(a=>H(()=>a(e,t,o)))}function N(e,t,o,a,r){const c=S(e,t);if(c)return c;const s=t===V,i=n?history.state:{};o&&(a||s?d.replace(e.fullPath,l({scroll:s&&i&&i.scroll},r)):d.push(e.fullPath,r)),y.value=e,$(e,t,o,s),Z()}let W;function K(){W||(W=d.listen((e,t,o)=>{if(!re.listening)return;const a=O(e),r=E(a);if(r)return void I(l(r,{replace:!0}),a).catch(s);v=a;const c=y.value;var i,p;n&&(i=z(c.fullPath,o.delta),p=U(),F.set(i,p)),B(a,c).catch(e=>te(e,12)?e:te(e,2)?(I(e.to,a).then(e=>{te(e,20)&&!o.delta&&o.type===Y.pop&&d.go(-1,!1)}).catch(s),Promise.reject()):(o.delta&&d.go(-o.delta,!1),Q(e,a,c))).then(e=>{(e=e||N(a,c,!1))&&(o.delta&&!te(e,8)?d.go(-o.delta,!1):o.type===Y.pop&&te(e,20)&&d.go(-1,!1)),R(a,c,e)}).catch(s)}))}let G,J=Se(),q=Se();function Q(e,t,o){Z(e);const a=q.list();return a.length?a.forEach(a=>a(e,t,o)):console.error(e),Promise.reject(e)}function Z(e){return G||(G=!e,K(),J.list().forEach(([t,o])=>e?o(e):t()),J.reset()),e}function $(t,o,r,l){const{scrollBehavior:c}=e;if(!n||!c)return Promise.resolve();const s=!r&&function(e){const t=F.get(e);return F.delete(e),t}(z(t.fullPath,0))||(l||!r)&&history.state&&history.state.scroll||null;return Object(a.n)().then(()=>c(t,o,s)).then(e=>e&&M(e)).catch(e=>Q(e,t,o))}const oe=e=>d.go(e);let ae;const ne=new Set,re={currentRoute:y,listening:!0,addRoute:function(e,o){let a,n;return X(e)?(a=t.getRecordMatcher(e),n=o):n=e,t.addRoute(n,a)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:O,options:e,push:k,replace:function(e){return k(l(w(e),{replace:!0}))},go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:p.add,beforeResolve:u.add,afterEach:b.add,onError:q.add,isReady:function(){return G&&y.value!==V?Promise.resolve():new Promise((e,t)=>{J.add([e,t])})},install(e){e.component("RouterLink",Ie),e.component("RouterView",He),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(a.E)(y)}),n&&!ae&&y.value===V&&(ae=!0,k(d.location).catch(e=>{0}));const t={};for(const e in V)Object.defineProperty(t,e,{get:()=>y.value[e],enumerable:!0});e.provide(_e,this),e.provide(we,Object(a.B)(t)),e.provide(xe,y);const o=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(v=V,W&&W(),W=null,y.value=V,ae=!1,G=!1),o()}}};function le(e){return e.reduce((e,t)=>e.then(()=>H(t)),Promise.resolve())}return re}function Re(){return Object(a.m)(_e)}function Ne(e){return Object(a.m)(we)}},"./node_modules/vue/dist/vue.runtime.esm-bundler.js":function(e,t,o){"use strict";o.d(t,"v",(function(){return a.reactive})),o.d(t,"w",(function(){return a.ref})),o.d(t,"B",(function(){return a.shallowReactive})),o.d(t,"C",(function(){return a.shallowRef})),o.d(t,"E",(function(){return a.unref})),o.d(t,"o",(function(){return a.normalizeClass})),o.d(t,"p",(function(){return a.normalizeStyle})),o.d(t,"D",(function(){return a.toDisplayString})),o.d(t,"a",(function(){return a.Fragment})),o.d(t,"b",(function(){return a.KeepAlive})),o.d(t,"c",(function(){return a.computed})),o.d(t,"d",(function(){return a.createBlock})),o.d(t,"e",(function(){return a.createCommentVNode})),o.d(t,"f",(function(){return a.createElementBlock})),o.d(t,"g",(function(){return a.createElementVNode})),o.d(t,"h",(function(){return a.createTextVNode})),o.d(t,"i",(function(){return a.createVNode})),o.d(t,"j",(function(){return a.defineComponent})),o.d(t,"k",(function(){return a.getCurrentInstance})),o.d(t,"l",(function(){return a.h})),o.d(t,"m",(function(){return a.inject})),o.d(t,"n",(function(){return a.nextTick})),o.d(t,"q",(function(){return a.onActivated})),o.d(t,"r",(function(){return a.onDeactivated})),o.d(t,"s",(function(){return a.onUnmounted})),o.d(t,"t",(function(){return a.openBlock})),o.d(t,"u",(function(){return a.provide})),o.d(t,"x",(function(){return a.renderList})),o.d(t,"y",(function(){return a.renderSlot})),o.d(t,"z",(function(){return a.resolveComponent})),o.d(t,"A",(function(){return a.resolveDynamicComponent})),o.d(t,"G",(function(){return a.watch})),o.d(t,"H",(function(){return a.withCtx})),o.d(t,"I",(function(){return a.withDirectives})),o.d(t,"F",(function(){return w})),o.d(t,"J",(function(){return C}));var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),n=o("./node_modules/@vue/shared/dist/shared.esm-bundler.js"); +/** +* @vue/runtime-dom v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +"undefined"!=typeof document&&document;const r=Symbol("_vtc"),l=(e,{slots:t})=>Object(a.h)(a.BaseTransition,d(e),t);l.displayName="Transition";const c={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},s=(l.props=Object(n.e)({},a.BaseTransitionPropsValidators,c),(e,t=[])=>{Object(n.i)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),i=e=>!!e&&(Object(n.i)(e)?e.some(e=>e.length>1):e.length>1);function d(e){const t={};for(const o in e)o in c||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:a,duration:r,enterFromClass:l=o+"-enter-from",enterActiveClass:d=o+"-enter-active",enterToClass:v=o+"-enter-to",appearFromClass:m=l,appearActiveClass:g=d,appearToClass:h=v,leaveFromClass:O=o+"-leave-from",leaveActiveClass:_=o+"-leave-active",leaveToClass:w=o+"-leave-to"}=e,x=function(e){if(null==e)return null;if(Object(n.n)(e))return[p(e.enter),p(e.leave)];{const t=p(e);return[t,t]}}(r),S=x&&x[0],A=x&&x[1],{onBeforeEnter:C,onEnter:k,onEnterCancelled:P,onLeave:E,onLeaveCancelled:T,onBeforeAppear:L=C,onAppear:I=k,onAppearCancelled:D=P}=t,V=(e,t,o)=>{b(e,t?h:v),b(e,t?g:d),o&&o()},Y=(e,t)=>{e._isLeaving=!1,b(e,O),b(e,w),b(e,_),t&&t()},H=e=>(t,o)=>{const n=e?I:k,r=()=>V(t,e,o);s(n,[t,r]),y(()=>{b(t,e?m:l),u(t,e?h:v),i(n)||f(t,a,S,r)})};return Object(n.e)(t,{onBeforeEnter(e){s(C,[e]),u(e,l),u(e,d)},onBeforeAppear(e){s(L,[e]),u(e,m),u(e,g)},onEnter:H(!1),onAppear:H(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>Y(e,t);u(e,O),u(e,_),j(),y(()=>{e._isLeaving&&(b(e,O),u(e,w),i(E)||f(e,a,A,o))}),s(E,[e,o])},onEnterCancelled(e){V(e,!1),s(P,[e])},onAppearCancelled(e){V(e,!0),s(D,[e])},onLeaveCancelled(e){Y(e),s(T,[e])}})}function p(e){return Object(n.x)(e)}function u(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[r]||(e[r]=new Set)).add(t)}function b(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const o=e[r];o&&(o.delete(t),o.size||(e[r]=void 0))}function y(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let v=0;function f(e,t,o,a){const n=e._endId=++v,r=()=>{n===e._endId&&a()};if(o)return setTimeout(r,o);const{type:l,timeout:c,propCount:s}=m(e,t);if(!l)return a();const i=l+"end";let d=0;const p=()=>{e.removeEventListener(i,u),r()},u=t=>{t.target===e&&++d>=s&&p()};setTimeout(()=>{d(o[e]||"").split(", "),n=a("transitionDelay"),r=a("transitionDuration"),l=g(n,r),c=a("animationDelay"),s=a("animationDuration"),i=g(c,s);let d=null,p=0,u=0;"transition"===t?l>0&&(d="transition",p=l,u=r.length):"animation"===t?i>0&&(d="animation",p=i,u=s.length):(p=Math.max(l,i),d=p>0?l>i?"transition":"animation":null,u=d?"transition"===d?r.length:s.length:0);return{type:d,timeout:p,propCount:u,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(a("transitionProperty").toString())}}function g(e,t){for(;e.lengthh(t)+h(e[o])))}function h(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function j(){return document.body.offsetHeight}const O=Symbol("_vod"),_=Symbol("_vsh"),w={beforeMount(e,{value:t},{transition:o}){e[O]="none"===e.style.display?"":e.style.display,o&&t?o.beforeEnter(e):x(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:a}){!t!=!o&&(a?t?(a.beforeEnter(e),x(e,!0),a.enter(e)):a.leave(e,()=>{x(e,!1)}):x(e,t))},beforeUnmount(e,{value:t}){x(e,t)}};function x(e,t){e.style.display=t?e[O]:"none",e[_]=!t}Symbol("");Symbol("_vei"); +/*! #__NO_SIDE_EFFECTS__ */ +"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");const S=["ctrl","shift","alt","meta"],A={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>S.some(o=>e[o+"Key"]&&!t.includes(o))},C=(e,t)=>{const o=e._withMods||(e._withMods={}),a=t.join(".");return o[a]||(o[a]=(o,...a)=>{for(let e=0;e{e.back()},navigateTo:(t,o)=>{o!==a.value&&(a.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const s=o.n(c)()(l,[["render",function(e,t,o,n,r,l){const c=Object(a.z)("router-view");return Object(a.t)(),Object(a.f)("div",{id:"root"},[Object(a.g)("div",{id:"header"},[Object(a.g)("div",{class:"left-title"},[Object(a.I)(Object(a.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},null,8,["src"]),[[a.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(a.t)(),Object(a.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(a.e)("v-if",!0)]),Object(a.g)("label",{class:"title"},Object(a.D)(e.subTitle),1)]),Object(a.g)("div",{class:"body-container",onClick:Object(a.J)(()=>{},["stop"])},[Object(a.e)(" if you don't need keep-alive, just use '' "),Object(a.i)(c,null,{default:Object(a.H)(({Component:e,route:t})=>[(Object(a.t)(),Object(a.d)(a.b,null,[(Object(a.t)(),Object(a.d)(Object(a.A)(e),{key:t.path}))],1024))]),_:1})]),Object(a.g)("div",{class:"bottom-tabs"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tabs,(t,o)=>(Object(a.t)(),Object(a.f)("div",{key:"tab-"+o,class:Object(a.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(a.J)(a=>e.navigateTo(t,o),["stop"])},[Object(a.g)("span",{class:"bottom-tab-text"},Object(a.D)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=s},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return s})),o.d(t,"b",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"f",(function(){return a})),o.d(t,"g",(function(){return d})),o.d(t,"h",(function(){return i})),o.d(t,"i",(function(){return p}));const a=t=>e.getTurboModule("demoTurbo").getString(t),n=t=>e.getTurboModule("demoTurbo").getNum(t),r=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),c=t=>e.getTurboModule("demoTurbo").getObject(t),s=t=>e.getTurboModule("demoTurbo").getArray(t),i=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),d=()=>e.getTurboModule("demoTurbo").getTurboConfig(),p=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),a=o.n(t),n=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function i(e){for(var t=1;t{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const d=Object(n.createApp)(r.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0,styleOptions:{beforeLoadStyle:e=>{let{value:t}=e;if("string"==typeof t&&/rem$/.test(t)){const{screen:e}=n.Native.Dimensions;if("string"==typeof t&&/rem$/.test(t)){const{width:o,height:a}=e;t=Number(parseFloat(""+100*(o>a?o:a)*Number(t.replace("rem",""))/844).toFixed(2))}}return i(i({},e),{},{value:t})}}}),p=Object(l.a)();d.use(p),n.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(n.setScreenSize)({width:e.width,height:e.height})});d.$start().then(({superProps:e,rootViewId:t})=>{Object(c.b)({superProps:e,rootViewId:t}),p.push("/"),n.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),d.mount("#root")})}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return ht}));var a=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var r=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),l=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)(!1);Object(r.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-button-Deactivated")});return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:()=>{e.value=!e.value},onTouchBtnStart:e=>{console.log("onBtnTouchDown",e)},onTouchBtnMove:e=>{console.log("onBtnTouchMove",e)},onTouchBtnEnd:e=>{console.log("onBtnTouchEnd",e)},onClickViewOnce:()=>{o.value=!o.value}}}}),c=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),s=o.n(c);var i=s()(l,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"button-demo"},[Object(n.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(n.g)("button",{class:Object(n.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(n.t)(),Object(n.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(n.t)(),Object(n.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(n.I)(Object(n.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[n.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),d=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=o.n(d);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function b(e){for(var t=1;th},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(r.toRefs)(e),o=Object(r.ref)(null),a=Object(r.ref)(t.value);let n=0,l=0;Object(r.watch)(t,e=>{a.value=e});return{scrollOffsetY:e.positionY,demo1Style:h,ripple1:o,onLayout:()=>{o.value&&y.Native.measureInAppWindow(o.value).then(e=>{n=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-n,t.clientY+a.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var O=s()(j,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"ripple1",style:Object(n.p)(e.wrapperStyle),nativeBackgroundAndroid:g({},e.nativeBackgroundAndroid),onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),onTouchcancel:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[Object(n.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const _=e=>{console.log("onScroll",e)},w=e=>{console.log("onMomentumScrollBegin",e)},x=e=>{console.log("onMomentumScrollEnd",e)},S=e=>{console.log("onScrollBeginDrag",e)},A=e=>{console.log("onScrollEndDrag",e)};var C=Object(r.defineComponent)({components:{DemoRippleDiv:O},setup(){const e=Object(r.ref)(0),t=Object(r.ref)(null);return Object(r.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(r.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+f.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+f.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"},Native:y.Native,offsetY:e,onScroll:_,onMomentumScrollBegin:w,onMomentumScrollEnd:x,onScrollBeginDrag:S,onScrollEndDrag:A,onOuterScroll:t=>{e.value=t.offsetY}}}});o("./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css");var k=s()(C,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("demo-ripple-div");return Object(n.t)(),Object(n.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(n.g)("div",null,["ios"!==e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0},[Object(n.g)("label",null,"水波纹效果: "),Object(n.g)("div",{style:Object(n.p)(b(b({},e.imgRectangle),e.imgRectangleExtra))},[Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"背景图效果:"),Object(n.g)("div",{style:Object(n.p)(e.demo1Style),accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(n.g)("label",null,"渐变色效果:"),Object(n.g)("div",{class:"div-demo-1-1"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(n.g)("label",null,"Transform"),Object(n.g)("div",{class:"div-demo-transform"},[Object(n.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(n.g)("label",null,"水平滚动:"),Object(n.g)("div",{ref:"demo2",class:"div-demo-2",bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1,onScroll:t[0]||(t[0]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[1]||(t[1]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[2]||(t[2]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[3]||(t[3]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[4]||(t[4]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[Object(n.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(n.g)("div",{class:"display-flex flex-row"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])],544),Object(n.g)("label",null,"垂直滚动:"),Object(n.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(n.g)("div",{class:"display-flex flex-column"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var P=Object(r.defineComponent)({components:{AsyncComponentFromLocal:Object(r.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-local.vue"))),AsyncComponentFromHttp:Object(r.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-http.vue")))},setup(){const e=Object(r.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o("./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css");var E=s()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),s=Object(n.z)("AsyncComponentFromHttp");return Object(n.t)(),Object(n.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(n.g)("div",{class:"import-btn"},[Object(n.g)("p",null,"点我异步加载")]),e.loaded?(Object(n.t)(),Object(n.f)("div",{key:0,class:"async-com-wrapper"},[Object(n.i)(c,{class:"async-component-outer-local"}),Object(n.i)(s)])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var T=Object(r.defineComponent)({setup(){const e=Object(r.ref)("https://hippyjs.org"),t=Object(r.ref)("https://hippyjs.org"),o=Object(r.ref)(null),a=Object(r.ref)(null),n=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":y.Native?100:"100vh"},input:o,iframe:a,onLoad:o=>{let{url:n}=o;void 0===n&&a.value&&(n=a.value.src),n&&n!==e.value&&(t.value=n)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&n(o.value))},goToUrl:n,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:a}=e;console.log("onLoadEnd",t,o,a)}}}});o("./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css");var L=s()(T,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"iframe-demo",style:Object(n.p)(e.iframeStyle)},[Object(n.g)("label",null,"地址栏:"),Object(n.g)("input",{id:"address",ref:"input",name:"targetUrl",returnKeyType:"go",value:e.displayUrl,"on:endEditing":t[0]||(t[0]=(...t)=>e.goToUrl&&e.goToUrl(...t)),onKeyup:t[1]||(t[1]=(...t)=>e.onKeyUp&&e.onKeyUp(...t))},null,40,["value"]),Object(n.g)("iframe",{id:"iframe",ref:e.iframe,src:e.targetUrl,method:"get",onLoad:t[2]||(t[2]=(...t)=>e.onLoad&&e.onLoad(...t)),"on:loadStart":t[3]||(t[3]=(...t)=>e.onLoadStart&&e.onLoadStart(...t)),"on:loadEnd":t[4]||(t[4]=(...t)=>e.onLoadEnd&&e.onLoadEnd(...t))},null,40,["src"])],4)}]]);var I=o("./src/assets/hippyLogoWhite.png"),D=o.n(I),V=Object(r.defineComponent)({setup(){const e=Object(r.ref)({});return{defaultImage:f.a,hippyLogoImage:D.a,gifLoadResult:e,onTouchEnd:e=>{console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onTouchMove:e=>{console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchStart:e=>{console.log("onTouchDown",e),e.stopPropagation()},onLoad:t=>{console.log("onLoad",t);const{width:o,height:a,url:n}=t;e.value={width:o,height:a,url:n}}}}});o("./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css");var Y=s()(V,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-img"},[Object(n.g)("div",{id:"demo-img-container"},[Object(n.g)("label",null,"Contain:"),Object(n.g)("img",{alt:"",src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage,class:"image contain",onTouchstart:t[0]||(t[0]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[1]||(t[1]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},null,40,["placeholder"]),Object(n.g)("label",null,"Cover:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover"},null,8,["placeholder"]),Object(n.g)("label",null,"Center:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image center"},null,8,["placeholder"]),Object(n.g)("label",null,"CapInsets:"),Object(n.g)("img",{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover",capInsets:{top:50,left:50,bottom:50,right:50}},null,8,["placeholder"]),Object(n.g)("label",null,"TintColor:"),Object(n.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(n.g)("label",null,"Gif:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",class:"image cover",onLoad:t[3]||(t[3]=(...t)=>e.onLoad&&e.onLoad(...t))},null,40,["placeholder"]),Object(n.g)("div",{class:"img-result"},[Object(n.g)("p",null,"Load Result: "+Object(n.D)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const H=e=>{e.stopPropagation()},B=e=>{console.log(e.value)},R=e=>{console.log("onKeyboardWillShow",e)},N=()=>{console.log("onKeyboardWillHide")};var U=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(""),a=Object(r.ref)(""),n=Object(r.ref)(!1),l=()=>{if(e.value){const t=e.value;if(t.childNodes.length){let e=t.childNodes;return e=e.filter(e=>"input"===e.tagName),e}}return[]};Object(r.onMounted)(()=>{Object(r.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:a,isFocused:n,blur:e=>{e.stopPropagation(),t.value&&t.value.blur()},clearTextContent:()=>{o.value=""},focus:e=>{e.stopPropagation(),t.value&&t.value.focus()},blurAllInput:()=>{const e=l();e.length&&e.map(e=>(e.blur(),!0))},onKeyboardWillShow:R,onKeyboardWillHide:N,stopPropagation:H,textChange:B,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onBlur")},onFocus:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onFocus")}}}});o("./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css");var M=s()(U,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(n.J)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(n.g)("label",null,"文本:"),Object(n.g)("input",{ref:"input",placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0,class:"input",value:e.text,onChange:t[0]||(t[0]=t=>e.text=t.value),onClick:t[1]||(t[1]=(...t)=>e.stopPropagation&&e.stopPropagation(...t)),"on:keyboardWillShow":t[2]||(t[2]=(...t)=>e.onKeyboardWillShow&&e.onKeyboardWillShow(...t)),"on:keyboardWillHide":t[3]||(t[3]=(...t)=>e.onKeyboardWillHide&&e.onKeyboardWillHide(...t)),onBlur:t[4]||(t[4]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[5]||(t[5]=(...t)=>e.onFocus&&e.onFocus(...t))},null,40,["value"]),Object(n.g)("div",null,[Object(n.g)("span",null,"文本内容为:"),Object(n.g)("span",null,Object(n.D)(e.text),1)]),Object(n.g)("div",null,[Object(n.g)("span",null,Object(n.D)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(n.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(n.J)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(n.g)("span",null,"清空文本内容")]),Object(n.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(n.J)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(n.g)("span",null,"Focus")]),Object(n.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(n.J)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(n.g)("span",null,"Blur")]),Object(n.g)("label",null,"数字:"),Object(n.g)("input",{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number",class:"input",onChange:t[9]||(t[9]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[10]||(t[10]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"密码:"),Object(n.g)("input",{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password",class:"input",onChange:t[11]||(t[11]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[12]||(t[12]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"文本(限制5个字符):"),Object(n.g)("input",{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符",class:"input",onChange:t[13]||(t[13]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[14]||(t[14]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32)],512)}],["__scopeId","data-v-ebfef7c0"]]);const z=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],F=e=>{console.log("onAppear",e)},W=e=>{console.log("onDisappear",e)},K=e=>{console.log("onWillAppear",e)},G=e=>{console.log("onWillDisappear",e)},J=e=>{console.log("momentumScrollBegin",e)},q=e=>{console.log("momentumScrollEnd",e)},Q=e=>{console.log("onScrollBeginDrag",e)},X=e=>{console.log("onScrollEndDrag",e)};var Z=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)([]),o=Object(r.ref)(null),a=Object(r.ref)(!1);let n=!1;let l=!1;return Object(r.onMounted)(()=>{n=!1,t.value=[...z]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:a,Platform:y.Native.Platform,onAppear:F,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:W,onEndReached:async o=>{if(console.log("endReached",o),n)return;const a=t.value;n=!0,e.value="Loading now...",t.value=[...a,[{style:100}]];const r=await(async()=>new Promise(e=>{setTimeout(()=>e(z),600)}))();t.value=[...a,...r],n=!1},onWillAppear:K,onWillDisappear:G,changeDirection:()=>{a.value=!a.value},onScroll:e=>{console.log("onScroll",e.offsetY),e.offsetY<=0?l||(l=!0,console.log("onTopReached")):l=!1},onMomentumScrollBegin:J,onMomentumScrollEnd:q,onScrollBeginDrag:Q,onScrollEndDrag:X}}});o("./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css");var $=s()(Z,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-list"},[Object(n.g)("ul",{id:"list",ref:"list",style:Object(n.p)(e.horizontal&&{height:50,flex:0}),horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3,"on:endReached":t[0]||(t[0]=(...t)=>e.onEndReached&&e.onEndReached(...t)),onDelete:t[1]||(t[1]=(...t)=>e.onDelete&&e.onDelete(...t)),onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[3]||(t[3]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[4]||(t[4]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[5]||(t[5]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[6]||(t[6]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.f)("li",{key:o,class:Object(n.o)(e.horizontal&&"item-horizontal-style"),type:t.style,sticky:1===o,onAppear:t=>e.onAppear(o),onDisappear:t=>e.onDisappear(o),"on:willAppear":t=>e.onWillAppear(o),"on:willDisappear":t=>e.onWillDisappear(o)},[1===t.style?(Object(n.t)(),Object(n.f)("div",{key:0,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 1 UI"),1)])])):2===t.style?(Object(n.t)(),Object(n.f)("div",{key:1,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 2 UI"),1)])])):5===t.style?(Object(n.t)(),Object(n.f)("div",{key:2,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 5 UI"),1)])])):(Object(n.t)(),Object(n.f)("div",{key:3,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{id:"loading"},Object(n.D)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(n.t)(),Object(n.f)("div",{key:4,class:"separator-line"})):Object(n.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},onClick:t[7]||(t[7]=(...t)=>e.changeDirection&&e.changeDirection(...t))},[Object(n.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(n.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)(0),o=Object(r.ref)({numberOfLines:2,ellipsizeMode:"tail"}),a=Object(r.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),n=Object(r.ref)("simple");return{img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",labelTouchStatus:e,textMode:o,textShadow:a,textShadowIndex:t,Platform:y.Native.Platform,breakStrategy:n,onTouchTextEnd:t=>{e.value="touch end",console.log("onTextTouchEnd",t),console.log(t)},onTouchTextMove:t=>{e.value="touch move",console.log("onTextTouchMove",t),console.log(t)},onTouchTextStart:t=>{e.value="touch start",console.log("onTextTouchDown",t)},decrementLine:()=>{o.value.numberOfLines>1&&(o.value.numberOfLines-=1)},incrementLine:()=>{o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:e=>{o.value.ellipsizeMode=e},changeTextShadow:()=>{a.value.textShadowOffsetX=t.value%2==1?10:1,a.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{n.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var te=s()(ee,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"p-demo"},[Object(n.g)("div",null,[Object(n.g)("label",null,"不带样式:"),Object(n.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(n.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(n.D)(e.labelTouchStatus),1),Object(n.g)("label",null,"颜色:"),Object(n.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(n.g)("label",null,"尺寸:"),Object(n.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(n.g)("label",null,"粗体:"),Object(n.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(n.g)("label",null,"下划线:"),Object(n.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(n.g)("label",null,"删除线:"),Object(n.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(n.g)("label",null,"自定义字体:"),Object(n.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(n.g)("label",null,"文字阴影:"),Object(n.g)("p",{class:"p-demo-7 p-demo-content",style:Object(n.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(n.g)("label",null,"文本字符间距"),Object(n.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(n.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(n.g)("label",null,"字体 style:"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(n.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(n.g)("p",null,"font-style: [not set]")]),Object(n.g)("label",null,"numberOfLines="+Object(n.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(n.D)(e.textMode.ellipsizeMode),1),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(n.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(n.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(n.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(n.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(n.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(n.g)("span",null,"加一行")]),Object(n.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(n.g)("span",null,"减一行")])]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(n.g)("span",null,"clip")]),Object(n.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(n.g)("span",null,"head")]),Object(n.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(n.g)("span",null,"middle")]),Object(n.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(n.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"p-demo-content"},[Object(n.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(n.D)(e.longText),9,["break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(n.J)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(n.J)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(n.J)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"vertical-align"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字")])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"tint-color & background-color"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"margin"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(r.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var ae=s()(oe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"offset-shadow-demo-content-android"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(r.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:e=>{console.log(e)},changeBreakStrategy:e=>{t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var re=s()(ne,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-textarea"},[Object(n.g)("label",null,"多行文本:"),Object(n.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=t=>e.content=t.value),"on:contentSizeChange":t[1]||(t[1]=(...t)=>e.contentSizeChange&&e.contentSizeChange(...t))},null,40,["value"]),Object(n.g)("div",{class:"output-container"},[Object(n.g)("p",{class:"output"}," 输入的文本为:"+Object(n.D)(e.content),1)]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1},[Object(n.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o("./src/components/demo/demoTurbo.ts"),ce=Object(r.defineComponent)({setup(){let e=null;const t=Object(r.ref)("");return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:async o=>{if("nativeWithPromise"===o)t.value=await Object(le.h)("aaa");else if("getTurboConfig"===o)e=Object(le.g)(),t.value="获取到config对象";else if("printTurboConfig"===o){var a;t.value=Object(le.i)(null!==(a=e)&&void 0!==a?a:Object(le.g)())}else if("getInfo"===o){var n;t.value=(null!==(n=e)&&void 0!==n?n:Object(le.g)()).getInfo()}else if("setInfo"===o){var r;(null!==(r=e)&&void 0!==r?r:Object(le.g)()).setInfo("Hello World"),t.value="设置config信息成功"}else{const e={getString:()=>Object(le.f)("123"),getNum:()=>Object(le.d)(1024),getBoolean:()=>Object(le.b)(!0),getMap:()=>Object(le.c)(new Map([["a","1"],["b","2"]])),getObject:()=>Object(le.e)({c:"3",d:"4"}),getArray:()=>Object(le.a)(["a","b","c"])};t.value=e[o]()}}}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var se=s()(ce,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"demo-turbo"},[Object(n.g)("span",{class:"result"},Object(n.D)(e.result),1),Object(n.g)("ul",{style:{flex:"1"}},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.funList,t=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"cell"},[Object(n.g)("div",{class:"contentView"},[Object(n.g)("div",{class:"func-info"},[Object(n.g)("span",{numberOfLines:0},"函数名:"+Object(n.D)(t),1)]),Object(n.g)("span",{class:"action-button",onClick:Object(n.J)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let ie=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{ie&&1===ie.readyState&&ie.close()};var be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null);return{output:de,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{ue(),ie=new WebSocket(e),ie.onopen=()=>{var e;return pe("[Opened] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onclose=()=>{var e;return pe("[Closed] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onerror=e=>{pe("[Error] "+e.reason)},ie.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),ie&&ie.send(e)})(e)})}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var ye={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:ae},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:i},demoImg:{name:"img 组件",component:Y},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:L},demoWebSocket:{name:"WebSocket",component:s()(be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"websocket-demo"},[Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Url: "),Object(n.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(n.g)("div",{class:"row"},[Object(n.g)("button",{onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(n.g)("span",null,"Connect")]),Object(n.g)("button",{onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(n.g)("span",null,"Disconnect")])])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Message: "),Object(n.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(n.g)("button",{onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(n.g)("span",null,"Send")])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Log: "),Object(n.g)("div",{class:"output fullscreen"},[Object(n.g)("div",null,[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.output,(e,t)=>(Object(n.t)(),Object(n.f)("p",{key:t},Object(n.D)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:E},demoTurbo:{name:"Turbo",component:se}};var ve=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(0),o=Object(r.ref)(0);Object(r.onMounted)(()=>{o.value=y.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const a=t.touches[0].clientX-40;console.log("touchdown x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const a=t.touches[0].clientX-40;console.log("touchmove x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var fe=s()(ve,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"set-native-props-demo"},[Object(n.g)("label",null,"setNativeProps实现拖动效果"),Object(n.g)("div",{class:"native-demo-1-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(n.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(n.g)("div",{class:"splitter"}),Object(n.g)("label",null,"普通渲染实现拖动效果"),Object(n.g)("div",{class:"native-demo-2-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(n.J)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(n.g)("div",{class:"native-demo-2-point",style:Object(n.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var ge=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:me})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var he=s()(ge,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"color-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);const je={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}};var Oe=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(r.ref)(null);return Object(r.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var _e=s()(Oe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const we={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se=Object(r.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(r.toRefs)(e),o=Object(r.ref)(""),a=Object(r.ref)(null);return Object(r.watch)(t,e=>{switch(e){case"horizon":o.value=we;break;case"vertical":o.value=xe;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(r.onMounted)(()=>{e.onRef&&e.onRef(a.value)}),{loopActions:o,animationLoop:a}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Ae=s()(Se,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const Ce={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ke={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Pe=Object(r.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(r.ref)(null),o=Object(r.ref)({face:Ce,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),{isChanged:a}=Object(r.toRefs)(e);return Object(r.watch)(a,(e,a)=>{!a&&e?(console.log("changed to face2"),o.value.face=ke):a&&!e&&(console.log("changed to face1"),o.value.face=Ce),setTimeout(()=>{t.value&&t.value.start()},10)}),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:()=>{console.log("animation-start callback")},animationEnd:()=>{console.log("animation-end callback")},animationRepeat:()=>{console.log("animation-repeat callback")},animationCancel:()=>{console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ee=s()(Pe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(n.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Te=Object(r.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Le=s()(Te,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ie=Object(r.defineComponent)({components:{Loop:Ae,colorComponent:he,CubicBezier:_e},setup(){const e=Object(r.ref)(!0),t=Object(r.ref)(!0),o=Object(r.ref)(!0),a=Object(r.ref)("horizon"),n=Object(r.ref)(!0),l=Object(r.ref)(null),c=Object(r.shallowRef)(Le);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:a,voteComponent:c,colorComponent:he,isChanged:n,animationRef:l,voteUp:()=>{c.value=Le},voteDown:()=>{c.value=Ee,n.value=!n.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{a.value="horizon"===a.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(r.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var De=s()(Ie,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),s=Object(n.z)("color-component"),i=Object(n.z)("cubic-bezier");return Object(n.t)(),Object(n.f)("ul",{id:"animation-demo"},[Object(n.g)("li",null,[Object(n.g)("label",null,"控制动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(n.t)(),Object(n.f)("span",{key:0},"切换为纵向")):(Object(n.t)(),Object(n.f)("span",{key:1},"切换为横向"))])]),Object(n.g)("div",{style:{height:"150px"}},[Object(n.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"点赞笑脸动画:"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(n.g)("span",null,"点赞 👍")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(n.g)("span",null,"踩 👎")])]),Object(n.g)("div",{class:"vote-face-container center"},[(Object(n.t)(),Object(n.d)(Object(n.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"渐变色动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(s,{playing:e.colorPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"贝塞尔曲线动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(i,{playing:e.cubicPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ve=o("./node_modules/vue-router/dist/vue-router.mjs");const Ye=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var He=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)("fade"),a=Object(r.ref)(!1),n=Object(r.ref)(!1),l=Object(r.ref)(!1);return Object(Ve.onBeforeRouteLeave)((t,o,a)=>{e.value||a()}),{supportedOrientations:Ye,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:a,autoHideStatusBar:n,autoHideNavigationBar:l,stopPropagation:e=>{e.stopPropagation()},onClose:o=>{o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:()=>{console.log("Dialog is opening")},onClickView:(t="")=>{e.value=!e.value,o.value=t},onClickOpenSecond:e=>{e.stopPropagation(),t.value=!t.value},onClickDialogConfig:e=>{switch(e){case"hideStatusBar":n.value=!n.value;break;case"immerseStatusBar":a.value=!a.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var Be=s()(He,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"dialog-demo"},[Object(n.g)("label",null,"显示或者隐藏对话框:"),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(n.J)(()=>e.onClickView("slide"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(n.J)(()=>e.onClickView("fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(n.J)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(n.J)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(n.J)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(n.J)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(n.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=(...t)=>e.onShow&&e.onShow(...t)),"on:requestClose":t[13]||(t[13]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[14]||(t[14]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.e)(" dialog on iOS platform can only have one child node "),Object(n.g)("div",{class:"dialog-demo-wrapper"},[Object(n.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(n.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(n.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[10]||(t[10]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(n.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Re=o("./src/util.ts");let Ne;var Ue=Object(r.defineComponent)({setup(){const e=Object(r.ref)("ready to set"),t=Object(r.ref)(""),o=Object(r.ref)(""),a=Object(r.ref)("正在获取..."),n=Object(r.ref)(""),l=Object(r.ref)(""),c=Object(r.ref)(""),s=Object(r.ref)(null),i=Object(r.ref)("请求网址中..."),d=Object(r.ref)("ready to set"),p=Object(r.ref)(""),u=Object(r.ref)(0);return Object(r.onMounted)(()=>{c.value=JSON.stringify(Object(Re.a)()),y.Native.NetInfo.fetch().then(e=>{a.value=e}),Ne=y.Native.NetInfo.addEventListener("change",e=>{a.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{i.value="成功状态: "+e.status}).catch(e=>{i.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:s,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:i,cookieString:d,cookiesValue:p,getSize:async()=>{const e=await y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),o.value=`${e.width}x${e.height}`},setItem:()=>{y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await y.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:()=>{y.Native.Cookie.getAll("https://hippyjs.org").then(e=>{p.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await y.Native.getBoundingClientRect(s.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):n.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{y.EventBus.$emit("testEvent")},eventTriggeredTimes:u}},beforeDestroy(){Ne&&y.Native.NetInfo.removeEventListener("change",Ne),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Me=s()(Ue,[["render",function(e,t,o,a,r,l){var c,s;return Object(n.t)(),Object(n.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(n.g)("div",null,[Object(n.e)(" platform "),e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(n.g)("p",null,Object(n.D)(e.Native.Platform),1)])):Object(n.e)("v-if",!0),Object(n.e)(" device name "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Device"),Object(n.g)("p",null,Object(n.D)(e.Native.Device),1)]),Object(n.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:1,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(n.g)("p",null,Object(n.D)(e.Native.isIPhoneX),1)])):Object(n.e)("v-if",!0),Object(n.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:2,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(n.g)("p",null,Object(n.D)(e.Native.OSVersion||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Internationalization related information "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(n.g)("p",null,Object(n.D)("国际化相关信息")),Object(n.g)("p",null,Object(n.D)("国家 "+(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(n.g)("p",null,Object(n.D)("语言 "+(null===(s=e.Native.Localization)||void 0===s?void 0:s.language)),1),Object(n.g)("p",null,Object(n.D)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(n.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:3,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(n.g)("p",null,Object(n.D)(e.Native.APILevel||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Whether the screen is vertically displayed "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(n.g)("p",null,Object(n.D)(e.Native.screenIsVertical),1)]),Object(n.e)(" width of window "),e.Native.Dimensions.window.width?(Object(n.t)(),Object(n.f)("div",{key:4,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(n.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(n.t)(),Object(n.f)("div",{key:5,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(n.t)(),Object(n.f)("div",{key:6,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(n.t)(),Object(n.f)("div",{key:7,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" the pt value of a pixel "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(n.g)("p",null,Object(n.D)(e.Native.OnePixel),1)]),Object(n.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:8,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(n.t)(),Object(n.f)("div",{key:9,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:10,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The startup parameters passed from the native "),e.superProps?(Object(n.t)(),Object(n.f)("div",{key:11,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(n.g)("p",null,Object(n.D)(e.superProps),1)])):Object(n.e)("v-if",!0),Object(n.e)(" A demo of Native Event,Just show how to use "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"App event"),Object(n.g)("div",null,[Object(n.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(n.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(n.g)("div",{class:"event-btn-result"},[Object(n.g)("p",null,"Event triggered times: "+Object(n.D)(e.eventTriggeredTimes),1)])])]),Object(n.e)(" example of measuring the size of an element "),Object(n.g)("div",{ref:"measure-block",class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(n.g)("span",null,"relative to App")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect1),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(n.g)("span",null,"relative to Container")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect2),1)])],512),Object(n.e)(" local storage "),e.Native.AsyncStorage?(Object(n.t)(),Object(n.f)("div",{key:12,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(n.g)("span",null,"setItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(n.g)("span",null,"removeItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(n.g)("span",null,"getItem")]),Object(n.g)("span",null,Object(n.D)(e.storageValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" ImageLoader "),e.Native.ImageLoader?(Object(n.t)(),Object(n.f)("div",{key:13,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(n.g)("span",null,"getSize")]),Object(n.g)("span",null,Object(n.D)(e.imageSize),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Fetch "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.fetchText),1)])]),Object(n.e)(" network info "),e.Native.NetInfo?(Object(n.t)(),Object(n.f)("div",{key:14,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.netInfoText),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Cookie "),e.Native.Cookie?(Object(n.t)(),Object(n.f)("div",{key:15,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(n.g)("span",null,"setCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookieString),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(n.g)("span",null,"getCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookiesValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" iOS platform "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:16,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(n.g)("p",null,Object(n.D)(e.Native.isIOS()),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Android platform "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:17,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(n.g)("p",null,Object(n.D)(e.Native.isAndroid()),1)])):Object(n.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const ze="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Fe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ze,ze,ze],subInfo:["三图评论","11评"]}},We={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ke={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ge=[Ke,Fe,We,Fe,We,Fe,We,Ke,Fe];var Je=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var qe=s()(Je,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-one"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-one-image-container"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.itemBean.picList,(e,t)=>(Object(n.t)(),Object(n.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])])}]]);var Qe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Xe=s()(Qe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-two"},[Object(n.g)("div",{class:"style-two-left-container"},[Object(n.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])]),Object(n.g)("div",{class:"style-two-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Ze=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=s()(Ze,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-five"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-five-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(r.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ge),800)});var at=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.ref)([...Ge]);let n=!1,l=!1;const c=Object(r.ref)(""),s=Object(r.ref)("继续下拉触发刷新"),i=Object(r.ref)("正在加载...");return Object(r.onMounted)(()=>{n=!1,l=!1,a.value=[...Ge],et=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:c,dataSource:a,headerRefreshText:s,footerRefreshText:i,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,i.value="加载更多...";const t=await ot();0===t.length&&(i.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(y.Native){if(e.value){const t=e.value;console.log("scroll to next page",e,tt.value,et);const o=tt.value.top+et-200;t.scrollTo({left:tt.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:()=>{if(y.Native){if(e.value){const t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var nt=s()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("style-one"),i=Object(n.z)("style-two"),d=Object(n.z)("style-five"),p=Object(n.z)("pull-footer");return Object(n.t)(),Object(n.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(n.g)("span",null,"翻动到底部")]),Object(n.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(n.D)(e.dataSource.length),1)]),Object(n.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(n.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(e,t)=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(n.t)(),Object(n.d)(s,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===e.style?(Object(n.t)(),Object(n.d)(i,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===e.style?(Object(n.t)(),Object(n.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(n.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var rt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("idle"),t=Object(r.ref)(2),o=Object(r.ref)(2);return{dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:()=>{console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:()=>{console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:e=>{console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:e=>{console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:t=>{console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var lt=s()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-swiper"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(n.g)("span",null,"翻到上一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("p",{class:"toolbar-text"}," 当前第 "+Object(n.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(n.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(n.H)(()=>[Object(n.e)(" slides "),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,e=>(Object(n.t)(),Object(n.d)(c,{key:e,style:Object(n.p)({backgroundColor:4278222848+100*e})},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm Slide "+Object(n.D)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(n.e)(" A Demo of dots "),Object(n.g)("div",{id:"swiper-dots"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,t=>(Object(n.t)(),Object(n.f)("div",{key:t,class:Object(n.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let ct=0;const st={top:0,left:5,bottom:0,right:5},it="ios"===y.Native.Platform,dt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ge,...Ge])),600)});var pt=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)([...Ge,...Ge,...Ge,...Ge]);let t=!1,o=!1;const a=Object(r.ref)(!1),n=Object(r.ref)("正在加载..."),l=Object(r.ref)(null),c=Object(r.ref)(null);let s="继续下拉触发刷新",i="正在加载...";const d=Object(r.computed)(()=>a.value?"正在刷新":"下拉刷新"),p=Object(r.ref)(null),u=Object(r.ref)(null),b=Object(r.computed)(()=>(y.Native.Dimensions.screen.width-st.left-st.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:st,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await dt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,i="加载更多...";const o=await dt();0===o.length&&(i="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:it,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:s,footerRefreshText:i,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ut=s()(pt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("waterfall-item"),i=Object(n.z)("style-one"),d=Object(n.z)("style-two"),p=Object(n.z)("style-five"),u=Object(n.z)("pull-footer"),b=Object(n.z)("waterfall");return Object(n.t)(),Object(n.f)("div",{id:"demo-waterfall"},[Object(n.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(n.H)(()=>[Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])):(Object(n.t)(),Object(n.d)(s,{key:1,"full-span":!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"BannerView")]),_:1})),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(s,{key:o,style:Object(n.p)({width:e.itemWidth}),type:t.style,onClick:Object(n.J)(()=>e.onClickItem(o),["stop"])},{default:Object(n.H)(()=>[1===t.style?(Object(n.t)(),Object(n.d)(i,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===t.style?(Object(n.t)(),Object(n.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===t.style?(Object(n.t)(),Object(n.d)(p,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(n.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var bt=Object(r.defineComponent)({setup(){const e=Object(r.ref)(0),t=Object(r.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:t=>{e.value=t.height},onTabClick:e=>{t.value=e-1},onDropped:e=>{t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var yt={demoNative:{name:"Native 能力",component:Me},demoAnimation:{name:"animation 组件",component:De},demoDialog:{name:"dialog 组件",component:Be},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:nt},demoWaterfall:{name:"waterfall 组件",component:ut},demoNestedScroll:{name:"nested scroll 示例",component:s()(bt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(n.g)("div",{id:"demo-content"},[Object(n.g)("div",{id:"banner"}),Object(n.g)("div",{id:"tabs"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(2,t=>Object(n.g)("p",{key:"tab"+t,class:Object(n.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(n.D)(t)+" "+Object(n.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(n.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(n.H)(()=>[Object(n.i)(c,{key:"slide1"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1}),Object(n.i)(c,{key:"slide2"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"self"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:fe}};var vt=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(yt).map(e=>({id:e,name:yt[e].name}));return Object(r.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:r.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var ft=s()(vt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("router-link");return Object(n.t)(),Object(n.f)("ul",{class:"feature-list"},[Object(n.g)("li",null,[Object(n.g)("div",{id:"version-info"},[Object(n.g)("p",{class:"feature-title"}," Vue: "+Object(n.D)(e.version),1),e.Native?(Object(n.t)(),Object(n.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(n.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(n.e)("v-if",!0)])]),Object(n.g)("li",null,[Object(n.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.featureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(n.t)(),Object(n.f)("li",{key:0},[Object(n.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(n.e)("v-if",!0),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.nativeFeatureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var mt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(r.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Re.a)();y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");const gt=[{path:"/",component:ft},{path:"/remote-debug",component:s()(mt,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(n.g)("div",{class:"tips-wrap"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tips,(t,o)=>(Object(n.t)(),Object(n.f)("p",{key:o,class:"tips-item",style:Object(n.p)(e.styles.tipText)},Object(n.D)(o+1)+". "+Object(n.D)(t),5))),128))]),Object(n.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(n.J)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value"]),Object(n.g)("div",{class:"buttonContainer",style:Object(n.p)(e.styles.buttonContainer)},[Object(n.g)("button",{style:Object(n.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(n.g)("span",{style:Object(n.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(ye).map(e=>({path:"/demo/"+e,name:ye[e].name,component:ye[e].component})),...Object.keys(yt).map(e=>({path:"/demo/"+e,name:yt[e].name,component:yt[e].component}))];function ht(){return Object(a.createHippyRouter)({routes:gt})}},"./src/util.ts":function(e,t,o){"use strict";let a;function n(e){a=e}function r(){return a}o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue3/vendor.android.js b/framework/examples/android-demo/res/vue3/vendor.android.js index 1ef0f1ad6db..a1493bdc41b 100644 --- a/framework/examples/android-demo/res/vue3/vendor.android.js +++ b/framework/examples/android-demo/res/vue3/vendor.android.js @@ -1,8 +1,8 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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-vue-next/dist/index.js":function(e,t,n){"use strict";(function(e,r){ /*! - * @hippy/vue-next v3.3.0 - * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.0) - * Build at: Thu Jun 20 2024 15:23:50 GMT+0800 (中国标准时间) + * @hippy/vue-next v3.3.1 + * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.1) + * Build at: Mon Aug 26 2024 14:48:41 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -22,7 +22,7 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports; * See the License for the specific language governing permissions and * limitations under the License. */ -const o=["mode","valueType","startValue","toValue"],i=["transform"],s=["transform"];function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(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 l(e){for(var t=1;t]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=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,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},d.apply(this,arguments)}function p(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var h=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"),m=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");const v={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},g=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,y="[-+]?\\d*\\.?\\d+",b={rgb:new RegExp("rgb"+g(y,y,y)),rgba:new RegExp("rgba"+g(y,y,y,y)),hsl:new RegExp("hsl"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",y)),hex3:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex4:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},O=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},_=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},E=(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},S=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=E(o,r,e+1/3),s=E(o,r,e),c=E(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},w=e=>(parseFloat(e)%360+360)%360/360,N=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function x(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=b.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(v,e)?v[e]:(t=b.rgb.exec(e),Array.isArray(t)?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|255)>>>0:(t=b.rgba.exec(e),t?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|_(t[4]))>>>0:(t=b.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=b.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=b.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=b.hsl.exec(e),t?(255|S(w(t[1]),N(t[2]),N(t[3])))>>>0:(t=b.hsla.exec(e),t?(S(w(t[1]),N(t[2]),N(t[3]))|_(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const T={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},j={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},k="turn",C="rad",A="deg",I=/\/\*[\s\S]{0,1000}?\*\//gm;const P=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function M(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=d(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";let r="180";const[o,i,s]=n;return i&&s?r=function(e,t=A){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case k:r=""+(360*n).toFixed(2);break;case C:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==j[o]&&(r=j[o]),r}function L(e=""){const t=e.replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:x(n)}:null:{color:x(n)}}function F(e,t){let n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},e.forEach((e,t)=>{if(0===t){const t=M(e);if(t)n.angle=t;else{n.angle="180";const t=L(e);t&&o.push(t)}}else{const t=L(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}class D{constructor(){this.changeMap=new Map}addAttribute(e,t){const n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}addPseudoClass(e,t){const n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}properties(e){let t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}class V{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.lookupSort(this))}static removeFromMap(e,t,n){const r=e[t],o=r.findIndex(e=>{var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)});-1!==o&&r.splice(o,1)}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e,t){const{tagName:n,id:r,classList:o,props:i}=e;let s=r,c=o;if(null==i?void 0:i.attributes){const{attributes:e}=i;c=new Set(((null==e?void 0:e.class)||"").split(" ").filter(e=>e.trim())),s=e.id}const a=[this.universal,this.id[s],this.type[n]];(null==c?void 0:c.size)&&c.forEach(e=>a.push(this.class[e]));const l=a.filter(e=>!!e).reduce((e,t)=>e.concat(t),[]),u=new D;return u.selectors=l.filter(n=>n.sel.accumulateChanges(e,u,t)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),u}removeById(e,t){V.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){V.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){V.removeFromMap(this.type,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)});-1!==t&&this.universal.splice(t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,n){this.position+=1;const r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function B(e){return e?" "+e:""}function $(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}class U{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class H extends U{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}match(e){return!!e}mayMatch(e){return this.match(e)}trackChanges(e,t){}}class Y extends H{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof H&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${B(this.combinator)}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof H&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof H&&this.head.removeSort(e,null!=t?t:this)}}class W extends H{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+B(this.combinator)}match(){return!0}}class z extends H{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${B(this.combinator)}`}match(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class K extends H{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${B(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,null!=t?t:this)}removeSort(e,t){e.removeByType(this.cssType,null!=t?t:this)}}class G extends H{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${B(this.combinator)}`}match(e){var t,n,r;if(!e)return!1;const o=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter(e=>e.trim()));return!(!o.size||!o.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,null!=t?t:this)}removeSort(e,t){e.removeByClass(this.className,null!=t?t:this)}}class q extends H{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${B(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const J=(e,t)=>{var n,r,o;const i=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==i?i:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(o=null==e?void 0:e.styleScopeId)||void 0===o?void 0:o.includes(t))?t:void 0};class X extends H{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?r=>{if(!r||!(null==r?void 0:r.attributes)&&!(null==r?void 0:r.props[e]))return!1;const o=""+J(r,e);if("="===t)return o===n;if("^="===t)return o.startsWith(n);if("$="===t)return o.endsWith(n);if("*="===t)return-1!==o.indexOf(n);if("~="===t){const e=o.split(" ");return-1!==(null==e?void 0:e.indexOf(n))}return"|="===t&&(o===n||o.startsWith(n+"-"))}:()=>!1:t=>!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!function(e){return null==e}(J(t,e))}toString(){return`[${this.attribute}${B(this.test)}${this.test&&this.value||""}]${B(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Z extends H{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.error=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Q{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class ee{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class te extends U{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],r=[];const o=[],i=[...e],s=i.length-1;this.specificity=0,this.dynamic=!1;for(let e=s;e>=0;e--){const s=i[e];if(-1===t.indexOf(s.combinator))throw console.error(`Unsupported combinator "${s.combinator}".`),new Error(`Unsupported combinator "${s.combinator}".`);void 0!==s.combinator&&" "!==s.combinator||o.push(r=[n=[]]),">"===s.combinator&&r.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=o.map(e=>new Q(e.map(e=>new ee(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e,t){return!!e&&this.groups.every((n,r)=>{if(0===r)return!!(e=n.match(e));let o=$(e,t);for(;o;){if(e=n.match(o))return!0;o=$(o,t)}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t,n){if(!this.dynamic)return this.match(e,n);const r=[],o=this.groups.every((t,o)=>{if(0===o){const n=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=n)}let i=$(e,n);for(;i;){const o=t.mayMatch(i);if(o)return r.push({left:i,right:null}),e=o,!0;i=$(i,n)}return!1});if(!o)return!1;if(!t)return o;for(let e=0;e(e.ruleSet=this,null)),this.selectors=e,this.declarations=t,this.hash=n}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}const re=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),oe={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ie={};function se(e,t,n){let r="";re&&(r="gy"),ie[e]||(ie[e]=new RegExp(oe[e],r));const o=ie[e];let i;if(re)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),i=o.exec(t),!i)return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function ce(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=se("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:r.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){const{result:n,regexp:r}=se("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){const{result:n,regexp:r}=se("attributeSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:o}}return{value:{type:"[]",property:i},start:t,end:o}}(e,t)}function ae(e,t){let n=ce(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=ce(e,r);return{start:t,end:r,value:o}}function le(e,t){const{result:n,regexp:r}=se("combinatorRegEx",e,t);if(!n)return null;let o;o=re?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}const ue=e=>e;function de(e){return"declaration"===e.type}function pe(e){return t=>e(t)}function fe(e){switch(e.type){case"*":return new W;case"#":return new z(e.identifier);case"":return new K(e.identifier.replace(/-/,"").toLowerCase());case".":return new G(e.identifier);case":":return new q(e.identifier);case"[]":return e.test?new X(e.property,e.test,e.value):new X(e.property);default:return null}}function he(e){return 0===e.length?new Z(new Error("Empty simple selector sequence.")):1===e.length?fe(e[0]):new Y(e.map(fe))}function me(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=se("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=re?[e]:e.split(" "),c.forEach(e=>{if(!re){if(""===e)return;n=0}do{const t=ae(e,n);if(!t){if(a)return;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=le(e,n),s&&({end:n}=s),a=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e,0);return t?function(e){if(0===e.length)return new Z(new Error("Empty selector."));if(1===e.length)return he(e[0][0]);const t=[];for(const n of e){const e=he(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new te(t)}(t.value):new Z(new Error("Empty selector"))}catch(e){return new Z(e)}}let ve;function ge(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function ye(t,n){if(t){if(!ge(ve))return ve;const e=function(e=[],t){return e.map(e=>{let n=e[0],r=e[1];return r=r.map(e=>{const[t,n]=e;return{type:"declaration",property:t,value:n}}).map(pe(null!=t?t:ue)),n=n.map(me),new ne(n,r,"")})}(t,n);return ve=new V(e),ve}const r=e[be];if(ge(ve)||r){const t=function(e=[],t){return e.map(e=>{const n=e.declarations.filter(de).map(pe(null!=t?t:ue)),r=e.selectors.map(me);return new ne(r,n,e.hash)})}(r);ve?ve.append(t):ve=new V(t),e[be]=void 0}return e[Oe]&&(e[Oe].forEach(e=>{ve.delete(e)}),e[Oe]=void 0),ve}const be="__HIPPY_VUE_STYLES__",Oe="__HIPPY_VUE_DISPOSE_STYLES__";let _e=Object.create(null);const Ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{Ee.$on(e,t,n)}):(_e[e]||(_e[e]=[]),_e[e].push({fn:t,ctx:n})),Ee),$once(e,t,n){function r(...o){Ee.$off(e,r),t.apply(n,o)}return r._=t,Ee.$on(e,r),Ee},$emit(e,...t){const n=(_e[e]||[]).slice(),r=n.length;for(let e=0;e{Ee.$off(e,t)}),Ee;const n=_e[e];if(!n)return Ee;if(!t)return _e[e]=null,Ee;let r;const o=n.length;for(let e=0;ee;function Pe(){return Ie}let Re=(e,t)=>{};function Me(e,t){const n=new Map;return Array.isArray(e)?e.forEach(([e,t])=>{n.set(e,t),n.set(t,e)}):(n.set(e,t),n.set(t,e)),n}function Le(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function Fe(e){return"on"+h.capitalize(e)}function De(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=Fe(e[0]),r=Fe(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Ve(e,t){return!(!t||!e)&&e.match(t)}function Be(e){return e.split(" ").filter(e=>e.trim())}var $e;const Ue=["%c[native]%c","color: red","color: auto"],He={},{bridge:{callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze},device:{platform:{OS:Ke,Localization:Ge={}},screen:{scale:qe}},device:Je,document:Xe,register:Ze,asyncStorage:Qe}=null!==($e=e.Hippy)&&void 0!==$e?$e:{device:{platform:{Localization:{}},window:{},screen:{}},bridge:{},register:{},document:{},asyncStorage:{}},et=async(e,t)=>{const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:r}=e;return Te(...Ue,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>Xe.callUIFunction(r,t,[],t=>{if(!t||"object"!=typeof t||void 0===r)return e(n);const{x:o,y:i,height:s,width:c}=t;return e({top:i,left:o,width:c,height:s,bottom:i+s,right:o+c})}))},tt=new Map,nt={Localization:Ge,hippyNativeDocument:Xe,hippyNativeRegister:Ze,Platform:Ke,PixelRatio:qe,ConsoleModule:e.ConsoleModule||e.console,callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze,AsyncStorage:Qe,callUIFunction(...e){const[t,n,...r]=e;if(!(null==t?void 0:t.nodeId))return;const{nodeId:o}=t;let[i=[],s]=r;"function"==typeof i&&(s=i,i=[]),Te(...Ue,"callUIFunction",{nodeId:o,funcName:n,params:i}),Xe.callUIFunction(o,n,i,s)},Clipboard:{getString(){return nt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){nt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return nt.callNativeWithPromise.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Native.Cookie.set() must have url argument");let r="";n&&(r=n.toUTCString()),nt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return nt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){nt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=Je,{statusBarHeight:t}=e;return{window:Je.window,screen:l(l({},e),{},{statusBarHeight:t})}},get Device(){var t;return void 0===He.Device&&(nt.isIOS()?(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Device)?He.Device=e.__HIPPYNATIVEGLOBAL__.Device:He.Device="iPhone":nt.isAndroid()?He.Device="Android device":He.Device="Unknown device"),He.Device},get screenIsVertical(){return nt.Dimensions.window.width"android"===nt.Platform,isIOS:()=>"ios"===nt.Platform,measureInWindow:e=>et(e,"measureInWindow"),measureInAppWindow:e=>nt.isAndroid()?et(e,"measureInWindow"):et(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((r,o)=>{if(!e.isMounted||!n)return o(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));Te(...Ue,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Xe.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return o(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let c=void 0,a=void 0;return"number"==typeof n&&"number"==typeof s&&(c=n+s),"number"==typeof t&&"number"==typeof i&&(a=t+i),r({x:t,y:n,width:i,height:s,bottom:c,right:a,left:t,top:n})})})},NetInfo:{fetch:()=>nt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===tt.size&&nt.callNative("NetInfo","addListener",n),Ee.$on(n,t),tt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(nt.NetInfo.removeEventListener(this.eventName,this.listener),this.listener=void 0)}}},removeEventListener(e,t){if(null==t?void 0:t.remove)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange"),tt.size<=1&&nt.callNative("NetInfo","removeListener",n);const r=tt.get(t);r&&(Ee.$off(n,r),tt.delete(t),tt.size<1&&nt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===He.isIPhoneX){let e=!1;nt.isIOS()&&(e=20!==nt.Dimensions.screen.statusBarHeight),He.isIPhoneX=e}return He.isIPhoneX},get OnePixel(){if(void 0===He.OnePixel){const e=nt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),He.OnePixel=t}return He.OnePixel},get APILevel(){var t,n;return nt.isAndroid()&&(null===(n=null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Platform)||void 0===n?void 0:n.APILevel)?e.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(je(),null)},get OSVersion(){var t;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?e.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var t,n;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?null===(n=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===n?void 0:n.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=He.COLOR_PARSER)&&void 0!==t?t:He.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=x(e)),n[e]},getElemCss(e){const t=Object.create(null);try{ye(void 0,Pe()).query(e).selectors.forEach(n=>{Ve(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){je()}return t},version:"3.3.0"},rt=new Set;let ot=!1;const it={exitApp(){nt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ot||(ot=!0,it.initEventListener()),nt.callNative("DeviceEventModule","setListenBackPress",!0),rt.add(e),{remove(){it.removeListener(e)}}),removeListener(e){rt.delete(e),0===rt.size&&nt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(rt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&it.exitApp()})}},st={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ct=nt.isAndroid()?it:st,at=new Map;function lt(e,t){if(!e)throw new Error("tagName can not be empty");const n=ke(e);at.has(n)||at.set(n,t.component)}function ut(e){const t=ke(e),n=h.camelize(e).toLowerCase();return at.get(t)||at.get(n)}const dt=new Map,pt={number:"numeric",text:"default",search:"web-search"},ft={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},ht={component:{name:we.View,eventNamesMap:Me([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},ft),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y,(null==t?void 0:t.contentSize)&&(o.scrollHeight=t.contentSize.height,o.scrollWidth=t.contentSize.width);break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":o.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":o.isFocused=t.focus}return o}}},mt={component:{name:we.View,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData}},vt={component:{name:we.View}},gt={component:{name:we.Image,eventNamesMap:ht.component.eventNamesMap,processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":n.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":n.isFocused=t.focus;break;case"onLoad":{const{width:e,height:r,url:o}=t;n.width=e,n.height=r,n.url=o;break}}return n},defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=Le(e);return(null==t?void 0:t.indexOf(Se))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&je(),t}},src:e=>Le(e)},ft)}},yt={component:{name:we.ListView,defaultNativeStyle:{flex:1},attributeMaps:l({},ft),eventNamesMap:Me("listReady","initialListReady"),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":o.index=t.index}return o}}},bt={component:{name:we.ListViewItem,attributeMaps:l({},ft),eventNamesMap:Me([["disappear","onDisappear"]])}},Ot={component:{name:we.Text,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},_t=Ot,Et=Ot,St={component:l(l({},Ot.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(je(),""):e}}})},wt={component:{name:we.TextInput,attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=pt[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ft),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Me([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onChangeText":case"onEndEditing":n.value=t.text;break;case"onSelectionChange":n.start=t.selection.start,n.end=t.selection.end;break;case"onKeyboardWillShow":n.keyboardHeight=t.keyboardHeight;break;case"onContentSizeChange":n.width=t.contentSize.width,n.height=t.contentSize.height}return n}}},Nt={component:{name:we.TextInput,defaultNativeProps:l(l({},wt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},wt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:wt.component.defaultNativeStyle,eventNamesMap:wt.component.eventNamesMap,processEventData:wt.component.processEventData}},xt={component:{name:we.WebView,defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onLoad":case"onLoadStart":n.url=t.url;break;case"onLoadEnd":n.url=t.url,n.success=t.success,n.error=t.error}return n}}};dt.set("div",ht),dt.set("button",mt),dt.set("form",vt),dt.set("img",gt),dt.set("ul",yt),dt.set("li",bt),dt.set("span",Ot),dt.set("label",_t),dt.set("p",Et),dt.set("a",St),dt.set("input",wt),dt.set("textarea",Nt),dt.set("iframe",xt);var Tt={install(){dt.forEach((e,t)=>{lt(t,e)})}};function jt(){const{Localization:e}=nt;return!!e&&1===e.direction}const kt=0,Ct=1,At={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},It={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Pt="addEventListener",Rt="removeEventListener";let Mt;function Lt(){return Mt}function Ft(e,t){Mt[e]=t}class Dt{constructor(e){this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.timeStamp=Date.now()}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){if(this.cancelable){if(this.isCanceled)return;this.isCanceled=!0}}}class Vt extends Dt{}function Bt(e){return"string"==typeof e.value}const $t=new Map;function Ut(e,t){$t.set(t,e)}function Ht(e){$t.delete(e)}function Yt(e){return $t.get(e)||null}function Wt(t){var n,r;n=e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Ht(t):t&&(Ht(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout(()=>{n({didTimeout:!1,timeRemaining:()=>1/0})},1)}function zt(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new Vt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{layout:{x:t,y:n,height:r,width:o}}=s;e.top=n,e.left=t,e.bottom=n+r,e.right=t+o,e.width=o,e.height=r}else{e=new Dt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{processEventData:t}=l.component;t&&t({__evt:o,handler:e},s)}a.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else je(...Gt,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=qt);class Jt{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&h.looseEqual(e.options,n):e.callback===t)}addEventListener(e,t,n){const r=e.split(","),o=r.length;for(let e=0;e=0&&e.splice(r,1),e.length||(this.listeners[o]=void 0)}}}else this.listeners[o]=void 0}}emitEvent(e){var t,n;const{type:r}=e,o=this.listeners[r];if(o)for(let r=o.length-1;r>=0;r-=1){const i=o[r];(null===(t=i.options)||void 0===t?void 0:t.once)&&o.splice(r,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventListenerList(){return this.listeners}}var Xt;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Xt||(Xt={}));let Zt=!1,Qt=[];function en(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:o,listener:i}=e;let s;s=function(e){return!!At[e]}(r)?At[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ct&&t.removeEventListener(n,s,i),o===kt&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function tn(e,t){0}function nn(){Zt||(Zt=!0,0!==Qt.length?m.nextTick().then(()=>{const t=function(e){const t=[];for(const n of e){const{type:e,nodes:r,eventNodes:o,printedNodes:i}=n,s=t[t.length-1];s&&s.type===e?(s.nodes=s.nodes.concat(r),s.eventNodes=s.eventNodes.concat(o),s.printedNodes=s.printedNodes.concat(i)):t.push({type:e,nodes:r,eventNodes:o,printedNodes:i})}return t}(Qt),{rootViewId:n}=Lt(),r=new e.Hippy.SceneBuilder(n);t.forEach(e=>{switch(e.type){case Xt.CREATE:tn(e.printedNodes),r.create(e.nodes,!0),en(e.eventNodes,r);break;case Xt.UPDATE:tn(e.printedNodes),r.update(e.nodes),en(e.eventNodes,r);break;case Xt.DELETE:tn(e.printedNodes),r.delete(e.nodes);break;case Xt.MOVE:tn(e.printedNodes),r.move(e.nodes);break;case Xt.UPDATE_EVENT:en(e.eventNodes,r)}}),r.build(),Zt=!1,Qt=[]}):Zt=!1)}var rn;function on(e){let t;const n=e.events;if(n){const r=[];Object.keys(n).forEach(e=>{const{name:t,type:o,isCapture:i,listener:s}=n[e];r.push({name:t,type:o,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rn||(rn={}));class sn extends Jt{constructor(e,t){var n;super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:sn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===rn.ElementNode}(e),(null==t?void 0:t.id)&&(this.isMounted=!0)}static getUniqueNodeId(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get component(){return this.tagComponent}get index(){let e=0;if(this.parentNode){e=this.parentNode.childNodes.filter(e=>e.isNeedInsertToNative).indexOf(this)}return e}isRootNode(){return 1===this.nodeId}hasChildNodes(){return!!this.childNodes.length}insertBefore(e,t){const n=e,r=t;if(!n)throw new Error("No child to insert");if(!r)return void this.appendChild(n);if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");let o=this;r.parentNode!==this&&(o=r.parentNode);const i=o.childNodes.indexOf(r);let s=r;r.isNeedInsertToNative||(s=zt(this.childNodes,i)),n.parentNode=o,n.nextSibling=r,n.prevSibling=o.childNodes[i-1],o.childNodes[i-1]&&(o.childNodes[i-1].nextSibling=n),r.prevSibling=n,o.childNodes.splice(i,0,n),s.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}moveChild(e,t){const n=e,r=t;if(!n)throw new Error("No child to move");if(!r)return void this.appendChild(n);if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");const o=this.childNodes.indexOf(n),i=this.childNodes.indexOf(r);let s=r;if(r.isNeedInsertToNative||(s=zt(this.childNodes,i)),i===o)return;n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=n),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=n),this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=this.childNodes[o+1]),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=this.childNodes[o-1]),this.childNodes.splice(o,1);const c=this.childNodes.indexOf(r);this.childNodes.splice(c,0,n),s.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}appendChild(e,t=!1){const n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?Ut(n,n.nodeId):this.insertChildNativeNode(n)))}removeChild(e){const t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode!==this)return void t.parentNode.removeChild(t);if(!t.isNeedInsertToNative)return;t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;const n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(const t of this.childNodes){const n=this.findChild.call(t,e);if(n)return n}return null}eachNode(e){e&&e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.eachNode.call(t,e)})}insertChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;const n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){const r=n?this:e;!function([e,t,n]){Qt.push({type:Xt.CREATE,nodes:e,eventNodes:t,printedNodes:n}),nn()}(r.convertToNativeNodes(!0,t)),r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Ut(t,t.nodeId)})}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Qt.push({type:Xt.MOVE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(Qt.push({type:Xt.DELETE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Qt.push({type:Xt.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),nn())}(this.convertToNativeNodes(e,{}))}updateNativeEvent(){if(!this.isMounted)return;!function(e){Qt.push({type:Xt.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),nn()}(on(this))}convertToNativeNodes(e,t={},n){var r,o;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){const e=[],n=[],r=[];return this.eachNode(o=>{const[i,s,c]=o.convertToNativeNodes(!1,t);Array.isArray(i)&&i.length&&e.push(...i),Array.isArray(s)&&s.length&&n.push(...s),Array.isArray(c)&&c.length&&r.push(...c)}),[e,n,r]}if(!this.component)throw new Error("tagName is not supported yet");const{rootViewId:i}=Lt(),s=null!=n?n:{},c=l({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=on(this);let u=void 0;return[[[c,t]],[a],[u]]}}class cn extends sn{constructor(e,t){super(rn.TextNode,t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}setText(e){this.text=e,this.parentNode&&this.parentNode.nodeType===rn.ElementNode&&this.parentNode.setText(e)}}function an(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;e{t[n]=function(e){let t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;const{ratioBaseWidth:n}=Lt(),{width:r}=nt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=ut(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Lt();return super.isRootNode()||this.id===e}appendChild(e,t=!1){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e,t)}insertBefore(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof cn&&this.setText("",{notToNative:!0}),super.removeChild(e)}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}removeAttribute(e){delete this.attributes[e]}setAttribute(e,t,n={}){let r=t,o=e;try{if("boolean"==typeof this.attributes[o]&&""===r&&(r=!0),void 0===o)return void(!n.notToNative&&this.updateNativeNode());switch(o){case"class":{const e=new Set(Be(r));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let r=n.next().value;for(;r;){if(!t.has(r))return!1;r=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&this.updateNativeNode(!0))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){je(e.message)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===xe||xe?i.trim():i),r=r.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)));break;case"numberOfRows":if(!nt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=nt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=nt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=nt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=nt.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}var i}setText(e,t={}){return this.setAttribute("text",e,{notToNative:!!t.notToNative})}removeStyle(e=!1){this.style={},e||this.updateNativeNode()}setStyles(e){e&&"object"==typeof e&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),this.updateNativeNode())}setStyle(e,t,n=!1){if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());let{property:r,value:o}=this.beforeLoadStyle({property:e,value:t});switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=F(r,o);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){var r;const o=n;return o.textShadowOffset=null!==(r=o.textShadowOffset)&&void 0!==r?r:{},Object.assign(o.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t}),["textShadowOffset",o.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=null!=o?o:{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(T,r)&&(r=T[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?nt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(Ae.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||this.updateNativeNode())}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let r=n;!1===r&&(r=0),nt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}scrollTo(e,t,n){if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto",duration:o}=e;this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+Ce(e);if(this.component){const{eventNamesMap:n}=this.component;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}addEventListener(e,t,n){let r=e,o=t,i=n,s=!0;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);const c=this.getNativeEventName(r);this.attributes[c]&&(s=!1),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Pt,r,o,i)),super.addEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==kt&&(this.events[t].type=kt):this.events[t]={name:t,type:kt,listener:(n=t,r=e,e=>{const{id:t,currentId:o,params:i,eventPhase:s}=e,c={id:t,nativeName:n,originalName:r,currentId:o,params:i,eventPhase:s};qt.receiveComponentEvent(c,e)}),isCapture:!1}}),s&&this.updateNativeEvent()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Rt,r,o,i)),super.removeEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ct)});const s=this.getNativeEventName(r);this.attributes[s]&&delete this.attributes[s],this.updateNativeEvent()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,Bt(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}convertToNativeNodes(e,t={}){if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return super.convertToNativeNodes(!0,t);let n=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof ln){const e=this.parentNode.processedStyle;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!n[t]&&e[t]&&(n[t]=e[t])})}if(Re(this,n),this.component.defaultNativeStyle){const{defaultNativeStyle:e}=this.component,t={};Object.keys(e).forEach(n=>{this.getAttribute(n)||(t[n]=e[n])}),n=l(l({},t),n)}this.processedStyle=n;const r={name:this.component.name,props:l(l({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return function(e,t){const n=t;e.component.name===we.TextInput&&jt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===we.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&je(),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=jt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&je(),e.childNodes.length&&e.nodeType===rn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Le(o.backgroundImage)))}(this,r,n),super.convertToNativeNodes(!1,t,r)}repaintWithChildren(){this.updateNativeNode(!0)}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}setPressed(e){nt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){nt.callUIFunction(this,"setHotspot",[e,t])}setStyleScope(e){const t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}get styleScopeId(){return this.scopedIdList}getInlineStyle(){const e={};return Object.keys(this.style).forEach(t=>{const n=m.toRaw(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return ye(void 0,Pe()).query(this).selectors.forEach(t=>{var n,r;Ve(t,this)&&(null===(r=null===(n=t.ruleSet)||void 0===n?void 0:n.declarations)||void 0===r?void 0:r.length)&&t.ruleSet.declarations.forEach(t=>{t.property&&(e[t.property]=t.value)})}),this.ssrInlineStyle&&(e=l(l({},e),this.ssrInlineStyle)),e=ln.parseRem(l(l({},e),this.getInlineStyle())),e}getNativeProps(){const e={},{defaultNativeProps:t}=this.component;t&&Object.keys(t).forEach(n=>{if(void 0===this.getAttribute(n)){const r=t[n];e[n]=h.isFunction(r)?r(this):m.toRaw(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=m.toRaw(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=m.toRaw(r));const o=this.component.attributeMaps[t];if(h.isString(o))return void(e[o]=m.toRaw(r));if(h.isFunction(o))return void(e[t]=m.toRaw(o(r)));const{name:i,propsValue:s,jointKey:c}=o;h.isFunction(s)&&(r=s(r)),c?(e[c]=null!==(n=e[c])&&void 0!==n?n:{},Object.assign(e[c],{[i]:m.toRaw(r)})):e[i]=m.toRaw(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=m.toRaw(n[t])}),e}getNodeAttributes(){var e;try{const t=function e(t,n=new WeakMap){if("object"!=typeof t||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);const r={};return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof i||null===i?r[o]=i:Array.isArray(i)?r[o]=[...i]:i instanceof Set?r[o]=new Set([...i]):i instanceof Map?r[o]=new Map([...i]):(n.set(t,t),r[o]=e(i,n))}),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=l({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach(e=>{e.toLowerCase().includes("color")&&delete r[e]}),r}catch(e){return{}}}getNativeEvents(){const e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){const{eventNamesMap:r}=this.component;n.forEach(n=>{const o=null==r?void 0:r.get(n);if(o)e[o]=!!t[n];else{const r="on"+Ce(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){var e;let t=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>t,set:e=>{t=void 0===e?"flex":e,this.updateNativeNode()}})}}function un(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?nt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function u(t){const{mode:i="timing",valueType:s,startValue:u,toValue:d}=t,p=c(t,o),f=l(l({},n),p);void 0!==s&&(f.valueType=t.valueType),f.startValue=r(f.valueType,u),f.toValue=r(f.valueType,d),f.repeatCount=a(f.repeatCount),f.mode=i;const h=new e.Hippy.Animation(f),m=h.getId();return{animation:h,animationId:m}}function d(t,n={}){const r={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const i=t[o],{repeatCount:s}=i[i.length-1],c=i.map(e=>{const{animationId:t,animation:r}=u(l(l({},e),{},{repeatCount:0}));return Object.assign(n,{[t]:r}),{animationId:t,follow:!0}}),{animationId:d,animation:p}=function(t,n=0){const r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}(c,a(s));r[o]={animationId:d},Object.assign(n,{[d]:p})}else{const e=t[o],{animationId:i,animation:s}=u(e);Object.assign(n,{[i]:s}),r[o]={animationId:i}}}),r}function p(e){const{transform:t}=e,n=c(e,i);let r=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:r}=t[n];"number"==typeof r&&r%1==0&&e.push(r)}})),r=[...r,...e]}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{const e=this.$attrs[Fe("actionsDidUpdate")];"function"==typeof e&&e()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},deactivated(){this.pause()},activated(){this.resume()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=c(e.actions,s);this.animationIdsMap={};const r=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);r.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=p(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.start()}))},resume(){p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return m.h(this.tag,l({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}const dn=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"];var pn={install(e){un(e),lt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=nt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{lt("hi-pull-"+r,{component:{name:`Pull${n}View`,processEventData(e,t){const{handler:r,__evt:o}=e;switch(o){case`on${n}Released`:case`on${n}Pulling`:Object.assign(r,t)}return r}}}),e.component("pull-"+r,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(){const{onReleased:e,onPulling:t,onIdle:o}=this.$attrs,i={onLayout:this.onLayout};return"function"==typeof e&&(i[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof o||(i[`on${n}Pulling`]=this[`on${n}Pulling`]),m.h("hi-pull-"+r,l(l({},i),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){lt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),lt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){nt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){nt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return m.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=m.h("div",null,this.$slots.default?this.$slots.default():null);return m.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){lt("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":{const{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s}=t;Object.assign(n,{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return n}}}),lt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(e,t){nt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(){const e=De.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return m.h("hi-waterfall",l(l({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render(){return m.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(e),function(e){lt("hi-swiper",{component:{name:"ViewPager",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),lt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:()=>({$initialSlide:0}),watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){nt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){nt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=De.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return m.h("hi-swiper",l(l({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return m.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class fn extends ln{constructor(e,t){super("comment",t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}}class hn extends ln{setText(e,t={}){"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}async getValue(){return new Promise(e=>nt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){nt.callUIFunction(this,"setValue",[e])}focus(){nt.callUIFunction(this,"focusTextInput",[])}blur(){nt.callUIFunction(this,"blurTextInput",[])}clear(){nt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>nt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class mn extends ln{scrollToIndex(e=0,t=0,n=!0){nt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&nt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class vn extends sn{static createComment(e){return new fn(e)}static createElement(e){switch(e){case"input":case"textarea":return new hn(e);case"ul":return new mn(e);default:return new ln(e)}}static createTextNode(e){return new cn(e)}constructor(){super(rn.DocumentNode)}}const gn={insert:function(e,t,n=null){t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){const t=e.parentNode;t&&(t.removeChild(e),Wt(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return vn.createElement(e)},createComment:function(e){return vn.createComment(e)},createText:function(e){return vn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const yn=/(?:Once|Passive|Capture)$/;function bn(e,t,n,r,o=null){var i;const s=e,c=null!==(i=s._vei)&&void 0!==i?i:s._vei={},a=c[t];if(r&&a)a.value=r;else{const[e,n]=function(e){let t=e;const n={};if(yn.test(t)){let e=t.match(yn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(yn)}return t=":"===t[2]?t.slice(3):t.slice(2),[(r=t,`${r.charAt(0).toLowerCase()}${r.slice(1)}`),n];var r}(t);if(r){c[t]=function(e,t){const n=e=>{m.callWithAsyncErrorHandling(n.value,t,m.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}(r,o);const i=c[t];s.addEventListener(e,i,n)}else s.removeEventListener(e,a,n),c[t]=void 0}}function On(e,t,n){const r=e,o={};if(!function(e,t,n){const r=!e,o=!t&&!n,i=JSON.stringify(t)===JSON.stringify(n);return r||o||i}(r,t,n))if(t&&!n)r.removeStyle();else{if(h.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];(function(e){return null==e})(t)||(o[m.camelize(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}function _n(e,t,n,r,o,i,s){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":On(e,n,r);break;default:h.isOn(t)?bn(e,t,0,r,s):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let En=!1;function Sn(e,t){const n=function(e){var t;if("comment"===e.name)return new fn(e.props.text,e);if("Text"===e.name&&!e.tagName){const t=new cn(e.props.text,e);return t.nodeType=rn.TextNode,t.data=e.props.text,t}switch(e.tagName){case"input":case"textarea":return new hn(e.tagName,e);case"ul":return new mn(e.tagName,e);default:return new ln(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e);let r=t.filter(t=>t.pId===e.id).sort((e,t)=>e.index-t.index);const o=r.filter(e=>"comment"===e.name);if(o.length){r=r.filter(e=>"comment"!==e.name);for(let e=o.length-1;e>=0;e--)r.splice(o[e].index,0,o[e])}return r.forEach(e=>{n.appendChild(Sn(e,t),!0)}),n}e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,this.protocol="",this.listeners={},this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const r=l({},n);if(En||(En=!0,Ee.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?(this.protocol=t.join(","),r["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof t&&(this.protocol=t,r["Sec-WebSocket-Protocol"]=this.protocol);const o={headers:r,url:e};nt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:je()})}close(e,t){1===this.readyState&&(this.readyState=2,nt.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);nt.callNative("websocket","send",{id:this.webSocketId,data:e})}else je()}set onopen(e){this.addEventListener("open",e)}set onclose(e){this.addEventListener("close",e)}set onerror(e){this.addEventListener("error",e)}set onmessage(e){this.addEventListener("message",e)}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ee.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach(t=>{h.isFunction(t)&&t(e.data)})}addEventListener(e,t){if((e=>-1!==["open","close","message","error"].indexOf(e))(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=Fe(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const wn=['%c[Hippy-Vue-Next "3.3.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Nn(e,t){if(nt.isIOS()){const n=function(e){var t,n;const{iPhone:r}=e;let o;if((null==r?void 0:r.statusBar)&&(o=r.statusBar),null==o?void 0:o.disabled)return null;const i=new ln("div"),{statusBarHeight:s}=nt.Dimensions.screen;nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0);let c=4282431619;if(Number.isInteger(c)&&({backgroundColor:c}=o),i.setStyle("backgroundColor",c),"string"==typeof o.backgroundImage){const r=new ln("img");r.setStyle("width",nt.Dimensions.screen.width),r.setStyle("height",s),r.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),i.appendChild(r)}return i.addEventListener("layout",()=>{nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0)}),i}(e);if(n){const e=t.$el.parentNode;e.childNodes.length?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)}}}const xn=(e,t)=>{var n,r;const o=e,i=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);var s,c;o.use(Tt),o.use(pn),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(s=t.styleOptions.beforeLoadStyle,Ie=s),t.silent&&(c=t.silent,Ne=c),function(e=!0){xe=e}(t.trimWhitespace);const{mount:a}=o;return o.mount=e=>{var n;Ft("rootContainer",e);const r=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?function(e){const[t]=e;return Sn(t,e)}(t.ssrNodeList):function(e){const t=vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=a(r,i,!1);return Ft("instance",o),i||Nn(t,o),o},o.$start=async e=>new Promise(n=>{nt.hippyNativeRegister.regist(t.appName,r=>{var i,s;const{__instanceId__:c}=r;Te(...wn,"Start",t.appName,"with rootViewId",c,r);const a=Lt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:r,app:o,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Mt=l;const u={superProps:r,rootViewId:c};h.isFunction(e)?e(u):n(u)})}),o};t.BackAndroid=ct,t.ContentSizeEvent=class extends Dt{},t.EventBus=Ee,t.ExposureEvent=class extends Dt{},t.FocusEvent=class extends Dt{},t.HIPPY_DEBUG_ADDRESS=Se,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="3.3.0",t.HippyEvent=Dt,t.HippyKeyboardEvent=class extends Dt{},t.HippyLayoutEvent=Vt,t.HippyLoadResourceEvent=class extends Dt{},t.HippyTouchEvent=class extends Dt{},t.IS_PROD=!0,t.ListViewEvent=class extends Dt{},t.NATIVE_COMPONENT_MAP=we,t.Native=nt,t.ViewPagerEvent=class extends Dt{},t._setBeforeRenderToNative=(e,t)=>{h.isFunction(e)&&(1===t?Re=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=(e,t)=>{const n=m.createRenderer(l({patchProp:_n},gn)).createApp(e);return xn(n,t)},t.createHippyApp=xn,t.createSSRApp=(e,t)=>{const n=m.createHydrationRenderer(l({patchProp:_n},gn)).createApp(e);return xn(n,t)},t.eventIsKeyboardEvent=Bt,t.getCssMap=ye,t.getTagComponent=ut,t.isNativeTag=function(e){return dn.includes(e)},t.parseCSS=function(e,t={source:0}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(t){const n=t.exec(e);if(!n)return null;const r=n[0];return o(r),e=e.slice(r.length),n}function s(){i(/^\s*/)}function c(){return o=>(o.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},s(),o)}const a=[];function u(o){const i=l(l({},new Error(`${t.source}:${n}:${r}: ${o}`)),{},{reason:o,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw i;a.push(i)}function d(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}function p(e=[]){let t;const n=e||[];for(;t=d();)!1!==t&&n.push(t);return n}function f(){let t;const n=[];for(s(),p(n);e.length&&"}"!==e.charAt(0)&&(t=x()||O());)t&&(n.push(t),p(n));return n}function m(){return i(/^{\s*/)}function v(){return i(/^}/)}function g(){const e=i(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,e=>e.replace(/,/g,"‌")).split(/\s*(?![^(]*\)),\s*/).map(e=>e.replace(/\u200C/g,",")):null}function y(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return u("property missing ':'");const n=t.replace(I,""),r=h.camelize(n);let o=(()=>{const e=T[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(I,""):"";switch(o){case"backgroundImage":[o,a]=F(o,a);break;case"transform":{const e=/((\w+)\s*\()/,t=/(?:\(['"]?)(.*?)(?:['"]?\))/,n=a;a=[],n.split(" ").forEach(n=>{if(e.test(n)){let r,o;const i=e.exec(n),s=t.exec(n);i&&([,,r]=i),s&&([,o]=s),0===o.indexOf(".")&&(o="0"+o),parseFloat(o).toString()===o&&(o=parseFloat(o));const c={};c[r]=o,a.push(c)}else u("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>R(e)),[t]=e;let[,n]=e;n||(n=t),a={x:t,y:n};break}case"collapsable":a=Boolean(a);break;default:a=function(e){if("number"==typeof e)return e;if(P.test(e))try{return parseFloat(e)}catch(e){}return e}(a);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find(e=>o.toLowerCase().indexOf(e)>-1)&&(a=R(a))}const l=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),l}function b(){let e,t=[];if(!m())return u("missing '{'");for(p(t);e=y();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),p(t));return v()?t:u("missing '}'")}function O(){const e=c(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:b()})):u("selector missing")}function _(){let e;const t=[],n=c();for(;e=i(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),i(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:b()}):null}function E(e){const t=new RegExp(`^@${e}\\s*([^;]+);`);return()=>{const n=c(),r=i(t);if(!r)return null;const o={type:e};return o[e]=r[1].trim(),n(o)}}const S=E("import"),w=E("charset"),N=E("namespace");function x(){return"@"!==e[0]?null:function(){const e=c();let t=i(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=i(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const r=t[1];if(!m())return u("@keyframes missing '{'");let o,s=p();for(;o=_();)s.push(o),s=s.concat(p());return v()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):u("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@media missing '{'");const r=p().concat(f());return v()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}()||function(){const e=c(),t=i(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}()||function(){const e=c(),t=i(/^@supports *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@supports missing '{'");const r=p().concat(f());return v()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}()||S()||w()||N()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!m())return u("@document missing '{'");const o=p().concat(f());return v()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!m())return u("@page missing '{'");let n,r=p();for(;n=y();)r.push(n),r=r.concat(p());return v()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!m())return u("@host missing '{'");const t=p().concat(f());return v()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!m())return u("@font-face missing '{'");let t,n=p();for(;t=y();)n.push(t),n=n.concat(p());return v()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}return function e(t,n){const r=t&&"string"==typeof t.type,o=r?t:n;return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e(t,o)}):r&&"object"==typeof r&&e(r,o)}),r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n}),t}(function(){const e=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)},t.registerElement=lt,t.setScreenSize=function(t){var n;if(t.width&&t.height){const{screen:r}=null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=x}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return s})),n.d(t,"ITERATE_KEY",(function(){return I})),n.d(t,"ReactiveEffect",(function(){return d})),n.d(t,"ReactiveFlags",(function(){return rt})),n.d(t,"TrackOpTypes",(function(){return tt})),n.d(t,"TriggerOpTypes",(function(){return nt})),n.d(t,"computed",(function(){return Re})),n.d(t,"customRef",(function(){return Ge})),n.d(t,"deferredComputed",(function(){return et})),n.d(t,"effect",(function(){return v})),n.d(t,"effectScope",(function(){return c})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return l})),n.d(t,"isProxy",(function(){return je})),n.d(t,"isReactive",(function(){return Ne})),n.d(t,"isReadonly",(function(){return xe})),n.d(t,"isRef",(function(){return Fe})),n.d(t,"isShallow",(function(){return Te})),n.d(t,"markRaw",(function(){return Ce})),n.d(t,"onScopeDispose",(function(){return u})),n.d(t,"pauseScheduling",(function(){return w})),n.d(t,"pauseTracking",(function(){return _})),n.d(t,"proxyRefs",(function(){return ze})),n.d(t,"reactive",(function(){return Oe})),n.d(t,"readonly",(function(){return Ee})),n.d(t,"ref",(function(){return De})),n.d(t,"resetScheduling",(function(){return N})),n.d(t,"resetTracking",(function(){return S})),n.d(t,"shallowReactive",(function(){return _e})),n.d(t,"shallowReadonly",(function(){return Se})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return g})),n.d(t,"toRaw",(function(){return ke})),n.d(t,"toRef",(function(){return Ze})),n.d(t,"toRefs",(function(){return qe})),n.d(t,"toValue",(function(){return Ye})),n.d(t,"track",(function(){return R})),n.d(t,"trigger",(function(){return M})),n.d(t,"triggerRef",(function(){return Ue})),n.d(t,"unref",(function(){return He}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"); +const o=["mode","valueType","startValue","toValue"],i=["transform"],s=["transform"];function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=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,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},d.apply(this,arguments)}function p(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var h=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"),m=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");const v={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},g=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,y="[-+]?\\d*\\.?\\d+",b={rgb:new RegExp("rgb"+g(y,y,y)),rgba:new RegExp("rgba"+g(y,y,y,y)),hsl:new RegExp("hsl"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",y)),hex3:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex4:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},O=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},_=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},E=(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},S=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=E(o,r,e+1/3),s=E(o,r,e),c=E(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},w=e=>(parseFloat(e)%360+360)%360/360,N=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function x(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=b.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(v,e)?v[e]:(t=b.rgb.exec(e),Array.isArray(t)?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|255)>>>0:(t=b.rgba.exec(e),t?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|_(t[4]))>>>0:(t=b.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=b.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=b.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=b.hsl.exec(e),t?(255|S(w(t[1]),N(t[2]),N(t[3])))>>>0:(t=b.hsla.exec(e),t?(S(w(t[1]),N(t[2]),N(t[3]))|_(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const T={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},j={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},k="turn",C="rad",A="deg",I=/\/\*[\s\S]{0,1000}?\*\//gm;const P=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function M(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=d(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";let r="180";const[o,i,s]=n;return i&&s?r=function(e,t=A){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case k:r=""+(360*n).toFixed(2);break;case C:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==j[o]&&(r=j[o]),r}function L(e=""){const t=e.replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:x(n)}:null:{color:x(n)}}function F(e,t){let n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},e.forEach((e,t)=>{if(0===t){const t=M(e);if(t)n.angle=t;else{n.angle="180";const t=L(e);t&&o.push(t)}}else{const t=L(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}class D{constructor(){this.changeMap=new Map}addAttribute(e,t){const n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}addPseudoClass(e,t){const n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}properties(e){let t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}class V{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.lookupSort(this))}static removeFromMap(e,t,n){const r=e[t],o=r.findIndex(e=>{var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)});-1!==o&&r.splice(o,1)}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e,t){const{tagName:n,id:r,classList:o,props:i}=e;let s=r,c=o;if(null==i?void 0:i.attributes){const{attributes:e}=i;c=new Set(((null==e?void 0:e.class)||"").split(" ").filter(e=>e.trim())),s=e.id}const a=[this.universal,this.id[s],this.type[n]];(null==c?void 0:c.size)&&c.forEach(e=>a.push(this.class[e]));const l=a.filter(e=>!!e).reduce((e,t)=>e.concat(t),[]),u=new D;return u.selectors=l.filter(n=>n.sel.accumulateChanges(e,u,t)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),u}removeById(e,t){V.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){V.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){V.removeFromMap(this.type,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)});-1!==t&&this.universal.splice(t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,n){this.position+=1;const r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function B(e){return e?" "+e:""}function $(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}class U{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class H extends U{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}match(e){return!!e}mayMatch(e){return this.match(e)}trackChanges(e,t){}}class Y extends H{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof H&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${B(this.combinator)}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof H&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof H&&this.head.removeSort(e,null!=t?t:this)}}class W extends H{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+B(this.combinator)}match(){return!0}}class z extends H{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${B(this.combinator)}`}match(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class K extends H{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${B(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,null!=t?t:this)}removeSort(e,t){e.removeByType(this.cssType,null!=t?t:this)}}class G extends H{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${B(this.combinator)}`}match(e){var t,n,r;if(!e)return!1;const o=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter(e=>e.trim()));return!(!o.size||!o.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,null!=t?t:this)}removeSort(e,t){e.removeByClass(this.className,null!=t?t:this)}}class q extends H{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${B(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const J=(e,t)=>{var n,r,o;const i=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==i?i:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(o=null==e?void 0:e.styleScopeId)||void 0===o?void 0:o.includes(t))?t:void 0};class X extends H{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?r=>{if(!r||!(null==r?void 0:r.attributes)&&!(null==r?void 0:r.props[e]))return!1;const o=""+J(r,e);if("="===t)return o===n;if("^="===t)return o.startsWith(n);if("$="===t)return o.endsWith(n);if("*="===t)return-1!==o.indexOf(n);if("~="===t){const e=o.split(" ");return-1!==(null==e?void 0:e.indexOf(n))}return"|="===t&&(o===n||o.startsWith(n+"-"))}:()=>!1:t=>!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!function(e){return null==e}(J(t,e))}toString(){return`[${this.attribute}${B(this.test)}${this.test&&this.value||""}]${B(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Z extends H{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.error=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Q{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class ee{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class te extends U{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],r=[];const o=[],i=[...e],s=i.length-1;this.specificity=0,this.dynamic=!1;for(let e=s;e>=0;e--){const s=i[e];if(-1===t.indexOf(s.combinator))throw console.error(`Unsupported combinator "${s.combinator}".`),new Error(`Unsupported combinator "${s.combinator}".`);void 0!==s.combinator&&" "!==s.combinator||o.push(r=[n=[]]),">"===s.combinator&&r.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=o.map(e=>new Q(e.map(e=>new ee(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e,t){return!!e&&this.groups.every((n,r)=>{if(0===r)return!!(e=n.match(e));let o=$(e,t);for(;o;){if(e=n.match(o))return!0;o=$(o,t)}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t,n){if(!this.dynamic)return this.match(e,n);const r=[],o=this.groups.every((t,o)=>{if(0===o){const n=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=n)}let i=$(e,n);for(;i;){const o=t.mayMatch(i);if(o)return r.push({left:i,right:null}),e=o,!0;i=$(i,n)}return!1});if(!o)return!1;if(!t)return o;for(let e=0;e(e.ruleSet=this,null)),this.selectors=e,this.declarations=t,this.hash=n}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}const re=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),oe={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ie={};function se(e,t,n){let r="";re&&(r="gy"),ie[e]||(ie[e]=new RegExp(oe[e],r));const o=ie[e];let i;if(re)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),i=o.exec(t),!i)return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function ce(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=se("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:r.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){const{result:n,regexp:r}=se("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){const{result:n,regexp:r}=se("attributeSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:o}}return{value:{type:"[]",property:i},start:t,end:o}}(e,t)}function ae(e,t){let n=ce(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=ce(e,r);return{start:t,end:r,value:o}}function le(e,t){const{result:n,regexp:r}=se("combinatorRegEx",e,t);if(!n)return null;let o;o=re?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}const ue=e=>e;function de(e){return"declaration"===e.type}function pe(e){return t=>e(t)}function fe(e){switch(e.type){case"*":return new W;case"#":return new z(e.identifier);case"":return new K(e.identifier.replace(/-/,"").toLowerCase());case".":return new G(e.identifier);case":":return new q(e.identifier);case"[]":return e.test?new X(e.property,e.test,e.value):new X(e.property);default:return null}}function he(e){return 0===e.length?new Z(new Error("Empty simple selector sequence.")):1===e.length?fe(e[0]):new Y(e.map(fe))}function me(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=se("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=re?[e]:e.split(" "),c.forEach(e=>{if(!re){if(""===e)return;n=0}do{const t=ae(e,n);if(!t){if(a)return;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=le(e,n),s&&({end:n}=s),a=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e,0);return t?function(e){if(0===e.length)return new Z(new Error("Empty selector."));if(1===e.length)return he(e[0][0]);const t=[];for(const n of e){const e=he(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new te(t)}(t.value):new Z(new Error("Empty selector"))}catch(e){return new Z(e)}}let ve;function ge(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function ye(t,n){if(t){if(!ge(ve))return ve;const e=function(e=[],t){return e.map(e=>{let n=e[0],r=e[1];return r=r.map(e=>{const[t,n]=e;return{type:"declaration",property:t,value:n}}).map(pe(null!=t?t:ue)),n=n.map(me),new ne(n,r,"")})}(t,n);return ve=new V(e),ve}const r=e[be];if(ge(ve)||r){const t=function(e=[],t){return e.map(e=>{const n=e.declarations.filter(de).map(pe(null!=t?t:ue)),r=e.selectors.map(me);return new ne(r,n,e.hash)})}(r,n);ve?ve.append(t):ve=new V(t),e[be]=void 0}return e[Oe]&&(e[Oe].forEach(e=>{ve.delete(e)}),e[Oe]=void 0),ve}const be="__HIPPY_VUE_STYLES__",Oe="__HIPPY_VUE_DISPOSE_STYLES__";let _e=Object.create(null);const Ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{Ee.$on(e,t,n)}):(_e[e]||(_e[e]=[]),_e[e].push({fn:t,ctx:n})),Ee),$once(e,t,n){function r(...o){Ee.$off(e,r),t.apply(n,o)}return r._=t,Ee.$on(e,r),Ee},$emit(e,...t){const n=(_e[e]||[]).slice(),r=n.length;for(let e=0;e{Ee.$off(e,t)}),Ee;const n=_e[e];if(!n)return Ee;if(!t)return _e[e]=null,Ee;let r;const o=n.length;for(let e=0;ee;function Pe(){return Ie}let Re=(e,t)=>{};function Me(e,t){const n=new Map;return Array.isArray(e)?e.forEach(([e,t])=>{n.set(e,t),n.set(t,e)}):(n.set(e,t),n.set(t,e)),n}function Le(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function Fe(e){return"on"+h.capitalize(e)}function De(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=Fe(e[0]),r=Fe(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Ve(e,t){return!(!t||!e)&&e.match(t)}function Be(e){return e.split(" ").filter(e=>e.trim())}var $e;const Ue=["%c[native]%c","color: red","color: auto"],He={},{bridge:{callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze},device:{platform:{OS:Ke,Localization:Ge={}},screen:{scale:qe}},device:Je,document:Xe,register:Ze,asyncStorage:Qe}=null!==($e=e.Hippy)&&void 0!==$e?$e:{device:{platform:{Localization:{}},window:{},screen:{}},bridge:{},register:{},document:{},asyncStorage:{}},et=async(e,t)=>{const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:r}=e;return Te(...Ue,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>Xe.callUIFunction(r,t,[],t=>{if(!t||"object"!=typeof t||void 0===r)return e(n);const{x:o,y:i,height:s,width:c}=t;return e({top:i,left:o,width:c,height:s,bottom:i+s,right:o+c})}))},tt=new Map,nt={Localization:Ge,hippyNativeDocument:Xe,hippyNativeRegister:Ze,Platform:Ke,PixelRatio:qe,ConsoleModule:e.ConsoleModule||e.console,callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze,AsyncStorage:Qe,callUIFunction(...e){const[t,n,...r]=e;if(!(null==t?void 0:t.nodeId))return;const{nodeId:o}=t;let[i=[],s]=r;"function"==typeof i&&(s=i,i=[]),Te(...Ue,"callUIFunction",{nodeId:o,funcName:n,params:i}),Xe.callUIFunction(o,n,i,s)},Clipboard:{getString(){return nt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){nt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return nt.callNativeWithPromise.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Native.Cookie.set() must have url argument");let r="";n&&(r=n.toUTCString()),nt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return nt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){nt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=Je,{statusBarHeight:t}=e;return{window:Je.window,screen:l(l({},e),{},{statusBarHeight:t})}},get Device(){var t;return void 0===He.Device&&(nt.isIOS()?(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Device)?He.Device=e.__HIPPYNATIVEGLOBAL__.Device:He.Device="iPhone":nt.isAndroid()?He.Device="Android device":He.Device="Unknown device"),He.Device},get screenIsVertical(){return nt.Dimensions.window.width"android"===nt.Platform,isIOS:()=>"ios"===nt.Platform,measureInWindow:e=>et(e,"measureInWindow"),measureInAppWindow:e=>nt.isAndroid()?et(e,"measureInWindow"):et(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((r,o)=>{if(!e.isMounted||!n)return o(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));Te(...Ue,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Xe.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return o(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let c=void 0,a=void 0;return"number"==typeof n&&"number"==typeof s&&(c=n+s),"number"==typeof t&&"number"==typeof i&&(a=t+i),r({x:t,y:n,width:i,height:s,bottom:c,right:a,left:t,top:n})})})},NetInfo:{fetch:()=>nt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===tt.size&&nt.callNative("NetInfo","addListener",n),Ee.$on(n,t),tt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(nt.NetInfo.removeEventListener(this.eventName,this.listener),this.listener=void 0)}}},removeEventListener(e,t){if(null==t?void 0:t.remove)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange"),tt.size<=1&&nt.callNative("NetInfo","removeListener",n);const r=tt.get(t);r&&(Ee.$off(n,r),tt.delete(t),tt.size<1&&nt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===He.isIPhoneX){let e=!1;nt.isIOS()&&(e=20!==nt.Dimensions.screen.statusBarHeight),He.isIPhoneX=e}return He.isIPhoneX},get OnePixel(){if(void 0===He.OnePixel){const e=nt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),He.OnePixel=t}return He.OnePixel},get APILevel(){var t,n;return nt.isAndroid()&&(null===(n=null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Platform)||void 0===n?void 0:n.APILevel)?e.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(je(),null)},get OSVersion(){var t;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?e.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var t,n;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?null===(n=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===n?void 0:n.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=He.COLOR_PARSER)&&void 0!==t?t:He.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=x(e)),n[e]},getElemCss(e){const t=Object.create(null);try{ye(void 0,Pe()).query(e).selectors.forEach(n=>{Ve(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){je()}return t},version:"3.3.1"},rt=new Set;let ot=!1;const it={exitApp(){nt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ot||(ot=!0,it.initEventListener()),nt.callNative("DeviceEventModule","setListenBackPress",!0),rt.add(e),{remove(){it.removeListener(e)}}),removeListener(e){rt.delete(e),0===rt.size&&nt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(rt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&it.exitApp()})}},st={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ct=nt.isAndroid()?it:st,at=new Map;function lt(e,t){if(!e)throw new Error("tagName can not be empty");const n=ke(e);at.has(n)||at.set(n,t.component)}function ut(e){const t=ke(e),n=h.camelize(e).toLowerCase();return at.get(t)||at.get(n)}const dt=new Map,pt={number:"numeric",text:"default",search:"web-search"},ft={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},ht={component:{name:we.View,eventNamesMap:Me([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},ft),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y,(null==t?void 0:t.contentSize)&&(o.scrollHeight=t.contentSize.height,o.scrollWidth=t.contentSize.width);break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":o.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":o.isFocused=t.focus}return o}}},mt={component:{name:we.View,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData}},vt={component:{name:we.View}},gt={component:{name:we.Image,eventNamesMap:ht.component.eventNamesMap,processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":n.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":n.isFocused=t.focus;break;case"onLoad":{const{width:e,height:r,url:o}=t;n.width=e,n.height=r,n.url=o;break}}return n},defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=Le(e);return(null==t?void 0:t.indexOf(Se))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&je(),t}},src:e=>Le(e)},ft)}},yt={component:{name:we.ListView,defaultNativeStyle:{flex:1},attributeMaps:l({},ft),eventNamesMap:Me("listReady","initialListReady"),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":o.index=t.index}return o}}},bt={component:{name:we.ListViewItem,attributeMaps:l({},ft),eventNamesMap:Me([["disappear","onDisappear"]])}},Ot={component:{name:we.Text,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},_t=Ot,Et=Ot,St={component:l(l({},Ot.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(je(),""):e}}})},wt={component:{name:we.TextInput,attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=pt[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ft),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Me([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onChangeText":case"onEndEditing":n.value=t.text;break;case"onSelectionChange":n.start=t.selection.start,n.end=t.selection.end;break;case"onKeyboardWillShow":n.keyboardHeight=t.keyboardHeight;break;case"onContentSizeChange":n.width=t.contentSize.width,n.height=t.contentSize.height}return n}}},Nt={component:{name:we.TextInput,defaultNativeProps:l(l({},wt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},wt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:wt.component.defaultNativeStyle,eventNamesMap:wt.component.eventNamesMap,processEventData:wt.component.processEventData}},xt={component:{name:we.WebView,defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onLoad":case"onLoadStart":n.url=t.url;break;case"onLoadEnd":n.url=t.url,n.success=t.success,n.error=t.error}return n}}};dt.set("div",ht),dt.set("button",mt),dt.set("form",vt),dt.set("img",gt),dt.set("ul",yt),dt.set("li",bt),dt.set("span",Ot),dt.set("label",_t),dt.set("p",Et),dt.set("a",St),dt.set("input",wt),dt.set("textarea",Nt),dt.set("iframe",xt);var Tt={install(){dt.forEach((e,t)=>{lt(t,e)})}};function jt(){const{Localization:e}=nt;return!!e&&1===e.direction}const kt=0,Ct=1,At={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},It={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Pt="addEventListener",Rt="removeEventListener";let Mt;function Lt(){return Mt}function Ft(e,t){Mt[e]=t}class Dt{constructor(e){this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.timeStamp=Date.now()}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){if(this.cancelable){if(this.isCanceled)return;this.isCanceled=!0}}}class Vt extends Dt{}function Bt(e){return"string"==typeof e.value}const $t=new Map;function Ut(e,t){$t.set(t,e)}function Ht(e){$t.delete(e)}function Yt(e){return $t.get(e)||null}function Wt(t){var n,r;n=e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Ht(t):t&&(Ht(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout(()=>{n({didTimeout:!1,timeRemaining:()=>1/0})},1)}function zt(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new Vt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{layout:{x:t,y:n,height:r,width:o}}=s;e.top=n,e.left=t,e.bottom=n+r,e.right=t+o,e.width=o,e.height=r}else{e=new Dt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{processEventData:t}=l.component;t&&t({__evt:o,handler:e},s)}a.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else je(...Gt,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=qt);class Jt{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&h.looseEqual(e.options,n):e.callback===t)}addEventListener(e,t,n){const r=e.split(","),o=r.length;for(let e=0;e=0&&e.splice(r,1),e.length||(this.listeners[o]=void 0)}}}else this.listeners[o]=void 0}}emitEvent(e){var t,n;const{type:r}=e,o=this.listeners[r];if(o)for(let r=o.length-1;r>=0;r-=1){const i=o[r];(null===(t=i.options)||void 0===t?void 0:t.once)&&o.splice(r,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventListenerList(){return this.listeners}}var Xt;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Xt||(Xt={}));let Zt=!1,Qt=[];function en(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:o,listener:i}=e;let s;s=function(e){return!!At[e]}(r)?At[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ct&&t.removeEventListener(n,s,i),o===kt&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function tn(e,t){0}function nn(){Zt||(Zt=!0,0!==Qt.length?m.nextTick().then(()=>{const t=function(e){const t=[];for(const n of e){const{type:e,nodes:r,eventNodes:o,printedNodes:i}=n,s=t[t.length-1];s&&s.type===e?(s.nodes=s.nodes.concat(r),s.eventNodes=s.eventNodes.concat(o),s.printedNodes=s.printedNodes.concat(i)):t.push({type:e,nodes:r,eventNodes:o,printedNodes:i})}return t}(Qt),{rootViewId:n}=Lt(),r=new e.Hippy.SceneBuilder(n);t.forEach(e=>{switch(e.type){case Xt.CREATE:tn(e.printedNodes),r.create(e.nodes,!0),en(e.eventNodes,r);break;case Xt.UPDATE:tn(e.printedNodes),r.update(e.nodes),en(e.eventNodes,r);break;case Xt.DELETE:tn(e.printedNodes),r.delete(e.nodes);break;case Xt.MOVE:tn(e.printedNodes),r.move(e.nodes);break;case Xt.UPDATE_EVENT:en(e.eventNodes,r)}}),r.build(),Zt=!1,Qt=[]}):Zt=!1)}var rn;function on(e){let t;const n=e.events;if(n){const r=[];Object.keys(n).forEach(e=>{const{name:t,type:o,isCapture:i,listener:s}=n[e];r.push({name:t,type:o,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rn||(rn={}));class sn extends Jt{constructor(e,t){var n;super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:sn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===rn.ElementNode}(e),(null==t?void 0:t.id)&&(this.isMounted=!0)}static getUniqueNodeId(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get component(){return this.tagComponent}get index(){let e=0;if(this.parentNode){e=this.parentNode.childNodes.filter(e=>e.isNeedInsertToNative).indexOf(this)}return e}isRootNode(){return 1===this.nodeId}hasChildNodes(){return!!this.childNodes.length}insertBefore(e,t){const n=e,r=t;if(!n)throw new Error("No child to insert");if(!r)return void this.appendChild(n);if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");let o=this;r.parentNode!==this&&(o=r.parentNode);const i=o.childNodes.indexOf(r);let s=r;r.isNeedInsertToNative||(s=zt(this.childNodes,i)),n.parentNode=o,n.nextSibling=r,n.prevSibling=o.childNodes[i-1],o.childNodes[i-1]&&(o.childNodes[i-1].nextSibling=n),r.prevSibling=n,o.childNodes.splice(i,0,n),s.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}moveChild(e,t){const n=e,r=t;if(!n)throw new Error("No child to move");if(!r)return void this.appendChild(n);if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");const o=this.childNodes.indexOf(n),i=this.childNodes.indexOf(r);let s=r;if(r.isNeedInsertToNative||(s=zt(this.childNodes,i)),i===o)return;n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=n),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=n),this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=this.childNodes[o+1]),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=this.childNodes[o-1]),this.childNodes.splice(o,1);const c=this.childNodes.indexOf(r);this.childNodes.splice(c,0,n),s.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}appendChild(e,t=!1){const n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?Ut(n,n.nodeId):this.insertChildNativeNode(n)))}removeChild(e){const t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode!==this)return void t.parentNode.removeChild(t);if(!t.isNeedInsertToNative)return;t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;const n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(const t of this.childNodes){const n=this.findChild.call(t,e);if(n)return n}return null}eachNode(e){e&&e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.eachNode.call(t,e)})}insertChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;const n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){const r=n?this:e;!function([e,t,n]){Qt.push({type:Xt.CREATE,nodes:e,eventNodes:t,printedNodes:n}),nn()}(r.convertToNativeNodes(!0,t)),r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Ut(t,t.nodeId)})}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Qt.push({type:Xt.MOVE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(Qt.push({type:Xt.DELETE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Qt.push({type:Xt.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),nn())}(this.convertToNativeNodes(e,{}))}updateNativeEvent(){if(!this.isMounted)return;!function(e){Qt.push({type:Xt.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),nn()}(on(this))}convertToNativeNodes(e,t={},n){var r,o;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){const e=[],n=[],r=[];return this.eachNode(o=>{const[i,s,c]=o.convertToNativeNodes(!1,t);Array.isArray(i)&&i.length&&e.push(...i),Array.isArray(s)&&s.length&&n.push(...s),Array.isArray(c)&&c.length&&r.push(...c)}),[e,n,r]}if(!this.component)throw new Error("tagName is not supported yet");const{rootViewId:i}=Lt(),s=null!=n?n:{},c=l({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=on(this);let u=void 0;return[[[c,t]],[a],[u]]}}class cn extends sn{constructor(e,t){super(rn.TextNode,t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}setText(e){this.text=e,this.parentNode&&this.parentNode.nodeType===rn.ElementNode&&this.parentNode.setText(e)}}function an(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;e{t[n]=function(e){let t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;const{ratioBaseWidth:n}=Lt(),{width:r}=nt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=ut(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Lt();return super.isRootNode()||this.id===e}appendChild(e,t=!1){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e,t)}insertBefore(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof cn&&this.setText("",{notToNative:!0}),super.removeChild(e)}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}removeAttribute(e){delete this.attributes[e]}setAttribute(e,t,n={}){let r=t,o=e;try{if("boolean"==typeof this.attributes[o]&&""===r&&(r=!0),void 0===o)return void(!n.notToNative&&this.updateNativeNode());switch(o){case"class":{const e=new Set(Be(r));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let r=n.next().value;for(;r;){if(!t.has(r))return!1;r=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&this.updateNativeNode(!0))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){je(e.message)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===xe||xe?i.trim():i),r=r.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)));break;case"numberOfRows":if(!nt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=nt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=nt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=nt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=nt.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}var i}setText(e,t={}){return this.setAttribute("text",e,{notToNative:!!t.notToNative})}removeStyle(e=!1){this.style={},e||this.updateNativeNode()}setStyles(e){e&&"object"==typeof e&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),this.updateNativeNode())}setStyle(e,t,n=!1){if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());let{property:r,value:o}=this.beforeLoadStyle({property:e,value:t});switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=F(r,o);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){var r;const o=n;return o.textShadowOffset=null!==(r=o.textShadowOffset)&&void 0!==r?r:{},Object.assign(o.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t}),["textShadowOffset",o.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=null!=o?o:{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(T,r)&&(r=T[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?nt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(Ae.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||this.updateNativeNode())}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let r=n;!1===r&&(r=0),nt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}scrollTo(e,t,n){if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto",duration:o}=e;this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+Ce(e);if(this.component){const{eventNamesMap:n}=this.component;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}addEventListener(e,t,n){let r=e,o=t,i=n,s=!0;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);const c=this.getNativeEventName(r);this.attributes[c]&&(s=!1),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Pt,r,o,i)),super.addEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==kt&&(this.events[t].type=kt):this.events[t]={name:t,type:kt,listener:(n=t,r=e,e=>{const{id:t,currentId:o,params:i,eventPhase:s}=e,c={id:t,nativeName:n,originalName:r,currentId:o,params:i,eventPhase:s};qt.receiveComponentEvent(c,e)}),isCapture:!1}}),s&&this.updateNativeEvent()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Rt,r,o,i)),super.removeEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ct)});const s=this.getNativeEventName(r);this.attributes[s]&&delete this.attributes[s],this.updateNativeEvent()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,Bt(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}convertToNativeNodes(e,t={}){if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return super.convertToNativeNodes(!0,t);let n=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof ln){const e=this.parentNode.processedStyle;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!n[t]&&e[t]&&(n[t]=e[t])})}if(Re(this,n),this.component.defaultNativeStyle){const{defaultNativeStyle:e}=this.component,t={};Object.keys(e).forEach(n=>{this.getAttribute(n)||(t[n]=e[n])}),n=l(l({},t),n)}this.processedStyle=n;const r={name:this.component.name,props:l(l({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return function(e,t){const n=t;e.component.name===we.TextInput&&jt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===we.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&je(),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=jt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&je(),e.childNodes.length&&e.nodeType===rn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Le(o.backgroundImage)))}(this,r,n),super.convertToNativeNodes(!1,t,r)}repaintWithChildren(){this.updateNativeNode(!0)}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}setPressed(e){nt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){nt.callUIFunction(this,"setHotspot",[e,t])}setStyleScope(e){const t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}get styleScopeId(){return this.scopedIdList}getInlineStyle(){const e={};return Object.keys(this.style).forEach(t=>{const n=m.toRaw(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return ye(void 0,Pe()).query(this).selectors.forEach(t=>{var n,r;Ve(t,this)&&(null===(r=null===(n=t.ruleSet)||void 0===n?void 0:n.declarations)||void 0===r?void 0:r.length)&&t.ruleSet.declarations.forEach(t=>{t.property&&(e[t.property]=t.value)})}),this.ssrInlineStyle&&(e=l(l({},e),this.ssrInlineStyle)),e=ln.parseRem(l(l({},e),this.getInlineStyle())),e}getNativeProps(){const e={},{defaultNativeProps:t}=this.component;t&&Object.keys(t).forEach(n=>{if(void 0===this.getAttribute(n)){const r=t[n];e[n]=h.isFunction(r)?r(this):m.toRaw(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=m.toRaw(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=m.toRaw(r));const o=this.component.attributeMaps[t];if(h.isString(o))return void(e[o]=m.toRaw(r));if(h.isFunction(o))return void(e[t]=m.toRaw(o(r)));const{name:i,propsValue:s,jointKey:c}=o;h.isFunction(s)&&(r=s(r)),c?(e[c]=null!==(n=e[c])&&void 0!==n?n:{},Object.assign(e[c],{[i]:m.toRaw(r)})):e[i]=m.toRaw(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=m.toRaw(n[t])}),e}getNodeAttributes(){var e;try{const t=function e(t,n=new WeakMap){if("object"!=typeof t||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);const r={};return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof i||null===i?r[o]=i:Array.isArray(i)?r[o]=[...i]:i instanceof Set?r[o]=new Set([...i]):i instanceof Map?r[o]=new Map([...i]):(n.set(t,t),r[o]=e(i,n))}),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=l({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach(e=>{"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]}),r}catch(e){return{}}}getNativeEvents(){const e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){const{eventNamesMap:r}=this.component;n.forEach(n=>{const o=null==r?void 0:r.get(n);if(o)e[o]=!!t[n];else{const r="on"+Ce(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){var e;let t=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>t,set:e=>{t=void 0===e?"flex":e,this.updateNativeNode()}})}}function un(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?nt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function u(t){const{mode:i="timing",valueType:s,startValue:u,toValue:d}=t,p=c(t,o),f=l(l({},n),p);void 0!==s&&(f.valueType=t.valueType),f.startValue=r(f.valueType,u),f.toValue=r(f.valueType,d),f.repeatCount=a(f.repeatCount),f.mode=i;const h=new e.Hippy.Animation(f),m=h.getId();return{animation:h,animationId:m}}function d(t,n={}){const r={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const i=t[o],{repeatCount:s}=i[i.length-1],c=i.map(e=>{const{animationId:t,animation:r}=u(l(l({},e),{},{repeatCount:0}));return Object.assign(n,{[t]:r}),{animationId:t,follow:!0}}),{animationId:d,animation:p}=function(t,n=0){const r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}(c,a(s));r[o]={animationId:d},Object.assign(n,{[d]:p})}else{const e=t[o],{animationId:i,animation:s}=u(e);Object.assign(n,{[i]:s}),r[o]={animationId:i}}}),r}function p(e){const{transform:t}=e,n=c(e,i);let r=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:r}=t[n];"number"==typeof r&&r%1==0&&e.push(r)}})),r=[...r,...e]}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{const e=this.$attrs[Fe("actionsDidUpdate")];"function"==typeof e&&e()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},deactivated(){this.pause()},activated(){this.resume()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=c(e.actions,s);this.animationIdsMap={};const r=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);r.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=p(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.start()}))},resume(){p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return m.h(this.tag,l({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}const dn=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"];var pn={install(e){un(e),lt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=nt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{lt("hi-pull-"+r,{component:{name:`Pull${n}View`,processEventData(e,t){const{handler:r,__evt:o}=e;switch(o){case`on${n}Released`:case`on${n}Pulling`:Object.assign(r,t)}return r}}}),e.component("pull-"+r,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(){const{onReleased:e,onPulling:t,onIdle:o}=this.$attrs,i={onLayout:this.onLayout};return"function"==typeof e&&(i[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof o||(i[`on${n}Pulling`]=this[`on${n}Pulling`]),m.h("hi-pull-"+r,l(l({},i),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){lt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),lt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){nt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){nt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return m.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=m.h("div",null,this.$slots.default?this.$slots.default():null);return m.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){lt("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":{const{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s}=t;Object.assign(n,{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return n}}}),lt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(e,t){nt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(){const e=De.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return m.h("hi-waterfall",l(l({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render(){return m.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(e),function(e){lt("hi-swiper",{component:{name:"ViewPager",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),lt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:()=>({$initialSlide:0}),watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){nt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){nt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=De.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return m.h("hi-swiper",l(l({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return m.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class fn extends ln{constructor(e,t){super("comment",t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}}class hn extends ln{setText(e,t={}){"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}async getValue(){return new Promise(e=>nt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){nt.callUIFunction(this,"setValue",[e])}focus(){nt.callUIFunction(this,"focusTextInput",[])}blur(){nt.callUIFunction(this,"blurTextInput",[])}clear(){nt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>nt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class mn extends ln{scrollToIndex(e=0,t=0,n=!0){nt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&nt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class vn extends sn{static createComment(e){return new fn(e)}static createElement(e){switch(e){case"input":case"textarea":return new hn(e);case"ul":return new mn(e);default:return new ln(e)}}static createTextNode(e){return new cn(e)}constructor(){super(rn.DocumentNode)}}const gn={insert:function(e,t,n=null){t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){const t=e.parentNode;t&&(t.removeChild(e),Wt(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return vn.createElement(e)},createComment:function(e){return vn.createComment(e)},createText:function(e){return vn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const yn=/(?:Once|Passive|Capture)$/;function bn(e,t,n,r,o=null){var i;const s=e,c=null!==(i=s._vei)&&void 0!==i?i:s._vei={},a=c[t];if(r&&a)a.value=r;else{const[e,n]=function(e){let t=e;const n={};if(yn.test(t)){let e=t.match(yn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(yn)}return t=":"===t[2]?t.slice(3):t.slice(2),[(r=t,`${r.charAt(0).toLowerCase()}${r.slice(1)}`),n];var r}(t);if(r){c[t]=function(e,t){const n=e=>{m.callWithAsyncErrorHandling(n.value,t,m.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}(r,o);const i=c[t];s.addEventListener(e,i,n)}else s.removeEventListener(e,a,n),c[t]=void 0}}function On(e,t,n){const r=e,o={};if(!function(e,t,n){const r=!e,o=!t&&!n,i=JSON.stringify(t)===JSON.stringify(n);return r||o||i}(r,t,n))if(t&&!n)r.removeStyle();else{if(h.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];(function(e){return null==e})(t)||(o[m.camelize(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}function _n(e,t,n,r,o,i,s){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":On(e,n,r);break;default:h.isOn(t)&&!function(e){return["onInterceptTouchEvent","onInterceptPullUpEvent"].indexOf(e)>=0}(t)?bn(e,t,0,r,s):function(e,t,n,r){n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let En=!1;function Sn(e,t){const n=function(e){var t;if("comment"===e.name)return new fn(e.props.text,e);if("Text"===e.name&&!e.tagName){const t=new cn(e.props.text,e);return t.nodeType=rn.TextNode,t.data=e.props.text,t}switch(e.tagName){case"input":case"textarea":return new hn(e.tagName,e);case"ul":return new mn(e.tagName,e);default:return new ln(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e);let r=t.filter(t=>t.pId===e.id).sort((e,t)=>e.index-t.index);const o=r.filter(e=>"comment"===e.name);if(o.length){r=r.filter(e=>"comment"!==e.name);for(let e=o.length-1;e>=0;e--)r.splice(o[e].index,0,o[e])}return r.forEach(e=>{n.appendChild(Sn(e,t),!0)}),n}e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,this.protocol="",this.listeners={},this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const r=l({},n);if(En||(En=!0,Ee.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?(this.protocol=t.join(","),r["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof t&&(this.protocol=t,r["Sec-WebSocket-Protocol"]=this.protocol);const o={headers:r,url:e};nt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:je()})}close(e,t){1===this.readyState&&(this.readyState=2,nt.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);nt.callNative("websocket","send",{id:this.webSocketId,data:e})}else je()}set onopen(e){this.addEventListener("open",e)}set onclose(e){this.addEventListener("close",e)}set onerror(e){this.addEventListener("error",e)}set onmessage(e){this.addEventListener("message",e)}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ee.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach(t=>{h.isFunction(t)&&t(e.data)})}addEventListener(e,t){if((e=>-1!==["open","close","message","error"].indexOf(e))(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=Fe(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const wn=['%c[Hippy-Vue-Next "3.3.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Nn(e,t){if(nt.isIOS()){const n=function(e){var t,n;const{iPhone:r}=e;let o;if((null==r?void 0:r.statusBar)&&(o=r.statusBar),null==o?void 0:o.disabled)return null;const i=new ln("div"),{statusBarHeight:s}=nt.Dimensions.screen;nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0);let c=4282431619;if(Number.isInteger(c)&&({backgroundColor:c}=o),i.setStyle("backgroundColor",c),"string"==typeof o.backgroundImage){const r=new ln("img");r.setStyle("width",nt.Dimensions.screen.width),r.setStyle("height",s),r.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),i.appendChild(r)}return i.addEventListener("layout",()=>{nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0)}),i}(e);if(n){const e=t.$el.parentNode;e.childNodes.length?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)}}}const xn=(e,t)=>{var n,r;const o=e,i=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);var s,c;o.use(Tt),o.use(pn),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(s=t.styleOptions.beforeLoadStyle,Ie=s),t.silent&&(c=t.silent,Ne=c),function(e=!0){xe=e}(t.trimWhitespace);const{mount:a}=o;return o.mount=e=>{var n;Ft("rootContainer",e);const r=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?function(e){const[t]=e;return Sn(t,e)}(t.ssrNodeList):function(e){const t=vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=a(r,i,!1);return Ft("instance",o),i||Nn(t,o),o},o.$start=async e=>new Promise(n=>{nt.hippyNativeRegister.regist(t.appName,r=>{var i,s;const{__instanceId__:c}=r;Te(...wn,"Start",t.appName,"with rootViewId",c,r);const a=Lt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:r,app:o,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Mt=l;const u={superProps:r,rootViewId:c};h.isFunction(e)?e(u):n(u)})}),o};t.BackAndroid=ct,t.ContentSizeEvent=class extends Dt{},t.EventBus=Ee,t.ExposureEvent=class extends Dt{},t.FocusEvent=class extends Dt{},t.HIPPY_DEBUG_ADDRESS=Se,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="3.3.1",t.HippyEvent=Dt,t.HippyKeyboardEvent=class extends Dt{},t.HippyLayoutEvent=Vt,t.HippyLoadResourceEvent=class extends Dt{},t.HippyTouchEvent=class extends Dt{},t.IS_PROD=!0,t.ListViewEvent=class extends Dt{},t.NATIVE_COMPONENT_MAP=we,t.Native=nt,t.ViewPagerEvent=class extends Dt{},t._setBeforeRenderToNative=(e,t)=>{h.isFunction(e)&&(1===t?Re=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=(e,t)=>{const n=m.createRenderer(l({patchProp:_n},gn)).createApp(e);return xn(n,t)},t.createHippyApp=xn,t.createSSRApp=(e,t)=>{const n=m.createHydrationRenderer(l({patchProp:_n},gn)).createApp(e);return xn(n,t)},t.eventIsKeyboardEvent=Bt,t.getCssMap=ye,t.getTagComponent=ut,t.isNativeTag=function(e){return dn.includes(e)},t.parseCSS=function(e,t={source:0}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(t){const n=t.exec(e);if(!n)return null;const r=n[0];return o(r),e=e.slice(r.length),n}function s(){i(/^\s*/)}function c(){return o=>(o.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},s(),o)}const a=[];function u(o){const i=l(l({},new Error(`${t.source}:${n}:${r}: ${o}`)),{},{reason:o,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw i;a.push(i)}function d(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}function p(e=[]){let t;const n=e||[];for(;t=d();)!1!==t&&n.push(t);return n}function f(){let t;const n=[];for(s(),p(n);e.length&&"}"!==e.charAt(0)&&(t=x()||O());)t&&(n.push(t),p(n));return n}function m(){return i(/^{\s*/)}function v(){return i(/^}/)}function g(){const e=i(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,e=>e.replace(/,/g,"‌")).split(/\s*(?![^(]*\)),\s*/).map(e=>e.replace(/\u200C/g,",")):null}function y(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return u("property missing ':'");const n=t.replace(I,""),r=h.camelize(n);let o=(()=>{const e=T[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(I,""):"";switch(o){case"backgroundImage":[o,a]=F(o,a);break;case"transform":{const e=/((\w+)\s*\()/,t=/(?:\(['"]?)(.*?)(?:['"]?\))/,n=a;a=[],n.split(" ").forEach(n=>{if(e.test(n)){let r,o;const i=e.exec(n),s=t.exec(n);i&&([,,r]=i),s&&([,o]=s),0===o.indexOf(".")&&(o="0"+o),parseFloat(o).toString()===o&&(o=parseFloat(o));const c={};c[r]=o,a.push(c)}else u("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>R(e)),[t]=e;let[,n]=e;n||(n=t),a={x:t,y:n};break}case"collapsable":a=Boolean(a);break;default:a=function(e){if("number"==typeof e)return e;if(P.test(e))try{return parseFloat(e)}catch(e){}return e}(a);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find(e=>o.toLowerCase().indexOf(e)>-1)&&(a=R(a))}const l=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),l}function b(){let e,t=[];if(!m())return u("missing '{'");for(p(t);e=y();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),p(t));return v()?t:u("missing '}'")}function O(){const e=c(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:b()})):u("selector missing")}function _(){let e;const t=[],n=c();for(;e=i(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),i(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:b()}):null}function E(e){const t=new RegExp(`^@${e}\\s*([^;]+);`);return()=>{const n=c(),r=i(t);if(!r)return null;const o={type:e};return o[e]=r[1].trim(),n(o)}}const S=E("import"),w=E("charset"),N=E("namespace");function x(){return"@"!==e[0]?null:function(){const e=c();let t=i(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=i(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const r=t[1];if(!m())return u("@keyframes missing '{'");let o,s=p();for(;o=_();)s.push(o),s=s.concat(p());return v()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):u("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@media missing '{'");const r=p().concat(f());return v()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}()||function(){const e=c(),t=i(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}()||function(){const e=c(),t=i(/^@supports *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@supports missing '{'");const r=p().concat(f());return v()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}()||S()||w()||N()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!m())return u("@document missing '{'");const o=p().concat(f());return v()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!m())return u("@page missing '{'");let n,r=p();for(;n=y();)r.push(n),r=r.concat(p());return v()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!m())return u("@host missing '{'");const t=p().concat(f());return v()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!m())return u("@font-face missing '{'");let t,n=p();for(;t=y();)n.push(t),n=n.concat(p());return v()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}return function e(t,n){const r=t&&"string"==typeof t.type,o=r?t:n;return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e(t,o)}):r&&"object"==typeof r&&e(r,o)}),r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n}),t}(function(){const e=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)},t.registerElement=lt,t.setScreenSize=function(t){var n;if(t.width&&t.height){const{screen:r}=null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=x}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return s})),n.d(t,"ITERATE_KEY",(function(){return I})),n.d(t,"ReactiveEffect",(function(){return d})),n.d(t,"ReactiveFlags",(function(){return rt})),n.d(t,"TrackOpTypes",(function(){return tt})),n.d(t,"TriggerOpTypes",(function(){return nt})),n.d(t,"computed",(function(){return Re})),n.d(t,"customRef",(function(){return Ge})),n.d(t,"deferredComputed",(function(){return et})),n.d(t,"effect",(function(){return v})),n.d(t,"effectScope",(function(){return c})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return l})),n.d(t,"isProxy",(function(){return je})),n.d(t,"isReactive",(function(){return Ne})),n.d(t,"isReadonly",(function(){return xe})),n.d(t,"isRef",(function(){return Fe})),n.d(t,"isShallow",(function(){return Te})),n.d(t,"markRaw",(function(){return Ce})),n.d(t,"onScopeDispose",(function(){return u})),n.d(t,"pauseScheduling",(function(){return w})),n.d(t,"pauseTracking",(function(){return _})),n.d(t,"proxyRefs",(function(){return ze})),n.d(t,"reactive",(function(){return Oe})),n.d(t,"readonly",(function(){return Ee})),n.d(t,"ref",(function(){return De})),n.d(t,"resetScheduling",(function(){return N})),n.d(t,"resetTracking",(function(){return S})),n.d(t,"shallowReactive",(function(){return _e})),n.d(t,"shallowReadonly",(function(){return Se})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return g})),n.d(t,"toRaw",(function(){return ke})),n.d(t,"toRef",(function(){return Ze})),n.d(t,"toRefs",(function(){return qe})),n.d(t,"toValue",(function(){return Ye})),n.d(t,"track",(function(){return R})),n.d(t,"trigger",(function(){return M})),n.d(t,"triggerRef",(function(){return Ue})),n.d(t,"unref",(function(){return He}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"); /** * @vue/reactivity v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors diff --git a/framework/examples/ios-demo/res/react/index.ios.js b/framework/examples/ios-demo/res/react/index.ios.js index bef4ceb2127..6b4b6a1f639 100644 --- a/framework/examples/ios-demo/res/react/index.ios.js +++ b/framework/examples/ios-demo/res/react/index.ios.js @@ -1,5 +1,5 @@ -!function(e){function t(t){for(var n,o,a=t[0],i=t[1],l=0,s=[];l0===l.indexOf(e))){var c=l.split("/"),s=c[c.length-1],u=s.split(".")[0];(f=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=f+s)}else{var f;u=l.split(".")[0];(f=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=f+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=r[e];0!==n&&n&&n[1](t),r[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default,o=n("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js"),o=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,n){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],n=!1;!function(o){if(e.Promise){o=o||{},n&&(n=!1,e.Promise._onHandle=null,e.Promise._onReject=null),n=!0;var a=0,i=0,l={};e.Promise._onHandle=function(e){2===e._state&&l[e._rejectionId]&&(l[e._rejectionId].logged?function(e){l[e].logged&&(o.onHandled?o.onHandled(l[e].displayId,l[e].error):l[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[e].displayId+".")))}(e._rejectionId):clearTimeout(l[e._rejectionId].timeout),delete l[e._rejectionId])},e.Promise._onReject=function(e,n){0===e._deferredState&&(e._rejectionId=a++,l[e._rejectionId]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._rejectionId),r(n,t)?100:2e3),logged:!1})}}function c(e){(o.allRejections||r(l[e].error,o.whitelist||t))&&(l[e].displayId=i++,o.onUnhandled?(l[e].logged=!0,o.onUnhandled(l[e].displayId,l[e].error)):(l[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(l[e].displayId,l[e].error)))}}({allRejections:!0,onUnhandled:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.prototype.toString.call(n);if("[object Error]"===r){var o=Error.prototype.toString.call(n),a=n.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(o||"")+"\n"+(null==a?"":a);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var l=(n&&(n.stack||n))+"";l.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",n,t)},onHandled:function(){}})}function r(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t,n){"use strict";var r=n("./node_modules/react-is/index.js"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=h(n);o&&o!==m&&e(t,o,r)}var i=u(n);f&&(i=i.concat(f(n)));for(var l=c(t),p=c(n),y=0;yu&&r[n].offset>t;)r[n].offset+=3;return"(.*)"}));for(;a=n.exec(t);){for(var h=0,m=a.index;"\\"===t.charAt(--m);)h++;h%2!=1&&((u+f===r.length||r[u+f].offset>a.index)&&r.splice(u+f,0,{name:d++,optional:!1,offset:a.index}),f++)}return t+=l?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,c)};var n=/\((?!\?)/g},"./node_modules/prop-types/factoryWithThrowingShims.js":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},"./node_modules/prop-types/index.js":function(e,t,n){e.exports=n("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/react-is/cjs/react-is.production.min.js":function(e,t,n){"use strict"; +!function(e){function t(t){for(var n,o,a=t[0],i=t[1],l=0,s=[];l0===l.indexOf(e))){var c=l.split("/"),s=c[c.length-1],u=s.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=d+s)}else{var d;u=l.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=d+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=r[e];0!==n&&n&&n[1](t),r[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;le.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default,o=n("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js"),o=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,n){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],n=!1;!function(o){if(e.Promise){o=o||{},n&&(n=!1,e.Promise._onHandle=null,e.Promise._onReject=null),n=!0;var a=0,i=0,l={};e.Promise._onHandle=function(e){2===e._state&&l[e._rejectionId]&&(l[e._rejectionId].logged?function(e){l[e].logged&&(o.onHandled?o.onHandled(l[e].displayId,l[e].error):l[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[e].displayId+".")))}(e._rejectionId):clearTimeout(l[e._rejectionId].timeout),delete l[e._rejectionId])},e.Promise._onReject=function(e,n){0===e._deferredState&&(e._rejectionId=a++,l[e._rejectionId]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._rejectionId),r(n,t)?100:2e3),logged:!1})}}function c(e){(o.allRejections||r(l[e].error,o.whitelist||t))&&(l[e].displayId=i++,o.onUnhandled?(l[e].logged=!0,o.onUnhandled(l[e].displayId,l[e].error)):(l[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(l[e].displayId,l[e].error)))}}({allRejections:!0,onUnhandled:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.prototype.toString.call(n);if("[object Error]"===r){var o=Error.prototype.toString.call(n),a=n.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(o||"")+"\n"+(null==a?"":a);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var l=(n&&(n.stack||n))+"";l.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",n,t)},onHandled:function(){}})}function r(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t,n){"use strict";var r=n("./node_modules/react-is/index.js"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=h(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var l=c(t),p=c(n),y=0;yu&&r[n].offset>t;)r[n].offset+=3;return"(.*)"}));for(;a=n.exec(t);){for(var h=0,m=a.index;"\\"===t.charAt(--m);)h++;h%2!=1&&((u+d===r.length||r[u+d].offset>a.index)&&r.splice(u+d,0,{name:f++,optional:!1,offset:a.index}),d++)}return t+=l?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,c)};var n=/\((?!\?)/g},"./node_modules/prop-types/factoryWithThrowingShims.js":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},"./node_modules/prop-types/index.js":function(e,t,n){e.exports=n("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/react-is/cjs/react-is.production.min.js":function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * @@ -7,4 +7,4 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n("./node_modules/@babel/runtime/helpers/typeof.js"),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,h=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,y=o?Symbol.for("react.suspense_list"):60120,g=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,w=o?Symbol.for("react.block"):60121,v=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function E(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case d:case h:case l:case s:case c:case p:return e;default:switch(e=e&&e.$$typeof){case f:case m:case b:case g:case u:return e;default:return t}}case i:return t}}}function T(e){return E(e)===h}t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=f,t.ContextProvider=u,t.Element=a,t.ForwardRef=m,t.Fragment=l,t.Lazy=b,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=p,t.isAsyncMode=function(e){return T(e)||E(e)===d},t.isConcurrentMode=T,t.isContextConsumer=function(e){return E(e)===f},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===l},t.isLazy=function(e){return E(e)===b},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===c},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===h||e===s||e===c||e===p||e===y||"object"===r(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===u||e.$$typeof===f||e.$$typeof===m||e.$$typeof===v||e.$$typeof===x||e.$$typeof===S||e.$$typeof===w)},t.typeOf=E},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){(function(e){var t=n("./node_modules/@babel/runtime/helpers/typeof.js"),r=function(e){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),l=new C(r||[]);return o(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function h(){}function m(){}function p(){}var y={};s(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(k([])));b&&b!==n&&r.call(b,i)&&(y=b);var w=p.prototype=h.prototype=Object.create(y);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,n){var a;o(this,"_invoke",{value:function(o,i){function l(){return new n((function(a,l){!function o(a,i,l,c){var s=f(e[a],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"===t(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):n.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return o("throw",e,l,c)}))}c(s.arg)}(o,i,a,l)}))}return a=a?a.then(l,l):l()}})}function S(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return R()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=E(i,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./node_modules/webpack/buildin/module.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/module.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return or}));var r={};n.r(r),n.d(r,"Focusable",(function(){return te})),n.d(r,"Image",(function(){return le})),n.d(r,"ListView",(function(){return ve})),n.d(r,"Modal",(function(){return Ce})),n.d(r,"RefreshWrapper",(function(){return Xe})),n.d(r,"PullHeaderFooter",(function(){return $e})),n.d(r,"ScrollView",(function(){return tt})),n.d(r,"Text",(function(){return lt})),n.d(r,"TextInput",(function(){return ut})),n.d(r,"View",(function(){return ht})),n.d(r,"ViewPager",(function(){return Tt})),n.d(r,"WebView",(function(){return Ct})),n.d(r,"BoxShadow",(function(){return Vt})),n.d(r,"WaterfallView",(function(){return Pt})),n.d(r,"RippleViewAndroid",(function(){return Nt}));var o={};n.r(o),n.d(o,"Animation",(function(){return qt})),n.d(o,"AsyncStorage",(function(){return Xt})),n.d(o,"NetInfo",(function(){return en})),n.d(o,"WebSocket",(function(){return on})),n.d(o,"UIManagerModule",(function(){return un}));var a={};n.r(a),n.d(a,"Slider",(function(){return gn})),n.d(a,"TabHost",(function(){return vn})),n.d(a,"SetNativeProps",(function(){return Tn})),n.d(a,"DynamicImport",(function(){return kn})),n.d(a,"Localization",(function(){return In})),n.d(a,"Turbo",(function(){return Ln})),n.d(a,"NestedScroll",(function(){return Mn}));var i=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/createClass.js"),s=n.n(c),u=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(u),d=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),h=n.n(d),m=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(m),y=n("./node_modules/react/index.js"),g=n.n(y),b=n("../../packages/hippy-react/dist/index.js"),w=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),v=n.n(w),x=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");n("./node_modules/@babel/runtime/helpers/typeof.js");function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;u--){var f=o[u];"."===f?T(o,u):".."===f?(T(o,u),s++):s&&(T(o,u),s--)}if(!l)for(;s--;s)o.unshift("..");!l||""===o[0]||o[0]&&E(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var C="Invariant failed";function k(e,t){if(!e)throw new Error(C)}function R(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function V(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=S({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=A(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function I(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=V(e,t,f(),y.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))}))},go:p,goBack:function(){p(-1)},goForward:function(){p(1)},canGo:function(e){var t=y.index+e;return t>=0&&t=0||(o[n]=e[n]);return o}var B=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),M=n.n(B),z=function(e){var t=Object(P.a)();return t.displayName=e,t}("Router"),F=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(x.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return g.a.createElement(z.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(g.a.Component);var H=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;ot?t:e;return Math.floor(n)},uniqueArray:function(e){for(var t=[],n=0;n=812&&b.PixelRatio.get()>=2&&(e=!0),e}},Le=(De.getScreenWidth()-24-12)/3,_e=Math.floor(Le/1.35),Be=b.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:_e,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:Le,height:_e},title:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function Me(e){var t=e.itemBean,n=t.title,r=t.picList,o=e.itemBean.subInfo,a=null;if(o&&o.length){var i=(o=De.uniqueArray(o)).join(" ");a=g.a.createElement(b.Text,{style:Be.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,Pe()({},e,{style:{collapsable:!1}}),g.a.createElement(b.Text,{style:[Be.title],numberOfLines:2,enableScale:!0},n),g.a.createElement(b.View,{style:Be.imageContainer},g.a.createElement(b.Image,{style:Be.image,source:{uri:r[0]},resizeMode:b.Image.resizeMode.cover}),g.a.createElement(b.Image,{style:[Be.image,{marginLeft:6,marginRight:6}],source:{uri:r[1]},resizeMode:b.Image.resizeMode.cover}),g.a.createElement(b.Image,{style:Be.image,source:{uri:r[2]},resizeMode:b.Image.resizeMode.cover})),a?g.a.createElement(b.View,{style:Be.tagLine},a):null)}var ze=De.getScreenWidth()-24,Fe=Math.floor(ze-12)/3,He=Math.floor(Fe/1.35),Ne=b.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:He},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:Fe,height:He},image:{width:Fe,height:He},title:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function We(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=null,r=t.title,o=t.picUrl,a=t.subInfo;if(a&&a.length){var i=(a=De.uniqueArray(a)).join(" ");n=g.a.createElement(b.Text,{style:Ne.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,Pe()({},e,{style:Ne.container}),g.a.createElement(b.View,{style:Ne.leftContainer},g.a.createElement(b.Text,{style:Ne.title,numberOfLines:2,enableScale:!0},r),n?g.a.createElement(b.View,{style:Ne.tagLine},n):null),g.a.createElement(b.View,{style:Ne.imageContainer},g.a.createElement(b.Image,{resizeMode:b.Image.resizeMode.cover,style:Ne.image,source:{uri:o}})))}var Ue=De.getScreenWidth()-24,Ke=Math.floor(188*Ue/336),Ge=b.StyleSheet.create({text:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ue,height:Ke,alignSelf:"center"},image:{width:Ue,height:Ke},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function qe(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=t.title,r=t.picUrl,o=t.subInfo,a=null;if(o&&o.length){var i=(o=De.uniqueArray(o)).join(" ");a=g.a.createElement(b.Text,{style:Ge.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,e,g.a.createElement(b.Text,{style:Ge.text,numberOfLines:2,enableScale:!0},n),g.a.createElement(b.View,{style:Ge.playerView},g.a.createElement(b.Image,{style:Ge.image,source:{uri:r},resizeMode:b.Image.resizeMode.cover})),a?g.a.createElement(b.View,{style:Ge.tagLine},a):null)}function Qe(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ye=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}}),Xe=function(e){f()(o,e);var t,n,r=Qe(o);function o(e){var t;return l()(this,o),(t=r.call(this,e)).state={dataSource:[],loadingState:"正在加载..."},t.fetchTimes=0,t.mockFetchData=t.mockFetchData.bind(fe()(t)),t.onRefresh=t.onRefresh.bind(fe()(t)),t.getRefresh=t.getRefresh.bind(fe()(t)),t.getRenderRow=t.getRenderRow.bind(fe()(t)),t.onEndReached=t.onEndReached.bind(fe()(t)),t.getRowType=t.getRowType.bind(fe()(t)),t.getRowKey=t.getRowKey.bind(fe()(t)),t}return s()(o,[{key:"componentDidMount",value:(n=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onEndReached",value:(t=se()(he.a.mark((function e(){var t,n,r,o,a;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state,n=t.dataSource,!t.fetchingDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.setState({fetchingDataFlag:!0,dataSource:n.concat([{style:100}])}),e.next=6,this.mockFetchData();case 6:r=e.sent,(o=n[n.length-1])&&100===o.style&&n.pop(),a=n.concat(r),this.setState({dataSource:a});case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"onRefresh",value:function(){var e=this;setTimeout(se()(he.a.mark((function t(){var n;return he.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.mockFetchData();case 2:n=t.sent,e.setState({dataSource:n}),e.refresh.refreshComplected();case 5:case"end":return t.stop()}}),t)}))),1e3)}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.loadingState,a=null,i=r[e],l=r.length===e+1;switch(i.style){case 1:a=g.a.createElement(Me,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 2:a=g.a.createElement(We,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 5:a=g.a.createElement(qe,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 100:a=g.a.createElement(b.Text,{style:Ye.loading},o)}return g.a.createElement(b.View,{style:Ye.container},g.a.createElement(b.View,{style:Ye.itemContainer},a),l?null:g.a.createElement(b.View,{style:Ye.spliter}))}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getRefresh",value:function(){return g.a.createElement(b.View,{style:{flex:1,height:30}},g.a.createElement(b.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.setState({fetchingDataFlag:!1}),e.fetchTimes+=1,e.fetchTimes>=50?t([]):t(Oe)}),600)}))}},{key:"render",value:function(){var e=this,t=this.state.dataSource;return g.a.createElement(b.RefreshWrapper,{ref:function(t){e.refresh=t},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},g.a.createElement(b.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:t.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}]),o}(g.a.Component);function Je(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ze=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),$e=function(e){f()(a,e);var t,n,r,o=Je(a);function a(e){var t;return l()(this,a),(t=o.call(this,e)).state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},t.loadMoreDataFlag=!1,t.fetchingDataFlag=!1,t.mockFetchData=t.mockFetchData.bind(fe()(t)),t.renderRow=t.renderRow.bind(fe()(t)),t.getRowType=t.getRowType.bind(fe()(t)),t.getRowKey=t.getRowKey.bind(fe()(t)),t.getHeaderStyle=t.getHeaderStyle.bind(fe()(t)),t.getFooterStyle=t.getFooterStyle.bind(fe()(t)),t.getRowStyle=t.getRowStyle.bind(fe()(t)),t.renderPullHeader=t.renderPullHeader.bind(fe()(t)),t.renderPullFooter=t.renderPullFooter.bind(fe()(t)),t.onEndReached=t.onEndReached.bind(fe()(t)),t.onHeaderReleased=t.onHeaderReleased.bind(fe()(t)),t.onHeaderPulling=t.onHeaderPulling.bind(fe()(t)),t.onFooterPulling=t.onFooterPulling.bind(fe()(t)),t}return s()(a,[{key:"componentDidMount",value:(r=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t}),this.listView.collapsePullHeader();case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){return e(Oe)}),800)}))}},{key:"onEndReached",value:(n=se()(he.a.mark((function e(){var t,n,r;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({footerRefreshText:"没有更多数据"}),r=[].concat(v()(t),v()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter();case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return n.apply(this,arguments)})},{key:"onHeaderReleased",value:(t=se()(he.a.mark((function e(){var t,n=this;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=(t=e.sent).reverse(),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(6);case 15:this.fetchingDataFlag=!1,this.setState({dataSource:t,headerRefreshText:"2秒后收起"},(function(){n.listView.collapsePullHeader({time:2e3})}));case 17:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(){return t.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ze.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}},{key:"onFooterPulling",value:function(e){console.log("onFooterPulling",e)}},{key:"onClickItem",value:function(e,t){console.log("item: ".concat(e," is clicked.."),t.target.nodeId,t.currentTarget.nodeId)}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getHeaderStyle",value:function(){return this.state.horizontal?{width:50}:{}}},{key:"renderPullHeader",value:function(){var e=this.state,t=e.headerRefreshText;return e.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},t)):g.a.createElement(b.View,{style:Ze.pullContainer},g.a.createElement(b.Text,{style:Ze.pullContent},t))}},{key:"getFooterStyle",value:function(){return this.state.horizontal?{width:40}:{}}},{key:"renderPullFooter",value:function(){return this.state.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):g.a.createElement(b.View,{style:Ze.pullFooter},g.a.createElement(b.Text,{style:{color:"white"}},this.state.footerRefreshText))}},{key:"renderRow",value:function(e){var t=this,n=this.state.dataSource,r=null,o=n[e],a=n.length===e+1;switch(o.style){case 1:r=g.a.createElement(Me,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 2:r=g.a.createElement(We,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 5:r=g.a.createElement(qe,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}})}return g.a.createElement(b.View,{style:Ze.container},g.a.createElement(b.View,{style:Ze.itemContainer},r),a?null:g.a.createElement(b.View,{style:Ze.splitter}))}},{key:"getRowStyle",value:function(){return this.state.horizontal?{height:300,justifyContent:"center",alignItems:"center"}:{}}},{key:"changeDirection",value:function(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.dataSource,r=t.horizontal;return g.a.createElement(b.View,{style:{flex:1,collapsable:!1}},g.a.createElement(b.ListView,{horizontal:r,onClick:function(e){return console.log("ListView",e.target.nodeId,e.currentTarget.nodeId)},ref:function(t){e.listView=t},style:[{backgroundColor:"#ffffff"},r?{height:300}:{flex:1}],numberOfRows:n.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:function(e){return 0===e}}),"android"===b.Platform.OS?g.a.createElement(b.View,{onClick:function(){return e.changeDirection()},style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},g.a.createElement(b.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white"}},"切换方向"))):null)}}]),a}(g.a.Component),et=b.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function tt(){return g.a.createElement(b.ScrollView,null,g.a.createElement(b.View,{style:et.itemTitle},g.a.createElement(b.Text,null,"Horizontal ScrollView")),g.a.createElement(b.View,null,g.a.createElement(b.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:function(e){return console.log("onScroll",e)},onMomentumScrollBegin:function(e){return console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd:function(e){return console.log("onMomentumScrollEnd",e)},onScrollBeginDrag:function(e){return console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){return console.log("onScrollEndDrag",e)}},g.a.createElement(b.Text,{style:et.itemStyle},"A"),g.a.createElement(b.Text,{style:et.itemStyle},"B"),g.a.createElement(b.Text,{style:et.itemStyle},"C"),g.a.createElement(b.Text,{style:et.itemStyle},"D"),g.a.createElement(b.Text,{style:et.itemStyle},"E"),g.a.createElement(b.Text,{style:et.itemStyle},"F"),g.a.createElement(b.Text,{style:et.itemStyle},"A"))),g.a.createElement(b.View,{style:et.itemTitle},g.a.createElement(b.Text,null,"Vertical ScrollView")),g.a.createElement(b.ScrollView,{bounces:!0,horizontal:!1,style:et.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},g.a.createElement(b.Text,{style:et.itemStyle},"A"),g.a.createElement(b.Text,{style:et.itemStyle},"B"),g.a.createElement(b.Text,{style:et.itemStyle},"C"),g.a.createElement(b.Text,{style:et.itemStyle},"D"),g.a.createElement(b.Text,{style:et.itemStyle},"E"),g.a.createElement(b.Text,{style:et.itemStyle},"F"),g.a.createElement(b.Text,{style:et.itemStyle},"A")))}function nt(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",ot="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",at=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}}),it=0,lt=function(e){f()(n,e);var t=nt(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},numberOfLines:2,ellipsizeMode:void 0},r.incrementFontSize=r.incrementFontSize.bind(fe()(r)),r.decrementFontSize=r.decrementFontSize.bind(fe()(r)),r.incrementLine=r.incrementLine.bind(fe()(r)),r.decrementLine=r.decrementLine.bind(fe()(r)),r.changeMode=r.changeMode.bind(fe()(r)),r}return s()(n,[{key:"incrementFontSize",value:function(){var e=this.state.fontSize;24!==e&&this.setState({fontSize:e+1})}},{key:"decrementFontSize",value:function(){var e=this.state.fontSize;6!==e&&this.setState({fontSize:e-1})}},{key:"incrementLine",value:function(){var e=this.state.numberOfLines;e<6&&this.setState({numberOfLines:e+1})}},{key:"decrementLine",value:function(){var e=this.state.numberOfLines;e>1&&this.setState({numberOfLines:e-1})}},{key:"changeMode",value:function(e){this.setState({ellipsizeMode:e})}},{key:"changeBreakStrategy",value:function(e){this.setState({breakStrategy:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.fontSize,r=t.textShadowColor,o=t.textShadowOffset,a=t.numberOfLines,i=t.ellipsizeMode,l=t.breakStrategy,c=function(e){return g.a.createElement(b.View,{style:at.itemTitle},g.a.createElement(b.Text,{style:!0},e))};return g.a.createElement(b.ScrollView,{style:{paddingHorizontal:10}},c("shadow"),g.a.createElement(b.View,{style:[at.itemContent,{height:60}],onClick:function(){var t="red",n={x:10,y:1};it%2==1&&(t="grey",n={x:1,y:1}),it+=1,e.setState({textShadowColor:t,textShadowOffset:n})}},g.a.createElement(b.Text,{style:[at.normalText,{color:"#242424",textShadowOffset:o,textShadowRadius:3,textShadowColor:r}]},"Text shadow is grey with radius 3 and offset 1")),c("color"),g.a.createElement(b.View,{style:[at.itemContent,{height:80}]},g.a.createElement(b.Text,{style:[at.normalText,{color:"#242424"}]},"Text color is black"),g.a.createElement(b.Text,{style:[at.normalText,{color:"blue"}]},"Text color is blue"),g.a.createElement(b.Text,{style:[at.normalText,{color:"rgb(228,61,36)"}]},"This is red")),c("fontSize"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{style:[at.normalText,{fontSize:n}]},"Text fontSize is ".concat(n)),g.a.createElement(b.View,{style:at.button,onClick:this.incrementFontSize},g.a.createElement(b.Text,{style:at.buttonText},"放大字体")),g.a.createElement(b.View,{style:at.button,onClick:this.decrementFontSize},g.a.createElement(b.Text,{style:at.buttonText},"缩小字体"))),c("fontStyle"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{style:[at.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),g.a.createElement(b.Text,{style:[at.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),c("numberOfLines and ellipsizeMode"),g.a.createElement(b.View,{style:[at.itemContent]},g.a.createElement(b.Text,{style:[at.normalText,{marginBottom:10}]},"numberOfLines=".concat(a," | ellipsizeMode=").concat(i)),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[at.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),g.a.createElement(b.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[at.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[at.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},g.a.createElement(b.Image,{style:{width:24,height:24},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),g.a.createElement(b.Text,null,"Text + Attachment")),g.a.createElement(b.View,{style:at.buttonBar},g.a.createElement(b.View,{style:at.button,onClick:this.incrementLine},g.a.createElement(b.Text,{style:at.buttonText},"加一行")),g.a.createElement(b.View,{style:at.button,onClick:this.decrementLine},g.a.createElement(b.Text,{style:at.buttonText},"减一行"))),g.a.createElement(b.View,{style:at.buttonBar},g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeMode("clip")}},g.a.createElement(b.Text,{style:at.buttonText},"clip")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeMode("head")}},g.a.createElement(b.Text,{style:at.buttonText},"head")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeMode("middle")}},g.a.createElement(b.Text,{style:at.buttonText},"middle")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeMode("tail")}},g.a.createElement(b.Text,{style:at.buttonText},"tail")))),c("textDecoration"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),g.a.createElement(b.Text,{numberOfLines:1,style:[at.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),c("LetterSpacing"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),g.a.createElement(b.Text,{numberOfLines:1,style:[at.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),c("Nest Text"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:3},g.a.createElement(b.Text,{numberOfLines:3,style:[at.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),g.a.createElement(b.Text,{numberOfLines:3,style:at.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),c("Custom font"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:at.customFont},"Hippy 跨端框架")),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),c("Text Nested"),g.a.createElement(b.View,{style:[at.itemContent,{height:150}]},g.a.createElement(b.Text,{style:{height:100,lineHeight:50}},g.a.createElement(b.Text,{numberOfLines:1,style:at.normalText},"后面有张图片"),g.a.createElement(b.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),g.a.createElement(b.Text,{numberOfLines:1,style:at.customFont},"前面有张图片")),g.a.createElement(b.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},g.a.createElement(b.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:rt}}),g.a.createElement(b.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===b.Platform.OS&&c("breakStrategy"),"android"===b.Platform.OS&&g.a.createElement(b.View,{style:at.itemContent},g.a.createElement(b.Text,{style:[at.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:l},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),g.a.createElement(b.Text,{style:at.normalText},"breakStrategy: ".concat(l)),g.a.createElement(b.View,{style:at.buttonBar},g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeBreakStrategy("simple")}},g.a.createElement(b.Text,{style:at.buttonText},"simple")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeBreakStrategy("high_quality")}},g.a.createElement(b.Text,{style:at.buttonText},"high_quality")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeBreakStrategy("balanced")}},g.a.createElement(b.Text,{style:at.buttonText},"balanced")))),c("verticalAlign"),g.a.createElement(b.View,{style:[at.itemContent,{height:"android"===b.Platform.OS?160:70}]},g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:ot}}),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,top:-10},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:18,height:12,top:-5},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:24,height:12},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:36,height:24,top:3},source:{uri:ot}}),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字")))),c("tintColor & backgroundColor"),g.a.createElement(b.View,{style:[at.itemContent]},g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:rt}}),g.a.createElement(b.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:rt}})))),c("margin"),g.a.createElement(b.View,{style:[at.itemContent]},g.a.createElement(b.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:rt}})),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:rt}})))))}}]),n}(g.a.Component);function ct(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var st=b.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}}),ut=function(e){f()(o,e);var t,n,r=ct(o);function o(e){var t;return l()(this,o),(t=r.call(this,e)).state={textContent:""},t.changeInputContent=t.changeInputContent.bind(fe()(t)),t.focus=t.focus.bind(fe()(t)),t.blur=t.blur.bind(fe()(t)),t}return s()(o,[{key:"changeInputContent",value:function(){this.setState({textContent:"当前时间毫秒:".concat(Date.now())})}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"onFocus",value:(n=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.input.isFocused();case 2:t=e.sent,this.setState({event:"onFocus",isFocused:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onBlur",value:(t=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.input.isFocused();case 2:t=e.sent,this.setState({event:"onBlur",isFocused:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"changeBreakStrategy",value:function(e){this.setState({breakStrategy:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.textContent,r=t.event,o=t.isFocused,a=t.breakStrategy,i=function(e){return g.a.createElement(b.View,{style:st.itemTitle},g.a.createElement(b.Text,null,e))};return g.a.createElement(b.ScrollView,{style:st.container_style},i("text"),g.a.createElement(b.TextInput,{ref:function(t){e.input=t},style:st.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:n,onBlur:function(){return e.onBlur()},onFocus:function(){return e.onFocus()}}),g.a.createElement(b.Text,{style:st.itemContent},"事件: ".concat(r," | isFocused: ").concat(o)),g.a.createElement(b.View,{style:st.button,onClick:this.changeInputContent},g.a.createElement(b.Text,null,"点击改变输入框内容")),g.a.createElement(b.View,{style:st.button,onClick:this.focus},g.a.createElement(b.Text,null,"Focus")),g.a.createElement(b.View,{style:st.button,onClick:this.blur},g.a.createElement(b.Text,null,"Blur")),i("numeric"),g.a.createElement(b.TextInput,{style:st.input_style,keyboardType:"numeric",placeholder:"numeric"}),i("phone-pad"),g.a.createElement(b.TextInput,{style:st.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),i("password"),g.a.createElement(b.TextInput,{style:st.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),i("maxLength"),g.a.createElement(b.TextInput,{caretColor:"yellow",style:st.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===b.Platform.OS&&i("breakStrategy"),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.TextInput,{style:st.input_style_block,breakStrategy:a,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),g.a.createElement(b.Text,{style:{}},"breakStrategy: ".concat(a)),g.a.createElement(b.View,{style:st.buttonBar},g.a.createElement(b.View,{style:st.button,onClick:function(){return e.changeBreakStrategy("simple")}},g.a.createElement(b.Text,{style:st.buttonText},"simple")),g.a.createElement(b.View,{style:st.button,onClick:function(){return e.changeBreakStrategy("high_quality")}},g.a.createElement(b.Text,{style:st.buttonText},"high_quality")),g.a.createElement(b.View,{style:st.button,onClick:function(){return e.changeBreakStrategy("balanced")}},g.a.createElement(b.Text,{style:st.buttonText},"balanced")))))}}]),o}(y.Component),ft=n.p+"assets/defaultSource.jpg",dt=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function ht(){var e=function(e){return g.a.createElement(b.View,{style:dt.itemTitle},g.a.createElement(b.Text,null,e))};return g.a.createElement(b.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),g.a.createElement(b.View,{style:[dt.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),g.a.createElement(b.View,{style:[dt.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:ft}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},g.a.createElement(b.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),g.a.createElement(b.View,{style:[dt.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},g.a.createElement(b.Text,{style:{color:"white"}},"渐变色")),e("border props"),g.a.createElement(b.View,{style:[dt.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),g.a.createElement(b.View,{style:[dt.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},g.a.createElement(b.View,{style:[dt.smallRectangle,{backgroundColor:"yellow"}]}),g.a.createElement(b.View,{style:[dt.smallRectangle,{backgroundColor:"blue"}]}),g.a.createElement(b.View,{style:[dt.smallRectangle,{backgroundColor:"green"}]})))}var mt=b.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),pt="SquarePagerView",yt="TrianglePagerView",gt="CirclePagerView";function bt(e,t){var n=function(t){return g.a.createElement(b.View,{style:mt.pageContainer,key:t},g.a.createElement(b.View,{style:[mt.shapeBase,e],key:"shape"}),g.a.createElement(b.View,{style:mt.mainRec,key:"title"},t?g.a.createElement(b.Text,{style:mt.title},t):null))};return n.displayName=t,n}var wt=bt(mt.square,pt),vt=bt(mt.triangle,yt),xt=bt(mt.circle,gt);function St(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Et=b.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}}),Tt=function(e){f()(n,e);var t=St(n);function n(e){var r;return l()(this,n),r=t.call(this,e),$()(fe()(r),"state",{selectedIndex:0}),r.onPageSelected=r.onPageSelected.bind(fe()(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(fe()(r)),r}return s()(n,[{key:"onPageSelected",value:function(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}},{key:"onPageScrollStateChanged",value:function(e){console.log("onPageScrollStateChanged",e)}},{key:"onPageScroll",value:function(e){var t=e.offset,n=e.position;console.log("onPageScroll",t,n)}},{key:"render",value:function(){var e=this,t=this.state.selectedIndex;return g.a.createElement(b.View,{style:{flex:1,backgroundColor:"#ffffff"}},g.a.createElement(b.View,{style:Et.buttonContainer},g.a.createElement(b.View,{style:Et.button,onClick:function(){e.viewpager.setPage(2)}},g.a.createElement(b.Text,{style:Et.buttonText},"动效滑到第3页")),g.a.createElement(b.View,{style:Et.button,onClick:function(){return e.viewpager.setPageWithoutAnimation(0)}},g.a.createElement(b.Text,{style:Et.buttonText},"直接滑到第1页"))),g.a.createElement(b.ViewPager,{ref:function(t){e.viewpager=t},style:Et.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[wt("squarePager"),vt("TrianglePager"),xt("CirclePager")]),g.a.createElement(b.View,{style:Et.dotContainer},new Array(3).fill(0).map((function(e,n){var r=n===t;return g.a.createElement(b.View,{style:[Et.dot,r?Et.selectDot:null],key:"dot_".concat(n)})}))))}}]),n}(g.a.Component),At=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function Ct(){return g.a.createElement(b.View,{style:{paddingHorizontal:10,flex:1}},g.a.createElement(b.View,{style:At.itemTitle},g.a.createElement(b.Text,null,"WebView 示例")),g.a.createElement(b.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:At.webViewStyle,onLoad:function(e){var t=e.url;return console.log("webview onload",t)},onLoadStart:function(e){var t=e.url;return console.log("webview onLoadStart",t)},onLoadEnd:function(e){var t=e.url,n=e.success,r=e.error;return console.log("webview onLoadEnd",t,n,r)}}))}var kt=b.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),Rt=b.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function Vt(){return g.a.createElement(b.View,{style:kt.shadowDemo},"android"===b.Platform.OS?g.a.createElement(b.View,{style:kt.shadowDemoCubeAndroid},g.a.createElement(b.View,{style:kt.shadowDemoContentAndroid},g.a.createElement(b.Text,{style:kt.text},"没有偏移阴影样式"))):g.a.createElement(b.View,{style:kt.shadowDemoCubeIos},g.a.createElement(b.View,{style:kt.shadowDemoContentIos},g.a.createElement(b.Text,{style:kt.text},"没有偏移阴影样式"))),"android"===b.Platform.OS?g.a.createElement(b.View,{style:Rt.shadowDemoCubeAndroid},g.a.createElement(b.View,{style:Rt.shadowDemoContentAndroid},g.a.createElement(b.Text,{style:Rt.text},"偏移阴影样式"))):g.a.createElement(b.View,{style:Rt.shadowDemoCubeIos},g.a.createElement(b.View,{style:Rt.shadowDemoContentIos},g.a.createElement(b.Text,{style:Rt.text},"偏移阴影样式"))))}function It(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ot=Oe.filter((function(e){return 2!==e.style})),jt=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),Pt=function(e){f()(i,e);var t,n,r,o,a=It(i);function i(e){var t;return l()(this,i),(t=a.call(this,e)).state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},t.numberOfColumns=2,t.columnSpacing=6,t.interItemSpacing=6,t.mockFetchData=t.mockFetchData.bind(fe()(t)),t.renderItem=t.renderItem.bind(fe()(t)),t.getItemType=t.getItemType.bind(fe()(t)),t.getItemKey=t.getItemKey.bind(fe()(t)),t.onEndReached=t.onEndReached.bind(fe()(t)),t.onRefresh=t.onRefresh.bind(fe()(t)),t.getRefresh=t.getRefresh.bind(fe()(t)),t.renderPullFooter=t.renderPullFooter.bind(fe()(t)),t.renderPullHeader=t.renderPullHeader.bind(fe()(t)),t.onHeaderReleased=t.onHeaderReleased.bind(fe()(t)),t.onHeaderPulling=t.onHeaderPulling.bind(fe()(t)),t.onFooterPulling=t.onFooterPulling.bind(fe()(t)),t.renderBanner=t.renderBanner.bind(fe()(t)),t.getItemStyle=t.getItemStyle.bind(fe()(t)),t.getHeaderStyle=t.getHeaderStyle.bind(fe()(t)),t.onScroll=t.onScroll.bind(fe()(t)),t}return s()(i,[{key:"componentDidMount",value:(o=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"onEndReached",value:(r=se()(he.a.mark((function e(){var t,n,r;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({footerRefreshText:"没有更多数据"}),r=[].concat(v()(t),v()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter();case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return r.apply(this,arguments)})},{key:"onHeaderReleased",value:(n=se()(he.a.mark((function e(){var t,n=this;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:this.fetchingDataFlag=!1,this.setState({dataSource:t,headerRefreshText:"2秒后收起"},(function(){n.listView.collapsePullHeader({time:2e3})}));case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return n.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>jt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}},{key:"onFooterPulling",value:function(e){console.log("onFooterPulling",e)}},{key:"renderPullFooter",value:function(){return this.state.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):g.a.createElement(b.View,{style:jt.pullFooter},g.a.createElement(b.Text,{style:{color:"white"}},this.state.footerRefreshText))}},{key:"onRefresh",value:(t=se()(he.a.mark((function e(){var t=this;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(se()(he.a.mark((function e(){var n;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.mockFetchData();case 2:n=e.sent,t.setState({dataSource:n}),t.refresh.refreshComplected();case 5:case"end":return e.stop()}}),e)}))),1e3);case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"getRefresh",value:function(){return g.a.createElement(b.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},g.a.createElement(b.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getItemType",value:function(e){return this.state.dataSource[e].style}},{key:"getItemKey",value:function(e){return"row-".concat(e)}},{key:"onItemClick",value:function(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}},{key:"onScroll",value:function(e){}},{key:"renderBanner",value:function(){return 0===this.state.dataSource.length?null:g.a.createElement(b.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}},{key:"renderItem",value:function(e){var t=this,n=null,r=this.state.dataSource[e];switch(r.style){case 1:n=g.a.createElement(Me,{itemBean:r.itemBean});break;case 2:n=g.a.createElement(We,{itemBean:r.itemBean});break;case 5:n=g.a.createElement(qe,{itemBean:r.itemBean})}return g.a.createElement(b.View,{onClick:function(){return t.onItemClick(e)},style:jt.container},g.a.createElement(b.View,{style:jt.itemContainer},n),g.a.createElement(b.View,{style:jt.splitter}))}},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){var t=[].concat(v()(Ot),v()(Ot));return e(t)}),600)}))}},{key:"getWaterfallContentInset",value:function(){return{top:0,left:0,bottom:0,right:0}}},{key:"getItemStyle",value:function(){var e=this.numberOfColumns,t=this.columnSpacing,n=b.Dimensions.get("screen").width-32,r=this.getWaterfallContentInset();return{width:(n-r.left-r.right-(e-1)*t)/e}}},{key:"getHeaderStyle",value:function(){return this.state.horizontal?{width:50}:{}}},{key:"renderPullHeader",value:function(){var e=this.state,t=e.headerRefreshText;return e.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},t)):g.a.createElement(b.View,{style:jt.pullContainer},g.a.createElement(b.Text,{style:jt.pullContent},t))}},{key:"render",value:function(){var e=this,t=this.state.dataSource,n=this.numberOfColumns,r=this.columnSpacing,o=this.interItemSpacing,a=this.getWaterfallContentInset();return g.a.createElement(b.WaterfallView,{ref:function(t){e.listView=t},numberOfColumns:n,columnSpacing:r,interItemSpacing:o,numberOfItems:t.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:a})}}]),i}(g.a.Component),Dt=n.p+"assets/defaultSource.jpg",Lt=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),_t=n.n(Lt);function Bt(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 Mt(e){for(var t=1;t0&&void 0!==o[0]&&o[0],e.prev=1,e.next=4,b.UIManagerModule.getBoundingClientRect(n.current,{relToContainer:t});case 4:r=e.sent,u(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getBoxPosition error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),d=ln(ln({},cn.box),a);return g.a.createElement(b.View,{style:cn.full},g.a.createElement(b.View,{style:cn.demoContent},g.a.createElement(b.View,{ref:n,style:d},g.a.createElement(b.Text,{style:cn.text,numberOfLines:2},"I am the box"))),g.a.createElement(b.View,{style:cn.buttonContainer},g.a.createElement(b.View,{onClick:function(){var n=sn(0,e-100),r=sn(0,t-450),o=sn(80,120);i({left:n,top:r,width:o,height:o})},style:cn.button},g.a.createElement(b.Text,{style:cn.buttonText},"Move position")),g.a.createElement(b.View,{onClick:function(){return f(!1)},style:cn.button},g.a.createElement(b.Text,{style:cn.buttonText},"Measure in App Window")),g.a.createElement(b.View,{onClick:function(){return f(!0)},style:cn.button},g.a.createElement(b.Text,{style:cn.buttonText},"Measure in Container(RootView)"))),g.a.createElement(b.View,{style:cn.row},g.a.createElement(b.View,null,g.a.createElement(b.Text,null,"Box style:"),g.a.createElement(b.Text,{style:cn.black},"Width: ".concat(d.width)),g.a.createElement(b.Text,{style:cn.black},"Height: ".concat(d.height)),g.a.createElement(b.Text,{style:cn.black},"Left: ".concat(d.left)),g.a.createElement(b.Text,{style:cn.black},"Top: ".concat(d.top))),g.a.createElement(b.View,null,g.a.createElement(b.Text,null,"getBoundingClientRect output:"),g.a.createElement(b.Text,{style:cn.black},"Width: ".concat(s.width)),g.a.createElement(b.Text,{style:cn.black},"Height: ".concat(s.height)),g.a.createElement(b.Text,{style:cn.black},"X: ".concat(s.x)),g.a.createElement(b.Text,{style:cn.black},"Y: ".concat(s.y)))))};function fn(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var dn=b.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}}),hn=function(e){f()(n,e);var t=fn(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).state={current:e.current||0},r}return s()(n,[{key:"update",value:function(e){this.state.current!==e&&this.setState({current:e})}},{key:"render",value:function(){for(var e=this.props.count,t=this.state.current,n=[],r=0;r=o||(this.indicator&&this.indicator.update(r),this.currentIndex=r)}}},{key:"onScrollBeginDrag",value:function(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}},{key:"onScrollEndDrag",value:function(){this.doCreateTimer()}},{key:"onLayout",value:function(e){this.width=e.layout.width}},{key:"doSwitchPage",value:function(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}},{key:"doCreateTimer",value:function(){var e=this;this.doClearTimer(),this.duration<=0||(this.interval=setInterval((function(){e.doSwitchPage((e.currentIndex+1)%e.itemCount)}),this.duration))}},{key:"doClearTimer",value:function(){this.interval&&clearInterval(this.interval),this.interval=null}},{key:"render",value:function(){for(var e=this,t=this.props.images,n=[],r=0;rr-a?60*r-o:60*n-60*a+30,this.navScrollView.scrollTo({x:e,y:0,animated:!0})}}},{key:"pressNavItem",value:function(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}},{key:"renderNav",value:function(){var e=this,t=this.state,n=t.navList,r=t.curIndex;return g.a.createElement(b.View,{style:wn.container},g.a.createElement(b.ScrollView,{style:wn.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:function(t){e.navScrollView=t}},n.map((function(t,n){return g.a.createElement(b.View,{style:wn.navItem,key:"nav_".concat(t),activeOpacity:.5,onClick:function(){return e.pressNavItem(n)}},g.a.createElement(b.Text,{style:[wn.navItemText,r===n?wn.navItemTextBlue:wn.navItemTextNormal],numberOfLines:1},t))}))))}},{key:"render",value:function(){var e=this,t=this.state.navList;return g.a.createElement(b.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),g.a.createElement(b.ViewPager,{ref:function(t){e.viewPager=t},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},t.map((function(e,t){return n.getPage(e,t)}))))}}],[{key:"getPage",value:function(e,t){switch(t%3){case 0:return wt(e);case 1:return xt(e);case 2:return vt(e);default:return null}}}]),n}(g.a.Component);function xn(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Sn=b.Dimensions.get("window").width,En=b.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:Sn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:Sn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}}),Tn=function(e){f()(n,e);var t=xn(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).demon1Point=g.a.createRef(),r.demo1PointDom=null,r.state={demo2Left:0},r.isDemon1Layouted=!1,r.idDemon2Layouted=!1,r.onTouchDown1=r.onTouchDown1.bind(fe()(r)),r.onDemon1Layout=r.onDemon1Layout.bind(fe()(r)),r.onTouchMove1=r.onTouchMove1.bind(fe()(r)),r.onTouchDown2=r.onTouchDown2.bind(fe()(r)),r.onTouchMove2=r.onTouchMove2.bind(fe()(r)),r}return s()(n,[{key:"componentDidMount",value:function(){}},{key:"onDemon1Layout",value:function(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=b.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}},{key:"onTouchDown1",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,Sn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchMove1",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,Sn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchDown2",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,Sn),this.setState({demo2Left:n})}},{key:"onTouchMove2",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,Sn),this.setState({demo2Left:n})}},{key:"render",value:function(){var e=this.state.demo2Left;return g.a.createElement(b.View,{style:En.setNativePropsDemo},g.a.createElement(b.Text,null,"setNativeProps实现拖动效果"),g.a.createElement(b.View,{style:En.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},g.a.createElement(b.View,{onLayout:this.onDemon1Layout,style:En.nativeDemo1Point,ref:this.demon1Point})),g.a.createElement(b.View,{style:En.splitter}),g.a.createElement(b.Text,null,"普通渲染实现拖动效果"),g.a.createElement(b.View,{style:En.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},g.a.createElement(b.View,{style:[En.nativeDemo2Point,{left:e}]})))}}]),n}(g.a.Component);function An(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Cn=b.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),kn=function(e){f()(r,e);var t=An(r);function r(e){var n;return l()(this,r),(n=t.call(this,e)).state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},n.onAsyncComponentLoad=n.onAsyncComponentLoad.bind(fe()(n)),n}return s()(r,[{key:"onAsyncComponentLoad",value:function(){var e=this;console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then((function(t){e.setState({AsyncComponentFromLocal:t.default||t})})).catch((function(e){return console.error("import async local component error",e)})),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then((function(t){e.setState({AsyncComponentFromHttp:t.default||t})})).catch((function(e){return console.error("import async remote component error",e)}))}},{key:"render",value:function(){var e=this.state,t=e.AsyncComponentFromLocal,n=e.AsyncComponentFromHttp;return g.a.createElement(b.View,{style:Cn.dynamicImportDemo},g.a.createElement(b.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},g.a.createElement(b.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),g.a.createElement(b.View,{style:{marginTop:20}},t?g.a.createElement(t,null):null,n?g.a.createElement(n,null):null))}}]),r}(g.a.Component);function Rn(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Vn=b.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),In=function(e){f()(n,e);var t=Rn(n);function n(){return l()(this,n),t.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=b.Platform.Localization||{},t=e.country,n=e.language,r=e.direction;return g.a.createElement(b.View,{style:Vn.LocalizationDemo},g.a.createElement(b.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},g.a.createElement(b.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},"国际化相关信息:国家 ".concat(t," | 语言 ").concat(n," | 方向 ").concat(1===r?"RTL":"LTR"))))}}]),n}(g.a.Component),On=function(){var e=se()(he.a.mark((function e(t){return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),jn=function(){return getTurboModule("demoTurbo").getTurboConfig()};function Pn(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Dn=b.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}}),Ln=function(e){f()(r,e);var t,n=Pn(r);function r(e){var t;return l()(this,r),(t=n.call(this,e)).state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},t.onTurboFunc=t.onTurboFunc.bind(fe()(t)),t.getRenderRow=t.getRenderRow.bind(fe()(t)),t.getRowKey=t.getRowKey.bind(fe()(t)),t}return s()(r,[{key:"onTurboFunc",value:(t=se()(he.a.mark((function e(t){var n;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nativeWithPromise"!==t){e.next=6;break}return e.next=3,On("aaa");case 3:n=e.sent,e.next=7;break;case 6:"getTurboConfig"===t?(this.config=jn(),n="获取到config对象"):"printTurboConfig"===t?(r=this.config||jn(),n=getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===t?n=(this.config||jn()).getInfo():"setInfo"===t?((this.config||jn()).setInfo("Hello World"),n="设置config信息成功"):n={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[t]();case 7:this.setState({result:n});case 8:case"end":return e.stop()}var r}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"renderResultView",value:function(){return g.a.createElement(b.View,{style:Dn.resultView},g.a.createElement(b.Text,{style:{backgroundColor:"darkseagreen"}},"".concat(this.state.result)))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state.funList;return g.a.createElement(b.View,{style:Dn.cellContentView},g.a.createElement(b.View,{style:Dn.funcInfo},g.a.createElement(b.Text,{numberofLines:0},"函数名:",n[e])),g.a.createElement(b.Text,{style:Dn.actionButton,onClick:function(){return t.onTurboFunc(n[e])}},"执行"))}},{key:"getRowKey",value:function(e){return this.state.funList[e]}},{key:"render",value:function(){var e=this.state.funList;return g.a.createElement(b.View,{style:Dn.container},this.renderResultView(),g.a.createElement(b.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}]),r}(g.a.Component);function _n(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=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Bn=b.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}}),Mn=function(e){f()(n,e);var t=_n(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).state={layoutHeight:0,currentSlide:0},r}return s()(n,[{key:"selectPage",value:function(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.layoutHeight,r=t.currentSlide;return g.a.createElement(b.ScrollView,{style:Bn.demoWrap,scrollEventThrottle:50,onLayout:function(t){return e.setState({layoutHeight:t.layout.height})}},g.a.createElement(b.View,{style:Bn.banner}),g.a.createElement(b.View,{style:Bn.tabs},g.a.createElement(b.Text,{key:"tab1",style:0===r?Bn.tabSelected:Bn.tabText,onClick:function(){return e.selectPage(0)}},"tab 1 (parent first)"),g.a.createElement(b.Text,{key:"tab2",style:1===r?Bn.tabSelected:Bn.tabText,onClick:function(){return e.selectPage(1)}},"tab 2 (self first)")),g.a.createElement(b.ViewPager,{ref:function(t){return e.viewPager=t},initialPage:r,style:{height:n-80},onPageSelected:function(t){return e.setState({currentSlide:t.position})}},g.a.createElement(b.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:function(e){return"item".concat(e)},initialListSize:30,renderRow:function(e){return g.a.createElement(b.Text,{style:e%2?Bn.itemEvenText:Bn.itemOddText},"Item ",e)},getRowStyle:function(e){return e%2?Bn.itemEven:Bn.itemOdd}}),g.a.createElement(b.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:function(e){return"item".concat(e)},initialListSize:30,renderRow:function(e){return g.a.createElement(b.Text,{style:e%2?Bn.itemEvenText:Bn.itemOddText},"Item ",e)},getRowStyle:function(e){return e%2?Bn.itemEven:Bn.itemOdd}})))}}]),n}(g.a.Component);function zn(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 Fn(e){for(var t=1;t 组件",component:Hn.View,meta:{type:Nn.COMPONENT}},{path:"/Text",name:" 组件",component:Hn.Text,meta:{type:Nn.COMPONENT}},{path:"/Image",name:" 组件",component:Hn.Image,meta:{type:Nn.COMPONENT}},{path:"/ListView",name:" 组件",component:Hn.ListView,meta:{type:Nn.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:Hn.WaterfallView,meta:{type:Nn.COMPONENT}},{path:"/PullHeader",name:" 组件",component:Hn.PullHeaderFooter,meta:{type:Nn.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:Hn.RefreshWrapper,meta:{type:Nn.COMPONENT}},{path:"/ScrollView",name:" 组件",component:Hn.ScrollView,meta:{type:Nn.COMPONENT}},{path:"/ViewPager",name:" 组件",component:Hn.ViewPager,meta:{type:Nn.COMPONENT}},{path:"/TextInput",name:" 组件",component:Hn.TextInput,meta:{type:Nn.COMPONENT}},{path:"/Modal",name:" 组件",component:Hn.Modal,meta:{type:Nn.COMPONENT}},{path:"/Slider",name:" 组件",component:Hn.Slider,meta:{type:Nn.COMPONENT}},{path:"/TabHost",name:" 组件",component:Hn.TabHost,meta:{type:Nn.COMPONENT}},{path:"/WebView",name:" 组件",component:Hn.WebView,meta:{type:Nn.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:Hn.RippleViewAndroid,meta:{type:Nn.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:Nn.TITLE,mapType:Nn.MODULE}},{path:"/Animation",name:"Animation 模块",component:Hn.Animation,meta:{type:Nn.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:Hn.WebSocket,meta:{type:Nn.MODULE}},{path:"/NetInfo",name:"Network 模块",component:Hn.NetInfo,meta:{type:Nn.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:Hn.UIManagerModule,meta:{type:Nn.MODULE}},{path:"/Others",name:"Others",meta:{type:Nn.TITLE,mapType:Nn.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:Hn.NestedScroll,meta:{type:Nn.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:Hn.BoxShadow,meta:{type:Nn.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:Hn.SetNativeProps,meta:{type:Nn.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:Hn.DynamicImport,meta:{type:Nn.OTHER}},{path:"/Localization",name:"Localization 范例",component:Hn.Localization,meta:{type:Nn.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:Hn.Turbo,meta:{type:Nn.OTHER}}],Un="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC",Kn="#1E304A",Gn=b.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:Kn,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:Kn,lineHeight:16}}),qn=J((function(e){var t=e.history,n=e.route;return 0===t.index?g.a.createElement(b.View,{style:[Gn.container]},g.a.createElement(b.View,null,g.a.createElement(b.Text,{numberOfLines:1,style:[Gn.title]},n.name)),g.a.createElement(b.View,{style:Gn.headerButton},g.a.createElement(b.Text,{numberOfLines:1,style:Gn.title},"unspecified"!==b.default.version?"".concat(b.default.version):"master"))):g.a.createElement(b.View,{style:[Gn.container]},g.a.createElement(b.View,{onClick:function(){return t.goBack()},style:[Gn.headerButton]},g.a.createElement(b.Image,{style:Gn.backIcon,source:{uri:Un}})),g.a.createElement(b.View,{style:Gn.headerButton},g.a.createElement(b.Text,{numberOfLines:1,style:Gn.title},n.name)))}));function Qn(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 Yn(e){for(var t=1;t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./node_modules/webpack/buildin/module.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/module.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return nr}));var r={};n.r(r),n.d(r,"Focusable",(function(){return te})),n.d(r,"Image",(function(){return le})),n.d(r,"ListView",(function(){return be})),n.d(r,"Modal",(function(){return Te})),n.d(r,"RefreshWrapper",(function(){return Qe})),n.d(r,"PullHeaderFooter",(function(){return Je})),n.d(r,"ScrollView",(function(){return $e})),n.d(r,"Text",(function(){return at})),n.d(r,"TextInput",(function(){return ct})),n.d(r,"View",(function(){return dt})),n.d(r,"ViewPager",(function(){return St})),n.d(r,"WebView",(function(){return Tt})),n.d(r,"BoxShadow",(function(){return kt})),n.d(r,"WaterfallView",(function(){return Ot})),n.d(r,"RippleViewAndroid",(function(){return Ft}));var o={};n.r(o),n.d(o,"Animation",(function(){return Gt})),n.d(o,"AsyncStorage",(function(){return Qt})),n.d(o,"NetInfo",(function(){return Zt})),n.d(o,"WebSocket",(function(){return nn})),n.d(o,"UIManagerModule",(function(){return cn}));var a={};n.r(a),n.d(a,"Slider",(function(){return pn})),n.d(a,"TabHost",(function(){return bn})),n.d(a,"SetNativeProps",(function(){return Sn})),n.d(a,"DynamicImport",(function(){return An})),n.d(a,"Localization",(function(){return Rn})),n.d(a,"Turbo",(function(){return Pn})),n.d(a,"NestedScroll",(function(){return _n}));var i=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/createClass.js"),s=n.n(c),u=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),d=n.n(u),f=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),h=n.n(f),m=n("./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(m),y=n("./node_modules/react/index.js"),g=n.n(y),b=n("../../packages/hippy-react/dist/index.js"),w=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),x=n.n(w),v=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");n("./node_modules/@babel/runtime/helpers/typeof.js");function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;u--){var d=o[u];"."===d?T(o,u):".."===d?(T(o,u),s++):s&&(T(o,u),s--)}if(!l)for(;s--;s)o.unshift("..");!l||""===o[0]||o[0]&&E(o[0])||o.unshift("");var f=o.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};var C="Invariant failed";function k(e,t){if(!e)throw new Error(C)}function R(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function V(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=S({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=A(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function I(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=V(e,t,d(),y.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))}))},go:p,goBack:function(){p(-1)},goForward:function(){p(1)},canGo:function(e){var t=y.index+e;return t>=0&&tt?t:e;return Math.floor(n)},uniqueArray:function(e){for(var t=[],n=0;n=812&&b.PixelRatio.get()>=2&&(e=!0),e}},Pe=(je.getScreenWidth()-24-12)/3,De=Math.floor(Pe/1.35),Le=b.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:De,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:Pe,height:De},title:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function _e(e){var t=e.itemBean,n=t.title,r=t.picList,o=e.itemBean.subInfo,a=null;if(o&&o.length){var i=(o=je.uniqueArray(o)).join(" ");a=g.a.createElement(b.Text,{style:Le.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,Oe()({},e,{style:{collapsable:!1}}),g.a.createElement(b.Text,{style:[Le.title],numberOfLines:2,enableScale:!0},n),g.a.createElement(b.View,{style:Le.imageContainer},g.a.createElement(b.Image,{style:Le.image,source:{uri:r[0]},resizeMode:b.Image.resizeMode.cover}),g.a.createElement(b.Image,{style:[Le.image,{marginLeft:6,marginRight:6}],source:{uri:r[1]},resizeMode:b.Image.resizeMode.cover}),g.a.createElement(b.Image,{style:Le.image,source:{uri:r[2]},resizeMode:b.Image.resizeMode.cover})),a?g.a.createElement(b.View,{style:Le.tagLine},a):null)}var Be=je.getScreenWidth()-24,Me=Math.floor(Be-12)/3,ze=Math.floor(Me/1.35),Fe=b.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:ze},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:Me,height:ze},image:{width:Me,height:ze},title:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function He(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=null,r=t.title,o=t.picUrl,a=t.subInfo;if(a&&a.length){var i=(a=je.uniqueArray(a)).join(" ");n=g.a.createElement(b.Text,{style:Fe.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,Oe()({},e,{style:Fe.container}),g.a.createElement(b.View,{style:Fe.leftContainer},g.a.createElement(b.Text,{style:Fe.title,numberOfLines:2,enableScale:!0},r),n?g.a.createElement(b.View,{style:Fe.tagLine},n):null),g.a.createElement(b.View,{style:Fe.imageContainer},g.a.createElement(b.Image,{resizeMode:b.Image.resizeMode.cover,style:Fe.image,source:{uri:o}})))}var Ne=je.getScreenWidth()-24,We=Math.floor(188*Ne/336),Ue=b.StyleSheet.create({text:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ne,height:We,alignSelf:"center"},image:{width:Ne,height:We},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ge(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=t.title,r=t.picUrl,o=t.subInfo,a=null;if(o&&o.length){var i=(o=je.uniqueArray(o)).join(" ");a=g.a.createElement(b.Text,{style:Ue.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,e,g.a.createElement(b.Text,{style:Ue.text,numberOfLines:2,enableScale:!0},n),g.a.createElement(b.View,{style:Ue.playerView},g.a.createElement(b.Image,{style:Ue.image,source:{uri:r},resizeMode:b.Image.resizeMode.cover})),a?g.a.createElement(b.View,{style:Ue.tagLine},a):null)}function Ke(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var qe=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}}),Qe=function(e){function t(e){var n;return l()(this,t),(n=Ke(this,t,[e])).state={dataSource:[],loadingState:"正在加载..."},n.fetchTimes=0,n.mockFetchData=n.mockFetchData.bind(n),n.onRefresh=n.onRefresh.bind(n),n.getRefresh=n.getRefresh.bind(n),n.getRenderRow=n.getRenderRow.bind(n),n.onEndReached=n.onEndReached.bind(n),n.getRowType=n.getRowType.bind(n),n.getRowKey=n.getRowKey.bind(n),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:(r=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onEndReached",value:(n=se()(de.a.mark((function e(){var t,n,r,o,a;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state,n=t.dataSource,!t.fetchingDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.setState({fetchingDataFlag:!0,dataSource:n.concat([{style:100}])}),e.next=6,this.mockFetchData();case 6:r=e.sent,(o=n[n.length-1])&&100===o.style&&n.pop(),a=n.concat(r),this.setState({dataSource:a});case 11:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onRefresh",value:function(){var e=this;setTimeout(se()(de.a.mark((function t(){var n;return de.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.mockFetchData();case 2:n=t.sent,e.setState({dataSource:n}),e.refresh.refreshComplected();case 5:case"end":return t.stop()}}),t)}))),1e3)}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.loadingState,a=null,i=r[e],l=r.length===e+1;switch(i.style){case 1:a=g.a.createElement(_e,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 2:a=g.a.createElement(He,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 5:a=g.a.createElement(Ge,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 100:a=g.a.createElement(b.Text,{style:qe.loading},o)}return g.a.createElement(b.View,{style:qe.container},g.a.createElement(b.View,{style:qe.itemContainer},a),l?null:g.a.createElement(b.View,{style:qe.spliter}))}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getRefresh",value:function(){return g.a.createElement(b.View,{style:{flex:1,height:30}},g.a.createElement(b.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.setState({fetchingDataFlag:!1}),e.fetchTimes+=1,e.fetchTimes>=50?t([]):t(Ve)}),600)}))}},{key:"render",value:function(){var e=this,t=this.state.dataSource;return g.a.createElement(b.RefreshWrapper,{ref:function(t){e.refresh=t},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},g.a.createElement(b.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:t.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}]);var n,r}(g.a.Component);function Ye(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var Xe=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),Je=function(e){function t(e){var n;return l()(this,t),(n=Ye(this,t,[e])).state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},n.loadMoreDataFlag=!1,n.fetchingDataFlag=!1,n.mockFetchData=n.mockFetchData.bind(n),n.renderRow=n.renderRow.bind(n),n.getRowType=n.getRowType.bind(n),n.getRowKey=n.getRowKey.bind(n),n.getHeaderStyle=n.getHeaderStyle.bind(n),n.getFooterStyle=n.getFooterStyle.bind(n),n.getRowStyle=n.getRowStyle.bind(n),n.renderPullHeader=n.renderPullHeader.bind(n),n.renderPullFooter=n.renderPullFooter.bind(n),n.onEndReached=n.onEndReached.bind(n),n.onHeaderReleased=n.onHeaderReleased.bind(n),n.onHeaderPulling=n.onHeaderPulling.bind(n),n.onFooterPulling=n.onFooterPulling.bind(n),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:(o=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t}),this.listView.collapsePullHeader();case 5:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){return e(Ve)}),800)}))}},{key:"onEndReached",value:(r=se()(de.a.mark((function e(){var t,n,r;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({footerRefreshText:"没有更多数据"}),r=[].concat(x()(t),x()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter();case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return r.apply(this,arguments)})},{key:"onHeaderReleased",value:(n=se()(de.a.mark((function e(){var t,n=this;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=(t=e.sent).reverse(),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(6);case 15:this.fetchingDataFlag=!1,this.setState({dataSource:t,headerRefreshText:"2秒后收起"},(function(){n.listView.collapsePullHeader({time:2e3})}));case 17:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(){return n.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Xe.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}},{key:"onFooterPulling",value:function(e){console.log("onFooterPulling",e)}},{key:"onClickItem",value:function(e,t){console.log("item: ".concat(e," is clicked.."),t.target.nodeId,t.currentTarget.nodeId)}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getHeaderStyle",value:function(){return this.state.horizontal?{width:50}:{}}},{key:"renderPullHeader",value:function(){var e=this.state,t=e.headerRefreshText;return e.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},t)):g.a.createElement(b.View,{style:Xe.pullContainer},g.a.createElement(b.Text,{style:Xe.pullContent},t))}},{key:"getFooterStyle",value:function(){return this.state.horizontal?{width:40}:{}}},{key:"renderPullFooter",value:function(){return this.state.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):g.a.createElement(b.View,{style:Xe.pullFooter},g.a.createElement(b.Text,{style:{color:"white"}},this.state.footerRefreshText))}},{key:"renderRow",value:function(e){var t=this,n=this.state.dataSource,r=null,o=n[e],a=n.length===e+1;switch(o.style){case 1:r=g.a.createElement(_e,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 2:r=g.a.createElement(He,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 5:r=g.a.createElement(Ge,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}})}return g.a.createElement(b.View,{style:Xe.container},g.a.createElement(b.View,{style:Xe.itemContainer},r),a?null:g.a.createElement(b.View,{style:Xe.splitter}))}},{key:"getRowStyle",value:function(){return this.state.horizontal?{height:300,justifyContent:"center",alignItems:"center"}:{}}},{key:"changeDirection",value:function(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.dataSource,r=t.horizontal;return g.a.createElement(b.View,{style:{flex:1,collapsable:!1}},g.a.createElement(b.ListView,{horizontal:r,onClick:function(e){return console.log("ListView",e.target.nodeId,e.currentTarget.nodeId)},ref:function(t){e.listView=t},style:[{backgroundColor:"#ffffff"},r?{height:300}:{flex:1}],numberOfRows:n.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:function(e){return 0===e}}),"android"===b.Platform.OS?g.a.createElement(b.View,{onClick:function(){return e.changeDirection()},style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},g.a.createElement(b.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white"}},"切换方向"))):null)}}]);var n,r,o}(g.a.Component),Ze=b.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function $e(){return g.a.createElement(b.ScrollView,null,g.a.createElement(b.View,{style:Ze.itemTitle},g.a.createElement(b.Text,null,"Horizontal ScrollView")),g.a.createElement(b.View,null,g.a.createElement(b.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:function(e){return console.log("onScroll",e)},onMomentumScrollBegin:function(e){return console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd:function(e){return console.log("onMomentumScrollEnd",e)},onScrollBeginDrag:function(e){return console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){return console.log("onScrollEndDrag",e)}},g.a.createElement(b.Text,{style:Ze.itemStyle},"A"),g.a.createElement(b.Text,{style:Ze.itemStyle},"B"),g.a.createElement(b.Text,{style:Ze.itemStyle},"C"),g.a.createElement(b.Text,{style:Ze.itemStyle},"D"),g.a.createElement(b.Text,{style:Ze.itemStyle},"E"),g.a.createElement(b.Text,{style:Ze.itemStyle},"F"),g.a.createElement(b.Text,{style:Ze.itemStyle},"A"))),g.a.createElement(b.View,{style:Ze.itemTitle},g.a.createElement(b.Text,null,"Vertical ScrollView")),g.a.createElement(b.ScrollView,{bounces:!0,horizontal:!1,style:Ze.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},g.a.createElement(b.Text,{style:Ze.itemStyle},"A"),g.a.createElement(b.Text,{style:Ze.itemStyle},"B"),g.a.createElement(b.Text,{style:Ze.itemStyle},"C"),g.a.createElement(b.Text,{style:Ze.itemStyle},"D"),g.a.createElement(b.Text,{style:Ze.itemStyle},"E"),g.a.createElement(b.Text,{style:Ze.itemStyle},"F"),g.a.createElement(b.Text,{style:Ze.itemStyle},"A")))}function et(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",nt="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",rt=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}}),ot=0,at=function(e){function t(e){var n;return l()(this,t),(n=et(this,t,[e])).state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},scrollColor:"gray",numberOfLines:2,ellipsizeMode:void 0},n.incrementFontSize=n.incrementFontSize.bind(n),n.decrementFontSize=n.decrementFontSize.bind(n),n.incrementLine=n.incrementLine.bind(n),n.decrementLine=n.decrementLine.bind(n),n.changeMode=n.changeMode.bind(n),n.changeColor=n.changeColor.bind(n),n}return p()(t,e),s()(t,[{key:"incrementFontSize",value:function(){var e=this.state.fontSize;24!==e&&this.setState({fontSize:e+1})}},{key:"decrementFontSize",value:function(){var e=this.state.fontSize;6!==e&&this.setState({fontSize:e-1})}},{key:"incrementLine",value:function(){var e=this.state.numberOfLines;e<6&&this.setState({numberOfLines:e+1})}},{key:"decrementLine",value:function(){var e=this.state.numberOfLines;e>1&&this.setState({numberOfLines:e-1})}},{key:"changeMode",value:function(e){this.setState({ellipsizeMode:e})}},{key:"changeColor",value:function(){this.setState({scrollColor:"red"})}},{key:"changeBreakStrategy",value:function(e){this.setState({breakStrategy:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.fontSize,r=t.textShadowColor,o=t.textShadowOffset,a=t.numberOfLines,i=t.ellipsizeMode,l=t.breakStrategy,c=t.scrollColor,s=function(e){return g.a.createElement(b.View,{style:rt.itemTitle},g.a.createElement(b.Text,{style:!0},e))};return g.a.createElement(b.ScrollView,{style:{padding:10,color:c,fontFamily:"TTTGB"}},s("shadow"),g.a.createElement(b.View,{style:[rt.itemContent,{height:60}],onClick:function(){var t="red",n={x:10,y:1};ot%2==1&&(t="grey",n={x:1,y:1}),ot+=1,e.setState({textShadowColor:t,textShadowOffset:n})}},g.a.createElement(b.Text,{style:[rt.normalText,{color:"#242424",textShadowOffset:o,textShadowRadius:3,textShadowColor:r}]},"Text shadow is grey with radius 3 and offset 1")),s("color"),g.a.createElement(b.View,{style:[rt.itemContent,{height:80}]},g.a.createElement(b.Text,{style:[rt.normalText,{color:"#242424"}]},"Text color is black"),g.a.createElement(b.Text,{style:[rt.normalText,{color:"blue"}]},"Text color is blue"),g.a.createElement(b.Text,{style:[rt.normalText,{color:"rgb(228,61,36)"}]},"This is red")),s("fontSize"),g.a.createElement(b.View,{style:[rt.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},g.a.createElement(b.Text,{style:[rt.normalText,{fontSize:n}]},"Text fontSize is ".concat(n)),g.a.createElement(b.View,{style:rt.button,onClick:this.changeColor},g.a.createElement(b.Text,{style:rt.buttonText},"切换字体颜色")),g.a.createElement(b.View,{style:rt.button,onClick:this.incrementFontSize},g.a.createElement(b.Text,{style:rt.buttonText},"放大字体")),g.a.createElement(b.View,{style:rt.button,onClick:this.decrementFontSize},g.a.createElement(b.Text,{style:rt.buttonText},"缩小字体"))),s("fontStyle"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{style:[rt.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),g.a.createElement(b.Text,{style:[rt.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),s("numberOfLines and ellipsizeMode"),g.a.createElement(b.View,{style:[rt.itemContent]},g.a.createElement(b.Text,{style:[rt.normalText,{marginBottom:10}]},"numberOfLines=".concat(a," | ellipsizeMode=").concat(i)),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[rt.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),g.a.createElement(b.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[rt.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[rt.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},g.a.createElement(b.Image,{style:{width:24,height:24},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),g.a.createElement(b.Text,null,"Text + Attachment")),g.a.createElement(b.View,{style:rt.buttonBar},g.a.createElement(b.View,{style:rt.button,onClick:this.incrementLine},g.a.createElement(b.Text,{style:rt.buttonText},"加一行")),g.a.createElement(b.View,{style:rt.button,onClick:this.decrementLine},g.a.createElement(b.Text,{style:rt.buttonText},"减一行"))),g.a.createElement(b.View,{style:rt.buttonBar},g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeMode("clip")}},g.a.createElement(b.Text,{style:rt.buttonText},"clip")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeMode("head")}},g.a.createElement(b.Text,{style:rt.buttonText},"head")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeMode("middle")}},g.a.createElement(b.Text,{style:rt.buttonText},"middle")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeMode("tail")}},g.a.createElement(b.Text,{style:rt.buttonText},"tail")))),s("textDecoration"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),g.a.createElement(b.Text,{numberOfLines:1,style:[rt.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),s("LetterSpacing"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),g.a.createElement(b.Text,{numberOfLines:1,style:[rt.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),s("Nest Text"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:3},g.a.createElement(b.Text,{numberOfLines:3,style:[rt.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),g.a.createElement(b.Text,{numberOfLines:3,style:rt.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),s("Custom font"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:rt.customFont},"Hippy 跨端框架")),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),s("Text Nested"),g.a.createElement(b.View,{style:[rt.itemContent,{height:150}]},g.a.createElement(b.Text,{style:{height:100,lineHeight:50}},g.a.createElement(b.Text,{numberOfLines:1,style:rt.normalText},"后面有张图片"),g.a.createElement(b.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),g.a.createElement(b.Text,{numberOfLines:1,style:rt.customFont},"前面有张图片")),g.a.createElement(b.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},g.a.createElement(b.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:tt}}),g.a.createElement(b.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===b.Platform.OS&&s("breakStrategy"),"android"===b.Platform.OS&&g.a.createElement(b.View,{style:rt.itemContent},g.a.createElement(b.Text,{style:[rt.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:l},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),g.a.createElement(b.Text,{style:rt.normalText},"breakStrategy: ".concat(l)),g.a.createElement(b.View,{style:rt.buttonBar},g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeBreakStrategy("simple")}},g.a.createElement(b.Text,{style:rt.buttonText},"simple")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeBreakStrategy("high_quality")}},g.a.createElement(b.Text,{style:rt.buttonText},"high_quality")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeBreakStrategy("balanced")}},g.a.createElement(b.Text,{style:rt.buttonText},"balanced")))),s("verticalAlign"),g.a.createElement(b.View,{style:[rt.itemContent,{height:"android"===b.Platform.OS?160:70}]},g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:nt}}),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,top:-10},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:18,height:12,top:-5},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:24,height:12},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:36,height:24,top:3},source:{uri:nt}}),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字")))),s("tintColor & backgroundColor"),g.a.createElement(b.View,{style:[rt.itemContent]},g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:tt}}),g.a.createElement(b.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:tt}})))),s("margin"),g.a.createElement(b.View,{style:[rt.itemContent]},g.a.createElement(b.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:tt}})),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:tt}})))))}}])}(g.a.Component);function it(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var lt=b.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}}),ct=function(e){function t(e){var n;return l()(this,t),(n=it(this,t,[e])).state={textContent:""},n.changeInputContent=n.changeInputContent.bind(n),n.focus=n.focus.bind(n),n.blur=n.blur.bind(n),n}return p()(t,e),s()(t,[{key:"changeInputContent",value:function(){this.setState({textContent:"当前时间毫秒:".concat(Date.now())})}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"onFocus",value:(r=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.input.isFocused();case 2:t=e.sent,this.setState({event:"onFocus",isFocused:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onBlur",value:(n=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.input.isFocused();case 2:t=e.sent,this.setState({event:"onBlur",isFocused:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"changeBreakStrategy",value:function(e){this.setState({breakStrategy:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.textContent,r=t.event,o=t.isFocused,a=t.breakStrategy,i=function(e){return g.a.createElement(b.View,{style:lt.itemTitle},g.a.createElement(b.Text,null,e))};return g.a.createElement(b.ScrollView,{style:lt.container_style},i("text"),g.a.createElement(b.TextInput,{ref:function(t){e.input=t},style:lt.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:n,onBlur:function(){return e.onBlur()},onFocus:function(){return e.onFocus()}}),g.a.createElement(b.Text,{style:lt.itemContent},"事件: ".concat(r," | isFocused: ").concat(o)),g.a.createElement(b.View,{style:lt.button,onClick:this.changeInputContent},g.a.createElement(b.Text,null,"点击改变输入框内容")),g.a.createElement(b.View,{style:lt.button,onClick:this.focus},g.a.createElement(b.Text,null,"Focus")),g.a.createElement(b.View,{style:lt.button,onClick:this.blur},g.a.createElement(b.Text,null,"Blur")),i("numeric"),g.a.createElement(b.TextInput,{style:lt.input_style,keyboardType:"numeric",placeholder:"numeric"}),i("phone-pad"),g.a.createElement(b.TextInput,{style:lt.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),i("password"),g.a.createElement(b.TextInput,{style:lt.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),i("maxLength"),g.a.createElement(b.TextInput,{caretColor:"yellow",style:lt.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===b.Platform.OS&&i("breakStrategy"),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.TextInput,{style:lt.input_style_block,breakStrategy:a,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),g.a.createElement(b.Text,{style:{}},"breakStrategy: ".concat(a)),g.a.createElement(b.View,{style:lt.buttonBar},g.a.createElement(b.View,{style:lt.button,onClick:function(){return e.changeBreakStrategy("simple")}},g.a.createElement(b.Text,{style:lt.buttonText},"simple")),g.a.createElement(b.View,{style:lt.button,onClick:function(){return e.changeBreakStrategy("high_quality")}},g.a.createElement(b.Text,{style:lt.buttonText},"high_quality")),g.a.createElement(b.View,{style:lt.button,onClick:function(){return e.changeBreakStrategy("balanced")}},g.a.createElement(b.Text,{style:lt.buttonText},"balanced")))))}}]);var n,r}(y.Component),st=n.p+"assets/defaultSource.jpg",ut=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function dt(){var e=function(e){return g.a.createElement(b.View,{style:ut.itemTitle},g.a.createElement(b.Text,null,e))};return g.a.createElement(b.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),g.a.createElement(b.View,{style:[ut.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),g.a.createElement(b.View,{style:[ut.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:st}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},g.a.createElement(b.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),g.a.createElement(b.View,{style:[ut.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},g.a.createElement(b.Text,{style:{color:"white"}},"渐变色")),e("border props"),g.a.createElement(b.View,{style:[ut.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),g.a.createElement(b.View,{style:[ut.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},g.a.createElement(b.View,{style:[ut.smallRectangle,{backgroundColor:"yellow"}]}),g.a.createElement(b.View,{style:[ut.smallRectangle,{backgroundColor:"blue"}]}),g.a.createElement(b.View,{style:[ut.smallRectangle,{backgroundColor:"green"}]})))}var ft=b.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),ht="SquarePagerView",mt="TrianglePagerView",pt="CirclePagerView";function yt(e,t){var n=function(t){return g.a.createElement(b.View,{style:ft.pageContainer,key:t},g.a.createElement(b.View,{style:[ft.shapeBase,e],key:"shape"}),g.a.createElement(b.View,{style:ft.mainRec,key:"title"},t?g.a.createElement(b.Text,{style:ft.title},t):null))};return n.displayName=t,n}var gt=yt(ft.square,ht),bt=yt(ft.triangle,mt),wt=yt(ft.circle,pt);function xt(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var vt=b.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}}),St=function(e){function t(e){var n;return l()(this,t),n=xt(this,t,[e]),$()(n,"state",{selectedIndex:0}),n.onPageSelected=n.onPageSelected.bind(n),n.onPageScrollStateChanged=n.onPageScrollStateChanged.bind(n),n}return p()(t,e),s()(t,[{key:"onPageSelected",value:function(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}},{key:"onPageScrollStateChanged",value:function(e){console.log("onPageScrollStateChanged",e)}},{key:"onPageScroll",value:function(e){var t=e.offset,n=e.position;console.log("onPageScroll",t,n)}},{key:"render",value:function(){var e=this,t=this.state.selectedIndex;return g.a.createElement(b.View,{style:{flex:1,backgroundColor:"#ffffff"}},g.a.createElement(b.View,{style:vt.buttonContainer},g.a.createElement(b.View,{style:vt.button,onClick:function(){e.viewpager.setPage(2)}},g.a.createElement(b.Text,{style:vt.buttonText},"动效滑到第3页")),g.a.createElement(b.View,{style:vt.button,onClick:function(){return e.viewpager.setPageWithoutAnimation(0)}},g.a.createElement(b.Text,{style:vt.buttonText},"直接滑到第1页"))),g.a.createElement(b.ViewPager,{ref:function(t){e.viewpager=t},style:vt.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[gt("squarePager"),bt("TrianglePager"),wt("CirclePager")]),g.a.createElement(b.View,{style:vt.dotContainer},new Array(3).fill(0).map((function(e,n){var r=n===t;return g.a.createElement(b.View,{style:[vt.dot,r?vt.selectDot:null],key:"dot_".concat(n)})}))))}}])}(g.a.Component),Et=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function Tt(){return g.a.createElement(b.View,{style:{paddingHorizontal:10,flex:1}},g.a.createElement(b.View,{style:Et.itemTitle},g.a.createElement(b.Text,null,"WebView 示例")),g.a.createElement(b.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Et.webViewStyle,onLoad:function(e){var t=e.url;return console.log("webview onload",t)},onLoadStart:function(e){var t=e.url;return console.log("webview onLoadStart",t)},onLoadEnd:function(e){var t=e.url,n=e.success,r=e.error;return console.log("webview onLoadEnd",t,n,r)}}))}var At=b.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),Ct=b.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function kt(){return g.a.createElement(b.View,{style:At.shadowDemo},"android"===b.Platform.OS?g.a.createElement(b.View,{style:At.shadowDemoCubeAndroid},g.a.createElement(b.View,{style:At.shadowDemoContentAndroid},g.a.createElement(b.Text,{style:At.text},"没有偏移阴影样式"))):g.a.createElement(b.View,{style:At.shadowDemoCubeIos},g.a.createElement(b.View,{style:At.shadowDemoContentIos},g.a.createElement(b.Text,{style:At.text},"没有偏移阴影样式"))),"android"===b.Platform.OS?g.a.createElement(b.View,{style:Ct.shadowDemoCubeAndroid},g.a.createElement(b.View,{style:Ct.shadowDemoContentAndroid},g.a.createElement(b.Text,{style:Ct.text},"偏移阴影样式"))):g.a.createElement(b.View,{style:Ct.shadowDemoCubeIos},g.a.createElement(b.View,{style:Ct.shadowDemoContentIos},g.a.createElement(b.Text,{style:Ct.text},"偏移阴影样式"))))}function Rt(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var Vt=Ve.filter((function(e){return 2!==e.style})),It=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),Ot=function(e){function t(e){var n;return l()(this,t),(n=Rt(this,t,[e])).state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},n.numberOfColumns=2,n.columnSpacing=6,n.interItemSpacing=6,n.mockFetchData=n.mockFetchData.bind(n),n.renderItem=n.renderItem.bind(n),n.getItemType=n.getItemType.bind(n),n.getItemKey=n.getItemKey.bind(n),n.onEndReached=n.onEndReached.bind(n),n.onRefresh=n.onRefresh.bind(n),n.getRefresh=n.getRefresh.bind(n),n.renderPullFooter=n.renderPullFooter.bind(n),n.renderPullHeader=n.renderPullHeader.bind(n),n.onHeaderReleased=n.onHeaderReleased.bind(n),n.onHeaderPulling=n.onHeaderPulling.bind(n),n.onFooterPulling=n.onFooterPulling.bind(n),n.renderBanner=n.renderBanner.bind(n),n.getItemStyle=n.getItemStyle.bind(n),n.getHeaderStyle=n.getHeaderStyle.bind(n),n.onScroll=n.onScroll.bind(n),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:(a=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"onEndReached",value:(o=se()(de.a.mark((function e(){var t,n,r;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({footerRefreshText:"没有更多数据"}),r=[].concat(x()(t),x()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter();case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return o.apply(this,arguments)})},{key:"onHeaderReleased",value:(r=se()(de.a.mark((function e(){var t,n=this;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:this.fetchingDataFlag=!1,this.setState({dataSource:t,headerRefreshText:"2秒后收起"},(function(){n.listView.collapsePullHeader({time:2e3})}));case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return r.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>It.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}},{key:"onFooterPulling",value:function(e){console.log("onFooterPulling",e)}},{key:"renderPullFooter",value:function(){return this.state.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):g.a.createElement(b.View,{style:It.pullFooter},g.a.createElement(b.Text,{style:{color:"white"}},this.state.footerRefreshText))}},{key:"onRefresh",value:(n=se()(de.a.mark((function e(){var t=this;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(se()(de.a.mark((function e(){var n;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.mockFetchData();case 2:n=e.sent,t.setState({dataSource:n}),t.refresh.refreshComplected();case 5:case"end":return e.stop()}}),e)}))),1e3);case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"getRefresh",value:function(){return g.a.createElement(b.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},g.a.createElement(b.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getItemType",value:function(e){return this.state.dataSource[e].style}},{key:"getItemKey",value:function(e){return"row-".concat(e)}},{key:"onItemClick",value:function(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}},{key:"onScroll",value:function(e){}},{key:"renderBanner",value:function(){return 0===this.state.dataSource.length?null:g.a.createElement(b.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}},{key:"renderItem",value:function(e){var t=this,n=null,r=this.state.dataSource[e];switch(r.style){case 1:n=g.a.createElement(_e,{itemBean:r.itemBean});break;case 2:n=g.a.createElement(He,{itemBean:r.itemBean});break;case 5:n=g.a.createElement(Ge,{itemBean:r.itemBean})}return g.a.createElement(b.View,{onClick:function(){return t.onItemClick(e)},style:It.container},g.a.createElement(b.View,{style:It.itemContainer},n),g.a.createElement(b.View,{style:It.splitter}))}},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){var t=[].concat(x()(Vt),x()(Vt));return e(t)}),600)}))}},{key:"getWaterfallContentInset",value:function(){return{top:0,left:0,bottom:0,right:0}}},{key:"getItemStyle",value:function(){var e=this.numberOfColumns,t=this.columnSpacing,n=b.Dimensions.get("screen").width-32,r=this.getWaterfallContentInset();return{width:(n-r.left-r.right-(e-1)*t)/e}}},{key:"getHeaderStyle",value:function(){return this.state.horizontal?{width:50}:{}}},{key:"renderPullHeader",value:function(){var e=this.state,t=e.headerRefreshText;return e.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},t)):g.a.createElement(b.View,{style:It.pullContainer},g.a.createElement(b.Text,{style:It.pullContent},t))}},{key:"render",value:function(){var e=this,t=this.state.dataSource,n=this.numberOfColumns,r=this.columnSpacing,o=this.interItemSpacing,a=this.getWaterfallContentInset();return g.a.createElement(b.WaterfallView,{ref:function(t){e.listView=t},numberOfColumns:n,columnSpacing:r,interItemSpacing:o,numberOfItems:t.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:a})}}]);var n,r,o,a}(g.a.Component),jt=n.p+"assets/defaultSource.jpg",Pt=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),Dt=n.n(Pt);function Lt(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 _t(e){for(var t=1;t0&&void 0!==o[0]&&o[0],e.prev=1,e.next=4,b.UIManagerModule.getBoundingClientRect(n.current,{relToContainer:t});case 4:r=e.sent,u(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getBoxPosition error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),f=on(on({},an.box),a);return g.a.createElement(b.View,{style:an.full},g.a.createElement(b.View,{style:an.demoContent},g.a.createElement(b.View,{ref:n,style:f},g.a.createElement(b.Text,{style:an.text,numberOfLines:2},"I am the box"))),g.a.createElement(b.View,{style:an.buttonContainer},g.a.createElement(b.View,{onClick:function(){var n=ln(0,e-100),r=ln(0,t-450),o=ln(80,120);i({left:n,top:r,width:o,height:o})},style:an.button},g.a.createElement(b.Text,{style:an.buttonText},"Move position")),g.a.createElement(b.View,{onClick:function(){return d(!1)},style:an.button},g.a.createElement(b.Text,{style:an.buttonText},"Measure in App Window")),g.a.createElement(b.View,{onClick:function(){return d(!0)},style:an.button},g.a.createElement(b.Text,{style:an.buttonText},"Measure in Container(RootView)"))),g.a.createElement(b.View,{style:an.row},g.a.createElement(b.View,null,g.a.createElement(b.Text,null,"Box style:"),g.a.createElement(b.Text,{style:an.black},"Width: ".concat(f.width)),g.a.createElement(b.Text,{style:an.black},"Height: ".concat(f.height)),g.a.createElement(b.Text,{style:an.black},"Left: ".concat(f.left)),g.a.createElement(b.Text,{style:an.black},"Top: ".concat(f.top))),g.a.createElement(b.View,null,g.a.createElement(b.Text,null,"getBoundingClientRect output:"),g.a.createElement(b.Text,{style:an.black},"Width: ".concat(s.width)),g.a.createElement(b.Text,{style:an.black},"Height: ".concat(s.height)),g.a.createElement(b.Text,{style:an.black},"X: ".concat(s.x)),g.a.createElement(b.Text,{style:an.black},"Y: ".concat(s.y)))))};function sn(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var un=b.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}}),dn=function(e){function t(e){var n;return l()(this,t),(n=sn(this,t,[e])).state={current:e.current||0},n}return p()(t,e),s()(t,[{key:"update",value:function(e){this.state.current!==e&&this.setState({current:e})}},{key:"render",value:function(){for(var e=this.props.count,t=this.state.current,n=[],r=0;r=o||(this.indicator&&this.indicator.update(r),this.currentIndex=r)}}},{key:"onScrollBeginDrag",value:function(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}},{key:"onScrollEndDrag",value:function(){this.doCreateTimer()}},{key:"onLayout",value:function(e){this.width=e.layout.width}},{key:"doSwitchPage",value:function(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}},{key:"doCreateTimer",value:function(){var e=this;this.doClearTimer(),this.duration<=0||(this.interval=setInterval((function(){e.doSwitchPage((e.currentIndex+1)%e.itemCount)}),this.duration))}},{key:"doClearTimer",value:function(){this.interval&&clearInterval(this.interval),this.interval=null}},{key:"render",value:function(){for(var e=this,t=this.props.images,n=[],r=0;rr-a?60*r-o:60*n-60*a+30,this.navScrollView.scrollTo({x:e,y:0,animated:!0})}}},{key:"pressNavItem",value:function(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}},{key:"renderNav",value:function(){var e=this,t=this.state,n=t.navList,r=t.curIndex;return g.a.createElement(b.View,{style:gn.container},g.a.createElement(b.ScrollView,{style:gn.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:function(t){e.navScrollView=t}},n.map((function(t,n){return g.a.createElement(b.View,{style:gn.navItem,key:"nav_".concat(t),activeOpacity:.5,onClick:function(){return e.pressNavItem(n)}},g.a.createElement(b.Text,{style:[gn.navItemText,r===n?gn.navItemTextBlue:gn.navItemTextNormal],numberOfLines:1},t))}))))}},{key:"render",value:function(){var e=this,n=this.state.navList;return g.a.createElement(b.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),g.a.createElement(b.ViewPager,{ref:function(t){e.viewPager=t},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},n.map((function(e,n){return t.getPage(e,n)}))))}}],[{key:"getPage",value:function(e,t){switch(t%3){case 0:return gt(e);case 1:return wt(e);case 2:return bt(e);default:return null}}}])}(g.a.Component);function wn(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var xn=b.Dimensions.get("window").width,vn=b.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:xn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:xn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}}),Sn=function(e){function t(e){var n;return l()(this,t),(n=wn(this,t,[e])).demon1Point=g.a.createRef(),n.demo1PointDom=null,n.state={demo2Left:0},n.isDemon1Layouted=!1,n.idDemon2Layouted=!1,n.onTouchDown1=n.onTouchDown1.bind(n),n.onDemon1Layout=n.onDemon1Layout.bind(n),n.onTouchMove1=n.onTouchMove1.bind(n),n.onTouchDown2=n.onTouchDown2.bind(n),n.onTouchMove2=n.onTouchMove2.bind(n),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:function(){}},{key:"onDemon1Layout",value:function(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=b.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}},{key:"onTouchDown1",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,xn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchMove1",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,xn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchDown2",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,xn),this.setState({demo2Left:n})}},{key:"onTouchMove2",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,xn),this.setState({demo2Left:n})}},{key:"render",value:function(){var e=this.state.demo2Left;return g.a.createElement(b.View,{style:vn.setNativePropsDemo},g.a.createElement(b.Text,null,"setNativeProps实现拖动效果"),g.a.createElement(b.View,{style:vn.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},g.a.createElement(b.View,{onLayout:this.onDemon1Layout,style:vn.nativeDemo1Point,ref:this.demon1Point})),g.a.createElement(b.View,{style:vn.splitter}),g.a.createElement(b.Text,null,"普通渲染实现拖动效果"),g.a.createElement(b.View,{style:vn.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},g.a.createElement(b.View,{style:[vn.nativeDemo2Point,{left:e}]})))}}])}(g.a.Component);function En(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var Tn=b.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),An=function(e){function t(e){var n;return l()(this,t),(n=En(this,t,[e])).state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},n.onAsyncComponentLoad=n.onAsyncComponentLoad.bind(n),n}return p()(t,e),s()(t,[{key:"onAsyncComponentLoad",value:function(){var e=this;console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then((function(t){e.setState({AsyncComponentFromLocal:t.default||t})})).catch((function(e){return console.error("import async local component error",e)})),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then((function(t){e.setState({AsyncComponentFromHttp:t.default||t})})).catch((function(e){return console.error("import async remote component error",e)}))}},{key:"render",value:function(){var e=this.state,t=e.AsyncComponentFromLocal,n=e.AsyncComponentFromHttp;return g.a.createElement(b.View,{style:Tn.dynamicImportDemo},g.a.createElement(b.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},g.a.createElement(b.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),g.a.createElement(b.View,{style:{marginTop:20}},t?g.a.createElement(t,null):null,n?g.a.createElement(n,null):null))}}])}(g.a.Component);function Cn(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var kn=b.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),Rn=function(e){function t(){return l()(this,t),Cn(this,t,arguments)}return p()(t,e),s()(t,[{key:"render",value:function(){var e=b.Platform.Localization||{},t=e.country,n=e.language,r=e.direction;return g.a.createElement(b.View,{style:kn.LocalizationDemo},g.a.createElement(b.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},g.a.createElement(b.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},"国际化相关信息:国家 ".concat(t," | 语言 ").concat(n," | 方向 ").concat(1===r?"RTL":"LTR"))))}}])}(g.a.Component),Vn=function(){var e=se()(de.a.mark((function e(t){return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),In=function(){return getTurboModule("demoTurbo").getTurboConfig()};function On(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var jn=b.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}}),Pn=function(e){function t(e){var n;return l()(this,t),(n=On(this,t,[e])).state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},n.onTurboFunc=n.onTurboFunc.bind(n),n.getRenderRow=n.getRenderRow.bind(n),n.getRowKey=n.getRowKey.bind(n),n}return p()(t,e),s()(t,[{key:"onTurboFunc",value:(n=se()(de.a.mark((function e(t){var n;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nativeWithPromise"!==t){e.next=6;break}return e.next=3,Vn("aaa");case 3:n=e.sent,e.next=7;break;case 6:"getTurboConfig"===t?(this.config=In(),n="获取到config对象"):"printTurboConfig"===t?(r=this.config||In(),n=getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===t?n=(this.config||In()).getInfo():"setInfo"===t?((this.config||In()).setInfo("Hello World"),n="设置config信息成功"):n={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[t]();case 7:this.setState({result:n});case 8:case"end":return e.stop()}var r}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"renderResultView",value:function(){return g.a.createElement(b.View,{style:jn.resultView},g.a.createElement(b.Text,{style:{backgroundColor:"darkseagreen"}},"".concat(this.state.result)))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state.funList;return g.a.createElement(b.View,{style:jn.cellContentView},g.a.createElement(b.View,{style:jn.funcInfo},g.a.createElement(b.Text,{numberofLines:0},"函数名:",n[e])),g.a.createElement(b.Text,{style:jn.actionButton,onClick:function(){return t.onTurboFunc(n[e])}},"执行"))}},{key:"getRowKey",value:function(e){return this.state.funList[e]}},{key:"render",value:function(){var e=this.state.funList;return g.a.createElement(b.View,{style:jn.container},this.renderResultView(),g.a.createElement(b.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}]);var n}(g.a.Component);function Dn(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var Ln=b.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}}),_n=function(e){function t(e){var n;return l()(this,t),(n=Dn(this,t,[e])).state={layoutHeight:0,currentSlide:0},n}return p()(t,e),s()(t,[{key:"selectPage",value:function(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.layoutHeight,r=t.currentSlide;return g.a.createElement(b.ScrollView,{style:Ln.demoWrap,scrollEventThrottle:50,onLayout:function(t){return e.setState({layoutHeight:t.layout.height})}},g.a.createElement(b.View,{style:Ln.banner}),g.a.createElement(b.View,{style:Ln.tabs},g.a.createElement(b.Text,{key:"tab1",style:0===r?Ln.tabSelected:Ln.tabText,onClick:function(){return e.selectPage(0)}},"tab 1 (parent first)"),g.a.createElement(b.Text,{key:"tab2",style:1===r?Ln.tabSelected:Ln.tabText,onClick:function(){return e.selectPage(1)}},"tab 2 (self first)")),g.a.createElement(b.ViewPager,{ref:function(t){return e.viewPager=t},initialPage:r,style:{height:n-80},onPageSelected:function(t){return e.setState({currentSlide:t.position})}},g.a.createElement(b.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:function(e){return"item".concat(e)},initialListSize:30,renderRow:function(e){return g.a.createElement(b.Text,{style:e%2?Ln.itemEvenText:Ln.itemOddText},"Item ",e)},getRowStyle:function(e){return e%2?Ln.itemEven:Ln.itemOdd}}),g.a.createElement(b.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:function(e){return"item".concat(e)},initialListSize:30,renderRow:function(e){return g.a.createElement(b.Text,{style:e%2?Ln.itemEvenText:Ln.itemOddText},"Item ",e)},getRowStyle:function(e){return e%2?Ln.itemEven:Ln.itemOdd}})))}}])}(g.a.Component);function Bn(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 Mn(e){for(var t=1;t 组件",component:zn.View,meta:{type:Fn.COMPONENT}},{path:"/Text",name:" 组件",component:zn.Text,meta:{type:Fn.COMPONENT}},{path:"/Image",name:" 组件",component:zn.Image,meta:{type:Fn.COMPONENT}},{path:"/ListView",name:" 组件",component:zn.ListView,meta:{type:Fn.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:zn.WaterfallView,meta:{type:Fn.COMPONENT}},{path:"/PullHeader",name:" 组件",component:zn.PullHeaderFooter,meta:{type:Fn.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:zn.RefreshWrapper,meta:{type:Fn.COMPONENT}},{path:"/ScrollView",name:" 组件",component:zn.ScrollView,meta:{type:Fn.COMPONENT}},{path:"/ViewPager",name:" 组件",component:zn.ViewPager,meta:{type:Fn.COMPONENT}},{path:"/TextInput",name:" 组件",component:zn.TextInput,meta:{type:Fn.COMPONENT}},{path:"/Modal",name:" 组件",component:zn.Modal,meta:{type:Fn.COMPONENT}},{path:"/Slider",name:" 组件",component:zn.Slider,meta:{type:Fn.COMPONENT}},{path:"/TabHost",name:" 组件",component:zn.TabHost,meta:{type:Fn.COMPONENT}},{path:"/WebView",name:" 组件",component:zn.WebView,meta:{type:Fn.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:zn.RippleViewAndroid,meta:{type:Fn.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:Fn.TITLE,mapType:Fn.MODULE}},{path:"/Animation",name:"Animation 模块",component:zn.Animation,meta:{type:Fn.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:zn.WebSocket,meta:{type:Fn.MODULE}},{path:"/NetInfo",name:"Network 模块",component:zn.NetInfo,meta:{type:Fn.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:zn.UIManagerModule,meta:{type:Fn.MODULE}},{path:"/Others",name:"Others",meta:{type:Fn.TITLE,mapType:Fn.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:zn.NestedScroll,meta:{type:Fn.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:zn.BoxShadow,meta:{type:Fn.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:zn.SetNativeProps,meta:{type:Fn.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:zn.DynamicImport,meta:{type:Fn.OTHER}},{path:"/Localization",name:"Localization 范例",component:zn.Localization,meta:{type:Fn.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:zn.Turbo,meta:{type:Fn.OTHER}}],Nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC",Wn="#1E304A",Un=b.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:Wn,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:Wn,lineHeight:16}}),Gn=J((function(e){var t=e.history,n=e.route;return 0===t.index?g.a.createElement(b.View,{style:[Un.container]},g.a.createElement(b.View,null,g.a.createElement(b.Text,{numberOfLines:1,style:[Un.title]},n.name)),g.a.createElement(b.View,{style:Un.headerButton},g.a.createElement(b.Text,{numberOfLines:1,style:Un.title},"unspecified"!==b.default.version?"".concat(b.default.version):"master"))):g.a.createElement(b.View,{style:[Un.container]},g.a.createElement(b.View,{onClick:function(){return t.goBack()},style:[Un.headerButton]},g.a.createElement(b.Image,{style:Un.backIcon,source:{uri:Nn}})),g.a.createElement(b.View,{style:Un.headerButton},g.a.createElement(b.Text,{numberOfLines:1,style:Un.title},n.name)))}));function Kn(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 qn(e){for(var t=1;t]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}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 P(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 I(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 A(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){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||F(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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=F(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},S.apply(this,arguments)}function E(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&&C(e,t)}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function x(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 N(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0||e.didTimeout)&&function e(t){"number"==typeof t?re(t):t&&(re(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var le=0,ue=1,se=-1,ce=1,fe={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},de={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},pe={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};function he(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}var me=new RegExp(/^\d+$/),ve=!1;function ye(){var e;Ne()&&(e=console).log.apply(e,arguments)}function ge(){}function be(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 we=new RegExp("^on.+Capture$");function ke(e){return we.test(e)}var Ee=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function Se(e){if("number"==typeof e)return e;if("string"==typeof e&&Ee.test(e))try{return parseFloat(e)}catch(t){return e}return e}function Ce(e){return"[object Function]"===Object.prototype.toString.call(e)}function xe(e){e}function Ne(){return!1}function Pe(){return ve}function Ie(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}var _e=function(){function e(t){T(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;r-1){var c=new Le(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),!c.bubbles&&o&&o.stopPropagation()}if(Re(e,n)&&!ke(e)&&[de.AT_TARGET,de.BUBBLING_PHASE].indexOf(s)>-1){var f=new Le(e,u,l);Object.assign(f,{eventPhase:s},i),"boolean"!=typeof(a=n.memoizedProps[e](f))&&(a=!Pe()),f.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,u,s,l,t):function(e,t,n,r,i,o){var a=!1,l=ie(r),u=ie(n);try{var s=o.eventPhase;if(Re(e,n)&&!ke(e)&&[de.AT_TARGET,de.BUBBLING_PHASE].indexOf(s)>-1){var c=new Le(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),a=!Pe(),c.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,u,s,l,t);else ge.apply(void 0,Te.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else ge.apply(void 0,Te.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Oe);var je=function(){function e(t,n){T(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}(),Fe=function(){function e(t){T(this,e),this.eventName=t,this.listenerIdList=[]}return z(e,[{key:"unregister",value:function(){var e=Oe.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;i255?255:t}function Ye(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Xe(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 Je(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Xe(i,r,e+1/3),a=Xe(i,r,e),l=Xe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Ze(e){return(parseFloat(e)%360+360)%360/360}function et(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function tt(e){if(Number.isInteger(e))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ge.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call($e,e)?$e[e]:(t=Ge.rgb.exec(e),Array.isArray(t)?(Ke(t[1])<<24|Ke(t[2])<<16|Ke(t[3])<<8|255)>>>0:(t=Ge.rgba.exec(e))?(Ke(t[1])<<24|Ke(t[2])<<16|Ke(t[3])<<8|Ye(t[4]))>>>0:(t=Ge.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Ge.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Ge.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ge.hsl.exec(e))?(255|Je(Ze(t[1]),et(t[2]),et(t[3])))>>>0:(t=Ge.hsla.exec(e))?(Je(Ze(t[1]),et(t[2]),et(t[3]))|Ye(t[4]))>>>0:null))}(e);return null===t?0:t=(t<<24|t>>>8)>>>0}function nt(e){return Array.isArray(e)?e.map((function(e){return tt(e)})):[0]}function rt(e){return"loop"===e?-1:e}function it(e,t){return"color"===e&&["number","string"].indexOf(M(t))>=0?tt(t):t}var ot="animationstart",at="animationend",lt="animationcancel",ut="animationrepeat",st=function(){function t(n){var r,i;if(T(this,t),(null===(r=n.startValue)||void 0===r?void 0:r.constructor)&&"Animation"===n.startValue.constructor.name)i={animationId:n.startValue.animationId};else{var o=n.startValue;i=it(n.valueType,o)}var a=it(n.valueType,n.toValue);this.mode=n.mode||"timing",this.delay=n.delay||0,this.startValue=i||0,this.toValue=a||0,this.valueType=n.valueType||void 0,this.duration=n.duration||0,this.direction=n.direction||"center",this.timingFunction=n.timingFunction||"linear",this.repeatCount=rt(n.repeatCount||0),this.inputRange=n.inputRange||[],this.outputRange=n.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,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.animationId=this.animation.getId(),this.destroy=this.destroy.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(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ot),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(at),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(lt),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(ut)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ot,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(at,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(lt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(ut,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"updateAnimation",value:function(e){var n=this;if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!==M(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((function(r){var i=e[r];if("startValue"===r){var o;if(e.startValue instanceof t)o={animationId:e.startValue.animationId};else{var a=e.startValue;o=it(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=rt(e.repeatCount||0):Object.defineProperty(n,r,{value:i})})),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:it(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}}]),t}(),ct="animationstart",ft="animationend",dt="animationcancel",pt="animationrepeat",ht=function(){function t(n){var r=this;T(this,t),this.animationList=[],null==n||n.children.forEach((function(e){r.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animation=new e.Hippy.AnimationSet({repeatCount:rt(n.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),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(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ct),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(ft),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(dt),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(pt)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ct,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(ft,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(dt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(dt,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{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}}]),t}(),mt={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")},vt=!0,yt=[];function gt(e){return!!pe[e]}function bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener,l=e.isCapture;r=gt(i)?pe[i]:he(i),o===ue&&t.removeEventListener(n,r,a),o===le&&t.addEventListener(n,r,a,l)}))}}))}function wt(e,t){0}function kt(t){var n=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(vt)if(vt=!1,0!==yt.length){var t=ee();e?(kt(t),yt=[],vt=!0):Promise.resolve().then((function(){kt(t),yt=[],vt=!0}))}else vt=!0}function St(e){var t=e.attributes;t.children;return L(t,u)}function Ct(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(t){var i=n[t],o=i.name,a=i.type,l=i.isCapture,u=i.listener;e.isListenerHandled(t,a)||(e.setListenerHandledType(t,a),r.push({name:o,type:a,isCapture:l,listener:u}))})),t={id:e.nodeId,eventList:r}}return t}function xt(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var i={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.nativeName,props:I(I({},St(t)),{},{style:t.style}),tagName:t.tagName},o=Ct(t),a=void 0,l=[i,r];return[l,o,a]}function Nt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=[],o=[],a=[];return t.traverseChildren((function(t,r){var l=A(xt(e,t,r),3),u=l[0],s=l[1],c=l[2];u&&i.push(u),s&&o.push(s),c&&a.push(c),"function"==typeof n&&n(t)}),r),[i,o,a]}function Pt(e){return!!B&&e instanceof B.containerInfo.constructor}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=ee(),i=Pt(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){var a=Nt(r,t,(function(e){e.isMounted||(e.isMounted=!0)}),n),l=A(a,3),u=l[0],s=l[1],c=l[2];yt.push({type:mt.createNode,nodes:u,eventNodes:s,printedNodes:c})}}}function _t(e){if(e.isMounted){var t=A(xt(ee(),e),3),n=t[0],r=t[1];t[2];n&&yt.push({type:mt.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}}var Lt=0;var At=function(){function e(){T(this,e),this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=((Lt+=1)%10==0&&(Lt+=1),Lt)}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),It(this,e,{refId:t.nodeId,relativeToRef:se})}}},{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);var r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=ee(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];yt.push({printedNodes:a,type:mt.moveNode,nodes:o,eventNodes:[]})}}(this,e,{refId:t.nodeId,relativeToRef:se})}}},{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;var t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),It(this,e,n&&{refId:n.nodeId,relativeToRef:ce})}}},{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),function(e,t){if(t&&!t.meta.skipAddToDom){t.isMounted=!1;var n=ee(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];yt.push({printedNodes:o,type:mt.deleteNode,nodes:i,eventNodes:[]})}}(0,e)}}},{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]:jt,n=parseFloat(e),r=e||"",i=e.split("."),o=A(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case zt:r="".concat((360*n).toFixed(2));break;case Ot:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,l):o&&void 0!==Rt[o]&&(r=Rt[o]),r}}function Ht(e){var t=A((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:tt(n)}:void 0:{color:tt(n)}}var Mt=function(e){x(n,e);var t=w(n);function n(e){var r;return T(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:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{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,me.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=I(I({},o),e)})):"object"===M(e)&&e&&(o=I(I({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(Tt,e)&&(e=Tt[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 st||n instanceof ht?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 st||n instanceof ht)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=nt(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=tt(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=Ft(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var o=Ht(e);o&&i.push(o)}}else{var a=Ht(e);a&&i.push(a)}})),n.linearGradient.colorStopList=i}else n[e]=Ie(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=A(t,2),r=n[0],i=n[1];e.setAttribute(r,i,{notToNative:!0})}})),_t(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=A(Nt(ee(),e)||{},3),n=t[0],r=t[1],i=t[2];n&&yt.push({type:mt.updateNode,nodes:n,eventNodes:r,printedNodes:i})}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=be(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=function(e){return ke(e)&&(e=e.replace("Capture","")),fe[e]?fe[e][1]:e}(e);n.events[e]?n.events[e]&&n.events[e].type!==le&&(n.events[e].type=le):n.events[e]={name:r,type:le,isCapture:ke(e),listener:(i=r,o=e,function(e){var t=e.id,n=e.currentId,r=e.params,a=e.eventPhase,l={id:t,nativeName:i,originalName:o,params:r,currentId:n,eventPhase:a};Oe.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"===M(t[e])&&!!t[e]}(e,n.events)&&"function"!=typeof t)return n.events[e].type=ue,!1;n.attributes[e]=t}var i,o;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&&_t(this));var r=this.parseAttributeProp(e,t);if(r)return;this.parseAnimationStyleProp(this.style),!n.notToNative&&_t(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(Tt,e)&&(i=Tt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?nt(r):i.toLowerCase().indexOf("color")>-1?tt(r):Se(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||_t(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)})),_t(this),Et(!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=be(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(At),Bt=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.call(this)).documentElement=new Mt("document"),e}return z(n,[{key:"createElement",value:function(e){return new Mt(e)}},{key:"createElementNS",value:function(e,t){return new Mt("".concat(e,":").concat(t))}}]),n}(At);Bt.createElement=Bt.prototype.createElement,Bt.createElementNS=Bt.prototype.createElementNS;var Dt=Array.isArray,Ut=Object.keys,Wt=Object.prototype.hasOwnProperty;var Vt=setTimeout,$t=clearTimeout,Qt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Et(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Vt,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){ne(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),ne(i,o.nodeId),o},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",be(e)),i.meta={component:{name:"Text"}},ne(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(!Wt.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),ae(t)},removeChildFromContainer:function(e,t){e.removeChild(t),ae(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=I(I({},t),{},{style:I(I({},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=l()(I(I({},Qt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}}));var Gt=Object.freeze({__proto__:null,getString:function(){return V.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){V.callNative("ClipboardModule","setString",e)}});var Kt=Object.freeze({__proto__:null,getCookies:function(e){return V.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),V.callNative("network","setCookie",e,t,r)}});function Yt(e){return V.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Xt(e){V.callNative("ImageLoaderModule","prefetch",e)}var Jt=Object.freeze({__proto__:null,getSize:Yt,prefetch:Xt}),Zt=new Map,en=new Me,tn=function(){function e(t,n){T(this,e),this.eventName=t,this.listener=n}return z(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(nn(this.eventName,this.listener),this.listener=void 0)}}]),e}();function nn(e,t){if(t instanceof tn)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=Zt.get(t);if(r)r.remove(),Zt.delete(t),en.listenerSize(n)<1&&V.callNative("NetInfo","removeListener",n)}}var rn=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),en.listenerSize(n)<1&&V.callNative("NetInfo","addListener",n);var r=en.addListener(n,(function(e){t(e)}));return Zt.set(t,r),new tn(n,t)},removeEventListener:nn,fetch:function(){return V.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),on=Q.createNode,an=Q.updateNode,ln=Q.deleteNode,un=Q.flushBatch,sn=Q.endBatch,cn=Q.sendRenderError,fn=["%c[native]%c","color: red","color: auto"],dn=function(e){return te((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function pn(e){if(e instanceof Mt)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 Mt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function hn(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=te((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=pn(t);return r?r.nodeId:0}return t.nodeId}function mn(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=pn(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;l0&&void 0!==arguments[0]&&arguments[0];ve=e}(u),Z(f,this.rootContainer);var d=o.a.createElement(r,e);return Rn(d,this.rootContainer,null,c),zn(this.rootContainer)}}],[{key:"Native",get:function(){return An}}]),e}();jn.version="3.3.0";var Fn={registerComponent:function(e,t){new jn({appName:e,entryPage:t}).start()}},Hn=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"setPressed",value:function(e){mn(this.instance,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){mn(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,a=L(t,s),l=i,u=a.nativeBackgroundAndroid;return"boolean"==typeof n&&(l.collapsable=n),void 0!==(null==u?void 0:u.color)&&(u.color=tt(u.color)),o.a.createElement("div",I({ref:function(t){e.instance=t},nativeName:"View",style:l},a))}}]),n}(o.a.Component);function Mn(e,t){var n=e.style,r=L(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=be(r.children);else if("number"==typeof r.children)r.text=be(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=be(a),r.children=r.text)}return o.a.createElement("p",I({ref:t,nativeName:"Text",style:i},r))}Mn.displayName="Text";var Bn=o.a.forwardRef(Mn);Bn.displayName="Text";var Dn=Object.freeze({__proto__:null,default:Bn}),Un=function(e){x(n,e);var t=w(n);function n(){return T(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,a=e.source,l=e.sources,u=e.src,s=e.srcs,c=e.tintColor,d=e.tintColors,p=L(e,f),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});if(1===h.length){var m=A(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Ie(p.defaultSource));var v=I({},n);return this.handleTintColor(v,c,d),p.style=v,t?o.a.createElement(Hn,{style:n},o.a.createElement("img",I(I({},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):o.a.createElement("img",I(I({},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(j(o),j(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 Ie(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=Yt(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}(o.a.Component);Un.prefetch=Xt;var Wn=function(){function e(){T(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 st({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();Wn.View=Hn,Wn.Text=Dn,Wn.Image=Un;var Vn={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 $n(e){return o.a.createElement("li",I({nativeName:"ListViewItem"},e))}var Qn=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"expandPullHeader",value:function(){mn(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){void 0!==e?mn(this.instance,"collapsePullHeaderWithOptions",[e]):mn(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=L(t,d);return o.a.createElement("div",I({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(o.a.Component),qn=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"expandPullFooter",value:function(){mn(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){mn(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=L(t,p);return o.a.createElement("div",I({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(o.a.Component),Gn=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(E(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&&mn(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&mn(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,n=t.children,r=t.style,i=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,s=t.getRowStyle,c=t.getHeaderStyle,f=t.getFooterStyle,d=t.getRowKey,p=t.dataSource,m=t.initialListSize,v=t.rowShouldSticky,y=t.onRowLayout,g=t.onHeaderPulling,b=t.onHeaderReleased,w=t.onFooterPulling,k=t.onFooterReleased,E=t.onAppear,S=t.onDisappear,C=t.onWillAppear,x=t.onWillDisappear,N=L(t,h),P=[];if("function"==typeof i){var _=this.state.initialListReady,A=this.props.numberOfRows,T=this.getPullHeader(a,g,b,c),R=this.getPullFooter(l,w,k,f);!A&&p&&(A=p.length),_||(A=Math.min(A,m||15));for(var z=function(t){var n,r={};n=p?i(p[t],null,t):i(t),e.handleRowProps(r,t,{getRowKey:d,getRowStyle:s,getRowType:u,onRowLayout:y,rowShouldSticky:v}),[{func:E,name:"onAppear"},{func:S,name:"onDisappear"},{func:C,name:"onWillAppear"},{func:x,name:"onWillDisappear"}].forEach((function(e){var n=e.func,i=e.name;"function"==typeof n&&(r[i]=function(){n(t)})})),n&&P.push(o.a.createElement($n,I({},r),n))},O=0;O0&&(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 jn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),mn(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),mn(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,L(n,v)),i=L(t,y);return i.initialRoute=r,o.a.createElement("div",I({nativeName:"Navigator",ref:function(t){e.instance=t}},i))}}]),n}(o.a.Component);function Jn(e){return o.a.createElement("div",I(I({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Zn=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(E(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(E(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(E(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&&mn(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&mn(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,i=L(t,g),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),o.a.createElement(Jn,I({},t),e)})):a.push(o.a.createElement(Jn,null,n)),"function"==typeof r&&(i.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",I({nativeName:"ViewPager",ref:function(t){e.instance=t}},i),a)}}]),n}(o.a.Component);function er(){var e=$.platform.Localization;return!!e&&1===e.direction}var tr={caretColor:"caret-color"},nr=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r.onChangeText=r.onChangeText.bind(E(r)),r.onKeyboardWillShow=r.onKeyboardWillShow.bind(E(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){mn(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return mn(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){mn(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){mn(this.instance,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){mn(e.instance,"isFocused",(function(e){return t(e.value)}))}))}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}},{key:"clear",value:function(){mn(this.instance,"clear",[])}},{key:"render",value:function(){var e=this,t=I({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach((function(n){var r=n,i=e.props[n];"string"==typeof e.props[n]&&(tr[n]&&(r=tr[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])})),er()&&(t.style?"object"!==M(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),o.a.createElement("div",I(I({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;"function"==typeof t&&t(e)}}]),n}(o.a.Component),rr=_n.window.scale,ir=Math.round(.4*rr)/rr;function or(e){return e}0===ir&&(ir=1/rr);var ar=Object.freeze({__proto__:null,get hairlineWidth(){return ir},create:or}),lr={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"}},ur=function(e){x(n,e);var t=w(n);function n(){var e;return T(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,mn(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;mn(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,a=t.style,l=[n?lr.contentContainerHorizontal:lr.contentContainerVertical,r],u=n?Object.assign({},lr.baseHorizontal,a):Object.assign({},lr.baseVertical,a);return n&&(u.flexDirection=er()?"row-reverse":"row"),o.a.createElement("div",I(I({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props),{},{style:u}),o.a.createElement(Hn,{style:l},i))}}]),n}(o.a.Component),sr={modal:{position:"absolute",collapsable:!1}},cr=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).eventSubscription=null,r}return z(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===_n.platform.OS&&(this.eventSubscription=new Fe("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"===_n.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,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",i&&(a="slide")),o.a.createElement("div",I({nativeName:"Modal",animationType:a,transparent:r,style:[sr.modal,l]},this.props),t)}}]),n}(o.a.Component);cr.defaultProps={visible:!0};var fr=function(e){x(n,e);var t=w(n);function n(e){var r;T(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(E(r)),r}return z(n,[{key:"render",value:function(){var e,t,n,r,i=this.props,a=i.requestFocus,l=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=o.a.Children.only(l);(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&&hn(u),b=s&&hn(s),w=c&&hn(c),k=f&&hn(f),E=d;if("Text"!==r){var S=y.memoizedProps.style;E=I(I({},E),S)}if(Object.assign(E,v?h:p),"Text"===r)return o.a.createElement(Hn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:w,nextFocusRightId:k,requestFocus:a,style:E,onClick:m,onFocus:this.handleFocus},y);var C=y.memoizedProps.children;return o.a.cloneElement(y,{nextFocusDownId:u,nextFocusUpId:s,nextFocusLeftId:c,nextFocusRightId:f,requestFocus:a,onClick:m,focusable:!0,children:C,style:E,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}(o.a.Component);function dr(e){return o.a.createElement("iframe",I({title:"hippy",nativeName:"WebView"},e))}var pr,hr=function(){function e(t,n,r){var i=this;if(T(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),pr||(pr=new Fe("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=I({},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=pr.addCallback(this.onWebSocketEvent),V.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,V.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)));V.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,pr.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();function mr(e){return o.a.createElement("li",I({nativeName:"WaterfallItem"},e))}var vr=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(E(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;mn(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;mn(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,a=t.numberOfColumns,l=void 0===a?2:a,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,w=t.getItemType,k=t.getItemKey,E=t.getItemStyle,S=t.contentInset,C=void 0===S?{top:0,left:0,bottom:0,right:0}:S,x=t.onItemLayout,N=t.onHeaderPulling,P=t.onHeaderReleased,_=t.onFooterPulling,A=t.onFooterReleased,T=t.containPullHeader,R=void 0!==T&&T,z=t.containPullFooter,O=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,H=I(I({},L(t,b)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:R,containPullFooter:O,containBannerView:F}),M=[];if("function"==typeof i){var B=i();if(B)if("ios"===_n.platform.OS)M.push(o.a.createElement(Hn,{key:"bannerView"},o.a.cloneElement(B))),H.containBannerView=!0;else if("android"===_n.platform.OS){M.push(o.a.createElement(mr,I({},{key:"bannerView",fullSpan:!0,style:{}}),o.a.cloneElement(B)))}}if("function"==typeof v){for(var D=this.getPullHeader(y,N,P),U=this.getPullFooter(g,_,A),W=0;W0||e.didTimeout)&&function e(t){"number"==typeof t?te(t):t&&(te(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var oe=0,ae=1,le=-1,ue=1,se={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},ce={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},fe={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};function de(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}function pe(e){return e&&"Text"===e.nativeName||-1!==["p","span"].indexOf(e.tagName)}var he=new RegExp(/^\d+$/),me=!1;function ve(){var e;xe()&&(e=console).log.apply(e,arguments)}function ye(){}function ge(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 be=new RegExp("^on.+Capture$");function we(e){return be.test(e)}var ke=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function Se(e){if("number"==typeof e)return e;if("string"==typeof e&&ke.test(e))try{return parseFloat(e)}catch(t){return e}return e}function Ee(e){return"[object Function]"===Object.prototype.toString.call(e)}function Ce(e){e}function xe(){return!1}function Ne(){return me}function Pe(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}function Ie(e){return"string"==typeof e?""!==e.trim():null!=e}var _e=function(){return T((function e(t){L(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}),[{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;r-1){var c=new Le(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),!c.bubbles&&o&&o.stopPropagation()}if(Re(e,n)&&!we(e)&&[ce.AT_TARGET,ce.BUBBLING_PHASE].indexOf(s)>-1){var f=new Le(e,u,l);Object.assign(f,{eventPhase:s},i),"boolean"!=typeof(a=n.memoizedProps[e](f))&&(a=!Ne()),f.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,u,s,l,t):function(e,t,n,r,i,o){var a=!1,l=ne(r),u=ne(n);try{var s=o.eventPhase;if(Re(e,n)&&!we(e)&&[ce.AT_TARGET,ce.BUBBLING_PHASE].indexOf(s)>-1){var c=new Le(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),a=!Ne(),c.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,u,s,l,t);else ye.apply(void 0,Te.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else ye.apply(void 0,Te.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Oe);var je=function(){return T((function e(t,n){L(this,e),this.callback=t,this.bindListener=n}),[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}])}(),Fe=function(){return T((function e(t){L(this,e),this.eventName=t,this.listenerIdList=[]}),[{key:"unregister",value:function(){var e=Oe.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;i255?255:t}function Ye(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Xe(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 Je(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Xe(i,r,e+1/3),a=Xe(i,r,e),l=Xe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Ze(e){return(parseFloat(e)%360+360)%360/360}function et(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function tt(e){if(Number.isInteger(e))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ge.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call($e,e)?$e[e]:(t=Ge.rgb.exec(e),Array.isArray(t)?(Ke(t[1])<<24|Ke(t[2])<<16|Ke(t[3])<<8|255)>>>0:(t=Ge.rgba.exec(e))?(Ke(t[1])<<24|Ke(t[2])<<16|Ke(t[3])<<8|Ye(t[4]))>>>0:(t=Ge.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Ge.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Ge.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ge.hsl.exec(e))?(255|Je(Ze(t[1]),et(t[2]),et(t[3])))>>>0:(t=Ge.hsla.exec(e))?(Je(Ze(t[1]),et(t[2]),et(t[3]))|Ye(t[4]))>>>0:null))}(e);return null===t?0:t=(t<<24|t>>>8)>>>0}function nt(e){return Array.isArray(e)?e.map((function(e){return tt(e)})):[0]}function rt(e){return"loop"===e?-1:e}function it(e,t){return"color"===e&&["number","string"].indexOf(F(t))>=0?tt(t):t}var ot="animationstart",at="animationend",lt="animationcancel",ut="animationrepeat",st=function(){function t(n){var r,i;if(L(this,t),(null===(r=n.startValue)||void 0===r?void 0:r.constructor)&&"Animation"===n.startValue.constructor.name)i={animationId:n.startValue.animationId};else{var o=n.startValue;i=it(n.valueType,o)}var a=it(n.valueType,n.toValue);this.mode=n.mode||"timing",this.delay=n.delay||0,this.startValue=i||0,this.toValue=a||0,this.valueType=n.valueType||void 0,this.duration=n.duration||0,this.direction=n.direction||"center",this.timingFunction=n.timingFunction||"linear",this.repeatCount=rt(n.repeatCount||0),this.inputRange=n.inputRange||[],this.outputRange=n.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,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.animationId=this.animation.getId(),this.destroy=this.destroy.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 T(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ot),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(at),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(lt),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(ut)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ot,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(at,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(lt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(ut,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"updateAnimation",value:function(e){var n=this;if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!==F(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((function(r){var i=e[r];if("startValue"===r){var o;if(e.startValue instanceof t)o={animationId:e.startValue.animationId};else{var a=e.startValue;o=it(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=rt(e.repeatCount||0):Object.defineProperty(n,r,{value:i})})),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:it(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}}])}(),ct="animationstart",ft="animationend",dt="animationcancel",pt="animationrepeat",ht=function(){return T((function t(n){var r=this;L(this,t),this.animationList=[],null==n||n.children.forEach((function(e){r.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animation=new e.Hippy.AnimationSet({repeatCount:rt(n.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}),[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ct),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(ft),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(dt),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(pt)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ct,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(ft,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(dt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(dt,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{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}}])}(),mt={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")},vt=!0,yt=[];function gt(e){return!!fe[e]}function bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener,l=e.isCapture;r=gt(i)?fe[i]:de(i),o===ae&&t.removeEventListener(n,r,a),o===oe&&t.addEventListener(n,r,a,l)}))}}))}function wt(e,t){0}function kt(t){var n=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(vt)if(vt=!1,0!==yt.length){var t=J();e?(kt(t),yt=[],vt=!0):Promise.resolve().then((function(){kt(t),yt=[],vt=!0}))}else vt=!0}function Et(e){var t=e.attributes;t.children;return I(t,u)}function Ct(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(t){var i=n[t],o=i.name,a=i.type,l=i.isCapture,u=i.listener;e.isListenerHandled(t,a)||(e.setListenerHandledType(t,a),r.push({name:o,type:a,isCapture:l,listener:u}))})),t={id:e.nodeId,eventList:r}}return t}function xt(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var i=t.style;if(t.parentNode instanceof Bt){var o=Object.assign({},t.parentNode.inheritStyle,t.parentNode.style),a=t.style,l=t.inheritStyle,u=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];u.forEach((function(e){!Ie(a[e])&&Ie(o[e])&&(l[e]=o[e])})),pe(t)&&(i=Object.assign({},l,a))}var s={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.nativeName,props:N(N({},Et(t)),{},{style:i}),tagName:t.tagName},c=Ct(t),f=void 0,d=[s,r];return[d,c,f]}function Nt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=[],o=[],a=[];return t.traverseChildren((function(t,r){var l=_(xt(e,t,r),3),u=l[0],s=l[1],c=l[2];u&&i.push(u),s&&o.push(s),c&&a.push(c),"function"==typeof n&&n(t)}),r),[i,o,a]}function Pt(e){return!!H&&e instanceof H.containerInfo.constructor}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=J(),i=Pt(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){var a=Nt(r,t,(function(e){e.isMounted||(e.isMounted=!0)}),n),l=_(a,3),u=l[0],s=l[1],c=l[2];yt.push({type:mt.createNode,nodes:u,eventNodes:s,printedNodes:c})}}}function _t(e){if(e.isMounted){var t=_(xt(J(),e),3),n=t[0],r=t[1];t[2];n&&yt.push({type:mt.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}}function Lt(e){if(e.isMounted){var t=_(Nt(J(),e)||{},3),n=t[0],r=t[1],i=t[2];n&&yt.push({type:mt.updateNode,nodes:n,eventNodes:r,printedNodes:i})}}var At=0;var Tt=function(){return T((function e(){L(this,e),this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=((At+=1)%10==0&&(At+=1),At)}),[{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),It(this,e,{refId:t.nodeId,relativeToRef:le})}}},{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);var r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=J(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];yt.push({printedNodes:a,type:mt.moveNode,nodes:o,eventNodes:[]})}}(this,e,{refId:t.nodeId,relativeToRef:le})}}},{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;var t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),It(this,e,n&&{refId:n.nodeId,relativeToRef:ue})}}},{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),function(e,t){if(t&&!t.meta.skipAddToDom){t.isMounted=!1;var n=J(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];yt.push({printedNodes:o,type:mt.deleteNode,nodes:i,eventNodes:[]})}}(0,e)}}},{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]:Ft,n=parseFloat(e),r=e||"",i=e.split("."),o=_(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Ot:r="".concat((360*n).toFixed(2));break;case jt:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,l):o&&void 0!==zt[o]&&(r=zt[o]),r}}function Mt(e){var t=_((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:tt(n)}:void 0:{color:tt(n)}}var Bt=function(e){function t(e){var n;return L(this,t),(n=w(this,t)).id="",n.style={},n.inheritStyle={},n.attributes={},n.events={},n.tagName=e,n}return E(t,e),T(t,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{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,he.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=N(N({},o),e)})):"object"===F(e)&&e&&(o=N(N({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(Rt,e)&&(e=Rt[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 st||n instanceof ht?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 st||n instanceof ht)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=nt(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=tt(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=Ht(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var o=Mt(e);o&&i.push(o)}}else{var a=Mt(e);a&&i.push(a)}})),n.linearGradient.colorStopList=i}else n[e]=Pe(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=_(t,2),r=n[0],i=n[1];e.setAttribute(r,i,{notToNative:!0})}})),_t(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,Lt(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ge(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(){if("object"!==F(t)||null==t)return!0;n.setStyleAttribute(t);return["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].some((function(e){return Object.prototype.hasOwnProperty.call(t,e)}))&&Lt(n),!1}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=function(e){return we(e)&&(e=e.replace("Capture","")),se[e]?se[e][1]:e}(e);n.events[e]?n.events[e]&&n.events[e].type!==oe&&(n.events[e].type=oe):n.events[e]={name:r,type:oe,isCapture:we(e),listener:(i=r,o=e,function(e){var t=e.id,n=e.currentId,r=e.params,a=e.eventPhase,l={id:t,nativeName:i,originalName:o,params:r,currentId:n,eventPhase:a};Oe.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"===F(t[e])&&!!t[e]}(e,n.events)&&"function"!=typeof t)return n.events[e].type=ae,!1;n.attributes[e]=t}var i,o;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&&_t(this));var r=this.parseAttributeProp(e,t);if(r)return;this.parseAnimationStyleProp(this.style),!n.notToNative&&_t(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(Rt,e)&&(i=Rt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?nt(r):i.toLowerCase().indexOf("color")>-1?tt(r):Se(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||_t(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)})),_t(this),St(!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=ge(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}])}(Tt),Dt=function(e){function t(){var e;return L(this,t),(e=w(this,t)).documentElement=new Bt("document"),e}return E(t,e),T(t,[{key:"createElement",value:function(e){return new Bt(e)}},{key:"createElementNS",value:function(e,t){return new Bt("".concat(e,":").concat(t))}}])}(Tt);Dt.createElement=Dt.prototype.createElement,Dt.createElementNS=Dt.prototype.createElementNS;var Ut=Array.isArray,Wt=Object.keys,Vt=Object.prototype.hasOwnProperty;var $t=setTimeout,Qt=clearTimeout,qt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){St(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:$t,cancelTimeout:Qt,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){ee(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),ee(i,o.nodeId),o},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",ge(e)),i.meta={component:{name:"Text"}},ee(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"==F(t)&&"object"==F(n)){var r,i,o,a=Ut(t),l=Ut(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=Wt(t);if((i=d.length)!==Wt(n).length)return!1;for(r=i;0!=r--;)if(!Vt.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),ie(t)},removeChildFromContainer:function(e,t){e.removeChild(t),ie(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=N(N({},t),{},{style:N(N({},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}}),Gt=l()(N(N({},qt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}}));var Kt=Object.freeze({__proto__:null,getString:function(){return U.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){U.callNative("ClipboardModule","setString",e)}});var Yt=Object.freeze({__proto__:null,getCookies:function(e){return U.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),U.callNative("network","setCookie",e,t,r)}});function Xt(e){return U.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Jt(e){U.callNative("ImageLoaderModule","prefetch",e)}var Zt=Object.freeze({__proto__:null,getSize:Xt,prefetch:Jt}),en=new Map,tn=new Me,nn=function(){return T((function e(t,n){L(this,e),this.eventName=t,this.listener=n}),[{key:"remove",value:function(){this.eventName&&this.listener&&(rn(this.eventName,this.listener),this.listener=void 0)}}])}();function rn(e,t){if(t instanceof nn)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=en.get(t);if(r)r.remove(),en.delete(t),tn.listenerSize(n)<1&&U.callNative("NetInfo","removeListener",n)}}var on=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),tn.listenerSize(n)<1&&U.callNative("NetInfo","addListener",n);var r=tn.addListener(n,(function(e){t(e)}));return en.set(t,r),new nn(n,t)},removeEventListener:rn,fetch:function(){return U.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),an=V.createNode,ln=V.updateNode,un=V.deleteNode,sn=V.flushBatch,cn=V.endBatch,fn=V.sendRenderError,dn=["%c[native]%c","color: red","color: auto"],pn=function(e){return Z((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function hn(e){if(e instanceof Bt)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 Bt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function mn(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=Z((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=hn(t);return r?r.nodeId:0}return t.nodeId}function vn(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=hn(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;l0&&void 0!==arguments[0]&&arguments[0];me=e}(u),X(f,this.rootContainer);var d=o.a.createElement(r,e);return zn(d,this.rootContainer,null,c),On(this.rootContainer)}}],[{key:"Native",get:function(){return Tn}}])}();Fn.version="3.3.1";var Hn={registerComponent:function(e,t){new Fn({appName:e,entryPage:t}).start()}},Mn=function(e){function t(){var e;return L(this,t),(e=w(this,t,arguments)).instance=null,e}return E(t,e),T(t,[{key:"setPressed",value:function(e){vn(this.instance,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){vn(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,a=I(t,s),l=i,u=a.nativeBackgroundAndroid;return"boolean"==typeof n&&(l.collapsable=n),void 0!==(null==u?void 0:u.color)&&(u.color=tt(u.color)),o.a.createElement("div",N({ref:function(t){e.instance=t},nativeName:"View",style:l},a))}}])}(o.a.Component);function Bn(e,t){var n=e.style,r=I(e,c),i=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===F(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(i[0].color="#000"):"object"===F(n)&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ge(r.children);else if("number"==typeof r.children)r.text=ge(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=ge(a),r.children=r.text)}return o.a.createElement("p",N({ref:t,nativeName:"Text",style:i},r))}Bn.displayName="Text";var Dn=o.a.forwardRef(Bn);Dn.displayName="Text";var Un=Object.freeze({__proto__:null,default:Dn}),Wn=function(e){function t(){return L(this,t),w(this,t,arguments)}return E(t,e),T(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,i=e.imageRef,a=e.source,l=e.sources,u=e.src,s=e.srcs,c=e.tintColor,d=e.tintColors,p=I(e,f),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});if(1===h.length){var m=_(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Pe(p.defaultSource));var v=N({},n);return this.handleTintColor(v,c,d),p.style=v,t?o.a.createElement(Mn,{style:n},o.a.createElement("img",N(N({},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):o.a.createElement("img",N(N({},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(z(o),z(n))),r)if("string"==typeof r)o.push(r);else if("object"===F(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"===F(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return Pe(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=Xt(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}}])}(o.a.Component);Wn.prefetch=Jt;var Vn=function(){return T((function e(){L(this,e),this.Value=e.Value}),null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new st({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}])}();Vn.View=Mn,Vn.Text=Un,Vn.Image=Wn;var $n={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 Qn(e){return o.a.createElement("li",N({nativeName:"ListViewItem"},e))}var qn=function(e){function t(){var e;return L(this,t),(e=w(this,t,arguments)).instance=null,e}return E(t,e),T(t,[{key:"expandPullHeader",value:function(){vn(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){void 0!==e?vn(this.instance,"collapsePullHeaderWithOptions",[e]):vn(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=I(t,d);return o.a.createElement("div",N({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}])}(o.a.Component),Gn=function(e){function t(){var e;return L(this,t),(e=w(this,t,arguments)).instance=null,e}return E(t,e),T(t,[{key:"expandPullFooter",value:function(){vn(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){vn(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=I(t,p);return o.a.createElement("div",N({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}])}(o.a.Component),Kn=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).instance=null,n.pullHeader=null,n.pullFooter=null,n.handleInitialListReady=n.handleInitialListReady.bind(n),n.state={initialListReady:!1},n}return E(t,e),T(t,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&vn(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&vn(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,n=t.children,r=t.style,i=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,s=t.getRowStyle,c=t.getHeaderStyle,f=t.getFooterStyle,d=t.getRowKey,p=t.dataSource,m=t.initialListSize,v=t.rowShouldSticky,y=t.onRowLayout,g=t.onHeaderPulling,b=t.onHeaderReleased,w=t.onFooterPulling,k=t.onFooterReleased,S=t.onAppear,E=t.onDisappear,C=t.onWillAppear,x=t.onWillDisappear,P=I(t,h),_=[];if("function"==typeof i){var L=this.state.initialListReady,A=this.props.numberOfRows,T=this.getPullHeader(a,g,b,c),R=this.getPullFooter(l,w,k,f);!A&&p&&(A=p.length),L||(A=Math.min(A,m||15));for(var z=function(t){var n,r={};n=p?i(p[t],null,t):i(t),e.handleRowProps(r,t,{getRowKey:d,getRowStyle:s,getRowType:u,onRowLayout:y,rowShouldSticky:v}),[{func:S,name:"onAppear"},{func:E,name:"onDisappear"},{func:C,name:"onWillAppear"},{func:x,name:"onWillDisappear"}].forEach((function(e){var n=e.func,i=e.name;"function"==typeof n&&(r[i]=function(){n(t)})})),n&&_.push(o.a.createElement(Qn,N({},r),n))},O=0;O0&&(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 Fn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),vn(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),vn(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,I(n,v)),i=I(t,y);return i.initialRoute=r,o.a.createElement("div",N({nativeName:"Navigator",ref:function(t){e.instance=t}},i))}}])}(o.a.Component);function Zn(e){return o.a.createElement("div",N(N({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var er=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).instance=null,n.setPage=n.setPage.bind(n),n.setPageWithoutAnimation=n.setPageWithoutAnimation.bind(n),n.onPageScrollStateChanged=n.onPageScrollStateChanged.bind(n),n}return E(t,e),T(t,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&vn(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&vn(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,i=I(t,g),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),o.a.createElement(Zn,N({},t),e)})):a.push(o.a.createElement(Zn,null,n)),"function"==typeof r&&(i.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",N({nativeName:"ViewPager",ref:function(t){e.instance=t}},i),a)}}])}(o.a.Component);function tr(){var e=W.platform.Localization;return!!e&&1===e.direction}var nr={caretColor:"caret-color"},rr=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).instance=null,n._lastNativeText="",n.onChangeText=n.onChangeText.bind(n),n.onKeyboardWillShow=n.onKeyboardWillShow.bind(n),n}return E(t,e),T(t,[{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){vn(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return vn(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){vn(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){vn(this.instance,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){vn(e.instance,"isFocused",(function(e){return t(e.value)}))}))}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}},{key:"clear",value:function(){vn(this.instance,"clear",[])}},{key:"render",value:function(){var e=this,t=N({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach((function(n){var r=n,i=e.props[n];"string"==typeof e.props[n]&&(nr[n]&&(r=nr[n]),Array.isArray(t.style)?t.style.push({[r]:i}):t.style&&"object"===F(t.style)?t.style[r]=i:t.style={[r]:i},delete t[n])})),tr()&&(t.style?"object"!==F(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),o.a.createElement("div",N(N({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;"function"==typeof t&&t(e)}}])}(o.a.Component),ir=Ln.window.scale,or=Math.round(.4*ir)/ir;function ar(e){return e}0===or&&(or=1/ir);var lr=Object.freeze({__proto__:null,get hairlineWidth(){return or},create:ar}),ur={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"}},sr=function(e){function t(){var e;return L(this,t),(e=w(this,t,arguments)).instance=null,e}return E(t,e),T(t,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"object"===F(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,vn(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;vn(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,a=t.style,l=[n?ur.contentContainerHorizontal:ur.contentContainerVertical,r],u=n?Object.assign({},ur.baseHorizontal,a):Object.assign({},ur.baseVertical,a);return n&&(u.flexDirection=tr()?"row-reverse":"row"),o.a.createElement("div",N(N({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props),{},{style:u}),o.a.createElement(Mn,{style:l},i))}}])}(o.a.Component),cr={modal:{position:"absolute",collapsable:!1}},fr=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).eventSubscription=null,n}return E(t,e),T(t,[{key:"componentDidMount",value:function(){var e=this;"ios"===Ln.platform.OS&&(this.eventSubscription=new Fe("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"===Ln.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,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",i&&(a="slide")),o.a.createElement("div",N({nativeName:"Modal",animationType:a,transparent:r,style:[cr.modal,l]},this.props),t)}}])}(o.a.Component);fr.defaultProps={visible:!0};var dr=function(e){function t(e){var n;L(this,t);var r=(n=w(this,t,[e])).props.requestFocus;return n.state={isFocus:!!r},n.handleFocus=n.handleFocus.bind(n),n}return E(t,e),T(t,[{key:"render",value:function(){var e,t,n,r,i=this.props,a=i.requestFocus,l=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=o.a.Children.only(l);(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&&mn(u),b=s&&mn(s),w=c&&mn(c),k=f&&mn(f),S=d;if("Text"!==r){var E=y.memoizedProps.style;S=N(N({},S),E)}if(Object.assign(S,v?h:p),"Text"===r)return o.a.createElement(Mn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:w,nextFocusRightId:k,requestFocus:a,style:S,onClick:m,onFocus:this.handleFocus},y);var C=y.memoizedProps.children;return o.a.cloneElement(y,{nextFocusDownId:u,nextFocusUpId:s,nextFocusLeftId:c,nextFocusRightId:f,requestFocus:a,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})}}])}(o.a.Component);function pr(e){return o.a.createElement("iframe",N({title:"hippy",nativeName:"WebView"},e))}var hr,mr=function(){return T((function e(t,n,r){var i=this;if(L(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),hr||(hr=new Fe("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=N({},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=hr.addCallback(this.onWebSocketEvent),U.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}),[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,U.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(F(e)));U.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"===F(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,hr.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}])}();function vr(e){return o.a.createElement("li",N({nativeName:"WaterfallItem"},e))}var yr=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).instance=null,n.pullHeader=null,n.pullFooter=null,n.handleInitialListReady=n.handleInitialListReady.bind(n),n}return E(t,e),T(t,[{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;vn(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;vn(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,a=t.numberOfColumns,l=void 0===a?2:a,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,w=t.getItemType,k=t.getItemKey,S=t.getItemStyle,E=t.contentInset,C=void 0===E?{top:0,left:0,bottom:0,right:0}:E,x=t.onItemLayout,P=t.onHeaderPulling,_=t.onHeaderReleased,L=t.onFooterPulling,A=t.onFooterReleased,T=t.containPullHeader,R=void 0!==T&&T,z=t.containPullFooter,O=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,H=N(N({},I(t,b)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:R,containPullFooter:O,containBannerView:F}),M=[];if("function"==typeof i){var B=i();if(B)if("ios"===Ln.platform.OS)M.push(o.a.createElement(Mn,{key:"bannerView"},o.a.cloneElement(B))),H.containBannerView=!0;else if("android"===Ln.platform.OS){M.push(o.a.createElement(vr,N({},{key:"bannerView",fullSpan:!0,style:{}}),o.a.cloneElement(B)))}}if("function"==typeof v){for(var D=this.getPullHeader(y,P,_),U=this.getPullFooter(g,L,A),W=0;W--u||o[l]!==a[u])return"\n"+o[l].replace(" at new "," at ")}while(1<=l&&0<=u);break}}}finally{tt=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?et(e):""}var rt=[],it=-1;function ot(e){return{current:e}}function at(e){0>it||(e.current=rt[it],rt[it]=null,it--)}function lt(e,t){it++,rt[it]=e.current,e.current=t}var ut={},st=ot(ut),ct=ot(!1),ft=ut;function dt(e,t){var n=e.type.contextTypes;if(!n)return ut;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return null!=(e=e.childContextTypes)}function ht(){at(ct),at(st)}function mt(e,t,n){if(st.current!==ut)throw Error(u(168));lt(st,t),lt(ct,n)}function vt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(u(108,_(t)||"Unknown",i));return o({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ut,ft=st.current,lt(st,e),lt(ct,ct.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(u(169));n?(e=vt(e,t,ft),r.__reactInternalMemoizedMergedChildContext=e,at(ct),at(st),lt(st,e)):at(ct),lt(ct,n)}var bt=null,wt=null;(0,l.unstable_now)();var kt=0,Et=8;function St(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function Ct(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=St(u),i=Et):0!==(l&=o)&&(r=St(l),i=Et)}else 0!==(o=n&~a)?(r=St(o),i=Et):0!==l&&(r=St(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-Lt(r))?0:1<n;n++)t.push(e);return t}function _t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Lt(t)]=n}var Lt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(At(e)/Tt|0)|0},At=Math.log,Tt=Math.LN2;var Rt=l.unstable_runWithPriority,zt=l.unstable_scheduleCallback,Ot=l.unstable_cancelCallback,jt=l.unstable_shouldYield,Ft=l.unstable_requestPaint,Ht=l.unstable_now,Mt=l.unstable_getCurrentPriorityLevel,Bt=l.unstable_ImmediatePriority,Dt=l.unstable_UserBlockingPriority,Ut=l.unstable_NormalPriority,Wt=l.unstable_LowPriority,Vt=l.unstable_IdlePriority,$t={},Qt=void 0!==Ft?Ft:function(){},qt=null,Gt=null,Kt=!1,Yt=Ht(),Xt=1e4>Yt?Ht:function(){return Ht()-Yt};function Jt(){switch(Mt()){case Bt:return 99;case Dt:return 98;case Ut:return 97;case Wt:return 96;case Vt:return 95;default:throw Error(u(332))}}function Zt(e){switch(e){case 99:return Bt;case 98:return Dt;case 97:return Ut;case 96:return Wt;case 95:return Vt;default:throw Error(u(332))}}function en(e,t){return e=Zt(e),Rt(e,t)}function tn(e,t,n){return e=Zt(e),zt(e,t,n)}function nn(){if(null!==Gt){var e=Gt;Gt=null,Ot(e)}rn()}function rn(){if(!Kt&&null!==qt){Kt=!0;var e=0;try{var t=qt;en(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(t,f,l[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&n(t,f),o=a(h,o,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===l.length)return r(t,f),s;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(t,d,m.value,s);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&n(t,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=h}if(m.done)return r(t,d),c;if(null===d){for(;!m.done;p++,m=l.next())null!==(m=v(t,m.value,s))&&(o=a(m,o,p),null===f?c=m:f.sibling=m,f=m);return c}for(d=i(t,d);!m.done;p++,m=l.next())null!==(m=g(d,t,p,m.value,s))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),o=a(m,o,p),null===f?c=m:f.sibling=m,f=m);return e&&d.forEach((function(e){return n(t,e)})),c}return function e(i,a,s,p){var h="object"===t(s)&&null!==s&&s.type===d&&null===s.key;h&&(s=s.props.children);var m="object"===t(s)&&null!==s;if(m)switch(s.$$typeof){case c:e:{for(m=s.key,h=a;null!==h;){if(h.key===m){switch(h.tag){case 7:if(s.type===d){r(i,h.sibling),(a=o(h,s.props.children)).return=i,i=a;break e}break;case 22:if((m=s.type).$$typeof===k&&(m=Mn(m)),m.$$typeof===E&&m._render===h.type._render){r(i,h.sibling),(a=o(h,s.props)).type=m,a.return=i,i=a;break e}default:if(h.elementType===s.type){r(i,h.sibling),(a=o(h,s.props)).ref=Fn(i,h,s),a.return=i,i=a;break e}}r(i,h);break}n(i,h),h=h.sibling}s.type===d?((a=Ma(s.props.children,i.mode,p,s.key)).return=i,i=a):((p=Ha(s.type,s.key,s.props,null,i.mode,p)).ref=Fn(i,a,s),p.return=i,i=p)}return l(i);case f:e:{for(h=s.key;null!==a;){if(a.key===h){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(i,a.sibling),(a=o(a,s.children||[])).return=i,i=a;break e}r(i,a);break}n(i,a),a=a.sibling}(a=Ua(s,i.mode,p)).return=i,i=a}return l(i);case k:return e(i,a,(h=s._init)(s._payload),p)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==a&&6===a.tag?(r(i,a.sibling),(a=o(a,s)).return=i,i=a):(r(i,a),(a=Da(s,i.mode,p)).return=i,i=a),l(i);if(jn(s))return b(i,a,s,p);if(I(s))return w(i,a,s,p);if(m&&Hn(i,s),void 0===s&&!h)switch(i.tag){case 1:case 22:case 0:case 11:case 15:throw Error(u(152,_(i.type)||"Component"))}return r(i,a)}}var Dn=Bn(!0),Un=Bn(!1),Wn={},Vn=ot(Wn),$n=ot(Wn),Qn=ot(Wn);function qn(e){if(e===Wn)throw Error(u(174));return e}function Gn(e,t){lt(Qn,t),lt($n,e),lt(Vn,Wn),e=F(t),at(Vn),lt(Vn,e)}function Kn(){at(Vn),at($n),at(Qn)}function Yn(e){var t=qn(Qn.current),n=qn(Vn.current);n!==(t=H(n,e.type,t))&&(lt($n,e),lt(Vn,t))}function Xn(e){$n.current===e&&(at(Vn),at($n))}var Jn=ot(0);function Zn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||De(n)||Ue(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var er=null,tr=null,nr=!1;function rr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ir(e,t){switch(e.tag){case 5:return null!==(t=He(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=Me(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Be(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function or(e){if(nr){var t=tr;if(t){var n=t;if(!ir(e,t)){if(!(t=Ve(n))||!ir(e,t))return e.flags=-1025&e.flags|2,nr=!1,void(er=e);rr(er,n)}er=e,tr=$e(t)}else e.flags=-1025&e.flags|2,nr=!1,er=e}}function ar(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;er=e}function lr(e){if(!Z||e!==er)return!1;if(!nr)return ar(e),nr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$(t,e.memoizedProps))for(t=tr;t;)rr(e,t),t=Ve(t);if(ar(e),13===e.tag){if(!Z)throw Error(u(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(u(317));tr=Ke(e)}else tr=er?Ve(e.stateNode):null;return!0}function ur(){Z&&(tr=er=null,nr=!1)}var sr=[];function cr(){for(var e=0;eo))throw Error(u(301));o+=1,vr=mr=null,t.updateQueue=null,fr.current=Yr,e=n(r,i)}while(gr)}if(fr.current=qr,t=null!==mr&&null!==mr.next,pr=0,vr=mr=hr=null,yr=!1,t)throw Error(u(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function Sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vr?hr.memoizedState=vr=e:vr=vr.next=e,vr}function Cr(){if(null===mr){var e=hr.alternate;e=null!==e?e.memoizedState:null}else e=mr.next;var t=null===vr?hr.memoizedState:vr.next;if(null!==t)vr=t,mr=e;else{if(null===e)throw Error(u(310));e={memoizedState:(mr=e).memoizedState,baseState:mr.baseState,baseQueue:mr.baseQueue,queue:mr.queue,next:null},null===vr?hr.memoizedState=vr=e:vr=vr.next=e}return vr}function xr(e,t){return"function"==typeof t?t(e):t}function Nr(e){var t=Cr(),n=t.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=e;var r=mr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,s=i;do{var c=s.lane;if((pr&c)===c)null!==l&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(a=l=f,o=r):l=l.next=f,hr.lanes|=c,Eo|=c}s=s.next}while(null!==s&&s!==i);null===l?o=r:l.next=a,an(r,t.memoizedState)||(Jr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Pr(e){var t=Cr(),n=t.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);an(o,t.memoizedState)||(Jr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ir(e,t,n){var r=t._getVersion;r=r(t._source);var i=Y?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(pr&e)===e)&&(Y?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(u(350))}function _r(e,t,n,r){var i=ho;if(null===i)throw Error(u(349));var o=t._getVersion,a=o(t._source),l=fr.current,s=l.useState((function(){return Ir(i,t,n)})),c=s[1],f=s[0];s=vr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=hr;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!an(a,e)){e=n(t._source),an(f,e)||(c(e),e=Go(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),en(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Zn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!nr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Xt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Xt(),e.sibling=null,t=Jn.current,lt(Jn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(u(156,t.tag))}function Ii(e){switch(e.tag){case 1:pt(e.type)&&ht();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Kn(),at(ct),at(st),cr(),0!=(64&(t=e.flags)))throw Error(u(285));return e.flags=-4097&t|64,e;case 5:return Xn(e),null;case 13:if(at(Jn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(u(340));ur()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return at(Jn),null;case 4:return Kn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ai="function"==typeof WeakMap?WeakMap:Map;function Ti(e,t,n){(n=Cn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ao||(Ao=!0,To=r),Li(0,t)},n}function Ri(e,t,n){(n=Cn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ea(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:cn(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(X&&256&t.flags&&Ie(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(u(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),ga(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:cn(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&In(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=j(n.child.stateNode);break;case 1:e=n.child.stateNode}In(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(Z&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Xe(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(u(163))}function Mi(e,t){if(X)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Ce(r):Ne(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?xe(r):Pe(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(wt&&"function"==typeof wt.onCommitFiberUnmount)try{wt.onCommitFiberUnmount(bt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){Ea(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ea(t,e)}break;case 5:Oi(t);break;case 4:X?$i(e,t):J&&J&&(t=t.stateNode.containerInfo,e=Te(t),Oe(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||X&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(X){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(u(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(u(161))}16&n.flags&&(Se(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?we(r,t,n):me(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(u(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):ke(n,i.stateNode);else if(18===i.tag)r?Ze(n,i.stateNode):Je(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(X){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(u(162));return n=t.memoizedProps,void ve(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(Z&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ye(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(u(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:Z&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ye(n.containerInfo)));break;case 23:case 24:return}e:if(J){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Oe(t.containerInfo,t.pendingChildren);break e}throw Error(u(163))}}function qi(e){null!==e.memoizedState&&(No=Xt(),X&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=ee(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(u(364));return t}if(null===(e=le(e)))throw Error(u(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(u(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Xt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*uo(n/1960))-n)){e.timeoutHandle=q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(u(329))}}return Xo(e,Xt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,u),p=l;do{switch(p.tag){case 3:a=s,p.flags|=4096,n&=-n,p.lanes|=n,Nn(p,Ti(0,a,n));break e;case 1:a=s;var E=p.type,S=p.stateNode;if(0==(64&p.flags)&&("function"==typeof E.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Ro||!Ro.has(S)))){p.flags|=4096,n&=-n,p.lanes|=n,Nn(p,Ri(p,a,n));break e}}p=p.return}while(null!==p)}pa(r)}catch(e){n=e,mo===r&&null!==r&&(mo=r=r.return);continue}break}}function la(){var e=so.current;return so.current=qr,null===e?qr:e}function ua(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&Eo)&&0==(134217727&So)||Zo(ho,vo)}function sa(e,t){var n=po;po|=16;var r=la();for(ho===e&&vo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(mn(),po=n,so.current=r,null!==mo)throw Error(u(261));return ho=null,vo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!jt();)da(mo)}function da(e){var t=_o(e.alternate,e,yo);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,yo)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&yo)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Xt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Jt()?1:2:(0===Wo&&(Wo=ko),0===(t=Pt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(_t(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,n,r){var i=n.lanes;if(null!==e)if(e.memoizedProps!==n.pendingProps||ct.current)Jr=!0;else{if(0==(r&i)){switch(Jr=!1,n.tag){case 3:si(n),ur();break;case 5:Yn(n);break;case 1:pt(n.type)&&yt(n);break;case 4:Gn(n,n.stateNode.containerInfo);break;case 10:vn(n,n.memoizedProps.value);break;case 13:if(null!==(i=n.memoizedState))return null!==i.dehydrated?(lt(Jn,1&Jn.current),n.flags|=64,null):0!=(r&n.child.childLanes)?mi(e,n,r):(lt(Jn,1&Jn.current),null!==(n=Ci(e,n,r))?n.sibling:null);lt(Jn,1&Jn.current);break;case 19:if(i=0!=(r&n.childLanes),0!=(64&e.flags)){if(i)return Si(e,n,r);n.flags|=64}var o=n.memoizedState;if(null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null),lt(Jn,Jn.current),i)break;return null;case 23:case 24:return n.lanes=0,ri(e,n,r)}return Ci(e,n,r)}Jr=0!=(16384&e.flags)}else Jr=!1;switch(n.lanes=0,n.tag){case 2:if(i=n.type,null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,o=dt(n,st.current),bn(n,r),o=kr(null,n,i,e,o,r),n.flags|=1,"object"===t(o)&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,pt(i)){var a=!0;yt(n)}else a=!1;n.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,En(n);var l=i.getDerivedStateFromProps;"function"==typeof l&&Ln(n,i,l,e),o.updater=An,n.stateNode=o,o._reactInternals=n,On(n,i,e,r),n=ui(null,n,i,!0,a,r)}else n.tag=0,Zr(null,n,o,r),n=n.child;return n;case 16:o=n.elementType;e:{switch(null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,o=(a=o._init)(o._payload),n.type=o,a=n.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===w)return 14;if(e===E)return 22}return 2}(o),l=cn(o,e),a){case 0:n=oi(null,n,o,l,r);break e;case 1:n=li(null,n,o,l,r);break e;case 11:n=ei(null,n,o,l,r);break e;case 14:n=ti(null,n,o,cn(o.type,l),i,r);break e;case 22:n=ai(null,n,o,e,r);break e}throw Error(u(306,o,""))}return n;case 0:return i=n.type,o=n.pendingProps,oi(e,n,i,o=n.elementType===i?o:cn(i,o),r);case 1:return i=n.type,o=n.pendingProps,li(e,n,i,o=n.elementType===i?o:cn(i,o),r);case 3:if(si(n),i=n.updateQueue,null===e||null===i)throw Error(u(282));if(i=n.pendingProps,o=null!==(o=n.memoizedState)?o.element:null,Sn(e,n),Pn(n,i,null,r),(i=n.memoizedState.element)===o)ur(),n=Ci(e,n,r);else{if((a=(o=n.stateNode).hydrate)&&(Z?(tr=$e(n.stateNode.containerInfo),er=n,a=nr=!0):a=!1),a){if(Z&&null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==s.width||pa)){d>o&&(s.height+=d-o,s.y=o),pi)){c>r&&(s.width+=c-r,s.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},i.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return j(e.child.stateNode);default:return e.child.stateNode}},i.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{bt=t.inject(e),wt=t}catch(e){}e=!0}return e},i.observeVisibleRects=function(e,t,n,r){if(!ae)throw Error(u(363));e=ao(e,t);var i=pe(e,n,r).disconnect;return{disconnect:function(){i()}}},i.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},i.runWithPriority=function(e,t){var n=kt;try{return kt=e,t()}finally{kt=n}},i.shouldSuspend=function(){return!1},i.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),nn())}},i.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(L(n=n._reactInternals)!==n||1!==n.tag)throw Error(u(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(pt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(u(171))}if(1===n.tag){var s=n.type;if(pt(s)){n=vt(n,s,l);break e}}n=l}else n=ut;return null===t.context?t.context=n:t.pendingContext=n,(t=Cn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),xn(i,t),Ko(i,a,o),a},i}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; + */e.exports=function(r){var i={},o=n("./node_modules/object-assign/index.js"),a=n("./node_modules/react/index.js"),l=n("./node_modules/scheduler/index.js");function u(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--u||o[l]!==a[u])return"\n"+o[l].replace(" at new "," at ")}while(1<=l&&0<=u);break}}}finally{tt=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?et(e):""}var rt=[],it=-1;function ot(e){return{current:e}}function at(e){0>it||(e.current=rt[it],rt[it]=null,it--)}function lt(e,t){it++,rt[it]=e.current,e.current=t}var ut={},st=ot(ut),ct=ot(!1),ft=ut;function dt(e,t){var n=e.type.contextTypes;if(!n)return ut;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return null!=(e=e.childContextTypes)}function ht(){at(ct),at(st)}function mt(e,t,n){if(st.current!==ut)throw Error(u(168));lt(st,t),lt(ct,n)}function vt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(u(108,_(t)||"Unknown",i));return o({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ut,ft=st.current,lt(st,e),lt(ct,ct.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(u(169));n?(e=vt(e,t,ft),r.__reactInternalMemoizedMergedChildContext=e,at(ct),at(st),lt(st,e)):at(ct),lt(ct,n)}var bt=null,wt=null;(0,l.unstable_now)();var kt=0,St=8;function Et(e){if(0!=(1&e))return St=15,1;if(0!=(2&e))return St=14,2;if(0!=(4&e))return St=13,4;var t=24&e;return 0!==t?(St=12,t):0!=(32&e)?(St=11,32):0!==(t=192&e)?(St=10,t):0!=(256&e)?(St=9,256):0!==(t=3584&e)?(St=8,t):0!=(4096&e)?(St=7,4096):0!==(t=4186112&e)?(St=6,t):0!==(t=62914560&e)?(St=5,t):67108864&e?(St=4,67108864):0!=(134217728&e)?(St=3,134217728):0!==(t=805306368&e)?(St=2,t):0!=(1073741824&e)?(St=1,1073741824):(St=8,e)}function Ct(e,t){var n=e.pendingLanes;if(0===n)return St=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=St=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Et(u),i=St):0!==(l&=o)&&(r=Et(l),i=St)}else 0!==(o=n&~a)?(r=Et(o),i=St):0!==l&&(r=Et(l),i=St);if(0===r)return 0;if(r=n&((0>(r=31-Lt(r))?0:1<n;n++)t.push(e);return t}function _t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Lt(t)]=n}var Lt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(At(e)/Tt|0)|0},At=Math.log,Tt=Math.LN2;var Rt=l.unstable_runWithPriority,zt=l.unstable_scheduleCallback,Ot=l.unstable_cancelCallback,jt=l.unstable_shouldYield,Ft=l.unstable_requestPaint,Ht=l.unstable_now,Mt=l.unstable_getCurrentPriorityLevel,Bt=l.unstable_ImmediatePriority,Dt=l.unstable_UserBlockingPriority,Ut=l.unstable_NormalPriority,Wt=l.unstable_LowPriority,Vt=l.unstable_IdlePriority,$t={},Qt=void 0!==Ft?Ft:function(){},qt=null,Gt=null,Kt=!1,Yt=Ht(),Xt=1e4>Yt?Ht:function(){return Ht()-Yt};function Jt(){switch(Mt()){case Bt:return 99;case Dt:return 98;case Ut:return 97;case Wt:return 96;case Vt:return 95;default:throw Error(u(332))}}function Zt(e){switch(e){case 99:return Bt;case 98:return Dt;case 97:return Ut;case 96:return Wt;case 95:return Vt;default:throw Error(u(332))}}function en(e,t){return e=Zt(e),Rt(e,t)}function tn(e,t,n){return e=Zt(e),zt(e,t,n)}function nn(){if(null!==Gt){var e=Gt;Gt=null,Ot(e)}rn()}function rn(){if(!Kt&&null!==qt){Kt=!0;var e=0;try{var t=qt;en(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(t,f,l[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&n(t,f),o=a(h,o,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===l.length)return r(t,f),s;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(t,d,m.value,s);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&n(t,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=h}if(m.done)return r(t,d),c;if(null===d){for(;!m.done;p++,m=l.next())null!==(m=v(t,m.value,s))&&(o=a(m,o,p),null===f?c=m:f.sibling=m,f=m);return c}for(d=i(t,d);!m.done;p++,m=l.next())null!==(m=g(d,t,p,m.value,s))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),o=a(m,o,p),null===f?c=m:f.sibling=m,f=m);return e&&d.forEach((function(e){return n(t,e)})),c}return function e(i,a,s,p){var h="object"===t(s)&&null!==s&&s.type===d&&null===s.key;h&&(s=s.props.children);var m="object"===t(s)&&null!==s;if(m)switch(s.$$typeof){case c:e:{for(m=s.key,h=a;null!==h;){if(h.key===m){switch(h.tag){case 7:if(s.type===d){r(i,h.sibling),(a=o(h,s.props.children)).return=i,i=a;break e}break;case 22:if((m=s.type).$$typeof===k&&(m=Mn(m)),m.$$typeof===S&&m._render===h.type._render){r(i,h.sibling),(a=o(h,s.props)).type=m,a.return=i,i=a;break e}default:if(h.elementType===s.type){r(i,h.sibling),(a=o(h,s.props)).ref=Fn(i,h,s),a.return=i,i=a;break e}}r(i,h);break}n(i,h),h=h.sibling}s.type===d?((a=Ba(s.props.children,i.mode,p,s.key)).return=i,i=a):((p=Ma(s.type,s.key,s.props,null,i.mode,p)).ref=Fn(i,a,s),p.return=i,i=p)}return l(i);case f:e:{for(h=s.key;null!==a;){if(a.key===h){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(i,a.sibling),(a=o(a,s.children||[])).return=i,i=a;break e}r(i,a);break}n(i,a),a=a.sibling}(a=Wa(s,i.mode,p)).return=i,i=a}return l(i);case k:return e(i,a,(h=s._init)(s._payload),p)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==a&&6===a.tag?(r(i,a.sibling),(a=o(a,s)).return=i,i=a):(r(i,a),(a=Ua(s,i.mode,p)).return=i,i=a),l(i);if(jn(s))return b(i,a,s,p);if(I(s))return w(i,a,s,p);if(m&&Hn(i,s),void 0===s&&!h)switch(i.tag){case 1:case 22:case 0:case 11:case 15:throw Error(u(152,_(i.type)||"Component"))}return r(i,a)}}var Dn=Bn(!0),Un=Bn(!1),Wn={},Vn=ot(Wn),$n=ot(Wn),Qn=ot(Wn);function qn(e){if(e===Wn)throw Error(u(174));return e}function Gn(e,t){lt(Qn,t),lt($n,e),lt(Vn,Wn),e=F(t),at(Vn),lt(Vn,e)}function Kn(){at(Vn),at($n),at(Qn)}function Yn(e){var t=qn(Qn.current),n=qn(Vn.current);n!==(t=H(n,e.type,t))&&(lt($n,e),lt(Vn,t))}function Xn(e){$n.current===e&&(at(Vn),at($n))}var Jn=ot(0);function Zn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||De(n)||Ue(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var er=null,tr=null,nr=!1;function rr(e,t){var n=ja(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ir(e,t){switch(e.tag){case 5:return null!==(t=He(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=Me(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Be(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=ja(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function or(e){if(nr){var t=tr;if(t){var n=t;if(!ir(e,t)){if(!(t=Ve(n))||!ir(e,t))return e.flags=-1025&e.flags|2,nr=!1,void(er=e);rr(er,n)}er=e,tr=$e(t)}else e.flags=-1025&e.flags|2,nr=!1,er=e}}function ar(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;er=e}function lr(e){if(!Z||e!==er)return!1;if(!nr)return ar(e),nr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$(t,e.memoizedProps))for(t=tr;t;)rr(e,t),t=Ve(t);if(ar(e),13===e.tag){if(!Z)throw Error(u(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(u(317));tr=Ke(e)}else tr=er?Ve(e.stateNode):null;return!0}function ur(){Z&&(tr=er=null,nr=!1)}var sr=[];function cr(){for(var e=0;eo))throw Error(u(301));o+=1,vr=mr=null,t.updateQueue=null,fr.current=Yr,e=n(r,i)}while(gr)}if(fr.current=qr,t=null!==mr&&null!==mr.next,pr=0,vr=mr=hr=null,yr=!1,t)throw Error(u(300));return e}function Sr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function Er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vr?hr.memoizedState=vr=e:vr=vr.next=e,vr}function Cr(){if(null===mr){var e=hr.alternate;e=null!==e?e.memoizedState:null}else e=mr.next;var t=null===vr?hr.memoizedState:vr.next;if(null!==t)vr=t,mr=e;else{if(null===e)throw Error(u(310));e={memoizedState:(mr=e).memoizedState,baseState:mr.baseState,baseQueue:mr.baseQueue,queue:mr.queue,next:null},null===vr?hr.memoizedState=vr=e:vr=vr.next=e}return vr}function xr(e,t){return"function"==typeof t?t(e):t}function Nr(e){var t=Cr(),n=t.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=e;var r=mr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,s=i;do{var c=s.lane;if((pr&c)===c)null!==l&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(a=l=f,o=r):l=l.next=f,hr.lanes|=c,Eo|=c}s=s.next}while(null!==s&&s!==i);null===l?o=r:l.next=a,an(r,t.memoizedState)||(Jr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Pr(e){var t=Cr(),n=t.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);an(o,t.memoizedState)||(Jr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ir(e,t,n){var r=t._getVersion;r=r(t._source);var i=Y?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(pr&e)===e)&&(Y?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(u(350))}function _r(e,t,n,r){var i=mo;if(null===i)throw Error(u(349));var o=t._getVersion,a=o(t._source),l=fr.current,s=l.useState((function(){return Ir(i,t,n)})),c=s[1],f=s[0];s=vr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=hr;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!an(a,e)){e=n(t._source),an(f,e)||(c(e),e=Ko(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),en(97Io&&(t.flags|=64,i=!0,Pi(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Zn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Pi(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!nr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Xt()-r.renderingStartTime>Io&&1073741824!==n&&(t.flags|=64,i=!0,Pi(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Xt(),e.sibling=null,t=Jn.current,lt(Jn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return oa(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(u(156,t.tag))}function _i(e){switch(e.tag){case 1:pt(e.type)&&ht();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Kn(),at(ct),at(st),cr(),0!=(64&(t=e.flags)))throw Error(u(285));return e.flags=-4097&t|64,e;case 5:return Xn(e),null;case 13:if(at(Jn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(u(340));ur()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return at(Jn),null;case 4:return Kn(),null;case 10:return yn(e),null;case 23:case 24:return oa(),null;default:return null}}function Li(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Ai(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ri(e,t,n){(n=Cn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ro=r),Ai(0,t)},n}function zi(e,t,n){(n=Cn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Ai(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===zo?zo=new Set([this]):zo.add(this),Ai(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Oi="function"==typeof WeakSet?WeakSet:Set;function ji(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ea(e,t)}else t.current=null}function Fi(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:cn(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(X&&256&t.flags&&Ie(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(u(163))}function Hi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Mi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(wa(n,e),ba(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:cn(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&In(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=j(n.child.stateNode);break;case 1:e=n.child.stateNode}In(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(Z&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Xe(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(u(163))}function Bi(e,t){if(X)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Ce(r):Ne(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?xe(r):Pe(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Di(e,t){if(wt&&"function"==typeof wt.onCommitFiberUnmount)try{wt.onCommitFiberUnmount(bt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))wa(t,n);else{r=t;try{i()}catch(e){Ea(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ji(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ea(t,e)}break;case 5:ji(t);break;case 4:X?Qi(e,t):J&&J&&(t=t.stateNode.containerInfo,e=Te(t),Oe(t,e))}}function Ui(e,t){for(var n=t;;)if(Di(e,n),null===n.child||X&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Wi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Vi(e){return 5===e.tag||3===e.tag||4===e.tag}function $i(e){if(X){e:{for(var t=e.return;null!==t;){if(Vi(t))break e;t=t.return}throw Error(u(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(u(161))}16&n.flags&&(Ee(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Vi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?we(r,t,n):me(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function Qi(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(u(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Ui(e,i),r?Se(n,i.stateNode):ke(n,i.stateNode);else if(18===i.tag)r?Ze(n,i.stateNode):Je(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Di(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function qi(e,t){if(X){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Hi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(u(162));return n=t.memoizedProps,void ve(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(Z&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ye(t.containerInfo))));case 12:return;case 13:return Gi(t),void Ki(t);case 19:return void Ki(t);case 17:return;case 23:case 24:return void Bi(t,null!==t.memoizedState)}throw Error(u(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Hi(3,t);case 12:return;case 13:return Gi(t),void Ki(t);case 19:return void Ki(t);case 3:Z&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ye(n.containerInfo)));break;case 23:case 24:return}e:if(J){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Oe(t.containerInfo,t.pendingChildren);break e}throw Error(u(163))}}function Gi(e){null!==e.memoizedState&&(Po=Xt(),X&&Bi(e.child,!0))}function Ki(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Oi),t.forEach((function(t){var r=Pa.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Yi(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Xi=0,Ji=1,Zi=2,eo=3,to=4;if("function"==typeof Symbol&&Symbol.for){var no=Symbol.for;Xi=no("selector.component"),Ji=no("selector.has_pseudo_class"),Zi=no("selector.role"),eo=no("selector.test_id"),to=no("selector.text")}function ro(e){var t=ee(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(u(364));return t}if(null===(e=le(e)))throw Error(u(362));return e.stateNode.current}function io(e,t){switch(t.$$typeof){case Xi:if(e.type===t.value)return!0;break;case Ji:e:{t=t.value,e=[e,0];for(var n=0;n";case Ji:return":has("+(oo(e)||"")+")";case Zi:return'[role="'+e.value+'"]';case to:return'"'+e.value+'"';case eo:return'[data-testname="'+e.value+'"]';default:throw Error(u(365,e))}}function ao(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Xt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=q(ma.bind(null,e),n);break}ma(e);break;case 5:ma(e);break;default:throw Error(u(329))}}return Jo(e,Xt()),e.callbackNode===t?Zo.bind(null,e):null}function ea(e,t){for(t&=~xo,t&=~Co,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==wo&&(wo=2),s=Li(s,u),p=l;do{switch(p.tag){case 3:a=s,p.flags|=4096,n&=-n,p.lanes|=n,Nn(p,Ri(0,a,n));break e;case 1:a=s;var S=p.type,E=p.stateNode;if(0==(64&p.flags)&&("function"==typeof S.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zo||!zo.has(E)))){p.flags|=4096,n&=-n,p.lanes|=n,Nn(p,zi(p,a,n));break e}}p=p.return}while(null!==p)}ha(r)}catch(e){n=e,vo===r&&null!==r&&(vo=r=r.return);continue}break}}function ua(){var e=co.current;return co.current=qr,null===e?qr:e}function sa(){0!==wo&&3!==wo||(wo=4),null===mo||0==(134217727&Eo)&&0==(134217727&Co)||ea(mo,yo)}function ca(e,t){var n=ho;ho|=16;var r=ua();for(mo===e&&yo===t||aa(e,t);;)try{fa();break}catch(t){la(e,t)}if(mn(),ho=n,co.current=r,null!==vo)throw Error(u(261));return mo=null,yo=0,wo}function fa(){for(;null!==vo;)pa(vo)}function da(){for(;null!==vo&&!jt();)pa(vo)}function pa(e){var t=Lo(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?ha(e):vo=t,fo.current=null}function ha(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Ii(n,t,go)))return void(vo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Xt()-Po?aa(e,0):xo|=n),Jo(e,t)}function xa(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Jt()?1:2:(0===Vo&&(Vo=So),0===(t=Pt(62914560&~Vo))&&(t=4194304)));var n=Go();null!==(e=Xo(e,t))&&(_t(e,t,n),Jo(e,n))}function Na(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xa(e,n)}function Pa(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}null!==r&&r.delete(t),xa(e,n)}Lo=function(e,n,r){var i=n.lanes;if(null!==e)if(e.memoizedProps!==n.pendingProps||ct.current)Jr=!0;else{if(0==(r&i)){switch(Jr=!1,n.tag){case 3:si(n),ur();break;case 5:Yn(n);break;case 1:pt(n.type)&&yt(n);break;case 4:Gn(n,n.stateNode.containerInfo);break;case 10:vn(n,n.memoizedProps.value);break;case 13:if(null!==(i=n.memoizedState))return null!==i.dehydrated?(lt(Jn,1&Jn.current),n.flags|=64,null):0!=(r&n.child.childLanes)?mi(e,n,r):(lt(Jn,1&Jn.current),null!==(n=Ci(e,n,r))?n.sibling:null);lt(Jn,1&Jn.current);break;case 19:if(i=0!=(r&n.childLanes),0!=(64&e.flags)){if(i)return Ei(e,n,r);n.flags|=64}var o=n.memoizedState;if(null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null),lt(Jn,Jn.current),i)break;return null;case 23:case 24:return n.lanes=0,ri(e,n,r)}return Ci(e,n,r)}Jr=0!=(16384&e.flags)}else Jr=!1;switch(n.lanes=0,n.tag){case 2:if(i=n.type,null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,o=dt(n,st.current),bn(n,r),o=kr(null,n,i,e,o,r),n.flags|=1,"object"===t(o)&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,pt(i)){var a=!0;yt(n)}else a=!1;n.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Sn(n);var l=i.getDerivedStateFromProps;"function"==typeof l&&Ln(n,i,l,e),o.updater=An,n.stateNode=o,o._reactInternals=n,On(n,i,e,r),n=ui(null,n,i,!0,a,r)}else n.tag=0,Zr(null,n,o,r),n=n.child;return n;case 16:o=n.elementType;e:{switch(null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,o=(a=o._init)(o._payload),n.type=o,a=n.tag=function(e){if("function"==typeof e)return Fa(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===w)return 14;if(e===S)return 22}return 2}(o),l=cn(o,e),a){case 0:n=oi(null,n,o,l,r);break e;case 1:n=li(null,n,o,l,r);break e;case 11:n=ei(null,n,o,l,r);break e;case 14:n=ti(null,n,o,cn(o.type,l),i,r);break e;case 22:n=ai(null,n,o,e,r);break e}throw Error(u(306,o,""))}return n;case 0:return i=n.type,o=n.pendingProps,oi(e,n,i,o=n.elementType===i?o:cn(i,o),r);case 1:return i=n.type,o=n.pendingProps,li(e,n,i,o=n.elementType===i?o:cn(i,o),r);case 3:if(si(n),i=n.updateQueue,null===e||null===i)throw Error(u(282));if(i=n.pendingProps,o=null!==(o=n.memoizedState)?o.element:null,En(e,n),Pn(n,i,null,r),(i=n.memoizedState.element)===o)ur(),n=Ci(e,n,r);else{if((a=(o=n.stateNode).hydrate)&&(Z?(tr=$e(n.stateNode.containerInfo),er=n,a=nr=!0):a=!1),a){if(Z&&null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==s.width||pa)){d>o&&(s.height+=d-o,s.y=o),pi)){c>r&&(s.width+=c-r,s.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},i.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return j(e.child.stateNode);default:return e.child.stateNode}},i.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Ga,findFiberByHostInstance:e.findFiberByHostInstance||Ka,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{bt=t.inject(e),wt=t}catch(e){}e=!0}return e},i.observeVisibleRects=function(e,t,n,r){if(!ae)throw Error(u(363));e=lo(e,t);var i=pe(e,n,r).disconnect;return{disconnect:function(){i()}}},i.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},i.runWithPriority=function(e,t){var n=kt;try{return kt=e,t()}finally{kt=n}},i.shouldSuspend=function(){return!1},i.unbatchedUpdates=function(e,t){var n=ho;ho&=-2,ho|=8;try{return e(t)}finally{0===(ho=n)&&(_o(),nn())}},i.updateContainer=function(e,t,n,r){var i=t.current,o=Go(),a=Ko(i);e:if(n){t:{if(L(n=n._reactInternals)!==n||1!==n.tag)throw Error(u(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(pt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(u(171))}if(1===n.tag){var s=n.type;if(pt(s)){n=vt(n,s,l);break e}}n=l}else n=ut;return null===t.context?t.context=n:t.pendingContext=n,(t=Cn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),xn(i,t),Yo(i,a,o),a},i}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -41,7 +41,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n("./node_modules/object-assign/index.js"),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var l=60109,u=60110,s=60112;t.Suspense=60113;var c=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),l=d("react.provider"),u=d("react.context"),s=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),f=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n=k},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0P(a,n))void 0!==u&&0>P(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>P(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],_=[],L=1,A=null,T=3,R=!1,z=!1,O=!1;function j(e){for(var t=x(_);null!==t;){if(null===t.callback)N(_);else{if(!(t.startTime<=e))break;N(_),t.sortIndex=t.expirationTime,C(I,t)}t=x(_)}}function F(e){if(O=!1,j(e),!z)if(null!==x(I))z=!0,i(H);else{var t=x(_);null!==t&&o(F,t.startTime-e)}}function H(e,n){z=!1,O&&(O=!1,a()),R=!0;var r=T;try{for(j(n),A=x(I);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=A.callback;if("function"==typeof i){A.callback=null,T=A.priorityLevel;var l=i(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?A.callback=l:A===x(I)&&N(I),j(n)}else N(I);A=x(I)}if(null!==A)var u=!0;else{var s=x(_);null!==s&&o(F,s.startTime-n),u=!1}return u}finally{A=null,T=r,R=!1}}var M=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){z||R||(z=!0,i(H))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(I)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,l){var u=t.unstable_now();switch("object"===r(l)&&null!==l?l="number"==typeof(l=l.delay)&&0u?(e.sortIndex=l,C(_,e),null===x(I)&&e===x(_)&&(O?a():O=!0,o(F,l-u))):(e.sortIndex=s,C(I,e),z||R||(z=!0,i(H))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o,a,l;if("object"===("undefined"==typeof performance?"undefined":r(performance))&&"function"==typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function(){if(null!==f)try{var e=t.unstable_now();f(!0,e),f=null}catch(e){throw setTimeout(p,0),e}};i=function(e){null!==f?setTimeout(i,0,e):(f=e,setTimeout(p,0))},o=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,b=-1,w=5,k=0;t.unstable_shouldYield=function(){return t.unstable_now()>=k},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0P(a,n))void 0!==u&&0>P(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>P(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],_=[],L=1,A=null,T=3,R=!1,z=!1,O=!1;function j(e){for(var t=x(_);null!==t;){if(null===t.callback)N(_);else{if(!(t.startTime<=e))break;N(_),t.sortIndex=t.expirationTime,C(I,t)}t=x(_)}}function F(e){if(O=!1,j(e),!z)if(null!==x(I))z=!0,i(H);else{var t=x(_);null!==t&&o(F,t.startTime-e)}}function H(e,n){z=!1,O&&(O=!1,a()),R=!0;var r=T;try{for(j(n),A=x(I);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=A.callback;if("function"==typeof i){A.callback=null,T=A.priorityLevel;var l=i(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?A.callback=l:A===x(I)&&N(I),j(n)}else N(I);A=x(I)}if(null!==A)var u=!0;else{var s=x(_);null!==s&&o(F,s.startTime-n),u=!1}return u}finally{A=null,T=r,R=!1}}var M=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){z||R||(z=!0,i(H))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(I)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,l){var u=t.unstable_now();switch("object"===r(l)&&null!==l?l="number"==typeof(l=l.delay)&&0u?(e.sortIndex=l,C(_,e),null===x(I)&&e===x(_)&&(O?a():O=!0,o(F,l-u))):(e.sortIndex=s,C(I,e),z||R||(z=!0,i(H))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/examples/ios-demo/res/vue2/index.ios.js b/framework/examples/ios-demo/res/vue2/index.ios.js index b4f7ef98eff..a47d813bf8e 100644 --- a/framework/examples/ios-demo/res/vue2/index.ios.js +++ b/framework/examples/ios-demo/res/vue2/index.ios.js @@ -1,8 +1,8 @@ -!function(e){function t(t){for(var a,r,n=t[0],i=t[1],s=0,c=[];s0===s.indexOf(e))){var l=s.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(s=p+c)}else{var p;d=s.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(s=p+s)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+s;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(s,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var n=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=n.push.bind(n);n.push=t,n=n.slice();for(var s=0;s0===s.indexOf(e))){var l=s.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(s=p+c)}else{var p;d=s.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(s=p+s)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+s;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(s,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var n=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=n.push.bind(n);n.push=t,n=n.slice();for(var s=0;s-1}function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var a=t.props,o=t.children,r=t.parent,n=t.data;n.routerView=!0;for(var i=r.$createElement,s=a.name,l=r.$route,c=r._routerViewCache||(r._routerViewCache={}),p=0,u=!1;r&&r._routerRoot!==r;)r.$vnode&&r.$vnode.data.routerView&&(p+=1),r._inactive&&(u=!0),r=r.$parent;if(n.routerViewDepth=p,u)return i(c[s],n,o);var v=l.matched[p];if(!v)return c[s]=null,i();var y=v.components[s];c[s]=y,n.registerRouteInstance=function(e,t){var a=v.instances[s];(t&&a!==e||!t&&a===e)&&(v.instances[s]=t)},n.hook||(n.hook={}),n.hook.prepatch=function(e,t){v.instances[s]=t.componentInstance};var h=function(e,t){switch(d()(t)){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(l,v.props&&v.props[s]);if(n.props=h,h){h=function(e){for(var t=1;t0})).join("&"):null;return t?"?".concat(t):""}var L=/\/?$/;function V(e){if(Array.isArray(e))return e.map(V);if(e&&"object"===d()(e)){var t={};return Object.keys(e).forEach((function(a){t[a]=V(e[a])})),t}return e}function I(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function O(e,t){var a=e.path,o=e.query,r=void 0===o?{}:o,n=e.hash,i=void 0===n?"":n;return(a||"/")+(t||T)(r)+i}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!t)return e===t;var a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every((function(a){var o=e[a],r=t[a];return"object"===d()(o)&&"object"===d()(r)?Y(o,r):String(o)===String(r)}))}function H(e,t,a,o){var r;o&&(r=o.options.stringifyQuery);var n=t.query||{};try{n=V(n)}catch(e){}var i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:n,params:t.params||{},fullPath:O(t,r),matched:e?I(e):[]};return a&&(i.redirectedFrom=O(a,r)),Object.freeze(i)}var R=H(null,{path:"/"});function D(e,t){return t===R?e===t:!!t&&(e.path&&t.path?e.path.replace(L,"")===t.path.replace(L,"")&&e.hash===t.hash&&Y(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&Y(e.query,t.query)&&Y(e.params,t.params)))}function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function U(e){for(var t=1;t=0&&(t=e.slice(o),e=e.slice(0,o));var r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),l=t&&t.path||"/",c=s.path?re(s.path,l,a||r.append):l,d=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=o||E;try{t=r(e||"")}catch(e){0,t={}}return Object.keys(a).forEach((function(e){t[e]=a[e]})),t}(s.query,r.query,o&&o.options.parseQuery),p=r.hash||s.hash;return p&&"#"!==p.charAt(0)&&(p="#".concat(p)),{_normalized:!0,path:c,query:d,hash:p}}function ce(e,t){return te(e,[],t)}function de(e,t,a,o,r,n){var i=o.path,s=o.name;var l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:ne("".concat(t.path,"/").concat(e))}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);var d={path:c,regex:ce(c,l),components:o.components||{default:o.component},instances:{},name:s,parent:r,matchAs:n,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};(o.children&&o.children.forEach((function(o){var r=n?ne("".concat(n,"/").concat(o.path)):void 0;de(e,t,a,o,d,r)})),void 0!==o.alias)&&(Array.isArray(o.alias)?o.alias:[o.alias]).forEach((function(n){var i={path:n,children:o.children};de(e,t,a,i,r,d.path||"/")}));t[d.path]||(e.push(d.path),t[d.path]=d),s&&(a[s]||(a[s]=d))}function pe(e,t,a,o){var r=t||[],n=a||Object.create(null),i=o||Object.create(null);e.forEach((function(e){de(r,n,i,e)}));for(var s=0,l=r.length;s-1&&(s.params[e]=a.params[e])})),p)return s.path=oe(p.path,s.params,'named route "'.concat(c,'"')),l(p,s,i)}else if(s.path){s.params={};for(var v=0;v=e.length?a():e[r]?t(e[r],(function(){o(r+1)})):o(r+1)}(0)}var he="function"==typeof Symbol&&"symbol"===d()(Symbol.toStringTag);function fe(e){return Array.prototype.concat.apply([],e)}function be(e,t){return fe(e.map((function(e){return Object.keys(e.components).map((function(a){return t(e.components[a],e.instances[a],e,a)}))})))}function me(e){return function(t,a,o){var r=!1,n=0,i=null;be(e,(function(e,t,a,s){if("function"==typeof e&&void 0===e.cid){r=!0,n+=1;var l,c=u((function(t){var r,i=v();((r=t).__esModule||he&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:i.extend(t),a.components[s]=t,(n-=1)<=0&&o()})),d=u((function(e){var t="Failed to resolve async component ".concat(s,": ").concat(e);i||(i=x(e)?e:new Error(t),o(i))}));try{l=e(c,d)}catch(e){d(e)}if(l)if("function"==typeof l.then)l.then(c,d);else{var p=l.component;p&&"function"==typeof p.then&&p.then(c,d)}}})),r||o()}}function ge(e){return"/"!==e.charAt(0)&&(e="/".concat(e)),e.replace(/\/$/,"")}function _e(e,t,a,o){var r=be(e,(function(e,o,r,n){var i=function(e,t){return"function"!=typeof e&&(e=v().extend(e)),e.options[t]}(e,t);return i?Array.isArray(i)?i.map((function(e){return a(e,o,r,n)})):a(i,o,r,n):null}));return fe(o?r.reverse():r)}function xe(e,t){return t?function(){for(var a=arguments.length,o=new Array(a),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/";i()(this,e),this.router=t,this.base=ge(a),this.current=R,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];var o=this.router.match("/",this.current);if(!o)throw new Error("Root router path with / is required");this.stack=[o],this.index=0}return l()(e,[{key:"push",value:function(e,t,a){var o=this;this.transitionTo(e,(function(e){o.stack=o.stack.slice(0,o.index+1).concat(e),o.index+=1,y(t)&&t(e)}),a)}},{key:"replace",value:function(e,t,a){var o=this;this.transitionTo(e,(function(e){o.stack=o.stack.slice(0,o.index).concat(e),y(t)&&t(e)}),a)}},{key:"go",value:function(e){var t=this,a=this.index+e;if(!(a<0||a>=this.stack.length)){var o=this.stack[a];this.confirmTransition(o,(function(){t.index=a,t.updateRoute(o),t.stack=t.stack.slice(0,a+1)}))}}},{key:"getCurrentLocation",value:function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}},{key:"ensureURL",value:function(){}},{key:"listen",value:function(e){this.cb=e}},{key:"onReady",value:function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}},{key:"onError",value:function(e){this.errorCbs.push(e)}},{key:"transitionTo",value:function(e,t,a){var o=this,r=this.router.match(e,this.current);this.confirmTransition(r,(function(){o.updateRoute(r),y(t)&&t(r),o.ensureURL(),o.ready||(o.ready=!0,o.readyCbs.forEach((function(e){e(r)})))}),(function(e){a&&a(e),e&&!o.ready&&(o.ready=!0,o.readyErrorCbs.forEach((function(t){t(e)})))}))}},{key:"confirmTransition",value:function(e,t,a){var o=this,r=this.current,n=function(e){x(e)&&o.errorCbs.length&&o.errorCbs.forEach((function(t){t(e)})),y(a)&&a(e)};if(D(e,r)&&e.matched.length===r.matched.length)return this.ensureURL(),n();var i=function(e,t){var a,o=Math.max(e.length,t.length);for(a=0;a1)return this.go(-1);var e=this.stack[0].matched;if(e.length){var t=e[0],a=t.components,o=t.instances;if(a&&a.default&&y(a.default.beforeAppExit))return a.default.beforeAppExit.call(o.default,this.exitApp)}return this.exitApp()}},{key:"exitApp",value:function(){v().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}]),e}();function Se(e,t){return e.push(t),function(){var a=e.indexOf(t);a>-1&&e.splice(a,1)}}var ke=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i()(this,e),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ue(t.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new we(this,t.base)}return l()(e,[{key:"match",value:function(e,t,a){return this.matcher.match(e,t,a)}},{key:"currentRoute",get:function(){return this.history&&this.history.current}},{key:"init",value:function(e,t){var a=this;if(this.apps.push(e),!this.app){this.app=e;var o=this.history;o instanceof we&&o.transitionTo(o.getCurrentLocation()),o.listen((function(e){a.apps.forEach((function(t){t._route=e}))})),"android"===t.Native.Platform&&y(o.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout((function(){return t.Native.callNative("DeviceEventModule","setListenBackPress",!0)}),300),e.$on("hardwareBackPress",(function(){return o.hardwareBackPress()})))}}},{key:"beforeEach",value:function(e){return Se(this.beforeHooks,e)}},{key:"beforeResolve",value:function(e){return Se(this.resolveHooks,e)}},{key:"afterEach",value:function(e){return Se(this.afterHooks,e)}},{key:"onReady",value:function(e,t){this.history.onReady(e,t)}},{key:"onError",value:function(e){this.history.onError(e)}},{key:"push",value:function(e,t,a){this.history.push(e,t,a)}},{key:"replace",value:function(e,t,a){this.history.replace(e,t,a)}},{key:"go",value:function(e){this.history.go(e)}},{key:"back",value:function(){this.go(-1)}},{key:"forward",value:function(){this.go(1)}},{key:"getMatchedComponents",value:function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))})):[]}},{key:"resolve",value:function(e,t,a){var o=le(e,t||this.history.current,a,this),r=this.match(o,t),n=r.redirectedFrom||r.fullPath;return{location:o,route:r,href:function(e,t){return e?ne("".concat(e,"/").concat(t)):t}(this.history.base,n),normalizedTo:o,resolved:r}}},{key:"addRoutes",value:function(e){this.matcher.addRoutes(e),this.history.current!==R&&this.history.transitionTo(this.history.getCurrentLocation())}}]),e}();ke.install=function e(t){if(!e.installed||v()!==t){e.installed=!0,function(e){r=e}(t);var a=function(e){return void 0!==e},o=function(e,t){var o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate:function(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed:function(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",w),t.component("RouterLink",M);var n=t.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}},ke.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=new Array(t);a=0;--r){var n=this.tryEntries[r],s=n.completion;if("root"===n.tryLoc)return o("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),c=i.call(n,"finallyLoc");if(l&&c){if(this.prev=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),L(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var o=a.completion;if("throw"===o.type){var r=o.arg;L(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,o){return this.delegate={iterator:I(e),resultName:a,nextLoc:o},"next"===this.method&&(this.arg=t),m}},a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),r=a("./node_modules/@babel/runtime/helpers/iterableToArray.js"),n=a("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=a("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return o(e)||r(e)||n(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js").default,r=a("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=r(e,"string");return"symbol"==o(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function a(t){return e.exports=a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js"),r=a("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":o(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,a){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],a=!1;!function(r){if(e.Promise){r=r||{},a&&(a=!1,e.Promise._onHandle=null,e.Promise._onReject=null),a=!0;var n=0,i=0,s={};e.Promise._onHandle=function(e){2===e._state&&s[e._rejectionId]&&(s[e._rejectionId].logged?function(e){s[e].logged&&(r.onHandled?r.onHandled(s[e].displayId,s[e].error):s[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+s[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+s[e].displayId+".")))}(e._rejectionId):clearTimeout(s[e._rejectionId].timeout),delete s[e._rejectionId])},e.Promise._onReject=function(e,a){0===e._deferredState&&(e._rejectionId=n++,s[e._rejectionId]={displayId:null,error:a,timeout:setTimeout(l.bind(null,e._rejectionId),o(a,t)?100:2e3),logged:!1})}}function l(e){(r.allRejections||o(s[e].error,r.whitelist||t))&&(s[e].displayId=i++,r.onUnhandled?(s[e].logged=!0,r.onUnhandled(s[e].displayId,s[e].error)):(s[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(s[e].displayId,s[e].error)))}}({allRejections:!0,onUnhandled:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.prototype.toString.call(a);if("[object Error]"===o){var r=Error.prototype.toString.call(a),n=a.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(r||"")+"\n"+(null==n?"":n);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var s=(a&&(a.stack||a))+"";s.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",a,t)},onHandled:function(){}})}function o(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,a("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:function(){return{imgs:{backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}},watch:{$route:function(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo:function(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome:function(){this.$router.back()}}},n=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(n.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),n=a("./src/app.vue"),i=a("./src/routes.js"),s=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);var l=new o.a(i.a);e.Hippy.on("uncaughtException",(function(e){console.error("uncaughtException error",e.stack,e.message)})),e.Hippy.on("unhandledRejection",(function(e){console.error("unhandledRejection reason",e)}));var c=new t.default({appName:"Demo",rootView:"#root",render:function(e){return e(n.a)},iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((function(e,a){console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener((function(){return console.log("backAndroid"),!0}))})),Object(s.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=a("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),r=a.n(o),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};n._withStripped=!0;var i=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var l={data:function(){return{isClicked:!1,isPressing:!1}},methods:{clickView:function(){this.isClicked=!this.isClicked},onTouchBtnStart:function(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove:function(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd:function(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},c=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),d=Object(c.a)(l,s,[],!1,null,"26278b5d",null);d.options.__file="src/components/demos/demo-button.vue";var p=d.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};u._withStripped=!0;var v=a("./src/assets/defaultSource.jpg"),y=a.n(v),h=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};h._withStripped=!0;var f=a("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),b=a.n(f),m=a("./node_modules/@babel/runtime/regenerator/index.js"),g=a.n(m),_={display:"flex",height:"40px",width:"200px",backgroundImage:"".concat(y.a),backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},x={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:function(){return _}},positionY:{default:0}},data:function(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:_}},watch:{positionY:function(e){this.scrollOffsetY=e}},mounted:function(){this.rippleRef=this.$refs.ripple1},methods:{onLayout:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.measureInAppWindow(e.rippleRef);case 2:a=t.sent,e.viewX=a.left,e.viewY=a.top;case 5:case"end":return t.stop()}}),t)})))()},onTouchStart:function(e){var t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd:function(){this.rippleRef.setPressed(!1)}}},C=Object(c.a)(x,h,[],!1,null,null,null);C.options.__file="src/components/demos/demo-ripple-div.vue";var w={components:{"demo-ripple-div":C.exports},data:function(){return{Vue:i.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:"".concat(y.a),backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:"".concat(y.a),backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"}}},mounted:function(){var e=this;this.demon2=this.$refs["demo-2"],setTimeout((function(){e.demon2.scrollTo(50,0,1e3)}),1e3)},methods:{onOuterScroll:function(e){this.offsetY=e.offsetY},onScroll:function(e){console.log("onScroll",e)},onMomentumScrollBegin:function(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd:function(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag:function(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){console.log("onScrollEndDrag",e)}}},S=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(c.a)(w,u,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));S.options.__file="src/components/demos/demo-div.vue";var k=S.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};A._withStripped=!0;var P=a("./src/assets/hippyLogoWhite.png"),j=a.n(P),E={data:function(){return{defaultImage:y.a,hippyLogoImage:j.a,gifLoadResult:{}}},methods:{onTouchStart:function(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove:function(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd:function(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad:function(e){console.log("onLoad",e);var t=e.width,a=e.height,o=e.url;this.gifLoadResult={width:t,height:a,url:o}}}},T=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(c.a)(E,A,[],!1,null,"c6df51b0",null));T.options.__file="src/components/demos/demo-img.vue";var L=T.exports,V=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};V._withStripped=!0;var I={data:function(){return{text:"",event:void 0,isFocused:void 0}},mounted:function(){this.getChildNodes(this.$refs.inputDemo.childNodes).find((function(e){return"input"===e.tagName})).focus()},methods:{textChange:function(e){console.log(e.value)},blurAllInput:function(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter((function(e){return"input"===e.tagName})).forEach((function(e){return e.blur()}))},stopPropagation:function(e){e.stopPropagation()},clearTextContent:function(){this.text=""},onKeyboardWillHide:function(){console.log("onKeyboardWillHide")},onKeyboardWillShow:function(e){console.log("onKeyboardWillShow",e)},getChildNodes:function(e){return i.default.Native?e:Array.from(e)},focus:function(e){e.stopPropagation(),this.$refs.input.focus()},blur:function(e){e.stopPropagation(),this.$refs.input.blur()},onFocus:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.input.isFocused();case 2:e.isFocused=t.sent,e.event="onFocus";case 4:case"end":return t.stop()}}),t)})))()},onBlur:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.input.isFocused();case 2:e.isFocused=t.sent,e.event="onBlur";case 4:case"end":return t.stop()}}),t)})))()}}},O=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(c.a)(I,V,[],!1,null,"76bc5c6f",null));O.options.__file="src/components/demos/demo-input.vue";var Y=O.exports,H=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo"},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};H._withStripped=!0;var R={data:function(){return{Platform:i.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}},methods:{changeTextShadow:function(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},onTouchTextStart:function(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove:function(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd:function(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine:function(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine:function(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode:function(e){this.textMode.ellipsizeMode=e},changeBreakStrategy:function(e){this.breakStrategy=e}}},D=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(c.a)(R,H,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));D.options.__file="src/components/demos/demo-p.vue";var B=D.exports,U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};U._withStripped=!0;var N={data:function(){return{Platform:i.default.Native.Platform}},mounted:function(){this.Platform=i.default.Native.Platform}},M=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(c.a)(N,U,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));M.options.__file="src/components/demos/demo-shadow.vue";var F=M.exports,z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};z._withStripped=!0;var W={data:function(){return{Platform:i.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}},methods:{contentSizeChange:function(e){console.log(e)},changeBreakStrategy:function(e){this.breakStrategy=e}}},$=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(c.a)(W,z,[],!1,null,"6cb502b6",null));$.options.__file="src/components/demos/demo-textarea.vue";var G=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};K._withStripped=!0;var q=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],Q={data:function(){return{Vue:i.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}},mounted:function(){this.isLoading=!1,this.dataSource=q},methods:{changeDirection:function(){this.horizontal=void 0===this.horizontal||void 0},onAppear:function(e){console.log("onAppear",e)},onDisappear:function(e){console.log("onDisappear",e)},onWillAppear:function(e){console.log("onWillAppear",e)},onWillDisappear:function(e){console.log("onWillDisappear",e)},mockFetchData:function(){return new Promise((function(e){setTimeout((function(){return e(q)}),600)}))},onDelete:function(e){this.dataSource.splice(e.index,1)},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.isLoading){t.next=3;break}return t.abrupt("return");case 3:return e.isLoading=!0,e.dataSource=a.concat([{style:100}]),t.next=7,e.mockFetchData();case 7:o=t.sent,e.dataSource=a.concat(o),e.isLoading=!1;case 10:case"end":return t.stop()}}),t)})))()},onScroll:function(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin:function(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd:function(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag:function(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){console.log("onScrollEndDrag",e)}}},X=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(c.a)(Q,K,[],!1,null,"71b90789",null));X.options.__file="src/components/demos/demo-list.vue";var J=X.exports,Z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};Z._withStripped=!0;var ee={data:function(){return{url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":i.default.Native?100:"100vh"}}},methods:{onLoad:function(e){var t=e.url;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart:function(e){var t=e.url;console.log("onLoadStart",t)},onLoadEnd:function(e){var t=e.url,a=e.success,o=e.error;console.log("onLoadEnd",t,a,o)},onKeyUp:function(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl:function(e){this.url=e.value}}},te=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(c.a)(ee,Z,[],!1,null,null,null));te.options.__file="src/components/demos/demo-iframe.vue";var ae=te.exports,oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};oe._withStripped=!0;var re={data:function(){return{output:[]}},methods:{connect:function(){var e=this;this.$refs.inputUrl.getValue().then((function(t){e.disconnect();var a=new WebSocket(t);a.onopen=function(){return e.appendOutput("[Opened] ".concat(a.url))},a.onclose=function(){return e.appendOutput("[Closed] ".concat(a.url))},a.onerror=function(t){return e.appendOutput("[Error] ".concat(t.reason))},a.onmessage=function(t){return e.appendOutput("[Received] ".concat(t.data))},e.ws=a}))},disconnect:function(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput:function(e){this.output.unshift(e)},sendMessage:function(){var e=this;this.$refs.inputMessage.getValue().then((function(t){e.appendOutput("[Sent] ".concat(t)),e.ws.send(t)}))}}},ne=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(c.a)(re,oe,[],!1,null,"77bce928",null));ne.options.__file="src/components/demos/demo-websocket.vue";var ie=ne.exports,se=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};se._withStripped=!0;var le={components:{AsyncComponentFromLocal:function(){return a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then((function(e){return e})).catch((function(e){return console.error("import async local component error",e)}))},AsyncComponentFromHttp:function(){return a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then((function(e){return e})).catch((function(e){return console.error("import async remote component error",e)}))}},data:function(){return{loaded:!1}},methods:{onAsyncComponentLoad:function(){this.loaded=!0}}},ce=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(c.a)(le,se,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));ce.options.__file="src/components/demos/demo-dynamicimport.vue";var de=ce.exports,pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};pe._withStripped=!0;var ue=function(){var e=b()(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=function(){return getTurboModule("demoTurbo").getTurboConfig()},ye={data:function(){return{config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}},methods:{onTurboFunc:function(e){var t=this;return b()(g.a.mark((function a(){var o;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("nativeWithPromise"!==e){a.next=6;break}return a.next=3,ue("aaa");case 3:t.result=a.sent,a.next=7;break;case 6:"getTurboConfig"===e?(t.config=ve(),t.result="获取到config对象"):"printTurboConfig"===e?t.result=(r=t.config||ve(),getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===e?t.result=(t.config||ve()).getInfo():"setInfo"===e?((t.config||ve()).setInfo("Hello World"),t.result="设置config信息成功"):(o={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}},t.result=o[e]());case 7:case"end":return a.stop()}var r}),a)})))()}}},he=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(c.a)(ye,pe,[],!1,null,"14216e7a",null));he.options.__file="src/components/demos/demo-turbo.vue";var fe={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:F},demoP:{name:"p 组件",component:B},demoButton:{name:"button 组件",component:p},demoImg:{name:"img 组件",component:L},demoInput:{name:"input 组件",component:Y},demoTextarea:{name:"textarea 组件",component:G},demoUl:{name:"ul/li 组件",component:J},demoIFrame:{name:"iframe 组件",component:ae},demoWebSocket:{name:"WebSocket",component:ie},demoDynamicImport:{name:"DynamicImport",component:de},demoTurbo:{name:"Turbo",component:he.exports}},be=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};be._withStripped=!0;var me={data:function(){return{demon2Left:0,screenWidth:0}},mounted:function(){this.screenWidth=i.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1:function(e){e.stopPropagation();var t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1:function(e){e.stopPropagation();var t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2:function(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2:function(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ge=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(c.a)(me,be,[],!1,null,"4ffd9eb0",null));ge.options.__file="src/components/demos/demo-set-native-props.vue";var _e=ge.exports,xe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};xe._withStripped=!0;var Ce=a("./src/util.js"),we={data:function(){var e=i.default.Native.screenIsVertical;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:i.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},created:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.storageValue="",e.imageSize="",e.netInfoText="",t.next=5,i.default.Native.NetInfo.fetch();case 5:e.netInfoText=t.sent,e.netInfoListener=i.default.Native.NetInfo.addEventListener("change",(function(t){e.netInfoText="收到通知: ".concat(t.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(t){e.fetchText="成功状态: ".concat(t.status)})).catch((function(t){e.fetchText="收到错误: ".concat(t)}));case 8:case"end":return t.stop()}}),t)})))()},mounted:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.app=Object(Ce.a)(),e.app.$on("testEvent",(function(){e.eventTriggeredTimes+=1}));case 2:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.netInfoListener&&i.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{getBoundingClientRect:function(){var e=arguments,t=this;return b()(g.a.mark((function a(){var o,r;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o=e.length>0&&void 0!==e[0]&&e[0],a.prev=1,a.next=4,i.default.Native.getBoundingClientRect(t.$refs.rect,{relToContainer:o});case 4:r=a.sent,o?t.rect2="".concat(JSON.stringify(r)):t.rect1="".concat(JSON.stringify(r)),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("getBoundingClientRect error",a.t0);case 11:case"end":return a.stop()}}),a,null,[[1,8]])})))()},triggerAppEvent:function(){this.app.$emit("testEvent")},refreshScreenStatus:function(){this.screenIsVertical=i.default.Native.screenIsVertical},setItem:function(){i.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem:function(){i.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},getItem:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.AsyncStorage.getItem("itemKey");case 2:a=t.sent,e.storageValue=a||"undefined";case 4:case"end":return t.stop()}}),t)})))()},getSize:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");case 2:a=t.sent,console.log("ImageLoader getSize",a),e.imageSize="".concat(a.width,"x").concat(a.height);case 5:case"end":return t.stop()}}),t)})))()},setCookie:function(){i.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie:function(){var e=this;i.default.Native.Cookie.getAll("https://hippyjs.org").then((function(t){e.cookiesValue=t}))}}},Se=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(c.a)(we,xe,[],!1,null,"864846ba",null));Se.options.__file="src/components/native-demos/demo-vue-native.vue";var ke=Se.exports,Ae=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};Ae._withStripped=!0;var Pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};Pe._withStripped=!0;var je={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Ee={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Te={props:{playing:Boolean,direction:{validator:function(e){return["horizon","vertical"].indexOf(e)>-1}},onRef:Function},data:function(){var e;switch(this.$props.direction){case"horizon":e=je;break;case"vertical":e=Ee;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction:function(e){switch(e){case"horizon":this.loopActions=je;break;case"vertical":this.loopActions=Ee}}},mounted:function(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},Le=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(c.a)(Te,Pe,[],!1,null,"63fc9d7f",null));Le.options.__file="src/components/native-demos/animations/loop.vue";var Ve=Le.exports,Ie=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ie._withStripped=!0;var Oe={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"}]}},Ye={props:{playing:Boolean,onRef:Function},data:function(){return{loopActions:Oe}},mounted:function(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},He=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(c.a)(Ye,Ie,[],!1,null,"44bf239d",null));He.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Re=He.exports,De=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};De._withStripped=!0;var Be={data:function(){return{imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}}}},Ue=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(c.a)(Be,De,[],!1,null,"ca89125a",null));Ue.options.__file="src/components/native-demos/animations/vote-up.vue";var Ne=Ue.exports,Me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Me._withStripped=!0;var Fe={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ze={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},We={props:["isChanged"],data:function(){return{imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:Fe,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}}},watch:{isChanged:function(e,t){var a=this;!t&&e?(console.log("changed to face2"),this.animations.face=ze):t&&!e&&(console.log("changed to face1"),this.animations.face=Fe),setTimeout((function(){a.animationRef.start()}),10)}},mounted:function(){this.animationRef=this.$refs.animationRef},methods:{animationStart:function(){console.log("animation-start callback")},animationEnd:function(){console.log("animation-end callback")},animationRepeat:function(){console.log("animation-repeat callback")},animationCancel:function(){console.log("animation-cancel callback")}}},$e=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(c.a)(We,Me,[],!1,null,"3adfe95a",null));$e.options.__file="src/components/native-demos/animations/vote-down.vue";var Ge=$e.exports,Ke=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ke._withStripped=!0;var qe={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]},Qe={props:{playing:Boolean,onRef:Function},data:function(){return{colorActions:qe}}},Xe=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(c.a)(Qe,Ke,[],!1,null,"c3eb3b96",null));Xe.options.__file="src/components/native-demos/animations/color-change.vue";var Je=Xe.exports,Ze={components:{Loop:Ve,colorComponent:Je,CubicBezier:Re},data:function(){return{loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ne,colorComponent:Je,isChanged:!0}},methods:{onRef:function(e){this.animationRef=e},voteUp:function(){this.voteComponent=Ne},voteDown:function(){this.voteComponent=Ge,this.isChanged=!this.isChanged},toggleLoopPlaying:function(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying:function(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying:function(){this.cubicPlaying=!this.cubicPlaying},toggleDirection:function(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate:function(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},et=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(c.a)(Ze,Ae,[],!1,null,"1b9933af",null));et.options.__file="src/components/native-demos/demo-animation.vue";var tt=et.exports,at=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};at._withStripped=!0;var ot={beforeRouteLeave:function(e,t,a){this.dialogIsVisible||a()},data:function(){return{supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}},methods:{clickView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond:function(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig:function(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow:function(){console.log("Dialog is opening")},onOrientationChange:function(e){console.log("orientation changed",e.nativeParams)},onClose:function(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation:function(e){e.stopPropagation()}}},rt=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(c.a)(ot,at,[],!1,null,"bdcf35a6",null));rt.options.__file="src/components/native-demos/demo-dialog.vue";var nt=rt.exports,it=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};it._withStripped=!0;var st={data:function(){return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:2,currentSlideNum:2,state:"idle"}},mounted:function(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage:function(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};dt._withStripped=!0;var pt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ut={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[pt,pt,pt],subInfo:["三图评论","11评"]}},vt={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},yt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}},ht=[yt,ut,vt,ut,vt,ut,vt,yt,ut],ft=(i.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),i.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),i.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:function(){return{headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:i.default}},mounted:function(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=r()(ht),i.default.Native?(this.$windowHeight=i.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",i.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:function(){return new Promise((function(e){setTimeout((function(){return e(ht)}),800)}))},onHeaderPulling:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onScroll:function(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},onHeaderReleased:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.fetchingDataFlag){t.next=2;break}return t.abrupt("return");case 2:return e.fetchingDataFlag=!0,console.log("onHeaderReleased"),e.headerRefreshText="刷新数据中,请稍等",t.next=7,e.mockFetchData();case 7:a=t.sent,e.dataSource=a.reverse(),e.fetchingDataFlag=!1,e.headerRefreshText="2秒后收起",e.$refs.pullHeader.collapsePullHeader({time:2e3});case 12:case"end":return t.stop()}}),t)})))()},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.loadMoreDataFlag){t.next=3;break}return t.abrupt("return");case 3:return e.loadMoreDataFlag=!0,e.footerRefreshText="加载更多...",t.next=7,e.mockFetchData();case 7:0===(o=t.sent).length&&(e.footerRefreshText="没有更多数据"),e.dataSource=[].concat(r()(a),r()(o)),e.loadMoreDataFlag=!1,e.$refs.pullFooter.collapsePullFooter();case 12:case"end":return t.stop()}}),t)})))()},scrollToNextPage:function(){if(i.default.Native){var e=this.$refs.list,t=this.scrollPos,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(i.default.Native){var e=this.$refs.list;e.scrollToIndex(0,e.childNodes.length-1)}else alert("This method is only supported in Native environment.")}}}),bt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(c.a)(ft,dt,[],!1,null,"44ac5390",null));bt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var mt=bt.exports,gt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};gt._withStripped=!0;var _t={data:function(){return{dataSource:[].concat(r()(ht),r()(ht),r()(ht),r()(ht)),isRefreshing:!1,Vue:i.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===i.default.Native.Platform}},mounted:function(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=r()(ht),i.default.Native?(this.$windowHeight=i.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",i.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText:function(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth:function(){return(i.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:function(){return 5},columnSpacing:function(){return 6},interItemSpacing:function(){return 6},numberOfColumns:function(){return 2},contentInset:function(){return{top:0,left:5,bottom:0,right:5}}},methods:{mockFetchData:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.fetchTimes+=1,e.fetchTimes>=50?t([]):t([].concat(r()(ht),r()(ht)))}),600)}))},onHeaderPulling:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.fetchingDataFlag){t.next=2;break}return t.abrupt("return");case 2:return e.fetchingDataFlag=!0,console.log("onHeaderReleased"),e.headerRefreshText="刷新数据中,请稍等",t.next=7,e.mockFetchData();case 7:t.sent,e.fetchingDataFlag=!1,e.headerRefreshText="2秒后收起",e.$refs.pullHeader.collapsePullHeader({time:2e3});case 11:case"end":return t.stop()}}),t)})))()},onRefresh:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRefreshing=!0,t.next=3,e.mockFetchData();case 3:a=t.sent,e.isRefreshing=!1,e.dataSource=a.reverse(),e.$refs.header.refreshCompleted();case 7:case"end":return t.stop()}}),t)})))()},onScroll:function(e){console.log("waterfall onScroll",e)},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.loadMoreDataFlag){t.next=3;break}return t.abrupt("return");case 3:return e.loadMoreDataFlag=!0,e.footerRefreshText="加载更多...",t.next=7,e.mockFetchData();case 7:0===(o=t.sent).length&&(e.footerRefreshText="没有更多数据"),e.dataSource=[].concat(r()(a),r()(o)),e.loadMoreDataFlag=!1,e.$refs.pullFooter.collapsePullFooter();case 12:case"end":return t.stop()}}),t)})))()},onItemClick:function(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},xt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(c.a)(_t,gt,[],!1,null,"782cda3d",null));xt.options.__file="src/components/native-demos/demo-waterfall.vue";var Ct=xt.exports,wt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};wt._withStripped=!0;var St={data:function(){return{layoutHeight:0,currentSlide:0}},methods:{onLayout:function(e){this.layoutHeight=e.height},onTabClick:function(e){console.log("onclick",e),this.currentSlide=e-1},onDropped:function(e){this.currentSlide=e.currentSlide}}},kt=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(c.a)(St,wt,[],!1,null,"3bbacb8e",null));kt.options.__file="src/components/native-demos/demo-nested-scroll.vue";var At=kt.exports,Pt={};i.default.Native&&Object.assign(Pt,{demoVueNative:{name:"Vue.Native 能力",component:ke},demoAnimation:{name:"animation 组件",component:tt},demoModal:{name:"dialog 组件",component:nt},demoSwiper:{name:"swiper 组件",component:ct},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:mt},demoWaterfall:{name:"waterfall 组件",component:Ct},demoNestedScroll:{name:"nested scroll 示例",component:At},demoSetNativeProps:{name:"setNativeProps",component:_e}});var jt=Pt,Et={name:"App",data:function(){return{featureList:Object.keys(fe).map((function(e){return{id:e,name:fe[e].name}})),nativeFeatureList:Object.keys(jt).map((function(e){return{id:e,name:jt[e].name}})),Vue:i.default}},beforeAppExit:function(){}},Tt=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(c.a)(Et,n,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));Tt.options.__file="src/pages/menu.vue";var Lt=Tt.exports,Vt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};Vt._withStripped=!0;var It={data:function(){return{bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}}}},methods:{blurInput:function(e){e.stopPropagation(),this.$refs.input.blur()},openBundle:function(){this.bundleUrl&&i.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation:function(e){e.stopPropagation()},clearTextContent:function(){this.bundleUrl=""},getChildNodes:function(e){return i.default.Native?e:Array.from(e)}}},Ot=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(c.a)(It,Vt,[],!1,null,"66065e90",null));Ot.options.__file="src/pages/remote-debug.vue";var Yt=Ot.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:Lt},{path:"/remote-debug",component:Yt,name:"调试"}].concat(r()(Object.keys(fe).map((function(e){return{path:"/demo/".concat(e),name:fe[e].name,component:fe[e].component}}))),r()(Object.keys(jt).map((function(e){return{path:"/demo/".concat(e),name:jt[e].name,component:jt[e].component}}))))}},"./src/util.js":function(e,t,a){"use strict";var o;function r(e){o=e}function n(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return n}))},0:function(e,t,a){a("./node_modules/@hippy/rejection-tracking-polyfill/index.js"),e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +Object.freeze({}),p("slot,component",!0),p("key,ref,slot,slot-scope,is"),"http://127.0.0.1:".concat(e.env.PORT,"/");var f={exports:{}},b={exports:{}},m={exports:{}};!function(e){function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(m);var g={exports:{}};!function(e){var t=m.exports.default;e.exports=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(g),function(e){var t=m.exports.default,a=g.exports;e.exports=function(e){var o=a(e,"string");return"symbol"==t(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports}(b),function(e){var t=b.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(f);var _=h(f.exports);function x(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var a=t.props,o=t.children,r=t.parent,n=t.data;n.routerView=!0;for(var i=r.$createElement,s=a.name,l=r.$route,c=r._routerViewCache||(r._routerViewCache={}),p=0,u=!1;r&&r._routerRoot!==r;)r.$vnode&&r.$vnode.data.routerView&&(p+=1),r._inactive&&(u=!0),r=r.$parent;if(n.routerViewDepth=p,u)return i(c[s],n,o);var v=l.matched[p];if(!v)return c[s]=null,i();var y=v.components[s];c[s]=y,n.registerRouteInstance=function(e,t){var a=v.instances[s];(t&&a!==e||!t&&a===e)&&(v.instances[s]=t)},n.hook||(n.hook={}),n.hook.prepatch=function(e,t){v.instances[s]=t.componentInstance};var h=function(e,t){switch(d()(t)){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(l,v.props&&v.props[s]);if(n.props=h,h){h=function(e){for(var t=1;t0})).join("&"):null;return t?"?".concat(t):""}var L=/\/?$/;function V(e){if(Array.isArray(e))return e.map(V);if(e&&"object"===d()(e)){var t={};return Object.keys(e).forEach((function(a){t[a]=V(e[a])})),t}return e}function I(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function O(e,t){var a=e.path,o=e.query,r=void 0===o?{}:o,n=e.hash,i=void 0===n?"":n;return(a||"/")+(t||T)(r)+i}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!t)return e===t;var a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every((function(a){var o=e[a],r=t[a];return"object"===d()(o)&&"object"===d()(r)?Y(o,r):String(o)===String(r)}))}function H(e,t,a,o){var r;o&&(r=o.options.stringifyQuery);var n=t.query||{};try{n=V(n)}catch(e){}var i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:n,params:t.params||{},fullPath:O(t,r),matched:e?I(e):[]};return a&&(i.redirectedFrom=O(a,r)),Object.freeze(i)}var R=H(null,{path:"/"});function D(e,t){return t===R?e===t:!!t&&(e.path&&t.path?e.path.replace(L,"")===t.path.replace(L,"")&&e.hash===t.hash&&Y(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&Y(e.query,t.query)&&Y(e.params,t.params)))}function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function U(e){for(var t=1;t=0&&(t=e.slice(o),e=e.slice(0,o));var r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),l=t&&t.path||"/",c=s.path?re(s.path,l,a||r.append):l,d=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=o||E;try{t=r(e||"")}catch(e){0,t={}}return Object.keys(a).forEach((function(e){t[e]=a[e]})),t}(s.query,r.query,o&&o.options.parseQuery),p=r.hash||s.hash;return p&&"#"!==p.charAt(0)&&(p="#".concat(p)),{_normalized:!0,path:c,query:d,hash:p}}function ce(e,t){return te(e,[],t)}function de(e,t,a,o,r,n){var i=o.path,s=o.name;var l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:ne("".concat(t.path,"/").concat(e))}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);var d={path:c,regex:ce(c,l),components:o.components||{default:o.component},instances:{},name:s,parent:r,matchAs:n,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};(o.children&&o.children.forEach((function(o){var r=n?ne("".concat(n,"/").concat(o.path)):void 0;de(e,t,a,o,d,r)})),void 0!==o.alias)&&(Array.isArray(o.alias)?o.alias:[o.alias]).forEach((function(n){var i={path:n,children:o.children};de(e,t,a,i,r,d.path||"/")}));t[d.path]||(e.push(d.path),t[d.path]=d),s&&(a[s]||(a[s]=d))}function pe(e,t,a,o){var r=t||[],n=a||Object.create(null),i=o||Object.create(null);e.forEach((function(e){de(r,n,i,e)}));for(var s=0,l=r.length;s-1&&(s.params[e]=a.params[e])})),p)return s.path=oe(p.path,s.params,'named route "'.concat(c,'"')),l(p,s,i)}else if(s.path){s.params={};for(var v=0;v=e.length?a():e[r]?t(e[r],(function(){o(r+1)})):o(r+1)};o(0)}var he="function"==typeof Symbol&&"symbol"===d()(Symbol.toStringTag);function fe(e){return Array.prototype.concat.apply([],e)}function be(e,t){return fe(e.map((function(e){return Object.keys(e.components).map((function(a){return t(e.components[a],e.instances[a],e,a)}))})))}function me(e){return function(t,a,o){var r=!1,n=0,i=null;be(e,(function(e,t,a,s){if("function"==typeof e&&void 0===e.cid){r=!0,n+=1;var l,c=u((function(t){var r,i=v();((r=t).__esModule||he&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:i.extend(t),a.components[s]=t,(n-=1)<=0&&o()})),d=u((function(e){var t="Failed to resolve async component ".concat(s,": ").concat(e);i||(i=x(e)?e:new Error(t),o(i))}));try{l=e(c,d)}catch(e){d(e)}if(l)if("function"==typeof l.then)l.then(c,d);else{var p=l.component;p&&"function"==typeof p.then&&p.then(c,d)}}})),r||o()}}function ge(e){return"/"!==e.charAt(0)&&(e="/".concat(e)),e.replace(/\/$/,"")}function _e(e,t,a,o){var r=be(e,(function(e,o,r,n){var i=function(e,t){return"function"!=typeof e&&(e=v().extend(e)),e.options[t]}(e,t);return i?Array.isArray(i)?i.map((function(e){return a(e,o,r,n)})):a(i,o,r,n):null}));return fe(o?r.reverse():r)}function xe(e,t){return t?function(){for(var a=arguments.length,o=new Array(a),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/";i()(this,e),this.router=t,this.base=ge(a),this.current=R,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];var o=this.router.match("/",this.current);if(!o)throw new Error("Root router path with / is required");this.stack=[o],this.index=0}),[{key:"push",value:function(e,t,a){var o=this;this.transitionTo(e,(function(e){o.stack=o.stack.slice(0,o.index+1).concat(e),o.index+=1,y(t)&&t(e)}),a)}},{key:"replace",value:function(e,t,a){var o=this;this.transitionTo(e,(function(e){o.stack=o.stack.slice(0,o.index).concat(e),y(t)&&t(e)}),a)}},{key:"go",value:function(e){var t=this,a=this.index+e;if(!(a<0||a>=this.stack.length)){var o=this.stack[a];this.confirmTransition(o,(function(){t.index=a,t.updateRoute(o),t.stack=t.stack.slice(0,a+1)}))}}},{key:"getCurrentLocation",value:function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}},{key:"ensureURL",value:function(){}},{key:"listen",value:function(e){this.cb=e}},{key:"onReady",value:function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}},{key:"onError",value:function(e){this.errorCbs.push(e)}},{key:"transitionTo",value:function(e,t,a){var o=this,r=this.router.match(e,this.current);this.confirmTransition(r,(function(){o.updateRoute(r),y(t)&&t(r),o.ensureURL(),o.ready||(o.ready=!0,o.readyCbs.forEach((function(e){e(r)})))}),(function(e){a&&a(e),e&&!o.ready&&(o.ready=!0,o.readyErrorCbs.forEach((function(t){t(e)})))}))}},{key:"confirmTransition",value:function(e,t,a){var o=this,r=this.current,n=function(e){x(e)&&o.errorCbs.length&&o.errorCbs.forEach((function(t){t(e)})),y(a)&&a(e)};if(D(e,r)&&e.matched.length===r.matched.length)return this.ensureURL(),n();var i=function(e,t){var a,o=Math.max(e.length,t.length);for(a=0;a1)return this.go(-1);var e=this.stack[0].matched;if(e.length){var t=e[0],a=t.components,o=t.instances;if(a&&a.default&&y(a.default.beforeAppExit))return a.default.beforeAppExit.call(o.default,this.exitApp)}return this.exitApp()}},{key:"exitApp",value:function(){v().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}])}();function Se(e,t){return e.push(t),function(){var a=e.indexOf(t);a>-1&&e.splice(a,1)}}var ke=function(){return l()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i()(this,e),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ue(t.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new we(this,t.base)}),[{key:"match",value:function(e,t,a){return this.matcher.match(e,t,a)}},{key:"currentRoute",get:function(){return this.history&&this.history.current}},{key:"init",value:function(e,t){var a=this;if(this.apps.push(e),!this.app){this.app=e;var o=this.history;o instanceof we&&o.transitionTo(o.getCurrentLocation()),o.listen((function(e){a.apps.forEach((function(t){t._route=e}))})),"android"===t.Native.Platform&&y(o.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout((function(){return t.Native.callNative("DeviceEventModule","setListenBackPress",!0)}),300),e.$on("hardwareBackPress",(function(){return o.hardwareBackPress()})))}}},{key:"beforeEach",value:function(e){return Se(this.beforeHooks,e)}},{key:"beforeResolve",value:function(e){return Se(this.resolveHooks,e)}},{key:"afterEach",value:function(e){return Se(this.afterHooks,e)}},{key:"onReady",value:function(e,t){this.history.onReady(e,t)}},{key:"onError",value:function(e){this.history.onError(e)}},{key:"push",value:function(e,t,a){this.history.push(e,t,a)}},{key:"replace",value:function(e,t,a){this.history.replace(e,t,a)}},{key:"go",value:function(e){this.history.go(e)}},{key:"back",value:function(){this.go(-1)}},{key:"forward",value:function(){this.go(1)}},{key:"getMatchedComponents",value:function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))})):[]}},{key:"resolve",value:function(e,t,a){var o=le(e,t||this.history.current,a,this),r=this.match(o,t),n=r.redirectedFrom||r.fullPath;return{location:o,route:r,href:function(e,t){return e?ne("".concat(e,"/").concat(t)):t}(this.history.base,n),normalizedTo:o,resolved:r}}},{key:"addRoutes",value:function(e){this.matcher.addRoutes(e),this.history.current!==R&&this.history.transitionTo(this.history.getCurrentLocation())}}])}();ke.install=function e(t){if(!e.installed||v()!==t){e.installed=!0,function(e){r=e}(t);var a=function(e){return void 0!==e},o=function(e,t){var o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate:function(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed:function(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",w),t.component("RouterLink",M);var n=t.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}},ke.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=Array(t);a=0;--r){var n=this.tryEntries[r],s=n.completion;if("root"===n.tryLoc)return o("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),c=i.call(n,"finallyLoc");if(l&&c){if(this.prev=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),L(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var o=a.completion;if("throw"===o.type){var r=o.arg;L(a)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,a,o){return this.delegate={iterator:I(e),resultName:a,nextLoc:o},"next"===this.method&&(this.arg=t),m}},a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),r=a("./node_modules/@babel/runtime/helpers/iterableToArray.js"),n=a("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=a("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return o(e)||r(e)||n(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js").default,r=a("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=r(e,"string");return"symbol"==o(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function a(t){return e.exports=a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js"),r=a("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":o(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,a){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],a=!1;!function(r){if(e.Promise){r=r||{},a&&(a=!1,e.Promise._onHandle=null,e.Promise._onReject=null),a=!0;var n=0,i=0,s={};e.Promise._onHandle=function(e){2===e._state&&s[e._rejectionId]&&(s[e._rejectionId].logged?function(e){s[e].logged&&(r.onHandled?r.onHandled(s[e].displayId,s[e].error):s[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+s[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+s[e].displayId+".")))}(e._rejectionId):clearTimeout(s[e._rejectionId].timeout),delete s[e._rejectionId])},e.Promise._onReject=function(e,a){0===e._deferredState&&(e._rejectionId=n++,s[e._rejectionId]={displayId:null,error:a,timeout:setTimeout(l.bind(null,e._rejectionId),o(a,t)?100:2e3),logged:!1})}}function l(e){(r.allRejections||o(s[e].error,r.whitelist||t))&&(s[e].displayId=i++,r.onUnhandled?(s[e].logged=!0,r.onUnhandled(s[e].displayId,s[e].error)):(s[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(s[e].displayId,s[e].error)))}}({allRejections:!0,onUnhandled:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.prototype.toString.call(a);if("[object Error]"===o){var r=Error.prototype.toString.call(a),n=a.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(r||"")+"\n"+(null==n?"":n);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var s=(a&&(a.stack||a))+"";s.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",a,t)},onHandled:function(){}})}function o(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,a("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:function(){return{imgs:{backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}},watch:{$route:function(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo:function(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome:function(){this.$router.back()}}},n=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(n.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),n=a("./src/app.vue"),i=a("./src/routes.js"),s=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);var l=new o.a(i.a);e.Hippy.on("uncaughtException",(function(e){console.error("uncaughtException error",e.stack,e.message)})),e.Hippy.on("unhandledRejection",(function(e){console.error("unhandledRejection reason",e)}));var c=new t.default({appName:"Demo",rootView:"#root",render:function(e){return e(n.a)},iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((function(e,a){console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener((function(){return console.log("backAndroid"),!0}))})),Object(s.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=a("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),r=a.n(o),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};n._withStripped=!0;var i=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var l={data:function(){return{isClicked:!1,isPressing:!1}},methods:{clickView:function(){this.isClicked=!this.isClicked},onTouchBtnStart:function(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove:function(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd:function(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},c=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),d=Object(c.a)(l,s,[],!1,null,"26278b5d",null);d.options.__file="src/components/demos/demo-button.vue";var p=d.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};u._withStripped=!0;var v=a("./src/assets/defaultSource.jpg"),y=a.n(v),h=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};h._withStripped=!0;var f=a("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),b=a.n(f),m=a("./node_modules/@babel/runtime/regenerator/index.js"),g=a.n(m),_={display:"flex",height:"40px",width:"200px",backgroundImage:"".concat(y.a),backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},x={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:function(){return _}},positionY:{default:0}},data:function(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:_}},watch:{positionY:function(e){this.scrollOffsetY=e}},mounted:function(){this.rippleRef=this.$refs.ripple1},methods:{onLayout:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.measureInAppWindow(e.rippleRef);case 2:a=t.sent,e.viewX=a.left,e.viewY=a.top;case 5:case"end":return t.stop()}}),t)})))()},onTouchStart:function(e){var t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd:function(){this.rippleRef.setPressed(!1)}}},C=Object(c.a)(x,h,[],!1,null,null,null);C.options.__file="src/components/demos/demo-ripple-div.vue";var w={components:{"demo-ripple-div":C.exports},data:function(){return{Vue:i.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:"".concat(y.a),backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:"".concat(y.a),backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"}}},mounted:function(){var e=this;this.demon2=this.$refs["demo-2"],setTimeout((function(){e.demon2.scrollTo(50,0,1e3)}),1e3)},methods:{onOuterScroll:function(e){this.offsetY=e.offsetY},onScroll:function(e){console.log("onScroll",e)},onMomentumScrollBegin:function(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd:function(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag:function(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){console.log("onScrollEndDrag",e)}}},S=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(c.a)(w,u,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));S.options.__file="src/components/demos/demo-div.vue";var k=S.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};A._withStripped=!0;var P=a("./src/assets/hippyLogoWhite.png"),j=a.n(P),E={data:function(){return{defaultImage:y.a,hippyLogoImage:j.a,gifLoadResult:{}}},methods:{onTouchStart:function(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove:function(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd:function(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad:function(e){console.log("onLoad",e);var t=e.width,a=e.height,o=e.url;this.gifLoadResult={width:t,height:a,url:o}}}},T=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(c.a)(E,A,[],!1,null,"c6df51b0",null));T.options.__file="src/components/demos/demo-img.vue";var L=T.exports,V=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};V._withStripped=!0;var I={data:function(){return{text:"",event:void 0,isFocused:void 0}},mounted:function(){this.getChildNodes(this.$refs.inputDemo.childNodes).find((function(e){return"input"===e.tagName})).focus()},methods:{textChange:function(e){console.log(e.value)},blurAllInput:function(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter((function(e){return"input"===e.tagName})).forEach((function(e){return e.blur()}))},stopPropagation:function(e){e.stopPropagation()},clearTextContent:function(){this.text=""},onKeyboardWillHide:function(){console.log("onKeyboardWillHide")},onKeyboardWillShow:function(e){console.log("onKeyboardWillShow",e)},getChildNodes:function(e){return i.default.Native?e:Array.from(e)},focus:function(e){e.stopPropagation(),this.$refs.input.focus()},blur:function(e){e.stopPropagation(),this.$refs.input.blur()},onFocus:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.input.isFocused();case 2:e.isFocused=t.sent,e.event="onFocus";case 4:case"end":return t.stop()}}),t)})))()},onBlur:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.input.isFocused();case 2:e.isFocused=t.sent,e.event="onBlur";case 4:case"end":return t.stop()}}),t)})))()}}},O=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(c.a)(I,V,[],!1,null,"76bc5c6f",null));O.options.__file="src/components/demos/demo-input.vue";var Y=O.exports,H=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo",style:{color:e.topColor}},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextColor}},[e._v("\n 验证属性继承更改效果,点击可改变整体颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};H._withStripped=!0;var R={data:function(){return{topColor:"grey",Platform:i.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}},methods:{changeTextShadow:function(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},changeTextColor:function(){this.topColor=this.textShadowIndex%2==1?"red":"grey",this.textShadowIndex+=1},onTouchTextStart:function(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove:function(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd:function(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine:function(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine:function(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode:function(e){this.textMode.ellipsizeMode=e},changeBreakStrategy:function(e){this.breakStrategy=e}}},D=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(c.a)(R,H,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));D.options.__file="src/components/demos/demo-p.vue";var B=D.exports,U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};U._withStripped=!0;var N={data:function(){return{Platform:i.default.Native.Platform}},mounted:function(){this.Platform=i.default.Native.Platform}},M=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(c.a)(N,U,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));M.options.__file="src/components/demos/demo-shadow.vue";var F=M.exports,z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};z._withStripped=!0;var W={data:function(){return{Platform:i.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}},methods:{contentSizeChange:function(e){console.log(e)},changeBreakStrategy:function(e){this.breakStrategy=e}}},$=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(c.a)(W,z,[],!1,null,"6cb502b6",null));$.options.__file="src/components/demos/demo-textarea.vue";var G=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};K._withStripped=!0;var q=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],Q={data:function(){return{Vue:i.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}},mounted:function(){this.isLoading=!1,this.dataSource=q},methods:{changeDirection:function(){this.horizontal=void 0===this.horizontal||void 0},onAppear:function(e){console.log("onAppear",e)},onDisappear:function(e){console.log("onDisappear",e)},onWillAppear:function(e){console.log("onWillAppear",e)},onWillDisappear:function(e){console.log("onWillDisappear",e)},mockFetchData:function(){return new Promise((function(e){setTimeout((function(){return e(q)}),600)}))},onDelete:function(e){this.dataSource.splice(e.index,1)},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.isLoading){t.next=3;break}return t.abrupt("return");case 3:return e.isLoading=!0,e.dataSource=a.concat([{style:100}]),t.next=7,e.mockFetchData();case 7:o=t.sent,e.dataSource=a.concat(o),e.isLoading=!1;case 10:case"end":return t.stop()}}),t)})))()},onScroll:function(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin:function(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd:function(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag:function(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){console.log("onScrollEndDrag",e)}}},X=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(c.a)(Q,K,[],!1,null,"71b90789",null));X.options.__file="src/components/demos/demo-list.vue";var J=X.exports,Z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};Z._withStripped=!0;var ee={data:function(){return{url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":i.default.Native?100:"100vh"}}},methods:{onLoad:function(e){var t=e.url;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart:function(e){var t=e.url;console.log("onLoadStart",t)},onLoadEnd:function(e){var t=e.url,a=e.success,o=e.error;console.log("onLoadEnd",t,a,o)},onKeyUp:function(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl:function(e){this.url=e.value}}},te=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(c.a)(ee,Z,[],!1,null,null,null));te.options.__file="src/components/demos/demo-iframe.vue";var ae=te.exports,oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};oe._withStripped=!0;var re={data:function(){return{output:[]}},methods:{connect:function(){var e=this;this.$refs.inputUrl.getValue().then((function(t){e.disconnect();var a=new WebSocket(t);a.onopen=function(){return e.appendOutput("[Opened] ".concat(a.url))},a.onclose=function(){return e.appendOutput("[Closed] ".concat(a.url))},a.onerror=function(t){return e.appendOutput("[Error] ".concat(t.reason))},a.onmessage=function(t){return e.appendOutput("[Received] ".concat(t.data))},e.ws=a}))},disconnect:function(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput:function(e){this.output.unshift(e)},sendMessage:function(){var e=this;this.$refs.inputMessage.getValue().then((function(t){e.appendOutput("[Sent] ".concat(t)),e.ws.send(t)}))}}},ne=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(c.a)(re,oe,[],!1,null,"77bce928",null));ne.options.__file="src/components/demos/demo-websocket.vue";var ie=ne.exports,se=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};se._withStripped=!0;var le={components:{AsyncComponentFromLocal:function(){return a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then((function(e){return e})).catch((function(e){return console.error("import async local component error",e)}))},AsyncComponentFromHttp:function(){return a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then((function(e){return e})).catch((function(e){return console.error("import async remote component error",e)}))}},data:function(){return{loaded:!1}},methods:{onAsyncComponentLoad:function(){this.loaded=!0}}},ce=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(c.a)(le,se,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));ce.options.__file="src/components/demos/demo-dynamicimport.vue";var de=ce.exports,pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};pe._withStripped=!0;var ue=function(){var e=b()(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=function(){return getTurboModule("demoTurbo").getTurboConfig()},ye={data:function(){return{config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}},methods:{onTurboFunc:function(e){var t=this;return b()(g.a.mark((function a(){var o;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("nativeWithPromise"!==e){a.next=6;break}return a.next=3,ue("aaa");case 3:t.result=a.sent,a.next=7;break;case 6:"getTurboConfig"===e?(t.config=ve(),t.result="获取到config对象"):"printTurboConfig"===e?t.result=(r=t.config||ve(),getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===e?t.result=(t.config||ve()).getInfo():"setInfo"===e?((t.config||ve()).setInfo("Hello World"),t.result="设置config信息成功"):(o={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}},t.result=o[e]());case 7:case"end":return a.stop()}var r}),a)})))()}}},he=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(c.a)(ye,pe,[],!1,null,"14216e7a",null));he.options.__file="src/components/demos/demo-turbo.vue";var fe={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:F},demoP:{name:"p 组件",component:B},demoButton:{name:"button 组件",component:p},demoImg:{name:"img 组件",component:L},demoInput:{name:"input 组件",component:Y},demoTextarea:{name:"textarea 组件",component:G},demoUl:{name:"ul/li 组件",component:J},demoIFrame:{name:"iframe 组件",component:ae},demoWebSocket:{name:"WebSocket",component:ie},demoDynamicImport:{name:"DynamicImport",component:de},demoTurbo:{name:"Turbo",component:he.exports}},be=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};be._withStripped=!0;var me={data:function(){return{demon2Left:0,screenWidth:0}},mounted:function(){this.screenWidth=i.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1:function(e){e.stopPropagation();var t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1:function(e){e.stopPropagation();var t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2:function(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2:function(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ge=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(c.a)(me,be,[],!1,null,"4ffd9eb0",null));ge.options.__file="src/components/demos/demo-set-native-props.vue";var _e=ge.exports,xe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};xe._withStripped=!0;var Ce=a("./src/util.js"),we={data:function(){var e=i.default.Native.screenIsVertical;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:i.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},created:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.storageValue="",e.imageSize="",e.netInfoText="",t.next=5,i.default.Native.NetInfo.fetch();case 5:e.netInfoText=t.sent,e.netInfoListener=i.default.Native.NetInfo.addEventListener("change",(function(t){e.netInfoText="收到通知: ".concat(t.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(t){e.fetchText="成功状态: ".concat(t.status)})).catch((function(t){e.fetchText="收到错误: ".concat(t)}));case 8:case"end":return t.stop()}}),t)})))()},mounted:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.app=Object(Ce.a)(),e.app.$on("testEvent",(function(){e.eventTriggeredTimes+=1}));case 2:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.netInfoListener&&i.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{getBoundingClientRect:function(){var e=arguments,t=this;return b()(g.a.mark((function a(){var o,r;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o=e.length>0&&void 0!==e[0]&&e[0],a.prev=1,a.next=4,i.default.Native.getBoundingClientRect(t.$refs.rect,{relToContainer:o});case 4:r=a.sent,o?t.rect2="".concat(JSON.stringify(r)):t.rect1="".concat(JSON.stringify(r)),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("getBoundingClientRect error",a.t0);case 11:case"end":return a.stop()}}),a,null,[[1,8]])})))()},triggerAppEvent:function(){this.app.$emit("testEvent")},refreshScreenStatus:function(){this.screenIsVertical=i.default.Native.screenIsVertical},setItem:function(){i.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem:function(){i.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},getItem:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.AsyncStorage.getItem("itemKey");case 2:a=t.sent,e.storageValue=a||"undefined";case 4:case"end":return t.stop()}}),t)})))()},getSize:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");case 2:a=t.sent,console.log("ImageLoader getSize",a),e.imageSize="".concat(a.width,"x").concat(a.height);case 5:case"end":return t.stop()}}),t)})))()},setCookie:function(){i.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie:function(){var e=this;i.default.Native.Cookie.getAll("https://hippyjs.org").then((function(t){e.cookiesValue=t}))}}},Se=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(c.a)(we,xe,[],!1,null,"864846ba",null));Se.options.__file="src/components/native-demos/demo-vue-native.vue";var ke=Se.exports,Ae=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};Ae._withStripped=!0;var Pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};Pe._withStripped=!0;var je={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Ee={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Te={props:{playing:Boolean,direction:{validator:function(e){return["horizon","vertical"].indexOf(e)>-1}},onRef:Function},data:function(){var e;switch(this.$props.direction){case"horizon":e=je;break;case"vertical":e=Ee;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction:function(e){switch(e){case"horizon":this.loopActions=je;break;case"vertical":this.loopActions=Ee}}},mounted:function(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},Le=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(c.a)(Te,Pe,[],!1,null,"63fc9d7f",null));Le.options.__file="src/components/native-demos/animations/loop.vue";var Ve=Le.exports,Ie=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ie._withStripped=!0;var Oe={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"}]}},Ye={props:{playing:Boolean,onRef:Function},data:function(){return{loopActions:Oe}},mounted:function(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},He=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(c.a)(Ye,Ie,[],!1,null,"44bf239d",null));He.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Re=He.exports,De=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};De._withStripped=!0;var Be={data:function(){return{imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}}}},Ue=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(c.a)(Be,De,[],!1,null,"ca89125a",null));Ue.options.__file="src/components/native-demos/animations/vote-up.vue";var Ne=Ue.exports,Me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Me._withStripped=!0;var Fe={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ze={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},We={props:["isChanged"],data:function(){return{imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:Fe,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}}},watch:{isChanged:function(e,t){var a=this;!t&&e?(console.log("changed to face2"),this.animations.face=ze):t&&!e&&(console.log("changed to face1"),this.animations.face=Fe),setTimeout((function(){a.animationRef.start()}),10)}},mounted:function(){this.animationRef=this.$refs.animationRef},methods:{animationStart:function(){console.log("animation-start callback")},animationEnd:function(){console.log("animation-end callback")},animationRepeat:function(){console.log("animation-repeat callback")},animationCancel:function(){console.log("animation-cancel callback")}}},$e=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(c.a)(We,Me,[],!1,null,"3adfe95a",null));$e.options.__file="src/components/native-demos/animations/vote-down.vue";var Ge=$e.exports,Ke=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ke._withStripped=!0;var qe={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]},Qe={props:{playing:Boolean,onRef:Function},data:function(){return{colorActions:qe}}},Xe=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(c.a)(Qe,Ke,[],!1,null,"c3eb3b96",null));Xe.options.__file="src/components/native-demos/animations/color-change.vue";var Je=Xe.exports,Ze={components:{Loop:Ve,colorComponent:Je,CubicBezier:Re},data:function(){return{loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ne,colorComponent:Je,isChanged:!0}},methods:{onRef:function(e){this.animationRef=e},voteUp:function(){this.voteComponent=Ne},voteDown:function(){this.voteComponent=Ge,this.isChanged=!this.isChanged},toggleLoopPlaying:function(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying:function(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying:function(){this.cubicPlaying=!this.cubicPlaying},toggleDirection:function(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate:function(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},et=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(c.a)(Ze,Ae,[],!1,null,"1b9933af",null));et.options.__file="src/components/native-demos/demo-animation.vue";var tt=et.exports,at=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};at._withStripped=!0;var ot={beforeRouteLeave:function(e,t,a){this.dialogIsVisible||a()},data:function(){return{supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}},methods:{clickView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond:function(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig:function(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow:function(){console.log("Dialog is opening")},onOrientationChange:function(e){console.log("orientation changed",e.nativeParams)},onClose:function(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation:function(e){e.stopPropagation()}}},rt=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(c.a)(ot,at,[],!1,null,"bdcf35a6",null));rt.options.__file="src/components/native-demos/demo-dialog.vue";var nt=rt.exports,it=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};it._withStripped=!0;var st={data:function(){return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:2,currentSlideNum:2,state:"idle"}},mounted:function(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage:function(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};dt._withStripped=!0;var pt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ut={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[pt,pt,pt],subInfo:["三图评论","11评"]}},vt={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},yt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}},ht=[yt,ut,vt,ut,vt,ut,vt,yt,ut],ft=(i.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),i.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),i.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:function(){return{headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:i.default}},mounted:function(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=r()(ht),i.default.Native?(this.$windowHeight=i.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",i.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:function(){return new Promise((function(e){setTimeout((function(){return e(ht)}),800)}))},onHeaderPulling:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onScroll:function(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},onHeaderReleased:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.fetchingDataFlag){t.next=2;break}return t.abrupt("return");case 2:return e.fetchingDataFlag=!0,console.log("onHeaderReleased"),e.headerRefreshText="刷新数据中,请稍等",t.next=7,e.mockFetchData();case 7:a=t.sent,e.dataSource=a.reverse(),e.fetchingDataFlag=!1,e.headerRefreshText="2秒后收起",e.$refs.pullHeader.collapsePullHeader({time:2e3});case 12:case"end":return t.stop()}}),t)})))()},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.loadMoreDataFlag){t.next=3;break}return t.abrupt("return");case 3:return e.loadMoreDataFlag=!0,e.footerRefreshText="加载更多...",t.next=7,e.mockFetchData();case 7:0===(o=t.sent).length&&(e.footerRefreshText="没有更多数据"),e.dataSource=[].concat(r()(a),r()(o)),e.loadMoreDataFlag=!1,e.$refs.pullFooter.collapsePullFooter();case 12:case"end":return t.stop()}}),t)})))()},scrollToNextPage:function(){if(i.default.Native){var e=this.$refs.list,t=this.scrollPos,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(i.default.Native){var e=this.$refs.list;e.scrollToIndex(0,e.childNodes.length-1)}else alert("This method is only supported in Native environment.")}}}),bt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(c.a)(ft,dt,[],!1,null,"44ac5390",null));bt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var mt=bt.exports,gt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};gt._withStripped=!0;var _t={data:function(){return{dataSource:[].concat(r()(ht),r()(ht),r()(ht),r()(ht)),isRefreshing:!1,Vue:i.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===i.default.Native.Platform}},mounted:function(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=r()(ht),i.default.Native?(this.$windowHeight=i.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",i.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText:function(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth:function(){return(i.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:function(){return 5},columnSpacing:function(){return 6},interItemSpacing:function(){return 6},numberOfColumns:function(){return 2},contentInset:function(){return{top:0,left:5,bottom:0,right:5}}},methods:{mockFetchData:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.fetchTimes+=1,e.fetchTimes>=50?t([]):t([].concat(r()(ht),r()(ht)))}),600)}))},onHeaderPulling:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.fetchingDataFlag){t.next=2;break}return t.abrupt("return");case 2:return e.fetchingDataFlag=!0,console.log("onHeaderReleased"),e.headerRefreshText="刷新数据中,请稍等",t.next=7,e.mockFetchData();case 7:t.sent,e.fetchingDataFlag=!1,e.headerRefreshText="2秒后收起",e.$refs.pullHeader.collapsePullHeader({time:2e3});case 11:case"end":return t.stop()}}),t)})))()},onRefresh:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRefreshing=!0,t.next=3,e.mockFetchData();case 3:a=t.sent,e.isRefreshing=!1,e.dataSource=a.reverse(),e.$refs.header.refreshCompleted();case 7:case"end":return t.stop()}}),t)})))()},onScroll:function(e){console.log("waterfall onScroll",e)},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.loadMoreDataFlag){t.next=3;break}return t.abrupt("return");case 3:return e.loadMoreDataFlag=!0,e.footerRefreshText="加载更多...",t.next=7,e.mockFetchData();case 7:0===(o=t.sent).length&&(e.footerRefreshText="没有更多数据"),e.dataSource=[].concat(r()(a),r()(o)),e.loadMoreDataFlag=!1,e.$refs.pullFooter.collapsePullFooter();case 12:case"end":return t.stop()}}),t)})))()},onItemClick:function(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},xt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(c.a)(_t,gt,[],!1,null,"782cda3d",null));xt.options.__file="src/components/native-demos/demo-waterfall.vue";var Ct=xt.exports,wt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};wt._withStripped=!0;var St={data:function(){return{layoutHeight:0,currentSlide:0}},methods:{onLayout:function(e){this.layoutHeight=e.height},onTabClick:function(e){console.log("onclick",e),this.currentSlide=e-1},onDropped:function(e){this.currentSlide=e.currentSlide}}},kt=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(c.a)(St,wt,[],!1,null,"3bbacb8e",null));kt.options.__file="src/components/native-demos/demo-nested-scroll.vue";var At=kt.exports,Pt={};i.default.Native&&Object.assign(Pt,{demoVueNative:{name:"Vue.Native 能力",component:ke},demoAnimation:{name:"animation 组件",component:tt},demoModal:{name:"dialog 组件",component:nt},demoSwiper:{name:"swiper 组件",component:ct},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:mt},demoWaterfall:{name:"waterfall 组件",component:Ct},demoNestedScroll:{name:"nested scroll 示例",component:At},demoSetNativeProps:{name:"setNativeProps",component:_e}});var jt=Pt,Et={name:"App",data:function(){return{featureList:Object.keys(fe).map((function(e){return{id:e,name:fe[e].name}})),nativeFeatureList:Object.keys(jt).map((function(e){return{id:e,name:jt[e].name}})),Vue:i.default}},beforeAppExit:function(){}},Tt=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(c.a)(Et,n,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));Tt.options.__file="src/pages/menu.vue";var Lt=Tt.exports,Vt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};Vt._withStripped=!0;var It={data:function(){return{bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}}}},methods:{blurInput:function(e){e.stopPropagation(),this.$refs.input.blur()},openBundle:function(){this.bundleUrl&&i.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation:function(e){e.stopPropagation()},clearTextContent:function(){this.bundleUrl=""},getChildNodes:function(e){return i.default.Native?e:Array.from(e)}}},Ot=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(c.a)(It,Vt,[],!1,null,"66065e90",null));Ot.options.__file="src/pages/remote-debug.vue";var Yt=Ot.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:Lt},{path:"/remote-debug",component:Yt,name:"调试"}].concat(r()(Object.keys(fe).map((function(e){return{path:"/demo/".concat(e),name:fe[e].name,component:fe[e].component}}))),r()(Object.keys(jt).map((function(e){return{path:"/demo/".concat(e),name:jt[e].name,component:jt[e].component}}))))}},"./src/util.js":function(e,t,a){"use strict";var o;function r(e){o=e}function n(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return n}))},0:function(e,t,a){a("./node_modules/@hippy/rejection-tracking-polyfill/index.js"),e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/examples/ios-demo/res/vue2/vendor.ios.js b/framework/examples/ios-demo/res/vue2/vendor.ios.js index 6ffceb8322c..a75efc4a4c6 100644 --- a/framework/examples/ios-demo/res/vue2/vendor.ios.js +++ b/framework/examples/ios-demo/res/vue2/vendor.ios.js @@ -1,8 +1,8 @@ -var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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-vue-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return v})),n.d(t,"DialogComponent",(function(){return m})),n.d(t,"ListRefreshComponent",(function(){return b})),n.d(t,"PullsComponents",(function(){return _})),n.d(t,"SwiperComponent",(function(){return w})),n.d(t,"WaterfallComponent",(function(){return k})),n.d(t,"default",(function(){return S}));var r=["mode","valueType","startValue","toValue"],o=["transform"],i=["transform"];function a(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||c(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 s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} +var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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-vue-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return v})),n.d(t,"DialogComponent",(function(){return m})),n.d(t,"ListRefreshComponent",(function(){return b})),n.d(t,"PullsComponents",(function(){return _})),n.d(t,"SwiperComponent",(function(){return w})),n.d(t,"WaterfallComponent",(function(){return k})),n.d(t,"default",(function(){return S}));var r=["mode","valueType","startValue","toValue"],o=["transform"],i=["transform"];function a(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||c(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 s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?t.Native.parseColor(n):n}function c(t){var o=t.mode,i=void 0===o?"timing":o,s=t.valueType,c=t.startValue,u=t.toValue,d=p(t,r),h=f(f({},n),d);void 0!==s&&(h.valueType=t.valueType),h.startValue=a(h.valueType,c),h.toValue=a(h.valueType,u),h.repeatCount=l(h.repeatCount),h.mode=i;var v=new e.Hippy.Animation(h),m=v.getId();return{animation:v,animationId:m}}function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}function l(e){return"loop"===e?-1:e}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){if(Array.isArray(e[r])){var o=e[r],i=o[o.length-1].repeatCount,a=u(o.map((function(e){var n=c(Object.assign({},e,{repeatCount:0})),r=n.animationId,o=n.animation;return Object.assign(t,{[r]:o}),{animationId:r,follow:!0}})),l(i)),s=a.animationId,f=a.animation;n[r]={animationId:s},Object.assign(t,{[s]:f})}else{var d=c(e[r]),p=d.animationId,h=d.animation;Object.assign(t,{[p]:h}),n[r]={animationId:p}}})),n}function v(e){var t=e.transform,n=p(e,o),r=Object.keys(n).map((function(t){return e[t].animationId}));if(Array.isArray(t)&&t.length>0){var i=[];t.forEach((function(e){return Object.keys(e).forEach((function(t){if(e[t]){var n=e[t].animationId;"number"==typeof n&&n%1==0&&i.push(n)}}))})),r=[].concat(s(r),i)}return r}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:function(){return{style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}},watch:{playing:function(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions:function(){var e=this;this.destroy(),this.create(),setTimeout((function(){"function"==typeof e.$listeners.actionsDidUpdate&&e.$listeners.actionsDidUpdate()}))}},created:function(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount:function(){this.create()},mounted:function(){var e=this;this.$props.playing&&setTimeout((function(){e.start()}),0)},beforeDestroy:function(){this.destroy()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=p(e,i);this.animationIdsMap={};var r=d(n,this.animationIdsMap);if(t){var o=d(t,this.animationIdsMap);r.transform=Object.keys(o).map((function(e){return{[e]:o[e]}}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$listeners[t]){var r=e.animationEventMap[t];r&&n.removeEventListener(r)}}))}))},addAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$listeners[t]){var r=e.animationEventMap[t];r&&n.addEventListener(r,(function(){e.$emit(t)}))}}))}))},reset:function(){this.$alreadyStarted=!1},start:function(){var e=this;this.$alreadyStarted?this.resume():(this.animationIds=v(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];null==n||n.start()})))},resume:function(){var e=this;v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.destroy()}))}},template:'\n \n \n \n '})}function m(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render:function(e){var t,n=(t=this.$slots.default)?Array.isArray(t)?t[0]:t||void 0:null;n&&(n.data.attrs?Object.assign(n.data.attrs,{__modalFirstChild__:!0}):n.data.attrs={__modalFirstChild__:!0});var r=this.collapsable,o=this.transparent,i=this.immersionStatusBar,a=this.autoHideStatusBar,s=this.autoHideNavigationBar;return e("hi-dialog",{on:f({},this.$listeners),attrs:{collapsable:r,transparent:o,immersionStatusBar:i,autoHideStatusBar:a,autoHideNavigationBar:s}},this.$slots.default)}})}function y(e){return"string"!=typeof e?"":"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}function g(e){var t=this,n={};return e.forEach((function(e){if(Array.isArray(e)){var r=a(e,2),o=r[0],i=r[1];Object.prototype.hasOwnProperty.call(t.$listeners,o)&&(t["on".concat(y(i))]?n[e]=t["on".concat(y(i))]:n[e]=function(e){return t.$emit(o,e)})}else Object.prototype.hasOwnProperty.call(t.$listeners,e)&&(t["on".concat(y(e))]?n[e]=t["on".concat(y(e))]:n[e]=function(n){return t.$emit(e,n)})})),n}function b(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(e){return e("hi-ul-refresh-wrapper",{on:g.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function w(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData:function(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation:function(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render:function(e){return e("hi-swiper",{on:g.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function _(e){var t=e.Native.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=a(n,2),o=r[0],i=r[1];e.registerElement("hi-pull-".concat(i),{component:{name:"Pull".concat(o,"View"),processEventData:function(e,t,n){switch(t){case"on".concat(o,"Released"):case"on".concat(o,"Pulling"):Object.assign(e,n)}return e}}}),e.component("pull-".concat(i),{methods:{["expandPull".concat(o)]:function(){t(this.$refs.instance,"expandPull".concat(o))},["collapsePull".concat(o)]:function(e){"Header"===o&&void 0!==e?t(this.$refs.instance,"collapsePull".concat(o,"WithOptions"),[e]):t(this.$refs.instance,"collapsePull".concat(o))},onLayout:function(e){this.$contentHeight=e.height},["on".concat(o,"Released")]:function(e){this.$emit("released",e)},["on".concat(o,"Pulling")]:function(e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render:function(e){var t=this.$listeners,n=t.released,r=t.pulling,a=t.idle,s={layout:this.onLayout};return"function"==typeof n&&(s["".concat(i,"Released")]=this["on".concat(o,"Released")]),"function"!=typeof r&&"function"!=typeof a||(s["".concat(i,"Pulling")]=this["on".concat(o,"Pulling")]),e("hi-pull-".concat(i),{on:s,ref:"instance"},this.$slots.default)}})}))}function k(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData:function(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":var r=n.startEdgePos,o=n.endEdgePos,i=n.firstVisibleRowIndex,a=n.lastVisibleRowIndex,s=n.visibleRowFrames;Object.assign(e,{startEdgePos:r,endEdgePos:o,firstVisibleRowIndex:i,lastVisibleRowIndex:a,visibleRowFrames:s})}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:function(){return{top:0,left:0,bottom:0,right:0}}},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call:function(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh:function(){this.call("startRefresh")},startRefreshWithType:function(e){this.call("startRefreshWithType",[e])},callExposureReport:function(){this.call("callExposureReport",[])},scrollToIndex:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,o=void 0===r||r;"number"==typeof n&&"boolean"==typeof o&&this.call("scrollToIndex",[n,n,o])},scrollToContentOffset:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,o=void 0===r?0:r,i=e.animated,a=void 0===i||i;"number"==typeof n&&"number"==typeof o&&"boolean"==typeof a&&this.call("scrollToContentOffset",[n,o,a])},startLoadMore:function(){this.call("startLoadMore")}},render:function(e){return e("hi-waterfall",{on:g.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render:function(e){return e("hi-waterfall-item",{on:f({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}var S={install:function(e){v(e),m(e),b(e),w(e),_(e),k(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r,o){function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=a(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}function s(){s=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),d(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=x(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},s.apply(this,arguments)}function c(e,t,n){return t=l(t),function(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(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&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(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 h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?t.Native.parseColor(n):n}function c(t){var o=t.mode,i=void 0===o?"timing":o,s=t.valueType,c=t.startValue,u=t.toValue,d=p(t,r),h=f(f({},n),d);void 0!==s&&(h.valueType=t.valueType),h.startValue=a(h.valueType,c),h.toValue=a(h.valueType,u),h.repeatCount=l(h.repeatCount),h.mode=i;var v=new e.Hippy.Animation(h),m=v.getId();return{animation:v,animationId:m}}function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}function l(e){return"loop"===e?-1:e}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){if(Array.isArray(e[r])){var o=e[r],i=o[o.length-1].repeatCount,a=u(o.map((function(e){var n=c(Object.assign({},e,{repeatCount:0})),r=n.animationId,o=n.animation;return Object.assign(t,{[r]:o}),{animationId:r,follow:!0}})),l(i)),s=a.animationId,f=a.animation;n[r]={animationId:s},Object.assign(t,{[s]:f})}else{var d=c(e[r]),p=d.animationId,h=d.animation;Object.assign(t,{[p]:h}),n[r]={animationId:p}}})),n}function v(e){var t=e.transform,n=p(e,o),r=Object.keys(n).map((function(t){return e[t].animationId}));if(Array.isArray(t)&&t.length>0){var i=[];t.forEach((function(e){return Object.keys(e).forEach((function(t){if(e[t]){var n=e[t].animationId;"number"==typeof n&&n%1==0&&i.push(n)}}))})),r=[].concat(s(r),i)}return r}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:function(){return{style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}},watch:{playing:function(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions:function(){var e=this;this.destroy(),this.create(),setTimeout((function(){"function"==typeof e.$listeners.actionsDidUpdate&&e.$listeners.actionsDidUpdate()}))}},created:function(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount:function(){this.create()},mounted:function(){var e=this;this.$props.playing&&setTimeout((function(){e.start()}),0)},beforeDestroy:function(){this.destroy()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=p(e,i);this.animationIdsMap={};var r=d(n,this.animationIdsMap);if(t){var o=d(t,this.animationIdsMap);r.transform=Object.keys(o).map((function(e){return{[e]:o[e]}}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$listeners[t]){var r=e.animationEventMap[t];r&&n.removeEventListener(r)}}))}))},addAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$listeners[t]){var r=e.animationEventMap[t];r&&n.addEventListener(r,(function(){e.$emit(t)}))}}))}))},reset:function(){this.$alreadyStarted=!1},start:function(){var e=this;this.$alreadyStarted?this.resume():(this.animationIds=v(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];null==n||n.start()})))},resume:function(){var e=this;v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.destroy()}))}},template:'\n \n \n \n '})}function m(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render:function(e){var t,n=(t=this.$slots.default)?Array.isArray(t)?t[0]:t||void 0:null;n&&(n.data.attrs?Object.assign(n.data.attrs,{__modalFirstChild__:!0}):n.data.attrs={__modalFirstChild__:!0});var r=this.collapsable,o=this.transparent,i=this.immersionStatusBar,a=this.autoHideStatusBar,s=this.autoHideNavigationBar;return e("hi-dialog",{on:f({},this.$listeners),attrs:{collapsable:r,transparent:o,immersionStatusBar:i,autoHideStatusBar:a,autoHideNavigationBar:s}},this.$slots.default)}})}function y(e){return"string"!=typeof e?"":"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}function g(e){var t=this,n={};return e.forEach((function(e){if(Array.isArray(e)){var r=a(e,2),o=r[0],i=r[1];Object.prototype.hasOwnProperty.call(t.$listeners,o)&&(t["on".concat(y(i))]?n[e]=t["on".concat(y(i))]:n[e]=function(e){return t.$emit(o,e)})}else Object.prototype.hasOwnProperty.call(t.$listeners,e)&&(t["on".concat(y(e))]?n[e]=t["on".concat(y(e))]:n[e]=function(n){return t.$emit(e,n)})})),n}function b(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(e){return e("hi-ul-refresh-wrapper",{on:g.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function w(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData:function(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation:function(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render:function(e){return e("hi-swiper",{on:g.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function _(e){var t=e.Native.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=a(n,2),o=r[0],i=r[1];e.registerElement("hi-pull-".concat(i),{component:{name:"Pull".concat(o,"View"),processEventData:function(e,t,n){switch(t){case"on".concat(o,"Released"):case"on".concat(o,"Pulling"):Object.assign(e,n)}return e}}}),e.component("pull-".concat(i),{methods:{["expandPull".concat(o)]:function(){t(this.$refs.instance,"expandPull".concat(o))},["collapsePull".concat(o)]:function(e){"Header"===o&&void 0!==e?t(this.$refs.instance,"collapsePull".concat(o,"WithOptions"),[e]):t(this.$refs.instance,"collapsePull".concat(o))},onLayout:function(e){this.$contentHeight=e.height},["on".concat(o,"Released")]:function(e){this.$emit("released",e)},["on".concat(o,"Pulling")]:function(e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render:function(e){var t=this.$listeners,n=t.released,r=t.pulling,a=t.idle,s={layout:this.onLayout};return"function"==typeof n&&(s["".concat(i,"Released")]=this["on".concat(o,"Released")]),"function"!=typeof r&&"function"!=typeof a||(s["".concat(i,"Pulling")]=this["on".concat(o,"Pulling")]),e("hi-pull-".concat(i),{on:s,ref:"instance"},this.$slots.default)}})}))}function k(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData:function(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":var r=n.startEdgePos,o=n.endEdgePos,i=n.firstVisibleRowIndex,a=n.lastVisibleRowIndex,s=n.visibleRowFrames;Object.assign(e,{startEdgePos:r,endEdgePos:o,firstVisibleRowIndex:i,lastVisibleRowIndex:a,visibleRowFrames:s})}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:function(){return{top:0,left:0,bottom:0,right:0}}},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call:function(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh:function(){this.call("startRefresh")},startRefreshWithType:function(e){this.call("startRefreshWithType",[e])},callExposureReport:function(){this.call("callExposureReport",[])},scrollToIndex:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,o=void 0===r||r;"number"==typeof n&&"boolean"==typeof o&&this.call("scrollToIndex",[n,n,o])},scrollToContentOffset:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,o=void 0===r?0:r,i=e.animated,a=void 0===i||i;"number"==typeof n&&"number"==typeof o&&"boolean"==typeof a&&this.call("scrollToContentOffset",[n,o,a])},startLoadMore:function(){this.call("startLoadMore")}},render:function(e){return e("hi-waterfall",{on:g.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render:function(e){return e("hi-waterfall-item",{on:f({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}var S={install:function(e){v(e),m(e),b(e),w(e),_(e),k(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r,o){function i(e,t,n,r){var o=a(f(1&r?e.prototype:e),t,n);return 2&r?function(e){return o.apply(n,e)}:o}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function s(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return 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,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),p(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=O(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},c.apply(this,arguments)}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(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&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(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 v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&Math.floor(t)===t&&isFinite(e)}function L(e){return A(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function M(e){return null==e?"":Array.isArray(e)||T(e)&&e.toString===C?JSON.stringify(e,null,2):String(e)}function D(e){var t=parseFloat(e);return isNaN(t)?e:t}function R(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var U=Object.prototype.hasOwnProperty;function H(e,t){return U.call(e,t)}function W(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var z=/-(\w)/g,Y=W((function(e){return e.replace(z,(function(e,t){return t?t.toUpperCase():""}))})),K=W((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),G=/\B([A-Z])/g,q=W((function(e){return e.replace(G,"-$1").toLowerCase()}));var X=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function J(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function Z(e,t){for(var n in t)e[n]=t[n];return e}function Q(e,t,n){}var ee=function(e,t,n){return!1},te=function(e){return e};function ne(e,t){if(e===t)return!0;var n=I(e),r=I(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return ne(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return ne(e[n],t[n])}))}catch(e){return!1}}function re(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=new Te;return t.text=e,t.isComment=!0,t};function je(e){return new Te(void 0,void 0,void 0,String(e))}function Le(e){var t=new Te(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Me=Array.prototype,De=Object.create(Me);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Me[e];le(De,e,(function(){for(var n=arguments.length,r=new Array(n),o=0;o-1)if(i&&!H(o,"default"))a=!1;else if(""===a||a===q(e)){var c=it(String,o.type);(c<0||s0&&(At((o=e(o,"".concat(n||"","_").concat(r)))[0])&&At(a)&&(s[i]=je(a.text+o[0].text),o.shift()),s.push.apply(s,o)):E(o)?At(a)?s[i]=je(a.text+o):""!==o&&s.push(je(o)):At(o)&&At(a)?s[i]=je(a.text+o.text):(N(t._isVList)&&A(o.tag)&&$(o.key)&&A(n)&&(o.key="__vlist".concat(n,"_").concat(r,"__")),s.push(o)));return s}(e):void 0}function At(e){return A(e)&&A(e.text)&&!1===e.isComment}function Nt(e,t){if(e){for(var n=Object.create(null),r=Oe?Reflect.ownKeys(e):Object.keys(e),o=0;o0,i=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==O&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=Pt(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=jt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),le(r,"$stable",i),le(r,"$key",a),le(r,"$hasNormal",o),r}function Pt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"===x(e)&&!Array.isArray(e)?[e]:$t(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Ct(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function jt(e,t){return function(){return e[t]}}function Lt(e,t){var n,r,o,i,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,o=e.length;rdocument.createEvent("Event").timeStamp&&(kn=function(){return Sn.now()})}function xn(){var e,t;for(kn(),wn=!0,mn.sort((function(e,t){return e.id-t.id})),_n=0;_n_n&&mn[n].id>e.id;)n--;mn.splice(n+1,0,e)}else mn.push(e);bn||(bn=!0,gt(xn))}}(this)}},{key:"run",value:function(){if(this.active){var e=this.get();if(e!==this.value||I(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');st(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}},{key:"evaluate",value:function(){this.value=this.get(),this.dirty=!1}},{key:"depend",value:function(){for(var e=this.deps.length;e--;)this.deps[e].depend()}},{key:"teardown",value:function(){if(this.active){this.vm._isBeingDestroyed||B(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}}}]),e}(),An={enumerable:!0,configurable:!0,get:Q,set:Q};function Nn(e,t,n){An.get=function(){return this[t][n]},An.set=function(e){this[t][n]=e},Object.defineProperty(e,n,An)}function En(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];e.$parent&&Ve(!1);var i=function(i){o.push(i);var a=tt(i,t,n,e);He(r,i,a),i in e||Nn(e,"_props",i)};for(var a in t)i(a);Ve(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?Q:X(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;T(t=e._data="function"==typeof t?function(e,t){Ie();try{return e.call(t,t)}catch(e){return at(e,t,"data()"),{}}finally{Ce()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);for(;o--;){var i=n[o];0,r&&H(r,i)||ue(i)||Nn(e,"_data",i)}Ue(t,!0)}(e):Ue(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null);for(var r in t){var o=t[r],i="function"==typeof o?o:o.get;0,n[r]=new $n(e,i||Q,Q,In),r in e||Cn(e,r,o)}}(e,t.computed),t.watch&&t.watch!==be&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!P(e)&&e.test(t)}function Vn(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!t(s)&&Bn(n,i,r,o)}}}function Bn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,B(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=jn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Qe(Ln(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&fn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=Et(t._renderChildren,r),e.$scopedSlots=O,e._c=function(t,n,r,o){return rn(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return rn(e,t,n,r,o,!0)};var o=n&&n.data;He(e,"$attrs",o&&o.attrs||O,null,!0),He(e,"$listeners",t._parentListeners||O,null,!0)}(t),vn(t,"beforeCreate"),function(e){var t=Nt(e.$options.inject,e);t&&(Ve(!1),Object.keys(t).forEach((function(n){He(e,n,t[n])})),Ve(!0))}(t),En(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),vn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Mn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=We,e.prototype.$delete=ze,e.prototype.$watch=function(e,t,n){if(T(t))return Pn(this,e,t,n);(n=n||{}).user=!0;var r=new $n(this,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');Ie(),st(t,this,[r.value],this,o),Ce()}return function(){r.teardown()}}}(Mn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?J(n):n;for(var r=J(arguments,1),o='event handler for "'.concat(e,'"'),i=0,a=n.length;iparseInt(this.max)&&Bn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Bn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Vn(e,(function(e){return Fn(t,e)}))})),this.$watch("exclude",(function(t){Vn(e,(function(e){return!Fn(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t-1)return this;var n=J(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Qe(this.options,e),this}}(e),Dn(e),function(e){ie.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&T(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Mn),Object.defineProperty(Mn.prototype,"$isServer",{get:_e}),Object.defineProperty(Mn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Mn,"FunctionalRenderContext",{value:Xt}),Mn.version="2.6.14",R("style,class");var Wn=R("input,textarea,option,select,progress");function zn(e){for(var t=e.data,n=e,r=e;A(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Yn(r.data,t));for(;A(n=n.parent);)n&&n.data&&(t=Yn(t,n.data));return function(e,t){if(A(e)||A(t))return Kn(e,Gn(t));return""}(t.staticClass,t.class)}function Yn(e,t){return{staticClass:Kn(e.staticClass,t.staticClass),class:A(e.class)?[e.class,t.class]:t.class}}function Kn(e,t){return e?t?e+" "+t:e:t||""}function Gn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r=0&&" "===(v=e.charAt(h));h--);v&&Zn.test(v)||(u=!0)}}else void 0===o?(p=r+1,o=e.slice(0,r).trim()):m();function m(){(i||(i=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===o?o=e.slice(0,r).trim():0!==p&&m(),i)for(r=0;r1&&(t[r[0].trim()]=r[1].trim())}})),t}));var gr={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=pr(e,"style");n&&(e.staticStyle=JSON.stringify(yr(n)));var r=dr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}};var br,wr,_r,kr,Sr,xr,Or=function(e){return e},$r=R("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ar=R("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Nr=R("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Er=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ir=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Cr="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(ce.source,"]*"),Tr="((?:".concat(Cr,"\\:)?").concat(Cr,")"),Pr=new RegExp("^<".concat(Tr)),jr=/^\s*(\/?)>/,Lr=new RegExp("^<\\/".concat(Tr,"[^>]*>")),Mr=/^]+>/i,Dr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Ur=/&(?:lt|gt|quot|amp|#39);/g,Hr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Wr=R("pre,textarea",!0),zr=function(e,t){return e&&Wr(e)&&"\n"===t[0]};function Yr(e,t){var n=t?Hr:Ur;return e.replace(n,(function(e){return Br[e]}))}function Kr(e,t){for(var n,r,o,i=[],a=t.expectHTML,s=t.isUnaryTag||ee,c=t.canBeLeftOpenTag||ee,u=0,l=function(){if(n=e,r&&Fr(r)){var o=0,l=r.toLowerCase(),p=Vr[l]||(Vr[l]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(p,(function(e,n,r){return o=r.length,Fr(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),zr(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));u+=e.length-h.length,e=h,d(l,u-o,u)}else{var v,m,y,g=e.indexOf("<");if(0===g){if(Dr.test(e)){var b=e.indexOf("--\x3e");if(b>=0)return t.shouldKeepComment&&t.comment(e.substring(4,b),u,u+b+3),f(b+3),0}if(Rr.test(e)){var w=e.indexOf("]>");if(w>=0)return f(w+2),0}var _=e.match(Mr);if(_)return f(_[0].length),0;var k=e.match(Lr);if(k){var S=u;return f(k[0].length),d(k[1],S,u),0}var x=function(){var t=e.match(Pr);if(t){var n,r,o={tagName:t[1],attrs:[],start:u};for(f(t[0].length);!(n=e.match(jr))&&(r=e.match(Ir)||e.match(Er));)r.start=u,f(r[0].length),r.end=u,o.attrs.push(r);if(n)return o.unarySlash=n[1],f(n[0].length),o.end=u,o}}();if(x)return function(e){var n=e.tagName,o=e.unarySlash;a&&("p"===r&&Nr(n)&&d(r),c(n)&&r===n&&d(n));for(var u=s(n)||!!o,l=e.attrs.length,f=new Array(l),p=0;p=0){for(m=e.slice(g);!(Lr.test(m)||Pr.test(m)||Dr.test(m)||Rr.test(m)||(y=m.indexOf("<",1))<0);)g+=y,m=e.slice(g);v=e.substring(0,g)}g<0&&(v=e),v&&f(v.length),t.chars&&v&&t.chars(v,u-v.length,u)}if(e===n)return t.chars&&t.chars(e),1};e&&(0===(o=l())||1!==o););function f(t){u+=t,e=e.substring(t)}function d(e,n,o){var a,s;if(null==n&&(n=u),null==o&&(o=u),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)t.end&&t.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}d()}function Gr(e,t,n){var r=n||{},o=r.number,i="$$v";r.trim&&(i="(typeof ".concat("$$v"," === 'string'")+"? ".concat("$$v",".trim()")+": ".concat("$$v",")")),o&&(i="_n(".concat(i,")"));var a=qr(t,i);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat("$$v",") {").concat(a,"}")}}function qr(e,t){var n=function(e){if(e=e.trim(),br=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,kr),key:'"'+e.slice(kr+1)+'"'}:{exp:e,key:null};wr=e,kr=Sr=xr=0;for(;!Jr();)Zr(_r=Xr())?eo(_r):91===_r&&Qr(_r);return{exp:e.slice(0,Sr),key:e.slice(Sr+1,xr)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function Xr(){return wr.charCodeAt(++kr)}function Jr(){return kr>=br}function Zr(e){return 34===e||39===e}function Qr(e){var t=1;for(Sr=kr;!Jr();)if(Zr(e=Xr()))eo(e);else if(91===e&&t++,93===e&&t--,0===t){xr=kr;break}}function eo(e){for(var t=e;!Jr()&&(e=Xr())!==t;);}var to,no,ro,oo,io,ao,so,co,uo=/^@|^v-on:/,lo=o.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,po=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ho=/^\(|\)$/g,vo=/^\[.*\]$/,mo=/:(.*)$/,yo=/^:|^\.|^v-bind:/,go=/^\./,bo=/\.[^.\]]+(?=[^\]]*$)/g,wo=/^v-slot(:|$)|^#/,_o=/[\r\n]/,ko=/[ \f\t\r\n]+/g,So=W(Or);function xo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Co(t),rawAttrsMap:{},parent:n,children:[]}}function Oo(e,t){to=t.warn||or,ao=t.isPreTag||ee,so=t.mustUseProp||ee,co=t.getTagNamespace||ee;var n=t.isReservedTag||ee;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),ro=ir(t.modules,"transformNode"),oo=ir(t.modules,"preTransformNode"),io=ir(t.modules,"postTransformNode"),no=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=$o(e,t)),i.length||e===r||r.if&&(e.elseif||e.else)&&No(r,{exp:e.elseif,block:e}),o&&!e.forbidden)if(e.elseif||e.else)a=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(o.children))&&s.if&&No(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[n]=e}o.children.push(e),e.parent=o}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),f(e),e.pre&&(c=!1),ao(e.tag)&&(u=!1);for(var l=0;lc&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=Qn(r[1].trim());a.push("_s(".concat(u,")")),s.push({"@binding":u}),c=o+r[0].length}return c-1")+("true"===i?":(".concat(t,")"):":_q(".concat(t,",").concat(i,")"))),fr(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(i,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+o+")":o,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(qr(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(qr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(qr(t,"$$c"),"}"),null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=dr(e,"value")||"null";o=r?"_n(".concat(o,")"):o,ar(e,"checked","_q(".concat(t,",").concat(o,")")),fr(e,"change",qr(t,o),null,!0)}(e,r,o);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type;0;var o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?"__r":"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n(".concat(l,")"));var f=qr(t,l);c&&(f="if($event.target.composing)return;".concat(f));ar(e,"value","(".concat(t,")")),fr(e,u,f,null,!0),(s||a)&&fr(e,"blur","$forceUpdate()")}(e,r,o);else{if(!se.isReservedTag(i))return Gr(e,r,o),!1}return!0},text:function(e,t){t.value&&ar(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&ar(e,"innerHTML","_s(".concat(t.value,")"),t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:$r,mustUseProp:function(e,t,n){return"value"===n&&Wn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},canBeLeftOpenTag:Ar,isReservedTag:function(e){return qn(e)||Xn(e)},getTagNamespace:function(e){return Xn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(Lo)},Fo=W((function(e){return R("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Vo(e,t){e&&(Mo=Fo(t.staticKeys||""),Do=t.isReservedTag||ee,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||F(e.tag)||!Do(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Mo)))}(t),1===t.type){if(!Do(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Uo=/\([^)]*?\);*$/,Ho=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Wo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},zo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Yo=function(e){return"if(".concat(e,")return null;")},Ko={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Yo("$event.target !== $event.currentTarget"),ctrl:Yo("!$event.ctrlKey"),shift:Yo("!$event.shiftKey"),alt:Yo("!$event.altKey"),meta:Yo("!$event.metaKey"),left:Yo("'button' in $event && $event.button !== 0"),middle:Yo("'button' in $event && $event.button !== 1"),right:Yo("'button' in $event && $event.button !== 2")};function Go(e,t){var n=t?"nativeOn:":"on:",r="",o="";for(var i in e){var a=qo(e[i]);e[i]&&e[i].dynamic?o+="".concat(i,",").concat(a,","):r+='"'.concat(i,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),o?n+"_d(".concat(r,",[").concat(o.slice(0,-1),"])"):n+r}function qo(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return qo(e)})).join(","),"]");var t=Ho.test(e.value),n=Bo.test(e.value),r=Ho.test(e.value.replace(Uo,""));if(e.modifiers){var o="",i="",a=[],s=function(){if(Ko[c])i+=Ko[c],Wo[c]&&a.push(c);else if("exact"===c){var t=e.modifiers;i+=Yo(["ctrl","shift","alt","meta"].filter((function(e){return!t[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else a.push(c)};for(var c in e.modifiers)s();a.length&&(o+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(Xo).join("&&"),")return null;")}(a)),i&&(o+=i);var u=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(o).concat(u,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function Xo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=Wo[e],r=zo[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Jo={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:Q},Zo=k((function e(t){w(this,e),this.options=t,this.warn=t.warn||or,this.transforms=ir(t.modules,"transformCode"),this.dataGenFns=ir(t.modules,"genData"),this.directives=Z(Z({},Jo),t.directives);var n=t.isReservedTag||ee;this.maybeComponent=function(e){return!!e.component||!n(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}));function Qo(e,t){var n=new Zo(t),r=e?"script"===e.tag?"null":ei(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function ei(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ti(e,t);if(e.once&&!e.onceProcessed)return ni(e,t);if(e.for&&!e.forProcessed)return oi(e,t);if(e.if&&!e.ifProcessed)return ri(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ci(e,t),o="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),i=e.attrs||e.dynamicAttrs?fi((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:Y(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!i&&!a||r||(o+=",null");i&&(o+=",".concat(i));a&&(o+="".concat(i?"":",null",",").concat(a));return o+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ci(t,n,!0);return"_c(".concat(e,",").concat(ii(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=ii(e,t));var o=e.inlineTemplate?null:ci(e,t,!0);n="_c('".concat(e.tag,"'").concat(r?",".concat(r):"").concat(o?",".concat(o):"",")")}for(var i=0;i>>0}(a)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var i=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Qo(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}(e,t);i&&(n+="".concat(i,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(fi(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function ai(e){return 1===e.type&&("slot"===e.tag||e.children.some(ai))}function si(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return ri(e,t,si,"null");if(e.for&&!e.forProcessed)return oi(e,t,si);var r="_empty_"===e.slotScope?"":String(e.slotScope),o="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(ci(e,t)||"undefined",":undefined"):ci(e,t)||"undefined":ei(e,t),"}"),i=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(o).concat(i,"}")}function ci(e,t,n,r,o){var i=e.children;if(i.length){var a=i[0];if(1===i.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return"".concat((r||ei)(a,t)).concat(s)}var c=n?function(e,t){for(var n=0,r=0;re.length)&&(r=e.length),e.slice(r-t.length,r)===t}function Di(e){var t=e;return/^assets/.test(t)&&(t="".concat("hpfile://","./").concat(t)),t}function Ri(e){return null==e}function Fi(e){return"string"==typeof e?""!==e.trim():null!=e}function Vi(e){return"string"!=typeof e?e:!yi||void 0===yi.config.trimWhitespace||yi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}var Bi=Symbol.for("View"),Ui=Symbol.for("Image"),Hi=Symbol.for("ListView"),Wi=Symbol.for("ListViewItem"),zi=Symbol.for("Text"),Yi=Symbol.for("TextInput"),Ki=Symbol.for("WebView"),Gi=Symbol.for("VideoPlayer"),qi={[Bi]:"View",[Ui]:"Image",[Hi]:"ListView",[Wi]:"ListViewItem",[zi]:"Text",[Yi]:"TextInput",[Ki]:"WebView",[Gi]:"VideoPlayer"};function Xi(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}]),e}(),wa=function(){function e(t){w(this,e),this.element=t,this.observers={}}return k(e,[{key:"getEventListeners",value:function(){return this.observers}},{key:"addEventListener",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!ji(t))throw new TypeError("callback must be function.");for(var r=e.split(","),o=0,i=r.length;o=0&&s.splice(c,1),0===s.length&&(this.observers[a]=void 0)}}else this.observers[a]=void 0}return this.observers}},{key:"emit",value:function(e){var t,n,r=e.type,o=this.observers[r];if(o)for(var i=o.length-1;i>=0;i-=1){var a=o[i];(null===(t=a.options)||void 0===t?void 0:t.once)&&o.splice(i,1),(null===(n=a.options)||void 0===n?void 0:n.thisArg)?a.callback.apply(a.options.thisArg,[e]):a.callback(e)}}},{key:"getEventList",value:function(e,t){var n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}},{key:"indexOfListener",value:function(e,t,n){return e.findIndex((function(e){return n?e.callback===t&&ne(e.options,n):e.callback===t}))}}]),e}(),_a=new Map;function ka(e,t){_a.set(t,e)}function Sa(e){return _a.get(e)||null}function xa(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1);e.requestIdleCallback(t,n)}((function(e){(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;r=t.nodeId,_a.delete(r),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)}));var r}(t)}),{timeout:50})}function Oa(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=t;r-1){var f=new La(i);if(Object.assign(f,{eventPhase:c,nativeParams:s||{}}),"onLayout"===o){var d=s.layout,p=d.x,h=d.y,v=d.height,m=d.width;f.top=h,f.left=p,f.bottom=h+v,f.right=p+m,f.width=m,f.height=v}else{var y=u._meta.component.processEventData;y&&y(f,o,s)}u.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,f,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else Ei.apply(void 0,Ma.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Ei.apply(void 0,Ma.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Da);var Ra={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},Fa=function(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t},Wa=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},za=function(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},Ya=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=za(o,r,e+1/3),a=za(o,r,e),s=za(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8},Ka=function(e){return(parseFloat(e)%360+360)%360/360},Ga=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function qa(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ua.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Ra,e)?Ra[e]:(t=Ua.rgb.exec(e),Array.isArray(t)?(Ha(t[1])<<24|Ha(t[2])<<16|Ha(t[3])<<8|255)>>>0:(t=Ua.rgba.exec(e))?(Ha(t[1])<<24|Ha(t[2])<<16|Ha(t[3])<<8|Wa(t[4]))>>>0:(t=Ua.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Ua.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Ua.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ua.hsl.exec(e))?(255|Ya(Ka(t[1]),Ga(t[2]),Ga(t[3])))>>>0:(t=Ua.hsla.exec(e))?(Ya(Ka(t[1]),Ga(t[2]),Ga(t[3]))|Wa(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var Xa,Ja={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};function Za(){var e=Ic.Localization;return!!e&&e.direction===Xa.RTL}!function(e){e[e.RTL=1]="RTL"}(Xa||(Xa={}));var Qa=new Map;function es(e,t){Qa.set(e,t)}function ts(e){return Qa.get(e)||{}}var ns=function(){function e(){w(this,e),this.specificity=0}return k(e,[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(t||this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(t||this)}},{key:"trackChanges",value:function(e,t){this.dynamic&&t.addAttribute(e,"")}}]),e}(),rs=function(e){function t(){var e;return w(this,t),(e=c(this,t,arguments)).rarity=0,e}return f(t,e),k(t,[{key:"accumulateChanges",value:function(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}},{key:"mayMatch",value:function(e){return this.match(e)}},{key:"match",value:function(e){return!1}}]),t}(ns);function os(e){return e?" ".concat(e," "):""}var is=function(e,t){var n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0},as=function(e){function t(e){var n;return w(this,t),(n=c(this,t)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.head=e.reduce((function(e,t){return!e||e instanceof rs&&t.rarity>e.rarity?t:e}),null),n.dynamic=e.some((function(e){return e.dynamic})),n.selectors=e,n}return f(t,e),k(t,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(os(this.combinator||""))}},{key:"match",value:function(e){return!!e&&this.selectors.every((function(t){return t.match(e)}))}},{key:"mayMatch",value:function(e){return!!e&&this.selectors.every((function(t){return t.mayMatch(e)}))}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n){return n.trackChanges(e,t)}))}},{key:"lookupSort",value:function(e,t){this.head&&this.head instanceof rs&&this.head.lookupSort(e,t||this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof rs&&this.head.removeSort(e,t||this)}}]),t}(rs),ss=function(){try{return!!new RegExp("foo","y")}catch(e){return!1}}(),cs={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},us={};function ls(e,t,n){var r="";ss&&(r="gy"),us[e]||(us[e]=new RegExp(cs[e],r));var o,i=us[e];if(ss)i.lastIndex=n||0,o=i.exec(t);else{if(t=t.slice(n,t.length),!(o=i.exec(t)))return{result:null,regexp:i};i.lastIndex=n||0+o[0].length}return{result:o,regexp:i}}function fs(e,t){return function(e,t){var n=ls("universalSelectorRegEx",e,t),r=n.result,o=n.regexp;return r?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){var n=ls("simpleIdentifierSelectorRegEx",e,t),r=n.result,o=n.regexp;if(!r)return null;var i=o.lastIndex;return{value:{type:r[1],identifier:r[2]},start:t,end:i}}(e,t)||function(e,t){var n=ls("attributeSelectorRegEx",e,t),r=n.result,o=n.regexp;if(!r)return null;var i=o.lastIndex,a=r[1];return r[2]?{value:{type:"[]",property:a,test:r[2],value:r[3]||r[4]||r[5]},start:t,end:i}:{value:{type:"[]",property:a},start:t,end:i}}(e,t)}function ds(e,t){var n=fs(e,t);if(!n)return null;for(var r=n.end,o=[];n;){o.push(n.value),n=fs(e,r=n.end)}return{start:t,end:r,value:o}}function ps(e,t){var n=ls("combinatorRegEx",e,t),r=n.result,o=n.regexp;return r?{start:t,end:ss?o.lastIndex:t,value:r[1]||" "}:null}var hs=function(){function e(t,n,r){var o=this;w(this,e),t.forEach((function(e){return e.ruleSet=o,null})),this.hash=r,this.selectors=t,this.declarations=n}return k(e,[{key:"toString",value:function(){return"".concat(this.selectors.join(", ")," {").concat(this.declarations.map((function(e,t){return"".concat(0===t?" ":"").concat(e.property,": ").concat(e.value)})).join("; "),"}")}},{key:"lookupSort",value:function(e){this.selectors.forEach((function(t){return t.lookupSort(e)}))}},{key:"removeSort",value:function(e){this.selectors.forEach((function(t){return t.removeSort(e)}))}}]),e}(),vs=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return w(this,t),(n=c(this,t)).attribute="",n.test="",n.value="",n.specificity=256,n.rarity=0,n.dynamic=!0,n.attribute=e,n.test=r,n.value=o,n}return f(t,e),k(t,[{key:"match",value:function(e){if(!this.test)return!(!e||!e.attributes)&&!Ri(is(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;var t="".concat(is(e,this.attribute));if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){var n=t.split(" ");return n&&-1!==n.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith("".concat(this.value,"-")))}},{key:"toString",value:function(){return"[".concat(this.attribute).concat(os(this.test)).concat(this.test&&this.value||"","]").concat(os(this.combinator||""))}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}]),t}(rs),ms=function(e){function t(e){var n;return w(this,t),(n=c(this,t)).specificity=256,n.rarity=2,n.dynamic=!1,n.className=e,n}return f(t,e),k(t,[{key:"toString",value:function(){return".".concat(this.className).concat(os(this.combinator||""))}},{key:"match",value:function(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}},{key:"lookupSort",value:function(e,t){e.sortByClass(this.className,t||this)}},{key:"removeSort",value:function(e,t){e.removeByClass(this.className,t||this)}}]),t}(rs),ys=function(e){function t(e){var n;return w(this,t),(n=c(this,t)).specificity=65536,n.rarity=3,n.dynamic=!1,n.id=e,n}return f(t,e),k(t,[{key:"toString",value:function(){return"#".concat(this.id).concat(os(this.combinator||""))}},{key:"match",value:function(e){return!!e&&e.id===this.id}},{key:"lookupSort",value:function(e,t){e.sortById(this.id,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,null!=t?t:this)}}]),t}(rs),gs=function(e){function t(e){var n;return w(this,t),(n=c(this,t)).specificity=0,n.rarity=4,n.dynamic=!1,n.combinator=void 0,n.err=e,n}return f(t,e),k(t,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}}]),t}(rs),bs=function(e){function t(e){var n;return w(this,t),(n=c(this,t)).specificity=256,n.rarity=0,n.dynamic=!0,n.cssPseudoClass=e,n}return f(t,e),k(t,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(os(this.combinator||""))}},{key:"match",value:function(e){return!!e}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}]),t}(rs),ws=function(){function e(t){w(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return k(e,[{key:"match",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)}))?t:void 0}},{key:"mayMatch",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)}))?t:void 0}},{key:"trackChanges",value:function(e,t){var n=e;this.selectors.forEach((function(e,r){0!==r&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)}))}}]),e}(),_s=function(){function e(t){w(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return k(e,[{key:"match",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)}))?t:void 0}},{key:"mayMatch",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)}))?t:void 0}},{key:"trackChanges",value:function(e,t){var n=e;this.selectors.forEach((function(e,r){0!==r&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)}))}}]),e}(),ks=function(e){function t(e){var n;w(this,t),n=c(this,t);var r=[void 0," ",">","+"],o=[],i=[],a=[];n.selectors=e,n.selectors.reverse().forEach((function(e){if(-1===r.indexOf(e.combinator))throw new Error('Unsupported combinator "'.concat(e.combinator,'".'));void 0!==e.combinator&&" "!==e.combinator||a.push(i=[o=[]]),">"===e.combinator&&i.push(o=[]),o.push(e)})),n.groups=a.map((function(e){return new ws(e.map((function(e){return new _s(e)})))}));var s=m(e,1)[0];return n.last=s,n.specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.dynamic=e.some((function(e){return e.dynamic})),n}return f(t,e),k(t,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e){var t=e;return this.groups.every((function(n,r){if(0===r)return!!(t=n.match(e));for(var o=t;o=null==o?void 0:o.parentNode;)if(t=n.match(o))return!0;return!1}))}},{key:"lookupSort",value:function(e){this.last.lookupSort(e,this)}},{key:"removeSort",value:function(e){this.last.removeSort(e,this)}},{key:"accumulateChanges",value:function(e,t){var n=e;if(!this.dynamic)return this.match(n);var r=[],o=this.groups.every((function(t,o){if(0===o){var i=t.mayMatch(e);return r.push({left:e,right:e}),!!(n=i)}for(var a=e;a=a.parentNode;){var s=t.mayMatch(a);if(s)return r.push({left:a,right:void 0}),n=s,!0}return!1}));if(!o)return!1;if(!t)return o;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,o=e.name,i=e.type,a=e.listener;r=Ca(o)?Ea[o]:Ta(o),i===Na&&t.removeEventListener(n,r,a),i===Aa&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Ds(e,t){0}function Rs(t){if(js)if(js=!1,0!==Ls.length){var n=t.$nextTick,r=t.$options.rootViewId;n((function(){var t=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=Oi();return e.map((function(e){var n=e.declarations.filter(Os).map($s(t)),r=e.selectors.map(Es);return new hs(r,n,e.hash)}))}(e.__HIPPY_VUE_STYLES__);Is?Is.append(t):Is=new Ts(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach((function(e){Is.delete(e)})),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),Is}function Vs(e){var t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach((function(n){if(void 0===e.getAttribute(n)){var r=e.meta.component.defaultNativeProps[n];ji(r)?t[n]=r(e):t[n]=r}})),Object.keys(e.attributes).forEach((function(n){var r=e.getAttribute(n);if(e.meta.component.attributeMaps&&e.meta.component.attributeMaps[n]){var o=e.meta.component.attributeMaps[n];if("string"!=typeof o)if(ji(o))t[n]=o(r);else{var i=o.name,a=o.propsValue,s=o.jointKey;ji(a)&&(r=a(r)),s?(t[s]=t[s]||{},Object.assign(t[s],{[i]:r})):t[i]=r}else t[o]=r}else t[n]=r})),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function Bs(e,t){"TextInput"===e.meta.component.name&&Za()&&(t.textAlign||(t.textAlign="right"))}function Us(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=Za()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=Di(n.backgroundImage)))}function Hs(e){var t=Object.create(null);try{Fs().query(e).selectors.forEach((function(n){(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach((function(e){t[e.property]=e.value}))}))}catch(e){console.error("getDomCss Error:",e)}return t}function Ws(e){if(e.props.__modalFirstChild__){var t=e.props.style;Object.keys(t).some((function(e){return"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach((function(e){return delete t[e]})),!0)}))}}function zs(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(e){var t=n[e],o=t.name,i=t.type,a=t.isCapture,s=t.listener;r.push({name:o,type:i,isCapture:a,listener:s})})),t={id:e.nodeId,eventList:r}}return t}function Ys(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));if(i)r=ts(t.nodeId);else{if(r=h(h({},r=Hs(t)),t.style),$i()(),t.parentNode){var a=ts(t.parentNode.nodeId),s=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];s.forEach((function(e){!Fi(r[e])&&Fi(a[e])&&(r[e]=a[e])}))}t.meta.component.defaultNativeStyle&&(r=h(h({},t.meta.component.defaultNativeStyle),r)),es(t.nodeId,r)}var c={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.meta.component.name,props:h(h({},Vs(t)),{},{style:r}),tagName:t.tagName};Ws(c),Us(t,c,r),Bs(t,r);var u=zs(t),l=void 0,f=[c,o];return[f,u,l]}function Ks(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=[],i=[],a=[];return t.traverseChildren((function(t,r){var s=m(Ys(e,t,r),3),c=s[0],u=s[1],l=s[2];c&&o.push(c),u&&i.push(u),l&&a.push(l),"function"==typeof n&&n(t)}),r),[o,i,a]}function Gs(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}function qs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=xi();if(r){var o=r.$options,i=o.rootViewId,a=o.rootView,s=Gs(e,a)&&!e.isMounted,c=e.isMounted&&!t.isMounted;if(s||c){var u=Ks(i,s?e:t,(function(e){e.isMounted||(e.isMounted=!0),ka(e,e.nodeId)}),n),l=m(u,3),f=l[0],d=l[1],p=l[2];Ls.push({type:Ps.createNode,nodes:f,eventNodes:d,printedNodes:p}),Rs(r)}}}}function Xs(e){if(e.isMounted){var t=xi(),n=zs(e);Ls.push({type:Ps.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),Rs(t)}}function Js(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.isMounted){var n=xi(),r=n.$options.rootViewId,o=Ys(r,e,{},t),i=m(o,3),a=i[0],s=i[1];i[2];a&&(Ls.push({type:Ps.updateNode,nodes:a?[a]:[],eventNodes:s?[s]:[],printedNodes:[]}),Rs(n))}}function Zs(e){if(e.isMounted){var t=xi(),n=m(Ks(t.$options.rootViewId,e),3),r=n[0],o=n[1],i=n[2];Ls.push({type:Ps.updateNode,nodes:r,eventNodes:o,printedNodes:i}),Rs(t)}}var Qs,ec,tc=new Set,nc=!1,rc={exitApp:function(){Ic.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:function(e){return nc||(nc=!0,rc.initEventListener()),Ic.callNative("DeviceEventModule","setListenBackPress",!0),tc.add(e),{remove:function(){rc.removeListener(e)}}},removeListener:function(e){tc.delete(e),0===tc.size&&Ic.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener:function(){Qs||(Qs=xi()),Qs.$on("hardwareBackPress",(function(){var e=!0;Array.from(tc).reverse().every((function(t){return"function"!=typeof t||!t()||(e=!1,!1)})),e&&rc.exitApp()}))}},oc={exitApp:function(){},addListener:function(){return{remove:function(){}}},removeListener:function(){},initEventListener:function(){}},ic="android"===Hippy.device.platform.OS?rc:oc,ac=new Map,sc=function(){function e(t,n){w(this,e),this.eventName=t,this.listener=n}return k(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(cc(this.eventName,this.listener),this.listener=void 0)}}]),e}();function cc(e,t){if(t instanceof sc)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=ac.get(t);r&&(ec||(ec=xi()),ec.$off(n,r),ac.delete(t),ac.size<1&&Ic.callNative("NetInfo","removeListener",n))}}var uc=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"==typeof t){var n=e;return"change"===n&&(n="networkStatusDidChange"),0===ac.size&&Ic.callNative("NetInfo","addListener",n),ec||(ec=xi()),ec.$on(n,t),ac.set(t,t),new sc(n,t)}},removeEventListener:cc,fetch:function(){return Ic.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))},NetInfoRevoker:sc}),lc=Hippy,fc=lc.on,dc=lc.off,pc=lc.emit,hc=lc.bridge,vc=hc.callNative,mc=hc.callNativeWithPromise,yc=hc.callNativeWithCallbackId,gc=lc.device,bc=gc.platform,wc=bc.OS,_c=bc.Localization,kc=void 0===_c?{}:_c,Sc=gc.screen.scale,xc=lc.device,Oc=lc.document,$c=lc.register,Ac={},Nc=["%c[native]%c","color: red","color: auto"],Ec=function(e,t){var n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);var r=e.nodeId;return Ni.apply(void 0,Nc.concat(["callUIFunction",{nodeId:r,funcName:t,params:[]}])),new Promise((function(e){return Oc.callUIFunction(r,t,[],(function(t){if(!t||"object"!==x(t)||void 0===r)return e(n);var o=t.x,i=t.y,a=t.height,s=t.width;return e({top:i,left:o,width:s,height:a,bottom:i+a,right:o+s})}))}))},Ic={callNative:vc,callNativeWithPromise:mc,callNativeWithCallbackId:yc,UIManagerModule:Oc,ConsoleModule:e.ConsoleModule||e.console,on:fc,off:dc,emit:pc,PixelRatio:Sc,Platform:wc,Localization:kc,version:"3.3.0",Cookie:{getAll:function(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return mc.call(this,"network","getCookie",e)},set:function(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");var r="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");r=n.toUTCString()}vc.call(this,"network","setCookie",e,t,r)}},Clipboard:{getString:function(){return mc.call(this,"ClipboardModule","getString")},setString:function(e){vc.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!A(Ac.isIPhoneX)){var e=!1;"ios"===Ic.Platform&&(e=20!==Ic.Dimensions.screen.statusBarHeight),Ac.isIPhoneX=e}return Ac.isIPhoneX},get screenIsVertical(){return Ic.Dimensions.window.width1&&void 0!==arguments[1]||Ic.Platform;if(Number.isInteger(e))return e;var t=Ac.COLOR_PARSER||(Ac.COLOR_PARSER=Object.create(null));return t[e]||(t[e]=qa(e)),t[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:ic,ImageLoader:{getSize:function(e){return mc.call(this,"ImageLoaderModule","getSize",e)},prefetch:function(e){vc.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:uc,getElemCss:Hs},Cc=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Cc=e.__GLOBAL__.nodeId);var Tc=function(){function e(){w(this,e),this._ownerDocument=null,this._isMounted=!1,this.nodeId=((Cc+=1)%10==0&&(Cc+=1),Cc%10==0&&(Cc+=1),Cc),this.index=0,this.childNodes=[]}return k(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"firstChild",get:function(){return this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){var e=this.childNodes.length;return e?this.childNodes[e-1]:null}},{key:"meta",get:function(){return this._meta?this._meta:{}}},{key:"ownerDocument",get:function(){if(this._ownerDocument)return this._ownerDocument;for(var e=this;"DocumentNode"!==e.constructor.name&&(e=e.parentNode););return this._ownerDocument=e,e}},{key:"isMounted",get:function(){return this._isMounted},set:function(e){this._isMounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");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),r=t;return t.meta.skipAddToDom&&(r=Oa(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),r.meta.skipAddToDom?qs(this,e):qs(this,e,{refId:r.nodeId,relativeToRef:$a})}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");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),r=this.childNodes.indexOf(t),o=t;if(t.meta.skipAddToDom&&(o=Oa(this.childNodes,r)),r===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[r-1]&&(this.childNodes[r-1].nextSibling=e),this.childNodes[r+1]&&(this.childNodes[r+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);var i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),o.meta.skipAddToDom?qs(this,e):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((null==e?void 0:e.meta)&&ji(e.meta.removeChild)&&e.meta.removeChild(e,t),t&&!t.meta.skipAddToDom&&(!n||n.refId!==t.nodeId)){var r=xi(),o=r.$options.rootViewId,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},a=[[i,n]],s=[];Ls.push({printedNodes:s,type:Ps.moveNode,nodes:a,eventNodes:[]}),Rs(r)}}(this,e,{refId:o.nodeId,relativeToRef:$a})}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),qs(this,e))}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");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.");if(!e.meta.skipAddToDom){e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(t&&!t.meta.skipAddToDom){t.isMounted=!1;var n=xi(),r=n.$options.rootViewId,o={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},i=[[o,{}]],a=[];Ls.push({printedNodes:a,type:Ps.deleteNode,nodes:i,eventNodes:[]}),Rs(n)}}(0,e)}}},{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]:Dc,n=parseFloat(e),r=e||"",o=e.split("."),i=m(o,2),a=i[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Lc:r="".concat((360*n).toFixed(2));break;case Mc:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,c):i&&void 0!==jc[i]&&(r=jc[i]),r}}function nu(e){var t=m((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Ic.parseColor(n)}:void 0:{color:Ic.parseColor(n)}}function ru(e,t,n){delete n[e],ou(e,t,n);var r=t,o=e;if(0===t.indexOf("linear-gradient")){o="linearGradient";var i=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),a=[];r={},i.forEach((function(e,t){if(0===t){var n=tu(e);if(n)r.angle=n;else{r.angle="180";var o=nu(e);o&&a.push(o)}}else{var i=nu(e);i&&a.push(i)}})),r.colorStopList=a}else{var s=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(s&&s.length>1){var c=m(s,2);r=c[1]}}return[o,r]}function ou(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function iu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[eu[e]]:t}),["textShadowOffset",n.textShadowOffset]}function au(e,t,n){void 0===t&&(delete n[e],ou(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[eu[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function su(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,o=n.length;r2&&void 0!==arguments[2]?arguments[2]:{};try{var r=e,o=t;if("boolean"==typeof this.attributes[r]&&""===o&&(o=!0),void 0===r)return void(!n.notToNative&&Js(this));switch(r){case Fc:var i=new Set(o.split(" ").filter((function(e){return e.trim()})));if(Li(this.classList,i))return;return this.classList=i,void(!n.notToNative&&Zs(this));case Vc:if(o===this.id)return;return this.id=o,void(!n.notToNative&&Zs(this));case Bc:case Uc:case Hc:case Wc:if("string"!=typeof o)try{o=o.toString()}catch(e){"Property ".concat(r," must be string:").concat(e.message)}n&&n.textUpdate||(o=Vi(o)),o=Pi(o);break;case zc:if("ios"!==Ic.Platform)return;break;case Yc:case Kc:r="caret-color",o=Ic.parseColor(o);break;case Gc:r="breakStrategy";break;case qc:case Xc:r="placeholderTextColor",o=Ic.parseColor(o);break;case Jc:case Zc:r="underlineColorAndroid",o=Ic.parseColor(o);break;case Qc:var a=o;void 0!==a.color&&(a.color=Ic.parseColor(a.color)),r="nativeBackgroundAndroid",o=a}if(this.attributes[r]===o)return;this.attributes[r]=o,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&Js(this,n.notUpdateStyle)}catch(e){0}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyles",value:function(e){var t=this;e&&"object"===x(e)&&0!==Object.keys(e).length&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),Js(this))}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e,o=t;if(!this.getAttribute(Rc)){var i=this.beforeLoadStyle({property:e,value:t});o=i.value,r=i.property}if(void 0===t)return au(r,o,this.style),void(n||Js(this));switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=ru(r,o,this.style),s=m(a,2);r=s[0],o=s[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=iu(r,o,this.style),u=m(c,2);r=u[0],o=u[1];break;case"textShadowOffset":var l=o||{},f=l.x,d=void 0===f?0:f,p=l.width,h=void 0===p?0:p,v=l.y,y=void 0===v?0:v,g=l.height,b=void 0===g?0:g;o={width:d||h,height:y||b};break;default:Object.prototype.hasOwnProperty.call(Ja,r)&&(r=Ja[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?Ic.parseColor(o):Mi(o,"px")?parseFloat(o.slice(0,o.length-2)):Ti(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||Js(this))}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"repaintWithChildren",value:function(){Zs(this)}},{key:"setStyleScope",value:function(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}},{key:"styleScopeId",get:function(){return this.scopeIdList}},{key:"isTextNode",value:function(e){return(null==e?void 0:e.meta.symbol)===zi}},{key:"appendChild",value:function(e){(null==e?void 0:e.meta.symbol)===zi&&e instanceof Pc&&this.setText(e.text,{notToNative:!0}),i(l(t.prototype),"appendChild",this).call(this,e)}},{key:"insertBefore",value:function(e,n){this.isTextNode(e)&&e instanceof Pc&&this.setText(e.text,{notToNative:!0}),i(l(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"moveChild",value:function(e,n){this.isTextNode(e)&&e instanceof Pc&&this.setText(e.text,{notToNative:!0}),i(l(t.prototype),"moveChild",this).call(this,e,n)}},{key:"removeChild",value:function(e){this.isTextNode(e)&&e instanceof Pc&&this.setText("",{notToNative:!0}),i(l(t.prototype),"removeChild",this).call(this,e)}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"getNativeEventName",value:function(e){var t="on".concat(Ii(e));if(this.meta.component){var n=this.meta.component.eventNamesMap;(null==n?void 0:n[e])&&(t=n[e])}return t}},{key:"addEventListener",value:function(e,t,n){var r=this;if(this._emitter||(this._emitter=new wa(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){this.attributes.scrollEventThrottle=200}if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(Pa,e,t,n);e=o.eventNames,t=o.callback,n=o.options}this._emitter.addEventListener(e,t,n),su(e,(function(e){var t,n,o=r.getNativeEventName(e);r.events[o]?r.events[o]&&r.events[o].type!==Aa&&(r.events[o].type=Aa):r.events[o]={name:o,type:Aa,listener:(t=o,n=e,function(e){var r=e.id,o=e.currentId,i=e.params,a=e.eventPhase;Da.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:o,params:i,eventPhase:a},e)}),isCapture:!1}})),Xs(this)}},{key:"removeEventListener",value:function(e,t,n){var r=this;if(!this._emitter)return null;if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(ja,e,t,n);e=o.eventNames,t=o.callback,n=o.options}var i=this._emitter.removeEventListener(e,t,n);return su(e,(function(e){var t=r.getNativeEventName(e);r.events[t]&&(r.events[t].type=Na)})),Xs(this),i}},{key:"dispatchEvent",value:function(e,t,n){if(!(e instanceof ba))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}},{key:"getBoundingClientRect",value:function(){return Ic.measureInWindow(this)}},{key:"scrollToPosition",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;if("number"==typeof e&&"number"==typeof t){var r=n;!1===r&&(r=0),Ic.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}}},{key:"scrollTo",value:function(e,t,n){var r=n;if("object"===x(e)&&e){var o=e.left,i=e.top,a=e.behavior,s=void 0===a?"auto":a;r=e.duration,this.scrollToPosition(o,i,"none"===s?0:r)}else this.scrollToPosition(e,t,n)}},{key:"setPressed",value:function(e){Ic.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Ic.callUIFunction(this,"setHotspot",[e,t])}}]),t}(Tc),uu=function(e){function t(e){var n;return w(this,t),(n=c(this,t,["comment"])).text=e,n._meta={symbol:zi,skipAddToDom:!0},n}return f(t,e),k(t)}(cu),lu=function(e){function t(){return w(this,t),c(this,t,arguments)}return f(t,e),k(t,[{key:"getValue",value:function(){var e=this;return new Promise((function(t){return Ic.callUIFunction(e,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){Ic.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Ic.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Ic.callUIFunction(this,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){return Ic.callUIFunction(e,"isFocused",(function(e){return t(e.value)}))}))}},{key:"clear",value:function(){Ic.callUIFunction(this,"clear",[])}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}}]),t}(cu),fu=function(e){function t(){return w(this,t),c(this,t,arguments)}return f(t,e),k(t,[{key:"scrollToIndex",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];"number"==typeof e&&"number"==typeof t&&Ic.callUIFunction(this,"scrollToIndex",[e,t,n])}},{key:"scrollToPosition",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];"number"==typeof e&&"number"==typeof t&&Ic.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}]),t}(cu),du=function(e){function t(){var e;return w(this,t),(e=c(this,t)).documentElement=new cu("document"),e}return f(t,e),k(t,null,[{key:"createComment",value:function(e){return new uu(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new lu(e);case"ul":return new fu(e);default:return new cu(e)}}},{key:"createElementNS",value:function(e,t){return new cu("".concat(e,":").concat(t))}},{key:"createTextNode",value:function(e){return new Pc(e)}},{key:"createEvent",value:function(e){return new ba(e)}}]),t}(Tc),pu={create:function(e,t){hu(t)},update:function(e,t){e.data.ref!==t.data.ref&&(hu(e,!0),hu(t))},destroy:function(e){hu(e,!0)}};function hu(e,t){var n=e.data.ref;if(A(n)){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?B(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}var vu=new Te("",{},[]),mu=["create","activate","update","remove","destroy"];function yu(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&A(e.data)===A(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=A(n=e.data)&&A(n=n.attrs)&&n.type,o=A(n=t.data)&&A(n=n.attrs)&&n.type;return r===o||Jn(r)&&Jn(o)}(e,t)||N(e.isAsyncPlaceholder)&&$(t.asyncFactory.error))}function gu(e,t,n){var r,o,i={};for(r=t;r<=n;++r)A(o=e[r].key)&&(i[o]=r);return i}var bu={create:wu,update:wu,destroy:function(e){wu(e,vu)}};function wu(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===vu,a=t===vu,s=ku(e.data.directives,e.context),c=ku(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,xu(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(xu(o,"bind",t,e),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var o=e.elm;if(t&&(o=t),o){var i=(null===(n=e.data)||void 0===n?void 0:n.attrs)||{};i.__ob__&&(i=Z({},i),e.data.attrs=i),Object.keys(i).forEach((function(e){o.setAttribute(e,i[e],{notToNative:!!r.notToNative})}))}}}(t,e,{notToNative:!0}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var r=e.elm;if(t&&(r=t),r){var o=e.data.staticStyle;o&&Object.keys(o).forEach((function(e){var t=o[e];t&&r.setStyle(Mu(e),t,!!n.notToNative)}));var i=e.data.style;if(i){var a=i.__ob__;Array.isArray(i)&&(i=Du(i),e.data.style=i),a&&(i=Z({},i),e.data.style=i),Object.keys(i).forEach((function(e){r.setStyle(Mu(e),i[e],!!n.notToNative)}))}}}}(t,e,{notToNative:!0}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var r=e.data;if(r.staticClass||r.class){var o=e.elm;if(t&&(o=t),o){var i=zn(e),a=o._transitionClasses;a&&(i=Kn(i,Gn(a))),i!==o._prevClass&&(o.setAttribute("class",i,{notToNative:!!n.notToNative}),o._prevClass=i)}}}}(t,e,{notToNative:!0}))}var Uu=function(e){var t,n,r={},o=e.modules,i=e.nodeOps;for(t=0;td?h(e,$(n[y+1])?null:n[y+1].elm,n,f,y,r):f>y&&m(t,l,d)}(u,p,v,n,c):A(v)?(A(e.text)&&i.setTextContent(u,""),h(u,null,v,0,v.length-1,n)):A(p)?m(p,0,p.length-1):A(e.text)&&i.setTextContent(u,""):e.text!==t.text&&i.setTextContent(u,t.text),A(d)&&A(l=d.hook)&&A(l=l.postpatch)&&l(e,t)}}}function w(e,t,n){if(N(n)&&A(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),xa(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:Vu.concat(Ou)});function Hu(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}var Wu=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})},zu={inserted:function(e,t){"ios"===Ic.Platform&&Wu!==Hu&&(Wu=Hu),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",(function(t){var n=t.value,r=new ba("input");r.value=n,e.dispatchEvent(r)})))},update:function(e,t){var n=t.value,r=t.oldValue;e.value=n,Wu(e,n,r)}};function Yu(e,t,n,r){t?(n.data.show=!0,e.setStyle("display",r)):e.setStyle("display","none")}var Ku={bind:function(e,t,n){var r=t.value;void 0===e.style.display&&(e.style.display="block");var o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,Yu(e,r,n,o)},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&Yu(e,r,n,e.__vOriginalDisplay)},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Gu=Object.freeze({__proto__:null,model:zu,show:Ku}),qu=['%c[Hippy-Vue "3.3.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Xu=new du;Mn.$document=Xu,Mn.prototype.$document=Xu,Mn.$Document=du,Mn.$Event=ba,Mn.config.mustUseProp=function(e,t,n){var r=ga(e);return!!r.mustUseProp&&r.mustUseProp(t,n)},Mn.config.isReservedTag=pa,Mn.config.isUnknownElement=function(e){return t=e,!ha.has(ma(t));var t},Mn.compile=bi,Mn.registerElement=ya,Z(Mn.options.directives,Gu),Mn.prototype.__patch__=Uu,Mn.prototype.$mount=function(e,t){var n=this.$options;if(!n.render){var r=n.template;if(r&&"string"!=typeof r)return $e("invalid template option: ".concat(r),this),this;if(r){var o=bi(r,{delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Pe),vn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new $n(e,r,Q,{before:function(){e._isMounted&&!e._isDestroyed&&vn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,vn(e,"mounted")),e}(this,e,t)},Mn.prototype.$start=function(e,t){var n,r=this;Si(this),ji(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,_i=n),ha.forEach((function(e){Mn.component(e.meta.component.name,e.meta.component)})),$c.regist(this.$options.appName,(function(n){var o=n.__instanceId__;(r.$options.$superProps=n,r.$options.rootViewId=o,Ni.apply(void 0,qu.concat(["Start",r.$options.appName,"with rootViewId",o,n])),r.$el)&&(r.$destroy(),Si(new(Mn.extend(r.$options))(r.$options)));if(ji(t)&&t(r,n),r.$mount(),"ios"===Ic.Platform){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iPhone,n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;var r=new cu("div"),o=Ic.Dimensions.screen.statusBarHeight;Ic.screenIsVertical?r.setStyle("height",o):r.setStyle("height",0);var i=4282431619;if("number"==typeof n.backgroundColor){var a=n;i=a.backgroundColor}if(r.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){var s=new cu("img");s.setStyle("width",Ic.Dimensions.screen.width),s.setStyle("height",o),s.setAttribute("src",e.statusBarOpts.backgroundImage),r.appendChild(s)}return r.addEventListener("layout",(function(){Ic.screenIsVertical?r.setStyle("height",o):r.setStyle("height",0)})),r}(r.$options);i&&(r.$el.childNodes.length?r.$el.insertBefore(i,r.$el.childNodes[0]):r.$el.appendChild(i))}ji(e)&&e(r,n)}))};var Ju=1;Mn.component=function(e,t){return t?(T(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},Mn.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var o,i,a=e.name||t.options.name,s=function(e){this._init(e)};return(s.prototype=Object.create(t.prototype)).constructor=s,s.cid=Ju+=1,s.options=Qe(t.options,e),s.super=t,s.options.props&&(i=(o=s).options.props,Object.keys(i).forEach((function(e){return Nn(o.prototype,"_props",e)}))),s.options.computed&&function(e){var t=e.options.computed;Object.keys(t).forEach((function(n){return Cn(e.prototype,n,t[n])}))}(s),s.extend=t.extend,s.mixin=t.mixin,s.use=t.use,ie.forEach((function(e){s[e]=t[e]})),a&&(s.options.components[a]=s),s.superOptions=t.options,s.extendOptions=e,s.sealedOptions=Z({},s.options),r[n]=s,s},Mn.Native=Ic,Mn.getApp=xi,Mn.use((function(){Object.keys(da).forEach((function(e){ya(e,da[e])}))})),se.devtools&&ke&&ke.emit("init",Mn);Mn.config._setBeforeRenderToNative=function(e,t){ji(e)&&(1===t?ki=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};var Zu,Qu=new Proxy(Mn,{construct:function(e,t){var n=function(e,t,n){if(u())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&d(o,n.prototype),o}(e,y(t));return n}}),el=function(){function e(t,n,r){var o=this;w(this,e),this.webSocketId=-1,Zu=xi(),this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var i=h({},r);if(Zu.$on("hippyWebsocketEvents",this.onWebSocketEvent),!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");Array.isArray(n)&&n.length>0?i["Sec-WebSocket-Protocol"]=n.join(","):"string"==typeof n&&(i["Sec-WebSocket-Protocol"]=n);var a={headers:i,url:t};Ic.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(o.webSocketId=e.id)}))}return k(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Ic.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(x(e)));Ic.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"===x(e)&&e.id===this.webSocketId){var t=e.type;if("string"==typeof t){"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Zu.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];ji(n)&&n(e.data)}}}}]),e}();e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=el,Qu.config.silent=!1,Qu.config.trimWhitespace=!0,function(e){yi=e}(Qu)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */n.d(t,"default",(function(){return nl}));var $=Object.freeze({});function A(e){return null==e}function N(e){return null!=e}function E(e){return!0===e}function I(e){return"string"==typeof e||"number"==typeof e||"symbol"===O(e)||"boolean"==typeof e}function C(e){return null!==e&&"object"===O(e)}var T=Object.prototype.toString;function P(e){return"[object Object]"===T.call(e)}function j(e){return"[object RegExp]"===T.call(e)}function L(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function M(e){return N(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e){return null==e?"":Array.isArray(e)||P(e)&&e.toString===T?JSON.stringify(e,null,2):String(e)}function R(e){var t=parseFloat(e);return isNaN(t)?e:t}function F(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var H=Object.prototype.hasOwnProperty;function W(e,t){return H.call(e,t)}function z(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var Y=/-(\w)/g,K=z((function(e){return e.replace(Y,(function(e,t){return t?t.toUpperCase():""}))})),G=z((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),q=/\B([A-Z])/g,X=z((function(e){return e.replace(q,"-$1").toLowerCase()}));var J=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function Z(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function Q(e,t){for(var n in t)e[n]=t[n];return e}function ee(e,t,n){}var te=function(e,t,n){return!1},ne=function(e){return e};function re(e,t){if(e===t)return!0;var n=C(e),r=C(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return re(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return re(e[n],t[n])}))}catch(e){return!1}}function oe(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=new Pe;return t.text=e,t.isComment=!0,t};function Le(e){return new Pe(void 0,void 0,void 0,String(e))}function Me(e){var t=new Pe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var De=Array.prototype,Re=Object.create(De);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=De[e];fe(Re,e,(function(){for(var n=arguments.length,r=new Array(n),o=0;o-1)if(i&&!W(o,"default"))a=!1;else if(""===a||a===X(e)){var c=at(String,o.type);(c<0||s0&&(Nt((o=e(o,"".concat(n||"","_").concat(r)))[0])&&Nt(a)&&(s[i]=Le(a.text+o[0].text),o.shift()),s.push.apply(s,o)):I(o)?Nt(a)?s[i]=Le(a.text+o):""!==o&&s.push(Le(o)):Nt(o)&&Nt(a)?s[i]=Le(a.text+o.text):(E(t._isVList)&&N(o.tag)&&A(o.key)&&N(n)&&(o.key="__vlist".concat(n,"_").concat(r,"__")),s.push(o)));return s}(e):void 0}function Nt(e){return N(e)&&N(e.text)&&!1===e.isComment}function Et(e,t){if(e){for(var n=Object.create(null),r=$e?Reflect.ownKeys(e):Object.keys(e),o=0;o0,i=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==$&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=jt(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=Lt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),fe(r,"$stable",i),fe(r,"$key",a),fe(r,"$hasNormal",o),r}function jt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"===O(e)&&!Array.isArray(e)?[e]:At(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Tt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Lt(e,t){return function(){return e[t]}}function Mt(e,t){var n,r,o,i,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,o=e.length;rdocument.createEvent("Event").timeStamp&&(Sn=function(){return xn.now()})}function On(){var e,t;for(Sn(),_n=!0,yn.sort((function(e,t){return e.id-t.id})),kn=0;knkn&&yn[n].id>e.id;)n--;yn.splice(n+1,0,e)}else yn.push(e);wn||(wn=!0,bt(On))}}(this)}},{key:"run",value:function(){if(this.active){var e=this.get();if(e!==this.value||C(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');ct(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}},{key:"evaluate",value:function(){this.value=this.get(),this.dirty=!1}},{key:"depend",value:function(){for(var e=this.deps.length;e--;)this.deps[e].depend()}},{key:"teardown",value:function(){if(this.active){this.vm._isBeingDestroyed||U(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}}}])}(),Nn={enumerable:!0,configurable:!0,get:ee,set:ee};function En(e,t,n){Nn.get=function(){return this[t][n]},Nn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Nn)}function In(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];e.$parent&&Be(!1);var i=function(i){o.push(i);var a=nt(i,t,n,e);We(r,i,a),i in e||En(e,"_props",i)};for(var a in t)i(a);Be(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?ee:J(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;P(t=e._data="function"==typeof t?function(e,t){Ce();try{return e.call(t,t)}catch(e){return st(e,t,"data()"),{}}finally{Te()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);for(;o--;){var i=n[o];0,r&&W(r,i)||le(i)||En(e,"_data",i)}He(t,!0)}(e):He(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null);for(var r in t){var o=t[r],i="function"==typeof o?o:o.get;0,n[r]=new An(e,i||ee,ee,Cn),r in e||Tn(e,r,o)}}(e,t.computed),t.watch&&t.watch!==we&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!j(e)&&e.test(t)}function Bn(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!t(s)&&Un(n,i,r,o)}}}function Un(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,U(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Ln++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=et(Mn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&dn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=It(t._renderChildren,r),e.$scopedSlots=$,e._c=function(t,n,r,o){return on(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return on(e,t,n,r,o,!0)};var o=n&&n.data;We(e,"$attrs",o&&o.attrs||$,null,!0),We(e,"$listeners",t._parentListeners||$,null,!0)}(t),mn(t,"beforeCreate"),function(e){var t=Et(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach((function(n){We(e,n,t[n])})),Be(!0))}(t),In(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),mn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Dn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ze,e.prototype.$delete=Ye,e.prototype.$watch=function(e,t,n){if(P(t))return jn(this,e,t,n);(n=n||{}).user=!0;var r=new An(this,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');Ce(),ct(t,this,[r.value],this,o),Te()}return function(){r.teardown()}}}(Dn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?Z(n):n;for(var r=Z(arguments,1),o='event handler for "'.concat(e,'"'),i=0,a=n.length;iparseInt(this.max)&&Un(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Un(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Bn(e,(function(e){return Vn(t,e)}))})),this.$watch("exclude",(function(t){Bn(e,(function(e){return!Vn(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t-1)return this;var n=Z(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=et(this.options,e),this}}(e),Rn(e),function(e){ae.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&P(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Dn),Object.defineProperty(Dn.prototype,"$isServer",{get:ke}),Object.defineProperty(Dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Dn,"FunctionalRenderContext",{value:Jt}),Dn.version="2.6.14",F("style,class");var zn=F("input,textarea,option,select,progress");function Yn(e){for(var t=e.data,n=e,r=e;N(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Kn(r.data,t));for(;N(n=n.parent);)n&&n.data&&(t=Kn(t,n.data));return function(e,t){if(N(e)||N(t))return Gn(e,qn(t));return""}(t.staticClass,t.class)}function Kn(e,t){return{staticClass:Gn(e.staticClass,t.staticClass),class:N(e.class)?[e.class,t.class]:t.class}}function Gn(e,t){return e?t?e+" "+t:e:t||""}function qn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r=0&&" "===(v=e.charAt(h));h--);v&&Qn.test(v)||(u=!0)}}else void 0===o?(p=r+1,o=e.slice(0,r).trim()):m();function m(){(i||(i=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===o?o=e.slice(0,r).trim():0!==p&&m(),i)for(r=0;r1&&(t[r[0].trim()]=r[1].trim())}})),t}));var br={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=hr(e,"style");n&&(e.staticStyle=JSON.stringify(gr(n)));var r=pr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}};var wr,_r,kr,Sr,xr,Or,$r=function(e){return e},Ar=F("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Nr=F("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Er=F("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ir=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Cr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Tr="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(ue.source,"]*"),Pr="((?:".concat(Tr,"\\:)?").concat(Tr,")"),jr=new RegExp("^<".concat(Pr)),Lr=/^\s*(\/?)>/,Mr=new RegExp("^<\\/".concat(Pr,"[^>]*>")),Dr=/^]+>/i,Rr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Hr=/&(?:lt|gt|quot|amp|#39);/g,Wr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,zr=F("pre,textarea",!0),Yr=function(e,t){return e&&zr(e)&&"\n"===t[0]};function Kr(e,t){var n=t?Wr:Hr;return e.replace(n,(function(e){return Ur[e]}))}function Gr(e,t){for(var n,r,o,i=[],a=t.expectHTML,s=t.isUnaryTag||te,c=t.canBeLeftOpenTag||te,u=0,l=function(){if(n=e,r&&Vr(r)){var o=0,l=r.toLowerCase(),p=Br[l]||(Br[l]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(p,(function(e,n,r){return o=r.length,Vr(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Yr(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));u+=e.length-h.length,e=h,d(l,u-o,u)}else{var v,m,y,g=e.indexOf("<");if(0===g){if(Rr.test(e)){var b=e.indexOf("--\x3e");if(b>=0)return t.shouldKeepComment&&t.comment(e.substring(4,b),u,u+b+3),f(b+3),0}if(Fr.test(e)){var w=e.indexOf("]>");if(w>=0)return f(w+2),0}var _=e.match(Dr);if(_)return f(_[0].length),0;var k=e.match(Mr);if(k){var S=u;return f(k[0].length),d(k[1],S,u),0}var x=function(){var t=e.match(jr);if(t){var n,r,o={tagName:t[1],attrs:[],start:u};for(f(t[0].length);!(n=e.match(Lr))&&(r=e.match(Cr)||e.match(Ir));)r.start=u,f(r[0].length),r.end=u,o.attrs.push(r);if(n)return o.unarySlash=n[1],f(n[0].length),o.end=u,o}}();if(x)return function(e){var n=e.tagName,o=e.unarySlash;a&&("p"===r&&Er(n)&&d(r),c(n)&&r===n&&d(n));for(var u=s(n)||!!o,l=e.attrs.length,f=new Array(l),p=0;p=0){for(m=e.slice(g);!(Mr.test(m)||jr.test(m)||Rr.test(m)||Fr.test(m)||(y=m.indexOf("<",1))<0);)g+=y,m=e.slice(g);v=e.substring(0,g)}g<0&&(v=e),v&&f(v.length),t.chars&&v&&t.chars(v,u-v.length,u)}if(e===n)return t.chars&&t.chars(e),1};e&&(0===(o=l())||1!==o););function f(t){u+=t,e=e.substring(t)}function d(e,n,o){var a,s;if(null==n&&(n=u),null==o&&(o=u),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)t.end&&t.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}d()}function qr(e,t,n){var r=n||{},o=r.number,i="$$v";r.trim&&(i="(typeof ".concat("$$v"," === 'string'")+"? ".concat("$$v",".trim()")+": ".concat("$$v",")")),o&&(i="_n(".concat(i,")"));var a=Xr(t,i);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat("$$v",") {").concat(a,"}")}}function Xr(e,t){var n=function(e){if(e=e.trim(),wr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Sr),key:'"'+e.slice(Sr+1)+'"'}:{exp:e,key:null};_r=e,Sr=xr=Or=0;for(;!Zr();)Qr(kr=Jr())?to(kr):91===kr&&eo(kr);return{exp:e.slice(0,xr),key:e.slice(xr+1,Or)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function Jr(){return _r.charCodeAt(++Sr)}function Zr(){return Sr>=wr}function Qr(e){return 34===e||39===e}function eo(e){var t=1;for(xr=Sr;!Zr();)if(Qr(e=Jr()))to(e);else if(91===e&&t++,93===e&&t--,0===t){Or=Sr;break}}function to(e){for(var t=e;!Zr()&&(e=Jr())!==t;);}var no,ro,oo,io,ao,so,co,uo,lo=/^@|^v-on:/,fo=o.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,po=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ho=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,vo=/^\(|\)$/g,mo=/^\[.*\]$/,yo=/:(.*)$/,go=/^:|^\.|^v-bind:/,bo=/^\./,wo=/\.[^.\]]+(?=[^\]]*$)/g,_o=/^v-slot(:|$)|^#/,ko=/[\r\n]/,So=/[ \f\t\r\n]+/g,xo=z($r);function Oo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:To(t),rawAttrsMap:{},parent:n,children:[]}}function $o(e,t){no=t.warn||ir,so=t.isPreTag||te,co=t.mustUseProp||te,uo=t.getTagNamespace||te;var n=t.isReservedTag||te;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),oo=ar(t.modules,"transformNode"),io=ar(t.modules,"preTransformNode"),ao=ar(t.modules,"postTransformNode"),ro=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=Ao(e,t)),i.length||e===r||r.if&&(e.elseif||e.else)&&Eo(r,{exp:e.elseif,block:e}),o&&!e.forbidden)if(e.elseif||e.else)a=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(o.children))&&s.if&&Eo(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[n]=e}o.children.push(e),e.parent=o}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),f(e),e.pre&&(c=!1),so(e.tag)&&(u=!1);for(var l=0;lc&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=er(r[1].trim());a.push("_s(".concat(u,")")),s.push({"@binding":u}),c=o+r[0].length}return c-1")+("true"===i?":(".concat(t,")"):":_q(".concat(t,",").concat(i,")"))),dr(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(i,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+o+")":o,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Xr(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Xr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Xr(t,"$$c"),"}"),null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=pr(e,"value")||"null";o=r?"_n(".concat(o,")"):o,sr(e,"checked","_q(".concat(t,",").concat(o,")")),dr(e,"change",Xr(t,o),null,!0)}(e,r,o);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type;0;var o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?"__r":"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n(".concat(l,")"));var f=Xr(t,l);c&&(f="if($event.target.composing)return;".concat(f));sr(e,"value","(".concat(t,")")),dr(e,u,f,null,!0),(s||a)&&dr(e,"blur","$forceUpdate()")}(e,r,o);else{if(!ce.isReservedTag(i))return qr(e,r,o),!1}return!0},text:function(e,t){t.value&&sr(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&sr(e,"innerHTML","_s(".concat(t.value,")"),t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Ar,mustUseProp:function(e,t,n){return"value"===n&&zn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},canBeLeftOpenTag:Nr,isReservedTag:function(e){return Xn(e)||Jn(e)},getTagNamespace:function(e){return Jn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(Mo)},Vo=z((function(e){return F("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Bo(e,t){e&&(Do=Vo(t.staticKeys||""),Ro=t.isReservedTag||te,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||V(e.tag)||!Ro(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Do)))}(t),1===t.type){if(!Ro(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Ho=/\([^)]*?\);*$/,Wo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,zo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Yo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ko=function(e){return"if(".concat(e,")return null;")},Go={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ko("$event.target !== $event.currentTarget"),ctrl:Ko("!$event.ctrlKey"),shift:Ko("!$event.shiftKey"),alt:Ko("!$event.altKey"),meta:Ko("!$event.metaKey"),left:Ko("'button' in $event && $event.button !== 0"),middle:Ko("'button' in $event && $event.button !== 1"),right:Ko("'button' in $event && $event.button !== 2")};function qo(e,t){var n=t?"nativeOn:":"on:",r="",o="";for(var i in e){var a=Xo(e[i]);e[i]&&e[i].dynamic?o+="".concat(i,",").concat(a,","):r+='"'.concat(i,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),o?n+"_d(".concat(r,",[").concat(o.slice(0,-1),"])"):n+r}function Xo(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Xo(e)})).join(","),"]");var t=Wo.test(e.value),n=Uo.test(e.value),r=Wo.test(e.value.replace(Ho,""));if(e.modifiers){var o="",i="",a=[],s=function(){if(Go[c])i+=Go[c],zo[c]&&a.push(c);else if("exact"===c){var t=e.modifiers;i+=Ko(["ctrl","shift","alt","meta"].filter((function(e){return!t[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else a.push(c)};for(var c in e.modifiers)s();a.length&&(o+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(Jo).join("&&"),")return null;")}(a)),i&&(o+=i);var u=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(o).concat(u,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function Jo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=zo[e],r=Yo[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Zo={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:ee},Qo=S((function e(t){_(this,e),this.options=t,this.warn=t.warn||ir,this.transforms=ar(t.modules,"transformCode"),this.dataGenFns=ar(t.modules,"genData"),this.directives=Q(Q({},Zo),t.directives);var n=t.isReservedTag||te;this.maybeComponent=function(e){return!!e.component||!n(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}));function ei(e,t){var n=new Qo(t),r=e?"script"===e.tag?"null":ti(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function ti(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ni(e,t);if(e.once&&!e.onceProcessed)return ri(e,t);if(e.for&&!e.forProcessed)return ii(e,t);if(e.if&&!e.ifProcessed)return oi(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ui(e,t),o="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),i=e.attrs||e.dynamicAttrs?di((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:K(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!i&&!a||r||(o+=",null");i&&(o+=",".concat(i));a&&(o+="".concat(i?"":",null",",").concat(a));return o+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ui(t,n,!0);return"_c(".concat(e,",").concat(ai(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=ai(e,t));var o=e.inlineTemplate?null:ui(e,t,!0);n="_c('".concat(e.tag,"'").concat(r?",".concat(r):"").concat(o?",".concat(o):"",")")}for(var i=0;i>>0}(a)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var i=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=ei(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}(e,t);i&&(n+="".concat(i,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(di(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function si(e){return 1===e.type&&("slot"===e.tag||e.children.some(si))}function ci(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return oi(e,t,ci,"null");if(e.for&&!e.forProcessed)return ii(e,t,ci);var r="_empty_"===e.slotScope?"":String(e.slotScope),o="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(ui(e,t)||"undefined",":undefined"):ui(e,t)||"undefined":ti(e,t),"}"),i=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(o).concat(i,"}")}function ui(e,t,n,r,o){var i=e.children;if(i.length){var a=i[0];if(1===i.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return"".concat((r||ti)(a,t)).concat(s)}var c=n?function(e,t){for(var n=0,r=0;re.length)&&(r=e.length),e.slice(r-t.length,r)===t}function Ri(e){var t=e;return/^assets/.test(t)&&(t="".concat("hpfile://","./").concat(t)),t}function Fi(e){return null==e}function Vi(e){return"string"==typeof e?""!==e.trim():null!=e}function Bi(e){return"string"!=typeof e?e:!gi||void 0===gi.config.trimWhitespace||gi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}var Ui=Symbol.for("View"),Hi=Symbol.for("Image"),Wi=Symbol.for("ListView"),zi=Symbol.for("ListViewItem"),Yi=Symbol.for("Text"),Ki=Symbol.for("TextInput"),Gi=Symbol.for("WebView"),qi=Symbol.for("VideoPlayer"),Xi={[Ui]:"View",[Hi]:"Image",[Wi]:"ListView",[zi]:"ListViewItem",[Yi]:"Text",[Ki]:"TextInput",[Gi]:"WebView",[qi]:"VideoPlayer"};function Ji(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}])}(),_a=function(){return S((function e(t){_(this,e),this.element=t,this.observers={}}),[{key:"getEventListeners",value:function(){return this.observers}},{key:"addEventListener",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!Li(t))throw new TypeError("callback must be function.");for(var r=e.split(","),o=0,i=r.length;o=0&&s.splice(c,1),0===s.length&&(this.observers[a]=void 0)}}else this.observers[a]=void 0}return this.observers}},{key:"emit",value:function(e){var t,n,r=e.type,o=this.observers[r];if(o)for(var i=o.length-1;i>=0;i-=1){var a=o[i];(null===(t=a.options)||void 0===t?void 0:t.once)&&o.splice(i,1),(null===(n=a.options)||void 0===n?void 0:n.thisArg)?a.callback.apply(a.options.thisArg,[e]):a.callback(e)}}},{key:"getEventList",value:function(e,t){var n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}},{key:"indexOfListener",value:function(e,t,n){return e.findIndex((function(e){return n?e.callback===t&&re(e.options,n):e.callback===t}))}}])}(),ka=new Map;function Sa(e,t){ka.set(t,e)}function xa(e){return ka.get(e)||null}function Oa(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1);e.requestIdleCallback(t,n)}((function(e){(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;r=t.nodeId,ka.delete(r),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)}));var r}(t)}),{timeout:50})}function $a(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=t;r-1){var f=new Da(i);if(Object.assign(f,{eventPhase:c,nativeParams:s||{}}),"onLayout"===o){var d=s.layout,p=d.x,h=d.y,v=d.height,m=d.width;f.top=h,f.left=p,f.bottom=h+v,f.right=p+m,f.width=m,f.height=v}else{var y=u._meta.component.processEventData;y&&y(f,o,s)}u.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,f,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else Ii.apply(void 0,Ra.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Ii.apply(void 0,Ra.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Fa);var Va={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},Ba=function(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t},Ya=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},Ka=function(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},Ga=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Ka(o,r,e+1/3),a=Ka(o,r,e),s=Ka(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8},qa=function(e){return(parseFloat(e)%360+360)%360/360},Xa=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function Ja(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Wa.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Va,e)?Va[e]:(t=Wa.rgb.exec(e),Array.isArray(t)?(za(t[1])<<24|za(t[2])<<16|za(t[3])<<8|255)>>>0:(t=Wa.rgba.exec(e))?(za(t[1])<<24|za(t[2])<<16|za(t[3])<<8|Ya(t[4]))>>>0:(t=Wa.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Wa.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Wa.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Wa.hsl.exec(e))?(255|Ga(qa(t[1]),Xa(t[2]),Xa(t[3])))>>>0:(t=Wa.hsla.exec(e))?(Ga(qa(t[1]),Xa(t[2]),Xa(t[3]))|Ya(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var Za,Qa={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};function es(){var e=Tc.Localization;return!!e&&e.direction===Za.RTL}!function(e){e[e.RTL=1]="RTL"}(Za||(Za={}));var ts=new Map;function ns(e,t){ts.set(e,t)}function rs(e){return ts.get(e)||{}}var os=function(){return S((function e(){_(this,e),this.specificity=0}),[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(t||this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(t||this)}},{key:"trackChanges",value:function(e,t){this.dynamic&&t.addAttribute(e,"")}}])}(),is=function(e){function t(){var e;return _(this,t),(e=u(this,t,arguments)).rarity=0,e}return d(t,e),S(t,[{key:"accumulateChanges",value:function(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}},{key:"mayMatch",value:function(e){return this.match(e)}},{key:"match",value:function(e){return!1}}])}(os);function as(e){return e?" ".concat(e," "):""}var ss=function(e,t){var n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0},cs=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.head=e.reduce((function(e,t){return!e||e instanceof is&&t.rarity>e.rarity?t:e}),null),n.dynamic=e.some((function(e){return e.dynamic})),n.selectors=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(as(this.combinator||""))}},{key:"match",value:function(e){return!!e&&this.selectors.every((function(t){return t.match(e)}))}},{key:"mayMatch",value:function(e){return!!e&&this.selectors.every((function(t){return t.mayMatch(e)}))}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n){return n.trackChanges(e,t)}))}},{key:"lookupSort",value:function(e,t){this.head&&this.head instanceof is&&this.head.lookupSort(e,t||this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof is&&this.head.removeSort(e,t||this)}}])}(is),us=function(){try{return!!new RegExp("foo","y")}catch(e){return!1}}(),ls={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},fs={};function ds(e,t,n){var r="";us&&(r="gy"),fs[e]||(fs[e]=new RegExp(ls[e],r));var o,i=fs[e];if(us)i.lastIndex=n||0,o=i.exec(t);else{if(t=t.slice(n,t.length),!(o=i.exec(t)))return{result:null,regexp:i};i.lastIndex=n||0+o[0].length}return{result:o,regexp:i}}function ps(e,t){return function(e,t){var n=ds("universalSelectorRegEx",e,t),r=n.result,o=n.regexp;return r?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){var n=ds("simpleIdentifierSelectorRegEx",e,t),r=n.result,o=n.regexp;if(!r)return null;var i=o.lastIndex;return{value:{type:r[1],identifier:r[2]},start:t,end:i}}(e,t)||function(e,t){var n=ds("attributeSelectorRegEx",e,t),r=n.result,o=n.regexp;if(!r)return null;var i=o.lastIndex,a=r[1];return r[2]?{value:{type:"[]",property:a,test:r[2],value:r[3]||r[4]||r[5]},start:t,end:i}:{value:{type:"[]",property:a},start:t,end:i}}(e,t)}function hs(e,t){var n=ps(e,t);if(!n)return null;for(var r=n.end,o=[];n;){o.push(n.value),n=ps(e,r=n.end)}return{start:t,end:r,value:o}}function vs(e,t){var n=ds("combinatorRegEx",e,t),r=n.result,o=n.regexp;return r?{start:t,end:us?o.lastIndex:t,value:r[1]||" "}:null}var ms=function(){return S((function e(t,n,r){var o=this;_(this,e),t.forEach((function(e){return e.ruleSet=o,null})),this.hash=r,this.selectors=t,this.declarations=n}),[{key:"toString",value:function(){return"".concat(this.selectors.join(", ")," {").concat(this.declarations.map((function(e,t){return"".concat(0===t?" ":"").concat(e.property,": ").concat(e.value)})).join("; "),"}")}},{key:"lookupSort",value:function(e){this.selectors.forEach((function(t){return t.lookupSort(e)}))}},{key:"removeSort",value:function(e){this.selectors.forEach((function(t){return t.removeSort(e)}))}}])}(),ys=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return _(this,t),(n=u(this,t)).attribute="",n.test="",n.value="",n.specificity=256,n.rarity=0,n.dynamic=!0,n.attribute=e,n.test=r,n.value=o,n}return d(t,e),S(t,[{key:"match",value:function(e){if(!this.test)return!(!e||!e.attributes)&&!Fi(ss(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;var t="".concat(ss(e,this.attribute));if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){var n=t.split(" ");return n&&-1!==n.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith("".concat(this.value,"-")))}},{key:"toString",value:function(){return"[".concat(this.attribute).concat(as(this.test)).concat(this.test&&this.value||"","]").concat(as(this.combinator||""))}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}])}(is),gs=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=256,n.rarity=2,n.dynamic=!1,n.className=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return".".concat(this.className).concat(as(this.combinator||""))}},{key:"match",value:function(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}},{key:"lookupSort",value:function(e,t){e.sortByClass(this.className,t||this)}},{key:"removeSort",value:function(e,t){e.removeByClass(this.className,t||this)}}])}(is),bs=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=65536,n.rarity=3,n.dynamic=!1,n.id=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return"#".concat(this.id).concat(as(this.combinator||""))}},{key:"match",value:function(e){return!!e&&e.id===this.id}},{key:"lookupSort",value:function(e,t){e.sortById(this.id,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,null!=t?t:this)}}])}(is),ws=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=0,n.rarity=4,n.dynamic=!1,n.combinator=void 0,n.err=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}}])}(is),_s=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=256,n.rarity=0,n.dynamic=!0,n.cssPseudoClass=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(as(this.combinator||""))}},{key:"match",value:function(e){return!!e}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}])}(is),ks=function(){return S((function e(t){_(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)}))?t:void 0}},{key:"mayMatch",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)}))?t:void 0}},{key:"trackChanges",value:function(e,t){var n=e;this.selectors.forEach((function(e,r){0!==r&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)}))}}])}(),Ss=function(){return S((function e(t){_(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)}))?t:void 0}},{key:"mayMatch",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)}))?t:void 0}},{key:"trackChanges",value:function(e,t){var n=e;this.selectors.forEach((function(e,r){0!==r&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)}))}}])}(),xs=function(e){function t(e){var n;_(this,t),n=u(this,t);var r=[void 0," ",">","+"],o=[],i=[],a=[];n.selectors=e,n.selectors.reverse().forEach((function(e){if(-1===r.indexOf(e.combinator))throw new Error('Unsupported combinator "'.concat(e.combinator,'".'));void 0!==e.combinator&&" "!==e.combinator||a.push(i=[o=[]]),">"===e.combinator&&i.push(o=[]),o.push(e)})),n.groups=a.map((function(e){return new ks(e.map((function(e){return new Ss(e)})))}));var s=y(e,1)[0];return n.last=s,n.specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.dynamic=e.some((function(e){return e.dynamic})),n}return d(t,e),S(t,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e){var t=e;return this.groups.every((function(n,r){if(0===r)return!!(t=n.match(e));for(var o=t;o=null==o?void 0:o.parentNode;)if(t=n.match(o))return!0;return!1}))}},{key:"lookupSort",value:function(e){this.last.lookupSort(e,this)}},{key:"removeSort",value:function(e){this.last.removeSort(e,this)}},{key:"accumulateChanges",value:function(e,t){var n=e;if(!this.dynamic)return this.match(n);var r=[],o=this.groups.every((function(t,o){if(0===o){var i=t.mayMatch(e);return r.push({left:e,right:e}),!!(n=i)}for(var a=e;a=a.parentNode;){var s=t.mayMatch(a);if(s)return r.push({left:a,right:void 0}),n=s,!0}return!1}));if(!o)return!1;if(!t)return o;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,o=e.name,i=e.type,a=e.listener;r=Pa(o)?Ca[o]:ja(o),i===Ia&&t.removeEventListener(n,r,a),i===Ea&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Fs(e,t){0}function Vs(t){if(Ms)if(Ms=!1,0!==Ds.length){var n=t.$nextTick,r=t.$options.rootViewId;n((function(){var t=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=$i();return e.map((function(e){var n=e.declarations.filter(As).map(Ns(t)),r=e.selectors.map(Cs);return new ms(r,n,e.hash)}))}(e.__HIPPY_VUE_STYLES__);Ts?Ts.append(t):Ts=new js(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach((function(e){Ts.delete(e)})),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),Ts}function Us(e){var t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach((function(n){if(void 0===e.getAttribute(n)){var r=e.meta.component.defaultNativeProps[n];Li(r)?t[n]=r(e):t[n]=r}})),Object.keys(e.attributes).forEach((function(n){var r=e.getAttribute(n);if(e.meta.component.attributeMaps&&e.meta.component.attributeMaps[n]){var o=e.meta.component.attributeMaps[n];if("string"!=typeof o)if(Li(o))t[n]=o(r);else{var i=o.name,a=o.propsValue,s=o.jointKey;Li(a)&&(r=a(r)),s?(t[s]=t[s]||{},Object.assign(t[s],{[i]:r})):t[i]=r}else t[o]=r}else t[n]=r})),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function Hs(e,t){"TextInput"===e.meta.component.name&&es()&&(t.textAlign||(t.textAlign="right"))}function Ws(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=es()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=Ri(n.backgroundImage)))}function zs(e){var t=Object.create(null);try{Bs().query(e).selectors.forEach((function(n){(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach((function(e){t[e.property]=e.value}))}))}catch(e){console.error("getDomCss Error:",e)}return t}function Ys(e){if(e.props.__modalFirstChild__){var t=e.props.style;Object.keys(t).some((function(e){return"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach((function(e){return delete t[e]})),!0)}))}}function Ks(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(e){var t=n[e],o=t.name,i=t.type,a=t.isCapture,s=t.listener;r.push({name:o,type:i,isCapture:a,listener:s})})),t={id:e.nodeId,eventList:r}}return t}function Gs(e,t){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));if(a)o=r=rs(t.nodeId);else{r=v(v({},r=zs(t)),t.style),Ai()();var s=Object.assign({},r);if(t.parentNode){var c=rs(t.parentNode.nodeId),u=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];u.forEach((function(e){!Vi(r[e])&&Vi(c[e])&&(r[e]=c[e])}))}ns(t.nodeId,r),o=Na(t)?r:s,t.meta.component.defaultNativeStyle&&(o=v(v({},t.meta.component.defaultNativeStyle),o))}var l={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.meta.component.name,props:v(v({},Us(t)),{},{style:o}),tagName:t.tagName};Ys(l),Ws(t,l,o),Hs(t,o);var f=Ks(t),d=void 0,p=[l,i];return[p,f,d]}function qs(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=[],i=[],a=[];return t.traverseChildren((function(t,r){var s=y(Gs(e,t,r),3),c=s[0],u=s[1],l=s[2];c&&o.push(c),u&&i.push(u),l&&a.push(l),"function"==typeof n&&n(t)}),r),[o,i,a]}function Xs(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}function Js(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=Oi();if(r){var o=r.$options,i=o.rootViewId,a=o.rootView,s=Xs(e,a)&&!e.isMounted,c=e.isMounted&&!t.isMounted;if(s||c){var u=qs(i,s?e:t,(function(e){e.isMounted||(e.isMounted=!0),Sa(e,e.nodeId)}),n),l=y(u,3),f=l[0],d=l[1],p=l[2];Ds.push({type:Ls.createNode,nodes:f,eventNodes:d,printedNodes:p}),Vs(r)}}}}function Zs(e){if(e.isMounted){var t=Oi(),n=Ks(e);Ds.push({type:Ls.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),Vs(t)}}function Qs(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.isMounted){var n=Oi(),r=n.$options.rootViewId,o=Gs(r,e,{},t),i=y(o,3),a=i[0],s=i[1];i[2];a&&(Ds.push({type:Ls.updateNode,nodes:a?[a]:[],eventNodes:s?[s]:[],printedNodes:[]}),Vs(n))}}function ec(e){if(e.isMounted){var t=Oi(),n=y(qs(t.$options.rootViewId,e),3),r=n[0],o=n[1],i=n[2];Ds.push({type:Ls.updateNode,nodes:r,eventNodes:o,printedNodes:i}),Vs(t)}}var tc,nc,rc=new Set,oc=!1,ic={exitApp:function(){Tc.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:function(e){return oc||(oc=!0,ic.initEventListener()),Tc.callNative("DeviceEventModule","setListenBackPress",!0),rc.add(e),{remove:function(){ic.removeListener(e)}}},removeListener:function(e){rc.delete(e),0===rc.size&&Tc.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener:function(){tc||(tc=Oi()),tc.$on("hardwareBackPress",(function(){var e=!0;Array.from(rc).reverse().every((function(t){return"function"!=typeof t||!t()||(e=!1,!1)})),e&&ic.exitApp()}))}},ac={exitApp:function(){},addListener:function(){return{remove:function(){}}},removeListener:function(){},initEventListener:function(){}},sc="android"===Hippy.device.platform.OS?ic:ac,cc=new Map,uc=function(){return S((function e(t,n){_(this,e),this.eventName=t,this.listener=n}),[{key:"remove",value:function(){this.eventName&&this.listener&&(lc(this.eventName,this.listener),this.listener=void 0)}}])}();function lc(e,t){if(t instanceof uc)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=cc.get(t);r&&(nc||(nc=Oi()),nc.$off(n,r),cc.delete(t),cc.size<1&&Tc.callNative("NetInfo","removeListener",n))}}var fc=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"==typeof t){var n=e;return"change"===n&&(n="networkStatusDidChange"),0===cc.size&&Tc.callNative("NetInfo","addListener",n),nc||(nc=Oi()),nc.$on(n,t),cc.set(t,t),new uc(n,t)}},removeEventListener:lc,fetch:function(){return Tc.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))},NetInfoRevoker:uc}),dc=Hippy,pc=dc.on,hc=dc.off,vc=dc.emit,mc=dc.bridge,yc=mc.callNative,gc=mc.callNativeWithPromise,bc=mc.callNativeWithCallbackId,wc=dc.device,_c=wc.platform,kc=_c.OS,Sc=_c.Localization,xc=void 0===Sc?{}:Sc,Oc=wc.screen.scale,$c=dc.device,Ac=dc.document,Nc=dc.register,Ec={},Ic=["%c[native]%c","color: red","color: auto"],Cc=function(e,t){var n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);var r=e.nodeId;return Ei.apply(void 0,Ic.concat(["callUIFunction",{nodeId:r,funcName:t,params:[]}])),new Promise((function(e){return Ac.callUIFunction(r,t,[],(function(t){if(!t||"object"!==O(t)||void 0===r)return e(n);var o=t.x,i=t.y,a=t.height,s=t.width;return e({top:i,left:o,width:s,height:a,bottom:i+a,right:o+s})}))}))},Tc={callNative:yc,callNativeWithPromise:gc,callNativeWithCallbackId:bc,UIManagerModule:Ac,ConsoleModule:e.ConsoleModule||e.console,on:pc,off:hc,emit:vc,PixelRatio:Oc,Platform:kc,Localization:xc,version:"3.3.1",Cookie:{getAll:function(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return gc.call(this,"network","getCookie",e)},set:function(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");var r="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");r=n.toUTCString()}yc.call(this,"network","setCookie",e,t,r)}},Clipboard:{getString:function(){return gc.call(this,"ClipboardModule","getString")},setString:function(e){yc.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!N(Ec.isIPhoneX)){var e=!1;"ios"===Tc.Platform&&(e=20!==Tc.Dimensions.screen.statusBarHeight),Ec.isIPhoneX=e}return Ec.isIPhoneX},get screenIsVertical(){return Tc.Dimensions.window.width1&&void 0!==arguments[1]||Tc.Platform;if(Number.isInteger(e))return e;var t=Ec.COLOR_PARSER||(Ec.COLOR_PARSER=Object.create(null));return t[e]||(t[e]=Ja(e)),t[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:sc,ImageLoader:{getSize:function(e){return gc.call(this,"ImageLoaderModule","getSize",e)},prefetch:function(e){yc.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:fc,getElemCss:zs},Pc=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Pc=e.__GLOBAL__.nodeId);var jc=function(){return S((function e(){_(this,e),this._ownerDocument=null,this._isMounted=!1,this.nodeId=((Pc+=1)%10==0&&(Pc+=1),Pc%10==0&&(Pc+=1),Pc),this.index=0,this.childNodes=[]}),[{key:"toString",value:function(){return this.constructor.name}},{key:"firstChild",get:function(){return this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){var e=this.childNodes.length;return e?this.childNodes[e-1]:null}},{key:"meta",get:function(){return this._meta?this._meta:{}}},{key:"ownerDocument",get:function(){if(this._ownerDocument)return this._ownerDocument;for(var e=this;"DocumentNode"!==e.constructor.name&&(e=e.parentNode););return this._ownerDocument=e,e}},{key:"isMounted",get:function(){return this._isMounted},set:function(e){this._isMounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");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),r=t;return t.meta.skipAddToDom&&(r=$a(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),r.meta.skipAddToDom?Js(this,e):Js(this,e,{refId:r.nodeId,relativeToRef:Aa})}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");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),r=this.childNodes.indexOf(t),o=t;if(t.meta.skipAddToDom&&(o=$a(this.childNodes,r)),r===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[r-1]&&(this.childNodes[r-1].nextSibling=e),this.childNodes[r+1]&&(this.childNodes[r+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);var i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),o.meta.skipAddToDom?Js(this,e):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((null==e?void 0:e.meta)&&Li(e.meta.removeChild)&&e.meta.removeChild(e,t),t&&!t.meta.skipAddToDom&&(!n||n.refId!==t.nodeId)){var r=Oi(),o=r.$options.rootViewId,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},a=[[i,n]],s=[];Ds.push({printedNodes:s,type:Ls.moveNode,nodes:a,eventNodes:[]}),Vs(r)}}(this,e,{refId:o.nodeId,relativeToRef:Aa})}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),Js(this,e))}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");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.");if(!e.meta.skipAddToDom){e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(t&&!t.meta.skipAddToDom){t.isMounted=!1;var n=Oi(),r=n.$options.rootViewId,o={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},i=[[o,{}]],a=[];Ds.push({printedNodes:a,type:Ls.deleteNode,nodes:i,eventNodes:[]}),Vs(n)}}(0,e)}}},{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]:Fc,n=parseFloat(e),r=e||"",o=e.split("."),i=y(o,2),a=i[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Dc:r="".concat((360*n).toFixed(2));break;case Rc:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,s):i&&void 0!==Mc[i]&&(r=Mc[i]),r}}function ou(e){var t=y((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Tc.parseColor(n)}:void 0:{color:Tc.parseColor(n)}}function iu(e,t,n){delete n[e],au(e,t,n);var r=t,o=e;if(0===t.indexOf("linear-gradient")){o="linearGradient";var i=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),a=[];r={},i.forEach((function(e,t){if(0===t){var n=ru(e);if(n)r.angle=n;else{r.angle="180";var o=ou(e);o&&a.push(o)}}else{var i=ou(e);i&&a.push(i)}})),r.colorStopList=a}else{var s=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(s&&s.length>1){var c=y(s,2);r=c[1]}}return[o,r]}function au(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function su(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[nu[e]]:t}),["textShadowOffset",n.textShadowOffset]}function cu(e,t,n){void 0===t&&(delete n[e],au(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[nu[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function uu(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,o=n.length;r2&&void 0!==arguments[2]?arguments[2]:{};try{var r=e,o=t;if("boolean"==typeof this.attributes[r]&&""===o&&(o=!0),void 0===r)return void(!n.notToNative&&Qs(this));switch(r){case Bc:var i=new Set(o.split(" ").filter((function(e){return e.trim()})));if(Mi(this.classList,i))return;return this.classList=i,void(!n.notToNative&&ec(this));case Uc:if(o===this.id)return;return this.id=o,void(!n.notToNative&&ec(this));case Hc:case Wc:case zc:case Yc:if("string"!=typeof o)try{o=o.toString()}catch(e){"Property ".concat(r," must be string:").concat(e.message)}n&&n.textUpdate||(o=Bi(o)),o=ji(o);break;case Kc:if("ios"!==Tc.Platform)return;break;case Gc:case qc:r="caret-color",o=Tc.parseColor(o);break;case Xc:r="breakStrategy";break;case Jc:case Zc:r="placeholderTextColor",o=Tc.parseColor(o);break;case Qc:case eu:r="underlineColorAndroid",o=Tc.parseColor(o);break;case tu:var a=o;void 0!==a.color&&(a.color=Tc.parseColor(a.color)),r="nativeBackgroundAndroid",o=a}if(this.attributes[r]===o)return;this.attributes[r]=o,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&Qs(this,n.notUpdateStyle)}catch(e){0}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyles",value:function(e){var t=this;e&&"object"===O(e)&&0!==Object.keys(e).length&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),lu.some((function(t){return Object.prototype.hasOwnProperty.call(e,t)}))?ec(this):Qs(this))}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e,o=t;if(!this.getAttribute(Vc)){var i=this.beforeLoadStyle({property:e,value:t});o=i.value,r=i.property}if(void 0===t)return cu(r,o,this.style),void(n||Qs(this));switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=iu(r,o,this.style),s=y(a,2);r=s[0],o=s[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=su(r,o,this.style),u=y(c,2);r=u[0],o=u[1];break;case"textShadowOffset":var l=o||{},f=l.x,d=void 0===f?0:f,p=l.width,h=void 0===p?0:p,v=l.y,m=void 0===v?0:v,g=l.height,b=void 0===g?0:g;o={width:d||h,height:m||b};break;default:Object.prototype.hasOwnProperty.call(Qa,r)&&(r=Qa[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?Tc.parseColor(o):Di(o,"px")?parseFloat(o.slice(0,o.length-2)):Pi(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||(lu.indexOf(r)>=0?ec(this):Qs(this)))}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"repaintWithChildren",value:function(){ec(this)}},{key:"setStyleScope",value:function(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}},{key:"styleScopeId",get:function(){return this.scopeIdList}},{key:"isTextNode",value:function(e){return(null==e?void 0:e.meta.symbol)===Yi}},{key:"appendChild",value:function(e){(null==e?void 0:e.meta.symbol)===Yi&&e instanceof Lc&&this.setText(e.text,{notToNative:!0}),i(t,"appendChild",this,3)([e])}},{key:"insertBefore",value:function(e,n){this.isTextNode(e)&&e instanceof Lc&&this.setText(e.text,{notToNative:!0}),i(t,"insertBefore",this,3)([e,n])}},{key:"moveChild",value:function(e,n){this.isTextNode(e)&&e instanceof Lc&&this.setText(e.text,{notToNative:!0}),i(t,"moveChild",this,3)([e,n])}},{key:"removeChild",value:function(e){this.isTextNode(e)&&e instanceof Lc&&this.setText("",{notToNative:!0}),i(t,"removeChild",this,3)([e])}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"getNativeEventName",value:function(e){var t="on".concat(Ci(e));if(this.meta.component){var n=this.meta.component.eventNamesMap;(null==n?void 0:n[e])&&(t=n[e])}return t}},{key:"addEventListener",value:function(e,t,n){var r=this;if(this._emitter||(this._emitter=new _a(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){this.attributes.scrollEventThrottle=200}if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(La,e,t,n);e=o.eventNames,t=o.callback,n=o.options}this._emitter.addEventListener(e,t,n),uu(e,(function(e){var t,n,o=r.getNativeEventName(e);r.events[o]?r.events[o]&&r.events[o].type!==Ea&&(r.events[o].type=Ea):r.events[o]={name:o,type:Ea,listener:(t=o,n=e,function(e){var r=e.id,o=e.currentId,i=e.params,a=e.eventPhase;Fa.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:o,params:i,eventPhase:a},e)}),isCapture:!1}})),Zs(this)}},{key:"removeEventListener",value:function(e,t,n){var r=this;if(!this._emitter)return null;if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(Ma,e,t,n);e=o.eventNames,t=o.callback,n=o.options}var i=this._emitter.removeEventListener(e,t,n);return uu(e,(function(e){var t=r.getNativeEventName(e);r.events[t]&&(r.events[t].type=Ia)})),Zs(this),i}},{key:"dispatchEvent",value:function(e,t,n){if(!(e instanceof wa))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}},{key:"getBoundingClientRect",value:function(){return Tc.measureInWindow(this)}},{key:"scrollToPosition",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;if("number"==typeof e&&"number"==typeof t){var r=n;!1===r&&(r=0),Tc.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}}},{key:"scrollTo",value:function(e,t,n){var r=n;if("object"===O(e)&&e){var o=e.left,i=e.top,a=e.behavior,s=void 0===a?"auto":a;r=e.duration,this.scrollToPosition(o,i,"none"===s?0:r)}else this.scrollToPosition(e,t,n)}},{key:"setPressed",value:function(e){Tc.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Tc.callUIFunction(this,"setHotspot",[e,t])}}])}(jc),du=function(e){function t(e){var n;return _(this,t),(n=u(this,t,["comment"])).text=e,n._meta={symbol:Yi,skipAddToDom:!0},n}return d(t,e),S(t)}(fu),pu=function(e){function t(){return _(this,t),u(this,t,arguments)}return d(t,e),S(t,[{key:"getValue",value:function(){var e=this;return new Promise((function(t){return Tc.callUIFunction(e,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){Tc.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Tc.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Tc.callUIFunction(this,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){return Tc.callUIFunction(e,"isFocused",(function(e){return t(e.value)}))}))}},{key:"clear",value:function(){Tc.callUIFunction(this,"clear",[])}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}}])}(fu),hu=function(e){function t(){return _(this,t),u(this,t,arguments)}return d(t,e),S(t,[{key:"scrollToIndex",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];"number"==typeof e&&"number"==typeof t&&Tc.callUIFunction(this,"scrollToIndex",[e,t,n])}},{key:"scrollToPosition",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];"number"==typeof e&&"number"==typeof t&&Tc.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}])}(fu),vu=function(e){function t(){var e;return _(this,t),(e=u(this,t)).documentElement=new fu("document"),e}return d(t,e),S(t,null,[{key:"createComment",value:function(e){return new du(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new pu(e);case"ul":return new hu(e);default:return new fu(e)}}},{key:"createElementNS",value:function(e,t){return new fu("".concat(e,":").concat(t))}},{key:"createTextNode",value:function(e){return new Lc(e)}},{key:"createEvent",value:function(e){return new wa(e)}}])}(jc),mu={create:function(e,t){yu(t)},update:function(e,t){e.data.ref!==t.data.ref&&(yu(e,!0),yu(t))},destroy:function(e){yu(e,!0)}};function yu(e,t){var n=e.data.ref;if(N(n)){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?U(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}var gu=new Pe("",{},[]),bu=["create","activate","update","remove","destroy"];function wu(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&N(e.data)===N(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=N(n=e.data)&&N(n=n.attrs)&&n.type,o=N(n=t.data)&&N(n=n.attrs)&&n.type;return r===o||Zn(r)&&Zn(o)}(e,t)||E(e.isAsyncPlaceholder)&&A(t.asyncFactory.error))}function _u(e,t,n){var r,o,i={};for(r=t;r<=n;++r)N(o=e[r].key)&&(i[o]=r);return i}var ku={create:Su,update:Su,destroy:function(e){Su(e,gu)}};function Su(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===gu,a=t===gu,s=Ou(e.data.directives,e.context),c=Ou(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,Au(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(Au(o,"bind",t,e),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var o=e.elm;if(t&&(o=t),o){var i=(null===(n=e.data)||void 0===n?void 0:n.attrs)||{};i.__ob__&&(i=Q({},i),e.data.attrs=i),Object.keys(i).forEach((function(e){o.setAttribute(e,i[e],{notToNative:!!r.notToNative})}))}}}(t,e,{notToNative:!0}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var r=e.elm;if(t&&(r=t),r){var o=e.data.staticStyle;o&&Object.keys(o).forEach((function(e){var t=o[e];t&&r.setStyle(Fu(e),t,!!n.notToNative)}));var i=e.data.style;if(i){var a=i.__ob__;Array.isArray(i)&&(i=Vu(i),e.data.style=i),a&&(i=Q({},i),e.data.style=i),Object.keys(i).forEach((function(e){r.setStyle(Fu(e),i[e],!!n.notToNative)}))}}}}(t,e,{notToNative:!0}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var r=e.data;if(r.staticClass||r.class){var o=e.elm;if(t&&(o=t),o){var i=Yn(e),a=o._transitionClasses;a&&(i=Gn(i,qn(a))),i!==o._prevClass&&(o.setAttribute("class",i,{notToNative:!!n.notToNative}),o._prevClass=i)}}}}(t,e,{notToNative:!0}))}var zu=function(e){var t,n,r={},o=e.modules,i=e.nodeOps;for(t=0;td?h(e,A(n[y+1])?null:n[y+1].elm,n,f,y,r):f>y&&m(t,l,d)}(u,p,v,n,c):N(v)?(N(e.text)&&i.setTextContent(u,""),h(u,null,v,0,v.length-1,n)):N(p)?m(p,0,p.length-1):N(e.text)&&i.setTextContent(u,""):e.text!==t.text&&i.setTextContent(u,t.text),N(d)&&N(l=d.hook)&&N(l=l.postpatch)&&l(e,t)}}}function w(e,t,n){if(E(n)&&N(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Oa(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:Hu.concat(Nu)});function Yu(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}var Ku=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})},Gu={inserted:function(e,t){"ios"===Tc.Platform&&Ku!==Yu&&(Ku=Yu),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",(function(t){var n=t.value,r=new wa("input");r.value=n,e.dispatchEvent(r)})))},update:function(e,t){var n=t.value,r=t.oldValue;e.value=n,Ku(e,n,r)}};function qu(e,t,n,r){t?(n.data.show=!0,e.setStyle("display",r)):e.setStyle("display","none")}var Xu={bind:function(e,t,n){var r=t.value;void 0===e.style.display&&(e.style.display="block");var o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,qu(e,r,n,o)},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&qu(e,r,n,e.__vOriginalDisplay)},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Ju=Object.freeze({__proto__:null,model:Gu,show:Xu}),Zu=['%c[Hippy-Vue "3.3.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Qu=new vu;Dn.$document=Qu,Dn.prototype.$document=Qu,Dn.$Document=vu,Dn.$Event=wa,Dn.config.mustUseProp=function(e,t,n){var r=ba(e);return!!r.mustUseProp&&r.mustUseProp(t,n)},Dn.config.isReservedTag=ha,Dn.config.isUnknownElement=function(e){return t=e,!va.has(ya(t));var t},Dn.compile=wi,Dn.registerElement=ga,Q(Dn.options.directives,Ju),Dn.prototype.__patch__=zu,Dn.prototype.$mount=function(e,t){var n=this.$options;if(!n.render){var r=n.template;if(r&&"string"!=typeof r)return Ae("invalid template option: ".concat(r),this),this;if(r){var o=wi(r,{delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=je),mn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new An(e,r,ee,{before:function(){e._isMounted&&!e._isDestroyed&&mn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,mn(e,"mounted")),e}(this,e,t)},Dn.prototype.$start=function(e,t){var n,r=this;xi(this),Li(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ki=n),va.forEach((function(e){Dn.component(e.meta.component.name,e.meta.component)})),Nc.regist(this.$options.appName,(function(n){var o=n.__instanceId__;(r.$options.$superProps=n,r.$options.rootViewId=o,Ei.apply(void 0,Zu.concat(["Start",r.$options.appName,"with rootViewId",o,n])),r.$el)&&(r.$destroy(),xi(new(Dn.extend(r.$options))(r.$options)));if(Li(t)&&t(r,n),r.$mount(),"ios"===Tc.Platform){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iPhone,n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;var r=new fu("div"),o=Tc.Dimensions.screen.statusBarHeight;Tc.screenIsVertical?r.setStyle("height",o):r.setStyle("height",0);var i=4282431619;if("number"==typeof n.backgroundColor){var a=n;i=a.backgroundColor}if(r.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){var s=new fu("img");s.setStyle("width",Tc.Dimensions.screen.width),s.setStyle("height",o),s.setAttribute("src",e.statusBarOpts.backgroundImage),r.appendChild(s)}return r.addEventListener("layout",(function(){Tc.screenIsVertical?r.setStyle("height",o):r.setStyle("height",0)})),r}(r.$options);i&&(r.$el.childNodes.length?r.$el.insertBefore(i,r.$el.childNodes[0]):r.$el.appendChild(i))}Li(e)&&e(r,n)}))};var el=1;Dn.component=function(e,t){return t?(P(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},Dn.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var o,i,a=e.name||t.options.name,s=function(e){this._init(e)};return(s.prototype=Object.create(t.prototype)).constructor=s,s.cid=el+=1,s.options=et(t.options,e),s.super=t,s.options.props&&(i=(o=s).options.props,Object.keys(i).forEach((function(e){return En(o.prototype,"_props",e)}))),s.options.computed&&function(e){var t=e.options.computed;Object.keys(t).forEach((function(n){return Tn(e.prototype,n,t[n])}))}(s),s.extend=t.extend,s.mixin=t.mixin,s.use=t.use,ae.forEach((function(e){s[e]=t[e]})),a&&(s.options.components[a]=s),s.superOptions=t.options,s.extendOptions=e,s.sealedOptions=Q({},s.options),r[n]=s,s},Dn.Native=Tc,Dn.getApp=Oi,Dn.use((function(){Object.keys(pa).forEach((function(e){ga(e,pa[e])}))})),ce.devtools&&Se&&Se.emit("init",Dn);Dn.config._setBeforeRenderToNative=function(e,t){Li(e)&&(1===t?Si=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};var tl,nl=new Proxy(Dn,{construct:function(e,t){var n=function(e,t,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&p(o,n.prototype),o}(e,g(t));return n}}),rl=function(){return S((function e(t,n,r){var o=this;_(this,e),this.webSocketId=-1,tl=Oi(),this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var i=v({},r);if(tl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");Array.isArray(n)&&n.length>0?i["Sec-WebSocket-Protocol"]=n.join(","):"string"==typeof n&&(i["Sec-WebSocket-Protocol"]=n);var a={headers:i,url:t};Tc.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(o.webSocketId=e.id)}))}),[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Tc.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(O(e)));Tc.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"===O(e)&&e.id===this.webSocketId){var t=e.type;if("string"==typeof t){"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,tl.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];Li(n)&&n(e.data)}}}}])}();e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=rl,nl.config.silent=!1,nl.config.trimWhitespace=!0,function(e){gi=e}(nl)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/examples/ios-demo/res/vue3/index.ios.js b/framework/examples/ios-demo/res/vue3/index.ios.js index efe212e6996..749f3dd4449 100644 --- a/framework/examples/ios-demo/res/vue3/index.ios.js +++ b/framework/examples/ios-demo/res/vue3/index.ios.js @@ -1,7 +1,22 @@ -!function(e){function t(t){for(var o,a,r=t[0],l=t[1],c=0,s=[];c0===c.indexOf(e))){var i=c.split("/"),s=i[i.length-1],d=s.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=u+s)}else{var u;d=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=u+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=n[e];0!==o&&o&&o[1](t),n[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},a.m=e,a.c=o,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;ce.length)&&(t=e.length);for(var o=0,n=new Array(t);o=0;--n){var a=this.tryEntries[n],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),i=r.call(a,"finallyLoc");if(c&&i){if(this.prev=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),C(o),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var a=n.arg;C(o)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:P(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function o(t,n){return e.exports=o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t,n)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),a=o("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),r=o("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),l=o("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return n(e)||a(e,t)||r(e,t)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),a=o("./node_modules/@babel/runtime/helpers/iterableToArray.js"),r=o("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),l=o("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return n(e)||a(e)||r(e)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/typeof.js").default,a=o("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=a(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function o(t){return e.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,o){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],o=!1;!function(a){if(e.Promise){a=a||{},o&&(o=!1,e.Promise._onHandle=null,e.Promise._onReject=null),o=!0;var r=0,l=0,c={};e.Promise._onHandle=function(e){2===e._state&&c[e._rejectionId]&&(c[e._rejectionId].logged?function(e){c[e].logged&&(a.onHandled?a.onHandled(c[e].displayId,c[e].error):c[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+c[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+c[e].displayId+".")))}(e._rejectionId):clearTimeout(c[e._rejectionId].timeout),delete c[e._rejectionId])},e.Promise._onReject=function(e,o){0===e._deferredState&&(e._rejectionId=r++,c[e._rejectionId]={displayId:null,error:o,timeout:setTimeout(i.bind(null,e._rejectionId),n(o,t)?100:2e3),logged:!1})}}function i(e){(a.allRejections||n(c[e].error,a.whitelist||t))&&(c[e].displayId=l++,a.onUnhandled?(c[e].logged=!0,a.onUnhandled(c[e].displayId,c[e].error)):(c[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(c[e].displayId,c[e].error)))}}({allRejections:!0,onUnhandled:function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.prototype.toString.call(o);if("[object Error]"===n){var a=Error.prototype.toString.call(o),r=o.stack,l="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(a||"")+"\n"+(null==r?"":r);console.warn(l)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var c=(o&&(o.stack||o))+"";c.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",o,t)},onHandled:function(){}})}function n(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/vue-router-next-history/dist/index.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=o("../../packages/hippy-vue-next/dist/index.js");!function(e){e.pop="pop",e.push="push"}(n||(n={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(a||(a={}));var c=/\/$/,i=/^[^#]+#/;function s(e,t){return"".concat(e.replace(i,"#")).concat(t)}function d(e){var t=e;return t||(t="/"),"/"!==t[0]&&"#"!==t[0]&&(t="/".concat(t)),t.replace(c,"")}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",o=[t],r=0,l=[],c=d(e);function i(e){(r+=1)===o.length||o.splice(r),o.push(e)}function u(e,t,o){for(var a={direction:o.direction,delta:o.delta,type:n.pop},r=0,c=l;r(l.push(e),function(){var t=l.indexOf(e);t>-1&&l.splice(t,1)}),destroy(){l=[],o=[t],r=0},go(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.location,l=e<0?a.back:a.forward;r=Math.max(0,Math.min(r+e,o.length-1)),t&&u(this.location,n,{direction:l,delta:e})},get position(){return r}};return Object.defineProperty(p,"location",{enumerable:!0,get:function(){return o[r]}}),p}t.createHippyHistory=u,t.createHippyRouter=function(e){var t,o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:u(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){var t=function(){if(e.options.history.position>0)return e.back(),!0};e.isReady().then((function(){l.BackAndroid.addListener(t)}))}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return j})),o.d(t,"c",(function(){return x})),o.d(t,"d",(function(){return i})),o.d(t,"e",(function(){return _})),o.d(t,"f",(function(){return T})),o.d(t,"g",(function(){return w})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return p})),o.d(t,"j",(function(){return C})),o.d(t,"k",(function(){return c})),o.d(t,"l",(function(){return b})),o.d(t,"m",(function(){return l})),o.d(t,"n",(function(){return k})),o.d(t,"o",(function(){return d})),o.d(t,"p",(function(){return E})),o.d(t,"q",(function(){return f})),o.d(t,"r",(function(){return I})),o.d(t,"s",(function(){return L})),o.d(t,"t",(function(){return S})),o.d(t,"u",(function(){return A}));o("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o("./node_modules/@babel/runtime/helpers/toConsumableArray.js");function n(e,t){for(var o=Object.create(null),n=e.split(","),a=0;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return c=e.done,e},e:function(e){i=!0,l=e},f:function(){try{c||null==o.return||o.return()}finally{if(i)throw l}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){i=!0,r=e},f:function(){try{l||null==o.return||o.return()}finally{if(i)throw r}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o0===c.indexOf(e))){var i=c.split("/"),s=i[i.length-1],d=s.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=u+s)}else{var u;d=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=u+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=n[e];0!==o&&o&&o[1](t),n[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},a.m=e,a.c=o,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;ce.length)&&(t=e.length);for(var o=0,n=Array(t);o=0;--a){var r=this.tryEntries[a],c=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var i=l.call(r,"catchLoc"),s=l.call(r,"finallyLoc");if(i&&s){if(this.prev=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),T(o),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var a=n.arg;T(o)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,o,n){return this.delegate={iterator:L(e),resultName:o,nextLoc:n},"next"===this.method&&(this.arg=t),g}},o}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function o(t,n){return e.exports=o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t,n)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),a=o("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),r=o("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),l=o("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return n(e)||a(e,t)||r(e,t)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),a=o("./node_modules/@babel/runtime/helpers/iterableToArray.js"),r=o("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),l=o("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return n(e)||a(e)||r(e)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/typeof.js").default,a=o("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=a(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function o(t){return e.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,o){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],o=!1;!function(a){if(e.Promise){a=a||{},o&&(o=!1,e.Promise._onHandle=null,e.Promise._onReject=null),o=!0;var r=0,l=0,c={};e.Promise._onHandle=function(e){2===e._state&&c[e._rejectionId]&&(c[e._rejectionId].logged?function(e){c[e].logged&&(a.onHandled?a.onHandled(c[e].displayId,c[e].error):c[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+c[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+c[e].displayId+".")))}(e._rejectionId):clearTimeout(c[e._rejectionId].timeout),delete c[e._rejectionId])},e.Promise._onReject=function(e,o){0===e._deferredState&&(e._rejectionId=r++,c[e._rejectionId]={displayId:null,error:o,timeout:setTimeout(i.bind(null,e._rejectionId),n(o,t)?100:2e3),logged:!1})}}function i(e){(a.allRejections||n(c[e].error,a.whitelist||t))&&(c[e].displayId=l++,a.onUnhandled?(c[e].logged=!0,a.onUnhandled(c[e].displayId,c[e].error)):(c[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(c[e].displayId,c[e].error)))}}({allRejections:!0,onUnhandled:function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.prototype.toString.call(o);if("[object Error]"===n){var a=Error.prototype.toString.call(o),r=o.stack,l="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(a||"")+"\n"+(null==r?"":r);console.warn(l)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var c=(o&&(o.stack||o))+"";c.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",o,t)},onHandled:function(){}})}function n(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/vue-router-next-history/dist/index.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=o("../../packages/hippy-vue-next/dist/index.js");!function(e){e.pop="pop",e.push="push"}(n||(n={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(a||(a={}));var c=/\/$/,i=/^[^#]+#/;function s(e,t){return"".concat(e.replace(i,"#")).concat(t)}function d(e){var t=e;return t||(t="/"),"/"!==t[0]&&"#"!==t[0]&&(t="/".concat(t)),t.replace(c,"")}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",o=[t],r=0,l=[],c=d(e);function i(e){(r+=1)===o.length||o.splice(r),o.push(e)}function u(e,t,o){for(var a={direction:o.direction,delta:o.delta,type:n.pop},r=0,c=l;r(l.push(e),function(){var t=l.indexOf(e);t>-1&&l.splice(t,1)}),destroy(){l=[],o=[t],r=0},go(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.location,l=e<0?a.back:a.forward;r=Math.max(0,Math.min(r+e,o.length-1)),t&&u(this.location,n,{direction:l,delta:e})},get position(){return r}};return Object.defineProperty(p,"location",{enumerable:!0,get:function(){return o[r]}}),p}t.createHippyHistory=u,t.createHippyRouter=function(e){var t,o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:u(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){var t=function(){if(e.options.history.position>0)return e.back(),!0};e.isReady().then((function(){l.BackAndroid.addListener(t)}))}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return r})),o.d(t,"c",(function(){return j})),o.d(t,"d",(function(){return x})),o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return _})),o.d(t,"g",(function(){return I})),o.d(t,"h",(function(){return w})),o.d(t,"i",(function(){return s})),o.d(t,"j",(function(){return p})),o.d(t,"k",(function(){return k})),o.d(t,"l",(function(){return P})),o.d(t,"m",(function(){return c})),o.d(t,"n",(function(){return b})),o.d(t,"o",(function(){return l})),o.d(t,"p",(function(){return C})),o.d(t,"q",(function(){return d})),o.d(t,"r",(function(){return T})),o.d(t,"s",(function(){return f})),o.d(t,"t",(function(){return v})),o.d(t,"u",(function(){return L})),o.d(t,"v",(function(){return D})),o.d(t,"w",(function(){return S})),o.d(t,"x",(function(){return A}));o("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o("./node_modules/@babel/runtime/helpers/toConsumableArray.js"); +/** +* @vue/shared v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +/*! #__NO_SIDE_EFFECTS__ */ +function n(e,t){var o=new Set(e.split(","));return t?function(e){return o.has(e.toLowerCase())}:function(e){return o.has(e)}}var a={},r=function(){},l=function(e){return 111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)},c=function(e){return e.startsWith("onUpdate:")},i=Object.assign,s=(Object.prototype.hasOwnProperty,Array.isArray),d=function(e){return"[object Set]"===m(e)},u=function(e){return"[object Date]"===m(e)},p=function(e){return"function"==typeof e},f=function(e){return"string"==typeof e},v=function(e){return"symbol"==typeof e},b=function(e){return null!==e&&"object"==typeof e},y=Object.prototype.toString,m=function(e){return y.call(e)},g=function(e){var t=Object.create(null);return function(o){return t[o]||(t[o]=e(o))}},h=/-(\w)/g,j=g((function(e){return e.replace(h,(function(e,t){return t?t.toUpperCase():""}))})),O=/\B([A-Z])/g,_=g((function(e){return e.replace(O,"-$1").toLowerCase()})),x=g((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),w=(g((function(e){return e?"on".concat(x(e)):""})),function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return c=e.done,e},e:function(e){i=!0,l=e},f:function(){try{c||null==o.return||o.return()}finally{if(i)throw l}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){i=!0,r=e},f:function(){try{l||null==o.return||o.return()}finally{if(i)throw r}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o2&&void 0!==arguments[2]?arguments[2]:"/",a={},r="",l="",c=t.indexOf("#"),i=t.indexOf("?");return c=0&&(i=-1),i>-1&&(o=t.slice(0,i),a=e(r=t.slice(i+1,c>-1?c:t.length))),c>-1&&(o=o||t.slice(0,c),l=t.slice(c,t.length)),{fullPath:(o=x(null!=o?o:t,n))+(r&&"?")+r+l,path:o,query:a,hash:l}}function g(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function h(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function j(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!O(e[o],t[o]))return!1;return!0}function O(e,t){return f(e)?_(e,t):f(t)?_(t,e):e===t}function _(e,t){return f(t)?e.length===t.length&&e.every((function(e,o){return e===t[o]})):1===e.length&&e[0]===t}function x(e,t){if(e.startsWith("/"))return e;if(!e)return t;var o=t.split("/"),n=e.split("/"),a=n[n.length-1];".."!==a&&"."!==a||n.push("");var r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+n.slice(r-(r===n.length?1:0)).join("/")}!function(e){e.pop="pop",e.push="push"}(v||(v={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(b||(b={}));function w(e){if(!e)if(i){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(y,"")}var S=/^[^#]+#/;function A(e,t){return e.replace(S,"#")+t}var C=function(){return{left:window.pageXOffset,top:window.pageYOffset}};function k(e){var t;if("el"in e){var o=e.el,n="string"==typeof o&&o.startsWith("#"),a="string"==typeof o?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!a)return;t=function(e,t){var o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function P(e,t){return(history.state?history.state.position-t:-1)+e}var E=new Map;var T=function(){return location.protocol+"//"+location.host};function I(e,t){var o=t.pathname,n=t.search,a=t.hash,r=e.indexOf("#");if(r>-1){var l=a.includes(e.slice(r))?e.slice(r).length:1,c=a.slice(l);return"/"!==c[0]&&(c="/"+c),g(c,"")}return g(o,e)+n+a}function L(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:a?C():null}}function V(e){var t=function(e){var t=window,o=t.history,n=t.location,a={value:I(e,n)},r={value:o.state};function l(t,a,l){var c=e.indexOf("#"),i=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+t:T()+e+t;try{o[l?"replaceState":"pushState"](a,"",i),r.value=a}catch(e){console.error(e),n[l?"replace":"assign"](i)}}return r.value||l(a.value,{back:null,current:a.value,forward:null,position:o.length-1,replaced:!0,scroll:null},!0),{location:a,state:r,push:function(e,t){var n=d({},r.value,o.state,{forward:e,scroll:C()});l(n.current,n,!0),l(e,d({},L(a.value,e,null),{position:n.position+1},t),!1),a.value=e},replace:function(e,t){l(e,d({},o.state,L(r.value.back,e,r.value.forward,!0),t,{position:r.value.position}),!0),a.value=e}}}(e=w(e)),o=function(e,t,o,n){var a=[],r=[],c=null,i=function(r){var l=r.state,i=I(e,location),s=o.value,d=t.value,u=0;if(l){if(o.value=i,t.value=l,c&&c===s)return void(c=null);u=d?l.position-d.position:0}else n(i);a.forEach((function(e){e(o.value,s,{delta:u,type:v.pop,direction:u?u>0?b.forward:b.back:b.unknown})}))};function s(){var e=window.history;e.state&&e.replaceState(d({},e.state,{scroll:C()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){a.push(e);var t=function(){var t=a.indexOf(e);t>-1&&a.splice(t,1)};return r.push(t),t},destroy:function(){var e,t=l(r);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(e){t.e(e)}finally{t.f()}r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);var n=d({location:"",base:e,go:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t||o.pauseListeners(),history.go(e)},createHref:A.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:function(){return t.location.value}}),Object.defineProperty(n,"state",{enumerable:!0,get:function(){return t.state.value}}),n}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[],o=[""],n=0;function a(e){++n===o.length||o.splice(n),o.push(e)}function r(e,o,n){for(var a={direction:n.direction,delta:n.delta,type:v.pop},r=0,l=t;r(t.push(e),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],n=0},go(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.location,l=e<0?b.back:b.forward;n=Math.max(0,Math.min(n+e,o.length-1)),t&&r(this.location,a,{direction:l,delta:e})}};return Object.defineProperty(l,"location",{enumerable:!0,get:function(){return o[n]}}),l}function D(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),V(e)}function H(e){return"string"==typeof e||"symbol"==typeof e}var R,B={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},M=Symbol("");!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(R||(R={}));function N(e,t){return d(new Error,{type:e,[M]:!0},t)}function U(e,t){return e instanceof Error&&M in e&&(null==t||!!(e.type&t))}var z={sensitive:!1,strict:!1,start:!0,end:!0},F=/[.+*?^${}()[\]/\\]/g;function G(e,t){for(var o=0;ot.length?1===t.length&&80===t[0]?1:-1:0}function W(e,t){for(var o=0,n=e.score,a=t.score;o0&&t[t.length-1]<0}var q={type:0,value:""},Q=/[a-zA-Z0-9_]/;function X(e,t,o){var n=function(e,t){var o,n=d({},z,t),a=[],r=n.start?"^":"",c=[],i=l(e);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=s.length?[]:[90];n.strict&&!s.length&&(r+="/");for(var p=0;p1&&("*"===c||"+"===c)&&t("A repeatable param (".concat(s,") must be alone in its segment. eg: '/:ids+.")),o.push({type:1,value:s,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),s="")}function p(){s+=c}for(;i-1&&(o.splice(a,1),e.record.name&&n.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){for(var t=0;t=0&&(e.record.path!==o[t].record.path||!ne(e,o[t]));)t++;o.splice(t,0,e),e.record.name&&!ee(e)&&n.set(e.record.name,e)}return t=oe({strict:!1,end:!0,sensitive:!1},t),e.forEach((function(e){return a(e)})),{addRoute:a,resolve:function(e,t){var a,r,l,c={};if("name"in e&&e.name){if(!(a=n.get(e.name)))throw N(1,{location:e});l=a.record.name,c=d(J(t.params,a.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}))),e.params&&J(e.params,a.keys.map((function(e){return e.name})))),r=a.stringify(c)}else if("path"in e)r=e.path,(a=o.find((function(e){return e.re.test(r)})))&&(c=a.parse(r),l=a.record.name);else{if(!(a=t.name?n.get(t.name):o.find((function(e){return e.re.test(t.path)}))))throw N(1,{location:e,currentLocation:t});l=a.record.name,c=d({},t.params,e.params),r=a.stringify(c)}for(var i=[],s=a;s;)i.unshift(s.record),s=s.parent;return{name:l,path:r,params:c,matched:i,meta:te(i)}},removeRoute:r,getRoutes:function(){return o},getRecordMatcher:function(e){return n.get(e)}}}function J(e,t){var o,n={},a=l(t);try{for(a.s();!(o=a.n()).done;){var r=o.value;r in e&&(n[r]=e[r])}}catch(e){a.e(e)}finally{a.f()}return n}function $(e){var t={},o=e.props||!1;if("component"in e)t.default=o;else for(var n in e.components)t[n]="boolean"==typeof o?o:o[n];return t}function ee(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function te(e){return e.reduce((function(e,t){return d(e,t.meta)}),{})}function oe(e,t){var o={};for(var n in e)o[n]=n in t?t[n]:e[n];return o}function ne(e,t){return t.children.some((function(t){return t===e||ne(e,t)}))}var ae=/#/g,re=/&/g,le=/\//g,ce=/=/g,ie=/\?/g,se=/\+/g,de=/%5B/g,ue=/%5D/g,pe=/%5E/g,fe=/%60/g,ve=/%7B/g,be=/%7C/g,ye=/%7D/g,me=/%20/g;function ge(e){return encodeURI(""+e).replace(be,"|").replace(de,"[").replace(ue,"]")}function he(e){return ge(e).replace(se,"%2B").replace(me,"+").replace(ae,"%23").replace(re,"%26").replace(fe,"`").replace(ve,"{").replace(ye,"}").replace(pe,"^")}function je(e){return null==e?"":function(e){return ge(e).replace(ae,"%23").replace(ie,"%3F")}(e).replace(le,"%2F")}function Oe(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}function _e(e){var t={};if(""===e||"?"===e)return t;for(var o=("?"===e[0]?e.slice(1):e).split("&"),n=0;n-1&&e.splice(o,1)}},list:function(){return e},reset:function(){e=[]}}}function Te(e,t,o){var n=function(){e[t].delete(o)};Object(r.s)(n),Object(r.r)(n),Object(r.q)((function(){e[t].add(o)})),e[t].add(o)}function Ie(e){var t=Object(r.m)(Se,{}).value;t&&Te(t,"leaveGuards",e)}function Le(e){var t=Object(r.m)(Se,{}).value;t&&Te(t,"updateGuards",e)}function Ve(e,t,o,n,a){var r=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return function(){return new Promise((function(l,c){var i=function(e){var i;!1===e?c(N(4,{from:o,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(N(2,{from:t,to:e})):(r&&n.enterCallbacks[a]===r&&"function"==typeof e&&r.push(e),l())},s=e.call(n&&n.instances[a],t,o,i),d=Promise.resolve(s);e.length<3&&(d=d.then(i)),d.catch((function(e){return c(e)}))}))}}function Ye(e,t,o,n){var a,r=[],c=l(e);try{var i=function(){var e=a.value;var l=function(a){var l,c=e.components[a];if("beforeRouteEnter"!==t&&!e.instances[a])return 1;if("object"==typeof(l=c)||"displayName"in l||"props"in l||"__vccOpts"in l){var i=(c.__vccOpts||c)[t];i&&r.push(Ve(i,o,n,e,a))}else{var d=c();0,r.push((function(){return d.then((function(r){if(!r)return Promise.reject(new Error("Couldn't resolve component \"".concat(a,'" at "').concat(e.path,'"')));var l=s(r)?r.default:r;e.components[a]=l;var c=(l.__vccOpts||l)[t];return c&&Ve(c,o,n,e,a)()}))}))}};for(var c in e.components)l(c)};for(c.s();!(a=c.n()).done;)i()}catch(e){c.e(e)}finally{c.f()}return r}function De(e){return e.matched.every((function(e){return e.redirect}))?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map((function(e){return e.components&&Promise.all(Object.keys(e.components).reduce((function(t,o){var n=e.components[o];return"function"!=typeof n||"displayName"in n||t.push(n().then((function(t){if(!t)return Promise.reject(new Error("Couldn't resolve component \"".concat(o,'" at "').concat(e.path,'". Ensure you passed a function that returns a promise.')));var n=s(t)?t.default:t;e.components[o]=n}))),t}),[]))}))).then((function(){return e}))}function He(e){var t=Object(r.m)(Ce),o=Object(r.m)(ke),n=Object(r.c)((function(){return t.resolve(Object(r.D)(e.to))})),a=Object(r.c)((function(){var e=n.value.matched,t=e.length,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;var l=r.findIndex(h.bind(null,a));if(l>-1)return l;var c=Me(e[t-2]);return t>1&&Me(a)===c&&r[r.length-1].path!==c?r.findIndex(h.bind(null,e[t-2])):l})),l=Object(r.c)((function(){return a.value>-1&&function(e,t){var o,n=function(){var o=t[a],n=e[a];if("string"==typeof o){if(o!==n)return{v:!1}}else if(!f(n)||n.length!==o.length||o.some((function(e,t){return e!==n[t]})))return{v:!1}};for(var a in t)if(o=n())return o.v;return!0}(o.params,n.value.params)})),c=Object(r.c)((function(){return a.value>-1&&a.value===o.matched.length-1&&j(o.params,n.value.params)}));return{route:n,href:Object(r.c)((function(){return n.value.href})),isActive:l,isExactActive:c,navigate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(o)?t[Object(r.D)(e.replace)?"replace":"push"](Object(r.D)(e.to)).catch(p):Promise.resolve()}}}var Re=Object(r.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:He,setup(e,t){var o=t.slots,n=Object(r.v)(He(e)),a=Object(r.m)(Ce).options,l=Object(r.c)((function(){return{[Ne(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[Ne(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}}));return function(){var t=o.default&&o.default(n);return e.custom?t:Object(r.l)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},t)}}});function Be(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Me(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Ne=function(e,t,o){return null!=e?e:null!=t?t:o};function Ue(e,t){if(!e)return null;var o=e(t);return 1===o.length?o[0]:o}var ze=Object(r.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,t){var o=t.attrs,n=t.slots,l=Object(r.m)(Pe),c=Object(r.c)((function(){return e.route||l.value})),i=Object(r.m)(Ae,0),s=Object(r.c)((function(){for(var e,t=Object(r.D)(i),o=c.value.matched;(e=o[t])&&!e.components;)t++;return t})),u=Object(r.c)((function(){return c.value.matched[s.value]}));Object(r.u)(Ae,Object(r.c)((function(){return s.value+1}))),Object(r.u)(Se,u),Object(r.u)(Pe,c);var p=Object(r.w)();return Object(r.F)((function(){return[p.value,u.value,e.name]}),(function(e,t){var o=a()(e,3),n=o[0],r=o[1],l=o[2],c=a()(t,3),i=c[0],s=c[1];c[2];r&&(r.instances[l]=n,s&&s!==r&&n&&n===i&&(r.leaveGuards.size||(r.leaveGuards=s.leaveGuards),r.updateGuards.size||(r.updateGuards=s.updateGuards))),!n||!r||s&&h(r,s)&&i||(r.enterCallbacks[l]||[]).forEach((function(e){return e(n)}))}),{flush:"post"}),function(){var t=c.value,a=e.name,l=u.value,i=l&&l.components[a];if(!i)return Ue(n.default,{Component:i,route:t});var s=l.props[a],f=s?!0===s?t.params:"function"==typeof s?s(t):s:null,v=Object(r.l)(i,d({},f,o,{onVnodeUnmounted:function(e){e.component.isUnmounted&&(l.instances[a]=null)},ref:p}));return Ue(n.default,{Component:v,route:t})||v}}});function Fe(e){var t=Z(e.routes,e),o=e.parseQuery||_e,n=e.stringifyQuery||xe,c=e.history;var s=Ee(),b=Ee(),y=Ee(),g=Object(r.B)(B),O=B;i&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");var _,x=u.bind(null,(function(e){return""+e})),w=u.bind(null,je),S=u.bind(null,Oe);function A(e,a){if(a=d({},a||g.value),"string"==typeof e){var r=m(o,e,a.path),l=t.resolve({path:r.path},a),i=c.createHref(r.fullPath);return d(r,l,{params:S(l.params),hash:Oe(r.hash),redirectedFrom:void 0,href:i})}var s;if("path"in e)s=d({},e,{path:m(o,e.path,a.path).path});else{var u=d({},e.params);for(var p in u)null==u[p]&&delete u[p];s=d({},e,{params:w(u)}),a.params=w(a.params)}var f=t.resolve(s,a),v=e.hash||"";f.params=x(S(f.params));var b,y=function(e,t){var o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(n,d({},e,{hash:(b=v,ge(b).replace(ve,"{").replace(ye,"}").replace(pe,"^")),path:f.path})),h=c.createHref(y);return d({fullPath:y,hash:v,query:n===xe?we(e.query):e.query||{}},f,{redirectedFrom:void 0,href:h})}function T(e){return"string"==typeof e?m(o,e,g.value.path):d({},e)}function I(e,t){if(O!==e)return N(8,{from:t,to:e})}function L(e){return Y(e)}function V(e){var t=e.matched[e.matched.length-1];if(t&&t.redirect){var o=t.redirect,n="function"==typeof o?o(e):o;return"string"==typeof n&&((n=n.includes("?")||n.includes("#")?n=T(n):{path:n}).params={}),d({query:e.query,hash:e.hash,params:"path"in n?{}:e.params},n)}}function Y(e,t){var o=O=A(e),a=g.value,r=e.state,l=e.force,c=!0===e.replace,i=V(o);if(i)return Y(d(T(i),{state:"object"==typeof i?d({},r,i.state):r,force:l,replace:c}),t||o);var s,u=o;return u.redirectedFrom=t,!l&&function(e,t,o){var n=t.matched.length-1,a=o.matched.length-1;return n>-1&&n===a&&h(t.matched[n],o.matched[a])&&j(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(n,a,o)&&(s=N(16,{to:u,from:a}),J(a,a,!0,!1)),(s?Promise.resolve(s):M(u,a)).catch((function(e){return U(e)?U(e,2)?e:X(e):Q(e,u,a)})).then((function(e){if(e){if(U(e,2))return Y(d({replace:c},T(e.to),{state:"object"==typeof e.to?d({},r,e.to.state):r,force:l}),t||u)}else e=F(u,a,!0,c,r);return z(u,a,e),e}))}function D(e,t){var o=I(e,t);return o?Promise.reject(o):Promise.resolve()}function R(e){var t=te.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function M(e,t){var o,n=function(e,t){for(var o=[],n=[],a=[],r=Math.max(t.matched.length,e.matched.length),l=function(){var r=t.matched[c];r&&(e.matched.find((function(e){return h(e,r)}))?n.push(r):o.push(r));var l=e.matched[c];l&&(t.matched.find((function(e){return h(e,l)}))||a.push(l))},c=0;c=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==o.return||o.return()}finally{if(c)throw r}}}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o".concat(e,""):e;var c=x.content;if(n){for(var i=c.firstChild;i.firstChild;)c.appendChild(i.firstChild);c.removeChild(i)}t.insertBefore(c,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};function S(e,t,o){var n=e._vtc;n&&(t=(t?[t].concat(m()(n)):m()(n)).join(" ")),null==t?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}function A(e,t,o){var n=e.style,a=Object(g.q)(o);if(o&&!a){if(t&&!Object(g.q)(t))for(var r in t)null==o[r]&&k(n,r,"");for(var l in o)k(n,l,o[l])}else{var c=n.display;a?t!==o&&(n.cssText=o):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=c)}}var C=/\s*!important$/;function k(e,t,o){if(Object(g.h)(o))o.forEach((function(o){return k(e,t,o)}));else if(null==o&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{var a=function(e,t){var o=E[t];if(o)return o;var a=Object(n.camelize)(t);if("filter"!==a&&a in e)return E[t]=a;a=Object(g.c)(a);for(var r=0;r4&&void 0!==arguments[4]?arguments[4]:null,r=e._vei||(e._vei={}),l=r[t];if(n&&l)l.value=n;else{var c=R(t),i=b()(c,2),s=i[0],d=i[1];if(n){var u=r[t]=N(n,a);V(e,s,u,d)}else l&&(Y(e,s,l,d),r[t]=void 0)}}var H=/(?:Once|Passive|Capture)$/;function R(e){var t,o;if(H.test(e))for(t={};o=e.match(H);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):Object(g.e)(e.slice(2)),t]}var B=0,M=Promise.resolve();function N(e,t){var o=function e(o){if(o._vts){if(o._vts<=e.attached)return}else o._vts=Date.now();Object(n.callWithAsyncErrorHandling)(function(e,t){if(Object(g.h)(t)){var o=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){o.call(e),e._stopped=!0},t.map((function(e){return function(t){return!t._stopped&&e&&e(t)}}))}return t}(o,e.value),t,5,[o])};return o.value=e,o.attached=B||(M.then((function(){return B=0})),B=Date.now()),o}var U=/^on[a-z]/;function z(e,t,o,n){return n?"innerHTML"===t||"textContent"===t||!!(t in e&&U.test(t)&&Object(g.i)(o)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!U.test(t)||!Object(g.q)(o))&&t in e))))}"undefined"!=typeof HTMLElement&&HTMLElement;var F=function(e,t){var o=t.slots;return Object(n.h)(n.BaseTransition,q(e),o)};F.displayName="Transition";var G={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},W=(F.props=Object(g.d)({},n.BaseTransitionPropsValidators,G),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Object(g.h)(e)?e.forEach((function(e){return e.apply(void 0,m()(t))})):e&&e.apply(void 0,m()(t))}),K=function(e){return!!e&&(Object(g.h)(e)?e.some((function(e){return e.length>1})):e.length>1)};function q(e){var t={};for(var o in e)o in G||(t[o]=e[o]);if(!1===e.css)return t;var n=e.name,a=void 0===n?"v":n,r=e.type,l=e.duration,c=e.enterFromClass,i=void 0===c?"".concat(a,"-enter-from"):c,s=e.enterActiveClass,d=void 0===s?"".concat(a,"-enter-active"):s,u=e.enterToClass,p=void 0===u?"".concat(a,"-enter-to"):u,f=e.appearFromClass,v=void 0===f?i:f,b=e.appearActiveClass,y=void 0===b?d:b,m=e.appearToClass,h=void 0===m?p:m,j=e.leaveFromClass,O=void 0===j?"".concat(a,"-leave-from"):j,_=e.leaveActiveClass,x=void 0===_?"".concat(a,"-leave-active"):_,w=e.leaveToClass,S=void 0===w?"".concat(a,"-leave-to"):w,A=function(e){if(null==e)return null;if(Object(g.l)(e))return[Q(e.enter),Q(e.leave)];var t=Q(e);return[t,t]}(l),C=A&&A[0],k=A&&A[1],P=t.onBeforeEnter,E=t.onEnter,T=t.onEnterCancelled,I=t.onLeave,L=t.onLeaveCancelled,V=t.onBeforeAppear,Y=void 0===V?P:V,D=t.onAppear,H=void 0===D?E:D,R=t.onAppearCancelled,B=void 0===R?T:R,M=function(e,t,o){Z(e,t?h:p),Z(e,t?y:d),o&&o()},N=function(e,t){e._isLeaving=!1,Z(e,O),Z(e,S),Z(e,x),t&&t()},U=function(e){return function(t,o){var n=e?H:E,a=function(){return M(t,e,o)};W(n,[t,a]),J((function(){Z(t,e?v:i),X(t,e?h:p),K(n)||ee(t,r,C,a)}))}};return Object(g.d)(t,{onBeforeEnter(e){W(P,[e]),X(e,i),X(e,d)},onBeforeAppear(e){W(Y,[e]),X(e,v),X(e,y)},onEnter:U(!1),onAppear:U(!0),onLeave(e,t){e._isLeaving=!0;var o=function(){return N(e,t)};X(e,O),ae(),X(e,x),J((function(){e._isLeaving&&(Z(e,O),X(e,S),K(I)||ee(e,r,k,o))})),W(I,[e,o])},onEnterCancelled(e){M(e,!1),W(T,[e])},onAppearCancelled(e){M(e,!0),W(B,[e])},onLeaveCancelled(e){N(e),W(L,[e])}})}function Q(e){return Object(g.u)(e)}function X(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.add(t)})),(e._vtc||(e._vtc=new Set)).add(t)}function Z(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.remove(t)}));var o=e._vtc;o&&(o.delete(t),o.size||(e._vtc=void 0))}function J(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}var $=0;function ee(e,t,o,n){var a=e._endId=++$,r=function(){a===e._endId&&n()};if(o)return setTimeout(r,o);var l=te(e,t),c=l.type,i=l.timeout,s=l.propCount;if(!c)return n();var d=c+"end",u=0,p=function(){e.removeEventListener(d,f),r()},f=function(t){t.target===e&&++u>=s&&p()};setTimeout((function(){u0&&(d="transition",u=l,p=r.length):"animation"===t?s>0&&(d="animation",u=s,p=i.length):p=(d=(u=Math.max(l,s))>0?l>s?"transition":"animation":null)?"transition"===d?r.length:i.length:0,{type:d,timeout:u,propCount:p,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(n("".concat("transition","Property")).toString())}}function oe(e,t){for(;e.length1?r-1:0),c=1;c4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,i=arguments.length>8?arguments[8]:void 0;"class"===t?S(e,n,a):"style"===t?A(e,o,n):Object(g.m)(t)?Object(g.k)(t)||D(e,t,o,n,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):z(e,t,n,a))?L(e,t,n,r,l,c,i):("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),I(e,t,n,a))}},w);function pe(){return de||(de=Object(n.createRenderer)(ue))}var fe=function(){var e;(e=pe()).render.apply(e,arguments)}},"./node_modules/webpack/buildin/global.js":function(e,t,o){e.exports=o("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,o){"use strict";var n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=Object(a.defineComponent)({name:"App",setup(){var e=Object(r.useRouter)(),t=Object(r.useRoute)(),o=Object(a.ref)(""),n=Object(a.ref)(0),l=Object(a.ref)([{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]);return{activatedTab:n,backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC",currentRoute:t,subTitle:o,tabs:l,goBack:function(){e.back()},navigateTo:function(t,o){o!==n.value&&(n.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const i=o.n(c)()(l,[["render",function(e,t,o,a,r,l){var c=Object(n.z)("router-view");return Object(n.t)(),Object(n.f)("div",{id:"root"},[Object(n.g)("div",{id:"header"},[Object(n.g)("div",{class:"left-title"},[Object(n.H)(Object(n.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},null,8,["src"]),[[n.E,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(n.t)(),Object(n.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(n.e)("v-if",!0)]),Object(n.g)("label",{class:"title"},Object(n.C)(e.subTitle),1)]),Object(n.g)("div",{class:"body-container",onClick:Object(n.I)((function(){}),["stop"])},[Object(n.e)(" if you don't need keep-alive, just use '' "),Object(n.i)(c,null,{default:Object(n.G)((function(e){var t=e.Component,o=e.route;return[(Object(n.t)(),Object(n.d)(n.b,null,[(Object(n.t)(),Object(n.d)(Object(n.A)(t),{key:o.path}))],1024))]})),_:1})],8,["onClick"]),Object(n.g)("div",{class:"bottom-tabs"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tabs,(function(t,o){return Object(n.t)(),Object(n.f)("div",{key:"tab-"+o,class:Object(n.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(n.I)((function(n){return e.navigateTo(t,o)}),["stop"])},[Object(n.g)("span",{class:"bottom-tab-text"},Object(n.C)(t.text),1)],10,["onClick"])})),128))])])}]]);t.a=i},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return p})),o.d(t,"b",(function(){return s})),o.d(t,"d",(function(){return i})),o.d(t,"c",(function(){return d})),o.d(t,"e",(function(){return u})),o.d(t,"f",(function(){return c})),o.d(t,"g",(function(){return v})),o.d(t,"h",(function(){return f})),o.d(t,"i",(function(){return b}));var n=o("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),a=o.n(n),r=o("./node_modules/@babel/runtime/regenerator/index.js"),l=o.n(r),c=function(t){return e.getTurboModule("demoTurbo").getString(t)},i=function(t){return e.getTurboModule("demoTurbo").getNum(t)},s=function(t){return e.getTurboModule("demoTurbo").getBoolean(t)},d=function(t){return e.getTurboModule("demoTurbo").getMap(t)},u=function(t){return e.getTurboModule("demoTurbo").getObject(t)},p=function(t){return e.getTurboModule("demoTurbo").getArray(t)},f=function(){var t=a()(l.a.mark((function t(o){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(o));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),v=function(){return e.getTurboModule("demoTurbo").getTurboConfig()},b=function(t){return e.getTurboModule("demoTurbo").printTurboConfig(t)}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("../../packages/hippy-vue-next/dist/index.js"),n=o("./src/app.vue"),a=o("./src/routes.ts"),r=o("./src/util.ts");e.Hippy.on("uncaughtException",(function(e){console.log("uncaughtException error",e.stack,e.message)})),e.Hippy.on("unhandledRejection",(function(e){console.log("unhandledRejection reason",e)}));var l=Object(t.createApp)(n.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0}),c=Object(a.a)();l.use(c),t.EventBus.$on("onSizeChanged",(function(e){e.width&&e.height&&Object(t.setScreenSize)({width:e.width,height:e.height})}));l.$start().then((function(e){var o=e.superProps,n=e.rootViewId;Object(r.b)({superProps:o,rootViewId:n}),c.push("/"),t.BackAndroid.addListener((function(){return console.log("backAndroid"),!0})),l.mount("#root")}))}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return At}));var n=o("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),a=o.n(n),r=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),l=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var c=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),i=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)(!1);Object(c.onActivated)((function(){console.log("".concat(Date.now(),"-button-activated"))})),Object(c.onDeactivated)((function(){console.log("".concat(Date.now(),"-button-Deactivated"))}));return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:function(){e.value=!e.value},onTouchBtnStart:function(e){console.log("onBtnTouchDown",e)},onTouchBtnMove:function(e){console.log("onBtnTouchMove",e)},onTouchBtnEnd:function(e){console.log("onBtnTouchEnd",e)},onClickViewOnce:function(){o.value=!o.value}}}}),s=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),d=o.n(s);var u=d()(i,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"button-demo"},[Object(l.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(l.g)("button",{class:Object(l.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(l.I)((function(){return e.onTouchBtnStart&&e.onTouchBtnStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.I)((function(){return e.onTouchBtnMove&&e.onTouchBtnMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(l.I)((function(){return e.onTouchBtnEnd&&e.onTouchBtnEnd.apply(e,arguments)}),["stop"])),onClick:t[3]||(t[3]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[e.isClicked?(Object(l.t)(),Object(l.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(l.t)(),Object(l.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(l.H)(Object(l.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[l.E,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),p=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),f=o.n(p);function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t1&&(o.value.numberOfLines-=1)},incrementLine:function(){o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:function(e){o.value.ellipsizeMode=e},changeTextShadow:function(){n.value.textShadowOffsetX=t.value%2==1?10:1,n.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:function(e){a.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var ie=d()(ce,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"p-demo"},[Object(l.g)("div",null,[Object(l.g)("label",null,"不带样式:"),Object(l.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(l.I)((function(){return e.onTouchTextStart&&e.onTouchTextStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.I)((function(){return e.onTouchTextMove&&e.onTouchTextMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(l.I)((function(){return e.onTouchTextEnd&&e.onTouchTextEnd.apply(e,arguments)}),["stop"]))}," 这是最普通的一行文字 ",32),Object(l.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(l.C)(e.labelTouchStatus),1),Object(l.g)("label",null,"颜色:"),Object(l.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(l.g)("label",null,"尺寸:"),Object(l.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(l.g)("label",null,"粗体:"),Object(l.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(l.g)("label",null,"下划线:"),Object(l.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(l.g)("label",null,"删除线:"),Object(l.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(l.g)("label",null,"自定义字体:"),Object(l.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(l.g)("label",null,"文字阴影:"),Object(l.g)("p",{class:"p-demo-7 p-demo-content",style:Object(l.p)(e.textShadow),onClick:t[3]||(t[3]=function(){return e.changeTextShadow&&e.changeTextShadow.apply(e,arguments)})}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(l.g)("label",null,"文本字符间距"),Object(l.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(l.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(l.g)("label",null,"字体 style:"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(l.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(l.g)("p",null,"font-style: [not set]")]),Object(l.g)("label",null,"numberOfLines="+Object(l.C)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(l.C)(e.textMode.ellipsizeMode),1),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(l.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(l.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(l.C)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(l.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(l.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.incrementLine&&e.incrementLine.apply(e,arguments)})},[Object(l.g)("span",null,"加一行")]),Object(l.g)("button",{class:"button",onClick:t[5]||(t[5]=function(){return e.decrementLine&&e.decrementLine.apply(e,arguments)})},[Object(l.g)("span",null,"减一行")])]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[6]||(t[6]=function(){return e.changeMode("clip")})},[Object(l.g)("span",null,"clip")]),Object(l.g)("button",{class:"button",onClick:t[7]||(t[7]=function(){return e.changeMode("head")})},[Object(l.g)("span",null,"head")]),Object(l.g)("button",{class:"button",onClick:t[8]||(t[8]=function(){return e.changeMode("middle")})},[Object(l.g)("span",null,"middle")]),Object(l.g)("button",{class:"button",onClick:t[9]||(t[9]=function(){return e.changeMode("tail")})},[Object(l.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("label",{key:0},"break-strategy="+Object(l.C)(e.breakStrategy),1)):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1,class:"p-demo-content"},[Object(l.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(l.C)(e.longText),9,["break-strategy"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(l.I)((function(){return e.changeBreakStrategy("simple")}),["stop"]))},[Object(l.g)("span",null,"simple")]),Object(l.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(l.I)((function(){return e.changeBreakStrategy("high_quality")}),["stop"]))},[Object(l.g)("span",null,"high_quality")]),Object(l.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(l.I)((function(){return e.changeBreakStrategy("balanced")}),["stop"]))},[Object(l.g)("span",null,"balanced")])])])):Object(l.e)("v-if",!0),Object(l.g)("label",null,"vertical-align"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字")])):Object(l.e)("v-if",!0)]),Object(l.g)("label",null,"tint-color & background-color"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(l.e)("v-if",!0)]),Object(l.g)("label",null,"margin"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(l.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var se=Object(c.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var de=d()(se,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(l.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(l.g)("p",null,"没有偏移阴影样式")])])):Object(l.e)("v-if",!0),"ios"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(l.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(l.g)("p",null,"没有偏移阴影样式")])])):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(l.g)("div",{class:"offset-shadow-demo-content-android"},[Object(l.g)("p",null,"偏移阴影样式")])])):Object(l.e)("v-if",!0),"ios"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(l.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(l.g)("p",null,"偏移阴影样式")])])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ue=Object(c.defineComponent)({setup(){var e=Object(c.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(c.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:function(e){console.log(e)},changeBreakStrategy:function(e){t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var pe=d()(ue,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"demo-textarea"},[Object(l.g)("label",null,"多行文本:"),Object(l.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=function(t){return e.content=t.value}),"on:contentSizeChange":t[1]||(t[1]=function(){return e.contentSizeChange&&e.contentSizeChange.apply(e,arguments)})},null,40,["value"]),Object(l.g)("div",{class:"output-container"},[Object(l.g)("p",{class:"output"}," 输入的文本为:"+Object(l.C)(e.content),1)]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("label",{key:0},"break-strategy="+Object(l.C)(e.breakStrategy),1)):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1},[Object(l.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[2]||(t[2]=function(){return e.changeBreakStrategy("simple")})},[Object(l.g)("span",null,"simple")]),Object(l.g)("button",{class:"button",onClick:t[3]||(t[3]=function(){return e.changeBreakStrategy("high_quality")})},[Object(l.g)("span",null,"high_quality")]),Object(l.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.changeBreakStrategy("balanced")})},[Object(l.g)("span",null,"balanced")])])])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var fe=o("./src/components/demo/demoTurbo.ts"),ve=Object(c.defineComponent)({setup(){var e=null,t=Object(c.ref)(""),o=function(){var o=I()(V.a.mark((function o(n){var a,r,l,c;return V.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("nativeWithPromise"!==n){o.next=6;break}return o.next=3,Object(fe.h)("aaa");case 3:t.value=o.sent,o.next=7;break;case 6:"getTurboConfig"===n?(e=Object(fe.g)(),t.value="获取到config对象"):"printTurboConfig"===n?t.value=Object(fe.i)(null!==(a=e)&&void 0!==a?a:Object(fe.g)()):"getInfo"===n?t.value=(null!==(r=e)&&void 0!==r?r:Object(fe.g)()).getInfo():"setInfo"===n?((null!==(l=e)&&void 0!==l?l:Object(fe.g)()).setInfo("Hello World"),t.value="设置config信息成功"):(c={getString:function(){return Object(fe.f)("123")},getNum:function(){return Object(fe.d)(1024)},getBoolean:function(){return Object(fe.b)(!0)},getMap:function(){return Object(fe.c)(new Map([["a","1"],["b","2"]]))},getObject:function(){return Object(fe.e)({c:"3",d:"4"})},getArray:function(){return Object(fe.a)(["a","b","c"])}},t.value=c[n]());case 7:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}();return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:o}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var be=d()(ve,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"demo-turbo"},[Object(l.g)("span",{class:"result"},Object(l.C)(e.result),1),Object(l.g)("ul",{style:{flex:"1"}},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.funList,(function(t){return Object(l.t)(),Object(l.f)("li",{key:t,class:"cell"},[Object(l.g)("div",{class:"contentView"},[Object(l.g)("div",{class:"func-info"},[Object(l.g)("span",{numberOfLines:0},"函数名:"+Object(l.C)(t),1)]),Object(l.g)("span",{class:"action-button",onClick:Object(l.I)((function(){return e.onTurboFunc(t)}),["stop"])},"运行",8,["onClick"])])])})),128))])])}]]);var ye=null,me=Object(c.ref)([]),ge=function(e){me.value.unshift(e)},he=function(){ye&&1===ye.readyState&&ye.close()},je=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null);return{output:me,inputUrl:e,inputMessage:t,connect:function(){var t=e.value;t&&t.getValue().then((function(e){!function(e){he(),(ye=new WebSocket(e)).onopen=function(){var e;return ge("[Opened] ".concat(null===(e=ye)||void 0===e?void 0:e.url))},ye.onclose=function(){var e;return ge("[Closed] ".concat(null===(e=ye)||void 0===e?void 0:e.url))},ye.onerror=function(e){ge("[Error] ".concat(e.reason))},ye.onmessage=function(e){return ge("[Received] ".concat(e.data))}}(e)}))},disconnect:function(){he()},sendMessage:function(){var e=t.value;e&&e.getValue().then((function(e){!function(e){ge("[Sent] ".concat(e)),ye&&ye.send(e)}(e)}))}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var Oe={demoDiv:{name:"div 组件",component:E},demoShadow:{name:"box-shadow",component:de},demoP:{name:"p 组件",component:ie},demoButton:{name:"button 组件",component:u},demoImg:{name:"img 组件",component:U},demoInput:{name:"input 组件",component:q},demoTextarea:{name:"textarea 组件",component:pe},demoUl:{name:"ul/li 组件",component:le},demoIFrame:{name:"iframe 组件",component:R},demoWebSocket:{name:"WebSocket",component:d()(je,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"websocket-demo"},[Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Url: "),Object(l.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(l.g)("div",{class:"row"},[Object(l.g)("button",{onClick:t[0]||(t[0]=Object(l.I)((function(){return e.connect&&e.connect.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Connect")]),Object(l.g)("button",{onClick:t[1]||(t[1]=Object(l.I)((function(){return e.disconnect&&e.disconnect.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Disconnect")])])]),Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Message: "),Object(l.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(l.g)("button",{onClick:t[2]||(t[2]=Object(l.I)((function(){return e.sendMessage&&e.sendMessage.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Send")])]),Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Log: "),Object(l.g)("div",{class:"output fullscreen"},[Object(l.g)("div",null,[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.output,(function(e,t){return Object(l.t)(),Object(l.f)("p",{key:t},Object(l.C)(e),1)})),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:D},demoTurbo:{name:"Turbo",component:be}};var _e=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(0),o=Object(c.ref)(0);Object(c.onMounted)((function(){o.value=y.Native.Dimensions.screen.width}));return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:function(t){var n=t.touches[0].clientX-40;console.log("touchdown x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchDown2:function(e){t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:function(t){var n=t.touches[0].clientX-40;console.log("touchmove x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchMove2:function(e){t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var xe=d()(_e,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"set-native-props-demo"},[Object(l.g)("label",null,"setNativeProps实现拖动效果"),Object(l.g)("div",{class:"native-demo-1-drag",style:Object(l.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(l.I)((function(){return e.onTouchDown1&&e.onTouchDown1.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.I)((function(){return e.onTouchMove1&&e.onTouchMove1.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(l.g)("div",{class:"splitter"}),Object(l.g)("label",null,"普通渲染实现拖动效果"),Object(l.g)("div",{class:"native-demo-2-drag",style:Object(l.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(l.I)((function(){return e.onTouchDown2&&e.onTouchDown2.apply(e,arguments)}),["stop"])),onTouchmove:t[3]||(t[3]=Object(l.I)((function(){return e.onTouchMove2&&e.onTouchMove2.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{class:"native-demo-2-point",style:Object(l.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);var we={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]},Se=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup:()=>({colorActions:we})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var Ae=d()(Se,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(l.G)((function(){return[Object(l.g)("div",{class:"color-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);var Ce={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}},ke=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup(e){var t=Object(c.ref)(null);return Object(c.onMounted)((function(){e.onRef&&e.onRef(t.value)})),{animationView:t,loopActions:Ce}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var Pe=d()(ke,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(l.G)((function(){return[Object(l.g)("div",{class:"loop-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);var Ee={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Te={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Ie=Object(c.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:function(){}}},emits:["actionsDidUpdate"],setup(e){var t=Object(c.toRefs)(e).direction,o=Object(c.ref)(""),n=Object(c.ref)(null);return Object(c.watch)(t,(function(e){switch(e){case"horizon":o.value=Ee;break;case"vertical":o.value=Te;break;default:throw new Error("direction must be defined in props")}}),{immediate:!0}),Object(c.onMounted)((function(){e.onRef&&e.onRef(n.value)})),{loopActions:o,animationLoop:n}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Le=d()(Ie,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=function(t){return e.$emit("actionsDidUpdate")})},{default:Object(l.G)((function(){return[Object(l.g)("div",{class:"loop-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);var Ve={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},Ye={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},De=Object(c.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){var t=Object(c.ref)(null),o=Object(c.ref)({face:Ve,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),n=Object(c.toRefs)(e).isChanged;return Object(c.watch)(n,(function(e,n){!n&&e?(console.log("changed to face2"),o.value.face=Ye):n&&!e&&(console.log("changed to face1"),o.value.face=Ve),setTimeout((function(){t.value&&t.value.start()}),10)})),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:function(){console.log("animation-start callback")},animationEnd:function(){console.log("animation-end callback")},animationRepeat:function(){console.log("animation-repeat callback")},animationCancel:function(){console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var He=d()(De,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(l.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Re=Object(c.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Be=d()(Re,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(l.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(l.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Me=Object(c.defineComponent)({components:{Loop:Le,colorComponent:Ae,CubicBezier:Pe},setup(){var e=Object(c.ref)(!0),t=Object(c.ref)(!0),o=Object(c.ref)(!0),n=Object(c.ref)("horizon"),a=Object(c.ref)(!0),r=Object(c.ref)(null),l=Object(c.shallowRef)(Be);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:n,voteComponent:l,colorComponent:Ae,isChanged:a,animationRef:r,voteUp:function(){l.value=Be},voteDown:function(){l.value=He,a.value=!a.value},onRef:function(e){r.value=e},toggleLoopPlaying:function(){e.value=!e.value},toggleColorPlaying:function(){t.value=!t.value},toggleCubicPlaying:function(){o.value=!o.value},toggleDirection:function(){n.value="horizon"===n.value?"vertical":"horizon"},actionsDidUpdate:function(){Object(c.nextTick)().then((function(){console.log("actions updated & startAnimation"),r.value&&r.value.start()}))}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var Ne=d()(Me,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("loop"),i=Object(l.z)("color-component"),s=Object(l.z)("cubic-bezier");return Object(l.t)(),Object(l.f)("ul",{id:"animation-demo"},[Object(l.g)("li",null,[Object(l.g)("label",null,"控制动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.toggleLoopPlaying&&e.toggleLoopPlaying.apply(e,arguments)})},[e.loopPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.toggleDirection&&e.toggleDirection.apply(e,arguments)})},["horizon"===e.direction?(Object(l.t)(),Object(l.f)("span",{key:0},"切换为纵向")):(Object(l.t)(),Object(l.f)("span",{key:1},"切换为横向"))])]),Object(l.g)("div",{style:{height:"150px"}},[Object(l.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(l.G)((function(){return[Object(l.g)("p",null,"I'm a looping animation")]})),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"点赞笑脸动画:"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=function(){return e.voteUp&&e.voteUp.apply(e,arguments)})},[Object(l.g)("span",null,"点赞 👍")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=function(){return e.voteDown&&e.voteDown.apply(e,arguments)})},[Object(l.g)("span",null,"踩 👎")])]),Object(l.g)("div",{class:"vote-face-container center"},[(Object(l.t)(),Object(l.d)(Object(l.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"渐变色动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=function(){return e.toggleColorPlaying&&e.toggleColorPlaying.apply(e,arguments)})},[e.colorPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))])]),Object(l.g)("div",null,[Object(l.i)(i,{playing:e.colorPlaying},{default:Object(l.G)((function(){return[Object(l.g)("p",null,"背景色渐变")]})),_:1},8,["playing"])])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"贝塞尔曲线动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=function(){return e.toggleCubicPlaying&&e.toggleCubicPlaying.apply(e,arguments)})},[e.cubicPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))])]),Object(l.g)("div",null,[Object(l.i)(s,{playing:e.cubicPlaying},{default:Object(l.G)((function(){return[Object(l.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]})),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ue=o("./node_modules/vue-router/dist/vue-router.mjs"),ze=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],Fe=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)("fade"),n=Object(c.ref)(!1),a=Object(c.ref)(!1),r=Object(c.ref)(!1);return Object(Ue.onBeforeRouteLeave)((function(t,o,n){e.value||n()})),{supportedOrientations:ze,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:n,autoHideStatusBar:a,autoHideNavigationBar:r,stopPropagation:function(e){e.stopPropagation()},onClose:function(o){o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:function(){console.log("Dialog is opening")},onClickView:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e.value=!e.value,o.value=t},onClickOpenSecond:function(e){e.stopPropagation(),t.value=!t.value},onClickDialogConfig:function(e){switch(e){case"hideStatusBar":a.value=!a.value;break;case"immerseStatusBar":n.value=!n.value;break;case"hideNavigationBar":r.value=!r.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var Ge=d()(Fe,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"dialog-demo"},[Object(l.g)("label",null,"显示或者隐藏对话框:"),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(l.I)((function(){return e.onClickView("slide")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(l.I)((function(){return e.onClickView("fade")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(l.I)((function(){return e.onClickView("slide_fade")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(l.I)((function(){return e.onClickDialogConfig("hideStatusBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(l.I)((function(){return e.onClickDialogConfig("immerseStatusBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(l.I)((function(){return e.onClickDialogConfig("hideNavigationBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(l.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(l.t)(),Object(l.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=function(){return e.onShow&&e.onShow.apply(e,arguments)}),"on:requestClose":t[13]||(t[13]=function(){return e.onClose&&e.onClose.apply(e,arguments)}),"on:orientationChange":t[14]||(t[14]=function(){return e.onOrientationChange&&e.onOrientationChange.apply(e,arguments)})},[Object(l.e)(" dialog on iOS platform can only have one child node "),Object(l.g)("div",{class:"dialog-demo-wrapper"},[Object(l.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[Object(l.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=function(){return e.stopPropagation&&e.stopPropagation.apply(e,arguments)})},[Object(l.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(l.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(l.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(l.t)(),Object(l.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=function(){return e.onClose&&e.onClose.apply(e,arguments)}),"on:orientationChange":t[10]||(t[10]=function(){return e.onOrientationChange&&e.onOrientationChange.apply(e,arguments)})},[Object(l.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(l.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(l.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var We,Ke=o("./src/util.ts"),qe=Object(c.defineComponent)({setup(){var e=Object(c.ref)("ready to set"),t=Object(c.ref)(""),o=Object(c.ref)(""),n=Object(c.ref)("正在获取..."),a=Object(c.ref)(""),r=Object(c.ref)(""),l=Object(c.ref)(""),i=Object(c.ref)(null),s=Object(c.ref)("请求网址中..."),d=Object(c.ref)("ready to set"),u=Object(c.ref)(""),p=Object(c.ref)(0),f=function(){var e=I()(V.a.mark((function e(){var o;return V.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.Native.AsyncStorage.getItem("itemKey");case 2:o=e.sent,t.value=o||"undefined";case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=I()(V.a.mark((function e(){var t;return V.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");case 2:t=e.sent,console.log("ImageLoader getSize",t),o.value="".concat(t.width,"x").concat(t.height);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=I()(V.a.mark((function e(){var t,o,n=arguments;return V.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],e.prev=1,e.next=4,y.Native.getBoundingClientRect(i.value,{relToContainer:t});case 4:o=e.sent,t?r.value="".concat(JSON.stringify(o)):a.value="".concat(JSON.stringify(o)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getBoundingClientRect error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){l.value=JSON.stringify(Object(Ke.a)()),y.Native.NetInfo.fetch().then((function(e){n.value=e})),We=y.Native.NetInfo.addEventListener("change",(function(e){n.value="收到通知: ".concat(e.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(e){s.value="成功状态: ".concat(e.status)})).catch((function(e){s.value="收到错误: ".concat(e)})),y.EventBus.$on("testEvent",(function(){p.value+=1}))})),{Native:y.Native,rect1:a,rect2:r,rectRef:i,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:n,superProps:l,fetchText:s,cookieString:d,cookiesValue:u,getSize:v,setItem:function(){y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:f,removeItem:function(){y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:function(){y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:function(){y.Native.Cookie.getAll("https://hippyjs.org").then((function(e){u.value=e}))},getBoundingClientRect:b,triggerAppEvent:function(){y.EventBus.$emit("testEvent")},eventTriggeredTimes:p}},beforeDestroy(){We&&y.Native.NetInfo.removeEventListener("change",We),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Qe=d()(qe,[["render",function(e,t,o,n,a,r){var c,i;return Object(l.t)(),Object(l.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(l.g)("div",null,[Object(l.e)(" platform "),e.Native.Platform?(Object(l.t)(),Object(l.f)("div",{key:0,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(l.g)("p",null,Object(l.C)(e.Native.Platform),1)])):Object(l.e)("v-if",!0),Object(l.e)(" device name "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Device"),Object(l.g)("p",null,Object(l.C)(e.Native.Device),1)]),Object(l.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:1,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(l.g)("p",null,Object(l.C)(e.Native.isIPhoneX),1)])):Object(l.e)("v-if",!0),Object(l.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:2,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(l.g)("p",null,Object(l.C)(e.Native.OSVersion||"null"),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Internationalization related information "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(l.g)("p",null,Object(l.C)("国际化相关信息")),Object(l.g)("p",null,Object(l.C)("国家 ".concat(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(l.g)("p",null,Object(l.C)("语言 ".concat(null===(i=e.Native.Localization)||void 0===i?void 0:i.language)),1),Object(l.g)("p",null,Object(l.C)("方向 ".concat(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(l.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(l.t)(),Object(l.f)("div",{key:3,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(l.g)("p",null,Object(l.C)(e.Native.APILevel||"null"),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Whether the screen is vertically displayed "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(l.g)("p",null,Object(l.C)(e.Native.screenIsVertical),1)]),Object(l.e)(" width of window "),e.Native.Dimensions.window.width?(Object(l.t)(),Object(l.f)("div",{key:4,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(l.g)("p",null,Object(l.C)(e.Native.Dimensions.window.width),1)])):Object(l.e)("v-if",!0),Object(l.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(l.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(l.t)(),Object(l.f)("div",{key:5,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(l.g)("p",null,Object(l.C)(e.Native.Dimensions.window.height),1)])):Object(l.e)("v-if",!0),Object(l.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(l.t)(),Object(l.f)("div",{key:6,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(l.g)("p",null,Object(l.C)(e.Native.Dimensions.screen.width),1)])):Object(l.e)("v-if",!0),Object(l.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(l.t)(),Object(l.f)("div",{key:7,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(l.g)("p",null,Object(l.C)(e.Native.Dimensions.screen.height),1)])):Object(l.e)("v-if",!0),Object(l.e)(" the pt value of a pixel "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(l.g)("p",null,Object(l.C)(e.Native.OnePixel),1)]),Object(l.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(l.t)(),Object(l.f)("div",{key:8,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(l.g)("p",null,Object(l.C)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(l.t)(),Object(l.f)("div",{key:9,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(l.g)("p",null,Object(l.C)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(l.t)(),Object(l.f)("div",{key:10,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(l.g)("p",null,Object(l.C)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" The startup parameters passed from the native "),e.superProps?(Object(l.t)(),Object(l.f)("div",{key:11,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(l.g)("p",null,Object(l.C)(e.superProps),1)])):Object(l.e)("v-if",!0),Object(l.e)(" A demo of Native Event,Just show how to use "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"App event"),Object(l.g)("div",null,[Object(l.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=function(){return e.triggerAppEvent&&e.triggerAppEvent.apply(e,arguments)})},[Object(l.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(l.g)("div",{class:"event-btn-result"},[Object(l.g)("p",null,"Event triggered times: "+Object(l.C)(e.eventTriggeredTimes),1)])])]),Object(l.e)(" example of measuring the size of an element "),Object(l.g)("div",{ref:"measure-block",class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[1]||(t[1]=function(){return e.getBoundingClientRect(!1)})},[Object(l.g)("span",null,"relative to App")]),Object(l.g)("span",{style:{"max-width":"200px"}},Object(l.C)(e.rect1),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[2]||(t[2]=function(){return e.getBoundingClientRect(!0)})},[Object(l.g)("span",null,"relative to Container")]),Object(l.g)("span",{style:{"max-width":"200px"}},Object(l.C)(e.rect2),1)])],512),Object(l.e)(" local storage "),e.Native.AsyncStorage?(Object(l.t)(),Object(l.f)("div",{key:12,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[3]||(t[3]=function(){return e.setItem&&e.setItem.apply(e,arguments)})},[Object(l.g)("span",null,"setItem")]),Object(l.g)("span",null,Object(l.C)(e.storageSetStatus),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[4]||(t[4]=function(){return e.removeItem&&e.removeItem.apply(e,arguments)})},[Object(l.g)("span",null,"removeItem")]),Object(l.g)("span",null,Object(l.C)(e.storageSetStatus),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[5]||(t[5]=function(){return e.getItem&&e.getItem.apply(e,arguments)})},[Object(l.g)("span",null,"getItem")]),Object(l.g)("span",null,Object(l.C)(e.storageValue),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" ImageLoader "),e.Native.ImageLoader?(Object(l.t)(),Object(l.f)("div",{key:13,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[6]||(t[6]=function(){return e.getSize&&e.getSize.apply(e,arguments)})},[Object(l.g)("span",null,"getSize")]),Object(l.g)("span",null,Object(l.C)(e.imageSize),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" Fetch "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("span",null,Object(l.C)(e.fetchText),1)])]),Object(l.e)(" network info "),e.Native.NetInfo?(Object(l.t)(),Object(l.f)("div",{key:14,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("span",null,Object(l.C)(e.netInfoText),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" Cookie "),e.Native.Cookie?(Object(l.t)(),Object(l.f)("div",{key:15,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[7]||(t[7]=function(){return e.setCookie&&e.setCookie.apply(e,arguments)})},[Object(l.g)("span",null,"setCookie")]),Object(l.g)("span",null,Object(l.C)(e.cookieString),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[8]||(t[8]=function(){return e.getCookie&&e.getCookie.apply(e,arguments)})},[Object(l.g)("span",null,"getCookie")]),Object(l.g)("span",null,Object(l.C)(e.cookiesValue),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" iOS platform "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:16,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(l.g)("p",null,Object(l.C)(e.Native.isIOS()),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Android platform "),e.Native.isAndroid()?(Object(l.t)(),Object(l.f)("div",{key:17,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(l.g)("p",null,Object(l.C)(e.Native.isAndroid()),1)])):Object(l.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);var Xe="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Ze={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[Xe,Xe,Xe],subInfo:["三图评论","11评"]}},Je={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},$e={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}},et=[$e,Ze,Je,Ze,Je,Ze,Je,$e,Ze];var tt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var ot=d()(tt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-one"},[Object(l.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(l.C)(e.itemBean.title),1),Object(l.g)("div",{class:"style-one-image-container"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.itemBean.picList,(function(e,t){return Object(l.t)(),Object(l.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"])})),128))]),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.C)(e.itemBean.subInfo.join("")),1)])])}]]);var nt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var at=d()(nt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-two"},[Object(l.g)("div",{class:"style-two-left-container"},[Object(l.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(l.C)(e.itemBean.title),1),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.C)(e.itemBean.subInfo.join("")),1)])]),Object(l.g)("div",{class:"style-two-image-container"},[Object(l.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var rt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var lt=d()(rt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-five"},[Object(l.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(l.C)(e.itemBean.title),1),Object(l.g)("div",{class:"style-five-image-container"},[Object(l.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.C)(e.itemBean.subInfo.join(" ")),1)])])}]]),ct=0,it=Object(c.ref)({top:0,left:0}),st=function(){var e=I()(V.a.mark((function e(){return V.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e(et)}),800)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dt=Object(c.defineComponent)({components:{StyleOne:ot,StyleTwo:at,StyleFive:lt},setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null),o=Object(c.ref)(null),n=Object(c.ref)(a()(et)),r=!1,l=!1,i=Object(c.ref)(""),s=Object(c.ref)("继续下拉触发刷新"),d=Object(c.ref)("正在加载..."),u=function(){var e=I()(V.a.mark((function e(){return V.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=2;break}return e.abrupt("return");case 2:return l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",e.next=7,st();case 7:n.value=e.sent,n.value=n.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3});case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=I()(V.a.mark((function e(t){var l;return V.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("endReached",t),!r){e.next=3;break}return e.abrupt("return");case 3:return r=!0,d.value="加载更多...",e.next=7,st();case 7:0===(l=e.sent).length&&(d.value="没有更多数据"),n.value=[].concat(a()(n.value),a()(l)),r=!1,o.value&&o.value.collapsePullFooter();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){r=!1,l=!1,n.value=a()(et),ct=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})})),{loadingState:i,dataSource:n,headerRefreshText:s,footerRefreshText:d,list:e,pullHeader:t,pullFooter:o,onEndReached:p,onHeaderReleased:u,onHeaderIdle:function(){},onHeaderPulling:function(e){l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:function(){},onFooterPulling:function(e){console.log("onFooterPulling",e)},onScroll:function(e){e.stopPropagation(),it.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:function(){if(y.Native){if(e.value){var t=e.value;console.log("scroll to next page",e,it.value,ct);var o=it.value.top+ct-200;t.scrollTo({left:it.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(y.Native){if(e.value){var t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var ut=d()(dt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("pull-header"),i=Object(l.z)("style-one"),s=Object(l.z)("style-two"),d=Object(l.z)("style-five"),u=Object(l.z)("pull-footer");return Object(l.t)(),Object(l.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到下一页")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToBottom&&e.scrollToBottom.apply(e,arguments)})},[Object(l.g)("span",null,"翻动到底部")]),Object(l.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(l.C)(e.dataSource.length),1)]),Object(l.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=function(){return e.onScroll&&e.onScroll.apply(e,arguments)})},[Object(l.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(l.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(l.G)((function(){return[Object(l.g)("p",{class:"ul-refresh-text"},Object(l.C)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(e,t){return Object(l.t)(),Object(l.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(l.t)(),Object(l.d)(i,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),2===e.style?(Object(l.t)(),Object(l.d)(s,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),5===e.style?(Object(l.t)(),Object(l.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0)],8,["type","sticky"])})),128)),Object(l.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(l.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(l.G)((function(){return[Object(l.g)("p",{class:"pull-footer-text"},Object(l.C)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var pt=Object(c.defineComponent)({setup(){var e=Object(c.ref)("idle"),t=Object(c.ref)(2),o=Object(c.ref)(2);return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:function(){console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:function(){console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:function(e){console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:function(e){console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:function(t){console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var ft=d()(pt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("swiper-slide"),i=Object(l.z)("swiper");return Object(l.t)(),Object(l.f)("div",{id:"demo-swiper"},[Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToPrevPage&&e.scrollToPrevPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到上一页")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到下一页")]),Object(l.g)("p",{class:"toolbar-text"}," 当前第 "+Object(l.C)(e.currentSlideNum+1)+" 页 ",1)]),Object(l.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(l.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(l.G)((function(){return[Object(l.e)(" slides "),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(e){return Object(l.t)(),Object(l.d)(c,{key:e,style:Object(l.p)({backgroundColor:4278222848+100*e})},{default:Object(l.G)((function(){return[Object(l.g)("p",null,"I'm Slide "+Object(l.C)(e+1),1)]})),_:2},1032,["style"])})),128))]})),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(l.e)(" A Demo of dots "),Object(l.g)("div",{id:"swiper-dots"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(t){return Object(l.t)(),Object(l.f)("div",{key:t,class:Object(l.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2)})),128))])])}]]);var vt=0,bt={top:0,left:5,bottom:0,right:5},yt="ios"===y.Native.Platform,mt=function(){var e=I()(V.a.mark((function e(){return V.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e((vt+=1)>=50?[]:[].concat(a()(et),a()(et)))}),600)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=Object(c.defineComponent)({components:{StyleOne:ot,StyleTwo:at,StyleFive:lt},setup(){var e=Object(c.ref)([].concat(a()(et),a()(et),a()(et),a()(et))),t=!1,o=!1,n=Object(c.ref)(!1),r=Object(c.ref)("正在加载..."),l=Object(c.ref)(null),i=Object(c.ref)(null),s="继续下拉触发刷新",d="正在加载...",u=Object(c.computed)((function(){return n.value?"正在刷新":"下拉刷新"})),p=Object(c.ref)(null),f=Object(c.ref)(null),v=Object(c.computed)((function(){return(y.Native.Dimensions.screen.width-bt.left-bt.right-6)/2})),b=function(){var t=I()(V.a.mark((function t(){var o;return V.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.value=!0,t.next=3,mt();case 3:o=t.sent,n.value=!1,e.value=o.reverse(),f.value&&f.value.refreshCompleted();case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=I()(V.a.mark((function e(){return V.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=2;break}return e.abrupt("return");case 2:o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var o=I()(V.a.mark((function o(){var n;return V.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(console.log("end Reached"),!t){o.next=3;break}return o.abrupt("return");case 3:return t=!0,d="加载更多...",o.next=7,mt();case 7:0===(n=o.sent).length&&(d="没有更多数据"),e.value=[].concat(a()(e.value),a()(n)),t=!1,i.value&&i.value.collapsePullFooter();case 12:case"end":return o.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();return{dataSource:e,isRefreshing:n,refreshText:u,STYLE_LOADING:100,loadingState:r,header:f,gridView:p,contentInset:bt,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:v,onScroll:function(e){console.log("waterfall onScroll",e)},onRefresh:b,onEndReached:g,onClickItem:function(e){p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:yt,onHeaderPulling:function(e){o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:m,headerRefreshText:s,footerRefreshText:d,loadMoreDataFlag:t,pullHeader:l,pullFooter:i}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ht=d()(gt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("pull-header"),i=Object(l.z)("waterfall-item"),s=Object(l.z)("style-one"),d=Object(l.z)("style-two"),u=Object(l.z)("style-five"),p=Object(l.z)("pull-footer"),f=Object(l.z)("waterfall");return Object(l.t)(),Object(l.f)("div",{id:"demo-waterfall"},[Object(l.i)(f,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(l.G)((function(){return[Object(l.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(l.G)((function(){return[Object(l.g)("p",{class:"ul-refresh-text"},Object(l.C)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(l.t)(),Object(l.f)("div",{key:0,class:"banner-view"},[Object(l.g)("span",null,"BannerView")])):(Object(l.t)(),Object(l.d)(i,{key:1,"full-span":!0,class:"banner-view"},{default:Object(l.G)((function(){return[Object(l.g)("span",null,"BannerView")]})),_:1})),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(t,o){return Object(l.t)(),Object(l.d)(i,{key:o,style:Object(l.p)({width:e.itemWidth}),type:t.style,onClick:Object(l.I)((function(){return e.onClickItem(o)}),["stop"])},{default:Object(l.G)((function(){return[1===t.style?(Object(l.t)(),Object(l.d)(s,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),2===t.style?(Object(l.t)(),Object(l.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),5===t.style?(Object(l.t)(),Object(l.d)(u,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0)]})),_:2},1032,["style","type","onClick"])})),128)),Object(l.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(l.G)((function(){return[Object(l.g)("p",{class:"pull-footer-text"},Object(l.C)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])]})),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var jt=Object(c.defineComponent)({setup(){var e=Object(c.ref)(0),t=Object(c.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:function(t){e.value=t.height},onTabClick:function(e){t.value=e-1},onDropped:function(e){t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var Ot={demoNative:{name:"Native 能力",component:Qe},demoAnimation:{name:"animation 组件",component:Ne},demoDialog:{name:"dialog 组件",component:Ge},demoSwiper:{name:"swiper 组件",component:ft},demoPullHeaderFooter:{name:"pull header/footer 组件",component:ut},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:d()(jt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("swiper-slide"),i=Object(l.z)("swiper");return Object(l.t)(),Object(l.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=function(){return e.onLayout&&e.onLayout.apply(e,arguments)})},[Object(l.g)("div",{id:"demo-content"},[Object(l.g)("div",{id:"banner"}),Object(l.g)("div",{id:"tabs"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(2,(function(t){return Object(l.g)("p",{key:"tab"+t,class:Object(l.o)(e.currentSlide===t-1?"selected":""),onClick:function(o){return e.onTabClick(t)}}," tab "+Object(l.C)(t)+" "+Object(l.C)(1===t?"(parent first)":"(self first)"),11,["onClick"])})),64))]),Object(l.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(l.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(l.G)((function(){return[Object(l.i)(c,{key:"slide1"},{default:Object(l.G)((function(){return[Object(l.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(30,(function(e){return Object(l.g)("li",{key:"item"+e,class:Object(l.o)(e%2?"item-even":"item-odd")},[Object(l.g)("p",null,"Item "+Object(l.C)(e),1)],2)})),64))])]})),_:1}),Object(l.i)(c,{key:"slide2"},{default:Object(l.G)((function(){return[Object(l.g)("ul",{nestedScrollTopPriority:"self"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(30,(function(e){return Object(l.g)("li",{key:"item"+e,class:Object(l.o)(e%2?"item-even":"item-odd")},[Object(l.g)("p",null,"Item "+Object(l.C)(e),1)],2)})),64))])]})),_:1})]})),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:xe}};var _t=Object(c.defineComponent)({name:"App",setup(){var e=Object.keys(Oe).map((function(e){return{id:e,name:Oe[e].name}})),t=Object.keys(Ot).map((function(e){return{id:e,name:Ot[e].name}}));return Object(c.onMounted)((function(){})),{featureList:e,nativeFeatureList:t,version:c.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var xt=d()(_t,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("router-link");return Object(l.t)(),Object(l.f)("ul",{class:"feature-list"},[Object(l.g)("li",null,[Object(l.g)("div",{id:"version-info"},[Object(l.g)("p",{class:"feature-title"}," Vue: "+Object(l.C)(e.version),1),e.Native?(Object(l.t)(),Object(l.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(l.C)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(l.e)("v-if",!0)])]),Object(l.g)("li",null,[Object(l.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.featureList,(function(e){return Object(l.t)(),Object(l.f)("li",{key:e.id,class:"feature-item"},[Object(l.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(l.G)((function(){return[Object(l.h)(Object(l.C)(e.name),1)]})),_:2},1032,["to"])])})),128)),e.nativeFeatureList.length?(Object(l.t)(),Object(l.f)("li",{key:0},[Object(l.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(l.e)("v-if",!0),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.nativeFeatureList,(function(e){return Object(l.t)(),Object(l.f)("li",{key:e.id,class:"feature-item"},[Object(l.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(l.G)((function(){return[Object(l.h)(Object(l.C)(e.name),1)]})),_:2},1032,["to"])])})),128))])}],["__scopeId","data-v-63300fa4"]]);var wt=Object(c.defineComponent)({setup(){var e=Object(c.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(c.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:function(){t.value&&t.value.blur()},openBundle:function(){if(e.value){var t=Object(Ke.a)().rootViewId;y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");var St=[{path:"/",component:xt},{path:"/remote-debug",component:d()(wt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(l.I)((function(){return e.blurInput&&e.blurInput.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{class:"tips-wrap"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.tips,(function(t,o){return Object(l.t)(),Object(l.f)("p",{key:o,class:"tips-item",style:Object(l.p)(e.styles.tipText)},Object(l.C)(o+1)+". "+Object(l.C)(t),5)})),128))]),Object(l.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(l.I)((function(){}),["stop"]),onChange:t[0]||(t[0]=function(t){return e.bundleUrl=t.value})},null,40,["value","onClick"]),Object(l.g)("div",{class:"buttonContainer",style:Object(l.p)(e.styles.buttonContainer)},[Object(l.g)("button",{style:Object(l.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(l.I)((function(){return e.openBundle&&e.openBundle.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",{style:Object(l.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"}].concat(a()(Object.keys(Oe).map((function(e){return{path:"/demo/".concat(e),name:Oe[e].name,component:Oe[e].component}}))),a()(Object.keys(Ot).map((function(e){return{path:"/demo/".concat(e),name:Ot[e].name,component:Ot[e].component}}))));function At(){return Object(r.createHippyRouter)({routes:St})}},"./src/util.ts":function(e,t,o){"use strict";var n;function a(e){n=e}function r(){return n}o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){o("./node_modules/@hippy/rejection-tracking-polyfill/index.js"),e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file + */var i="undefined"!=typeof document;function s(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}var d=Object.assign;function u(e,t){var o={};for(var n in t){var a=t[n];o[n]=f(a)?a.map(e):e(a)}return o}var p=function(){},f=Array.isArray;var v=/#/g,b=/&/g,y=/\//g,m=/=/g,g=/\?/g,h=/\+/g,j=/%5B/g,O=/%5D/g,_=/%5E/g,x=/%60/g,w=/%7B/g,S=/%7C/g,A=/%7D/g,k=/%20/g;function C(e){return encodeURI(""+e).replace(S,"|").replace(j,"[").replace(O,"]")}function P(e){return C(e).replace(h,"%2B").replace(k,"+").replace(v,"%23").replace(b,"%26").replace(x,"`").replace(w,"{").replace(A,"}").replace(_,"^")}function E(e){return null==e?"":function(e){return C(e).replace(v,"%23").replace(g,"%3F")}(e).replace(y,"%2F")}function T(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}var I=/\/$/;function L(e,t){var o,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",a={},r="",l="",c=t.indexOf("#"),i=t.indexOf("?");return c=0&&(i=-1),i>-1&&(o=t.slice(0,i),a=e(r=t.slice(i+1,c>-1?c:t.length))),c>-1&&(o=o||t.slice(0,c),l=t.slice(c,t.length)),{fullPath:(o=B(null!=o?o:t,n))+(r&&"?")+r+l,path:o,query:a,hash:T(l)}}function D(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function H(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function V(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!Y(e[o],t[o]))return!1;return!0}function Y(e,t){return f(e)?R(e,t):f(t)?R(t,e):e===t}function R(e,t){return f(t)?e.length===t.length&&e.every((function(e,o){return e===t[o]})):1===e.length&&e[0]===t}function B(e,t){if(e.startsWith("/"))return e;if(!e)return t;var o=t.split("/"),n=e.split("/"),a=n[n.length-1];".."!==a&&"."!==a||n.push("");var r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+n.slice(r).join("/")}var N,M,U={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};!function(e){e.pop="pop",e.push="push"}(N||(N={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(M||(M={}));function z(e){if(!e)if(i){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(I,"")}var F=/^[^#]+#/;function W(e,t){return e.replace(F,"#")+t}var G=function(){return{left:window.scrollX,top:window.scrollY}};function K(e){var t;if("el"in e){var o=e.el,n="string"==typeof o&&o.startsWith("#"),a="string"==typeof o?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!a)return;t=function(e,t){var o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function J(e,t){return(history.state?history.state.position-t:-1)+e}var q=new Map;var Q=function(){return location.protocol+"//"+location.host};function X(e,t){var o=t.pathname,n=t.search,a=t.hash,r=e.indexOf("#");if(r>-1){var l=a.includes(e.slice(r))?e.slice(r).length:1,c=a.slice(l);return"/"!==c[0]&&(c="/"+c),D(c,"")}return D(o,e)+n+a}function Z(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:a?G():null}}function $(e){var t=function(e){var t=window,o=t.history,n=t.location,a={value:X(e,n)},r={value:o.state};function l(t,a,l){var c=e.indexOf("#"),i=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+t:Q()+e+t;try{o[l?"replaceState":"pushState"](a,"",i),r.value=a}catch(e){console.error(e),n[l?"replace":"assign"](i)}}return r.value||l(a.value,{back:null,current:a.value,forward:null,position:o.length-1,replaced:!0,scroll:null},!0),{location:a,state:r,push:function(e,t){var n=d({},r.value,o.state,{forward:e,scroll:G()});l(n.current,n,!0),l(e,d({},Z(a.value,e,null),{position:n.position+1},t),!1),a.value=e},replace:function(e,t){l(e,d({},o.state,Z(r.value.back,e,r.value.forward,!0),t,{position:r.value.position}),!0),a.value=e}}}(e=z(e)),o=function(e,t,o,n){var a=[],r=[],c=null,i=function(r){var l=r.state,i=X(e,location),s=o.value,d=t.value,u=0;if(l){if(o.value=i,t.value=l,c&&c===s)return void(c=null);u=d?l.position-d.position:0}else n(i);a.forEach((function(e){e(o.value,s,{delta:u,type:N.pop,direction:u?u>0?M.forward:M.back:M.unknown})}))};function s(){var e=window.history;e.state&&e.replaceState(d({},e.state,{scroll:G()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){a.push(e);var t=function(){var t=a.indexOf(e);t>-1&&a.splice(t,1)};return r.push(t),t},destroy:function(){var e,t=l(r);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(e){t.e(e)}finally{t.f()}r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);var n=d({location:"",base:e,go:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t||o.pauseListeners(),history.go(e)},createHref:W.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:function(){return t.location.value}}),Object.defineProperty(n,"state",{enumerable:!0,get:function(){return t.state.value}}),n}function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[],o=[""],n=0;function a(e){++n!==o.length&&o.splice(n),o.push(e)}function r(e,o,n){for(var a={direction:n.direction,delta:n.delta,type:N.pop},r=0,l=t;r(t.push(e),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],n=0},go(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.location,l=e<0?M.back:M.forward;n=Math.max(0,Math.min(n+e,o.length-1)),t&&r(this.location,a,{direction:l,delta:e})}};return Object.defineProperty(l,"location",{enumerable:!0,get:function(){return o[n]}}),l}function te(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),$(e)}function oe(e){return"string"==typeof e||e&&"object"==typeof e}function ne(e){return"string"==typeof e||"symbol"==typeof e}var ae,re=Symbol("");!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(ae||(ae={}));function le(e,t){return d(new Error,{type:e,[re]:!0},t)}function ce(e,t){return e instanceof Error&&re in e&&(null==t||!!(e.type&t))}var ie={sensitive:!1,strict:!1,start:!0,end:!0},se=/[.+*?^${}()[\]/\\]/g;function de(e,t){for(var o=0;ot.length?1===t.length&&80===t[0]?1:-1:0}function ue(e,t){for(var o=0,n=e.score,a=t.score;o0&&t[t.length-1]<0}var fe={type:0,value:""},ve=/[a-zA-Z0-9_]/;function be(e,t,o){var n=function(e,t){var o,n=d({},ie,t),a=[],r=n.start?"^":"",c=[],i=l(e);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=s.length?[]:[90];n.strict&&!s.length&&(r+="/");for(var p=0;p1&&("*"===c||"+"===c)&&t("A repeatable param (".concat(s,") must be alone in its segment. eg: '/:ids+.")),o.push({type:1,value:s,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),s="")}function p(){s+=c}for(;i-1&&(o.splice(a,1),e.record.name&&n.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){var t=function(e,t){var o=0,n=t.length;for(;o!==n;){var a=o+n>>1;ue(e,t[a])<0?n=a:o=a+1}var r=function(e){var t=e;for(;t=t.parent;)if(_e(t)&&0===ue(e,t))return t;return}(e);r&&(n=t.lastIndexOf(r,n-1));return n}(e,o);o.splice(t,0,e),e.record.name&&!he(e)&&n.set(e.record.name,e)}return t=Oe({strict:!1,end:!0,sensitive:!1},t),e.forEach((function(e){return a(e)})),{addRoute:a,resolve:function(e,t){var a,r,l,c={};if("name"in e&&e.name){if(!(a=n.get(e.name)))throw le(1,{location:e});l=a.record.name,c=d(me(t.params,a.keys.filter((function(e){return!e.optional})).concat(a.parent?a.parent.keys.filter((function(e){return e.optional})):[]).map((function(e){return e.name}))),e.params&&me(e.params,a.keys.map((function(e){return e.name})))),r=a.stringify(c)}else if(null!=e.path)r=e.path,(a=o.find((function(e){return e.re.test(r)})))&&(c=a.parse(r),l=a.record.name);else{if(!(a=t.name?n.get(t.name):o.find((function(e){return e.re.test(t.path)}))))throw le(1,{location:e,currentLocation:t});l=a.record.name,c=d({},t.params,e.params),r=a.stringify(c)}for(var i=[],s=a;s;)i.unshift(s.record),s=s.parent;return{name:l,path:r,params:c,matched:i,meta:je(i)}},removeRoute:r,clearRoutes:function(){o.length=0,n.clear()},getRoutes:function(){return o},getRecordMatcher:function(e){return n.get(e)}}}function me(e,t){var o,n={},a=l(t);try{for(a.s();!(o=a.n()).done;){var r=o.value;r in e&&(n[r]=e[r])}}catch(e){a.e(e)}finally{a.f()}return n}function ge(e){var t={},o=e.props||!1;if("component"in e)t.default=o;else for(var n in e.components)t[n]="object"==typeof o?o[n]:o;return t}function he(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function je(e){return e.reduce((function(e,t){return d(e,t.meta)}),{})}function Oe(e,t){var o={};for(var n in e)o[n]=n in t?t[n]:e[n];return o}function _e(e){var t=e.record;return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function xe(e){var t={};if(""===e||"?"===e)return t;for(var o=("?"===e[0]?e.slice(1):e).split("&"),n=0;n-1&&e.splice(o,1)}},list:function(){return e.slice()},reset:function(){e=[]}}}function Ie(e,t,o){var n=function(){e[t].delete(o)};Object(r.s)(n),Object(r.r)(n),Object(r.q)((function(){e[t].add(o)})),e[t].add(o)}function Le(e){var t=Object(r.m)(Ae,{}).value;t&&Ie(t,"leaveGuards",e)}function De(e){var t=Object(r.m)(Ae,{}).value;t&&Ie(t,"updateGuards",e)}function He(e,t,o,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){return e()},l=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return function(){return new Promise((function(c,i){var s=function(e){!1===e?i(le(4,{from:o,to:t})):e instanceof Error?i(e):oe(e)?i(le(2,{from:t,to:e})):(l&&n.enterCallbacks[a]===l&&"function"==typeof e&&l.push(e),c())},d=r((function(){return e.call(n&&n.instances[a],t,o,s)})),u=Promise.resolve(d);e.length<3&&(u=u.then(s)),u.catch((function(e){return i(e)}))}))}}function Ve(e,t,o,n){var a,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e()},c=[],i=l(e);try{var d=function(){var e=a.value;var l=function(a){var l=e.components[a];if("beforeRouteEnter"!==t&&!e.instances[a])return 1;if(Ye(l)){var i=(l.__vccOpts||l)[t];i&&c.push(He(i,o,n,e,a,r))}else{var d=l();0,c.push((function(){return d.then((function(l){if(!l)return Promise.reject(new Error("Couldn't resolve component \"".concat(a,'" at "').concat(e.path,'"')));var c=s(l)?l.default:l;e.components[a]=c;var i=(c.__vccOpts||c)[t];return i&&He(i,o,n,e,a,r)()}))}))}};for(var i in e.components)l(i)};for(i.s();!(a=i.n()).done;)d()}catch(e){i.e(e)}finally{i.f()}return c}function Ye(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Re(e){return e.matched.every((function(e){return e.redirect}))?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map((function(e){return e.components&&Promise.all(Object.keys(e.components).reduce((function(t,o){var n=e.components[o];return"function"!=typeof n||"displayName"in n||t.push(n().then((function(t){if(!t)return Promise.reject(new Error("Couldn't resolve component \"".concat(o,'" at "').concat(e.path,'". Ensure you passed a function that returns a promise.')));var n=s(t)?t.default:t;e.components[o]=n}))),t}),[]))}))).then((function(){return e}))}function Be(e){var t=Object(r.m)(Ce),o=Object(r.m)(Pe),n=Object(r.c)((function(){var o=Object(r.E)(e.to);return t.resolve(o)})),a=Object(r.c)((function(){var e=n.value.matched,t=e.length,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;var l=r.findIndex(H.bind(null,a));if(l>-1)return l;var c=Ue(e[t-2]);return t>1&&Ue(a)===c&&r[r.length-1].path!==c?r.findIndex(H.bind(null,e[t-2])):l})),l=Object(r.c)((function(){return a.value>-1&&function(e,t){var o,n=function(){var o=t[a],n=e[a];if("string"==typeof o){if(o!==n)return{v:!1}}else if(!f(n)||n.length!==o.length||o.some((function(e,t){return e!==n[t]})))return{v:!1}};for(var a in t)if(o=n())return o.v;return!0}(o.params,n.value.params)})),c=Object(r.c)((function(){return a.value>-1&&a.value===o.matched.length-1&&V(o.params,n.value.params)}));return{route:n,href:Object(r.c)((function(){return n.value.href})),isActive:l,isExactActive:c,navigate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Me(o)?t[Object(r.E)(e.replace)?"replace":"push"](Object(r.E)(e.to)).catch(p):Promise.resolve()}}}var Ne=Object(r.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Be,setup(e,t){var o=t.slots,n=Object(r.v)(Be(e)),a=Object(r.m)(Ce).options,l=Object(r.c)((function(){return{[ze(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[ze(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}}));return function(){var t=o.default&&o.default(n);return e.custom?t:Object(r.l)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},t)}}});function Me(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ue(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var ze=function(e,t,o){return null!=e?e:null!=t?t:o};function Fe(e,t){if(!e)return null;var o=e(t);return 1===o.length?o[0]:o}var We=Object(r.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,t){var o=t.attrs,n=t.slots,l=Object(r.m)(Ee),c=Object(r.c)((function(){return e.route||l.value})),i=Object(r.m)(ke,0),s=Object(r.c)((function(){for(var e,t=Object(r.E)(i),o=c.value.matched;(e=o[t])&&!e.components;)t++;return t})),u=Object(r.c)((function(){return c.value.matched[s.value]}));Object(r.u)(ke,Object(r.c)((function(){return s.value+1}))),Object(r.u)(Ae,u),Object(r.u)(Ee,c);var p=Object(r.w)();return Object(r.G)((function(){return[p.value,u.value,e.name]}),(function(e,t){var o=a()(e,3),n=o[0],r=o[1],l=o[2],c=a()(t,3),i=c[0],s=c[1];c[2];r&&(r.instances[l]=n,s&&s!==r&&n&&n===i&&(r.leaveGuards.size||(r.leaveGuards=s.leaveGuards),r.updateGuards.size||(r.updateGuards=s.updateGuards))),!n||!r||s&&H(r,s)&&i||(r.enterCallbacks[l]||[]).forEach((function(e){return e(n)}))}),{flush:"post"}),function(){var t=c.value,a=e.name,l=u.value,i=l&&l.components[a];if(!i)return Fe(n.default,{Component:i,route:t});var s=l.props[a],f=s?!0===s?t.params:"function"==typeof s?s(t):s:null,v=Object(r.l)(i,d({},f,o,{onVnodeUnmounted:function(e){e.component.isUnmounted&&(l.instances[a]=null)},ref:p}));return Fe(n.default,{Component:v,route:t})||v}}});function Ge(e){var t=ye(e.routes,e),o=e.parseQuery||xe,n=e.stringifyQuery||we,c=e.history;var s=Te(),v=Te(),b=Te(),y=Object(r.C)(U),m=U;i&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");var g,h=u.bind(null,(function(e){return""+e})),j=u.bind(null,E),O=u.bind(null,T);function x(e,a){if(a=d({},a||y.value),"string"==typeof e){var r=L(o,e,a.path),l=t.resolve({path:r.path},a),i=c.createHref(r.fullPath);return d(r,l,{params:O(l.params),hash:T(r.hash),redirectedFrom:void 0,href:i})}var s;if(null!=e.path)s=d({},e,{path:L(o,e.path,a.path).path});else{var u=d({},e.params);for(var p in u)null==u[p]&&delete u[p];s=d({},e,{params:j(u)}),a.params=j(a.params)}var f=t.resolve(s,a),v=e.hash||"";f.params=h(O(f.params));var b,m=function(e,t){var o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(n,d({},e,{hash:(b=v,C(b).replace(w,"{").replace(A,"}").replace(_,"^")),path:f.path})),g=c.createHref(m);return d({fullPath:m,hash:v,query:n===we?Se(e.query):e.query||{}},f,{redirectedFrom:void 0,href:g})}function S(e){return"string"==typeof e?L(o,e,y.value.path):d({},e)}function k(e,t){if(m!==e)return le(8,{from:t,to:e})}function P(e){return D(e)}function I(e){var t=e.matched[e.matched.length-1];if(t&&t.redirect){var o=t.redirect,n="function"==typeof o?o(e):o;return"string"==typeof n&&((n=n.includes("?")||n.includes("#")?n=S(n):{path:n}).params={}),d({query:e.query,hash:e.hash,params:null!=n.path?{}:e.params},n)}}function D(e,t){var o=m=x(e),a=y.value,r=e.state,l=e.force,c=!0===e.replace,i=I(o);if(i)return D(d(S(i),{state:"object"==typeof i?d({},r,i.state):r,force:l,replace:c}),t||o);var s,u=o;return u.redirectedFrom=t,!l&&function(e,t,o){var n=t.matched.length-1,a=o.matched.length-1;return n>-1&&n===a&&H(t.matched[n],o.matched[a])&&V(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(n,a,o)&&(s=le(16,{to:u,from:a}),ee(a,a,!0,!1)),(s?Promise.resolve(s):B(u,a)).catch((function(e){return ce(e)?ce(e,2)?e:$(e):Z(e,u,a)})).then((function(e){if(e){if(ce(e,2))return D(d({replace:c},S(e.to),{state:"object"==typeof e.to?d({},r,e.to.state):r,force:l}),t||u)}else e=z(u,a,!0,c,r);return M(u,a,e),e}))}function Y(e,t){var o=k(e,t);return o?Promise.reject(o):Promise.resolve()}function R(e){var t=ae.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function B(e,t){var o,n=function(e,t){for(var o=[],n=[],a=[],r=Math.max(t.matched.length,e.matched.length),l=function(){var r=t.matched[c];r&&(e.matched.find((function(e){return H(e,r)}))?n.push(r):o.push(r));var l=e.matched[c];l&&(t.matched.find((function(e){return H(e,l)}))||a.push(l))},c=0;c=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==o.return||o.return()}finally{if(c)throw r}}}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o".concat(e,""):"mathml"===n?"".concat(e,""):e;var c=x.content;if("svg"===n||"mathml"===n){for(var i=c.firstChild;i.firstChild;)c.appendChild(i.firstChild);c.removeChild(i)}t.insertBefore(c,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},S=Symbol("_vtc"),A=function(e,t){var o=t.slots;return Object(n.h)(n.BaseTransition,E(e),o)};A.displayName="Transition";var k={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},C=(A.props=Object(g.e)({},n.BaseTransitionPropsValidators,k),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Object(g.i)(e)?e.forEach((function(e){return e.apply(void 0,m()(t))})):e&&e.apply(void 0,m()(t))}),P=function(e){return!!e&&(Object(g.i)(e)?e.some((function(e){return e.length>1})):e.length>1)};function E(e){var t={};for(var o in e)o in k||(t[o]=e[o]);if(!1===e.css)return t;var n=e.name,a=void 0===n?"v":n,r=e.type,l=e.duration,c=e.enterFromClass,i=void 0===c?"".concat(a,"-enter-from"):c,s=e.enterActiveClass,d=void 0===s?"".concat(a,"-enter-active"):s,u=e.enterToClass,p=void 0===u?"".concat(a,"-enter-to"):u,f=e.appearFromClass,v=void 0===f?i:f,b=e.appearActiveClass,y=void 0===b?d:b,m=e.appearToClass,h=void 0===m?p:m,j=e.leaveFromClass,O=void 0===j?"".concat(a,"-leave-from"):j,_=e.leaveActiveClass,x=void 0===_?"".concat(a,"-leave-active"):_,w=e.leaveToClass,S=void 0===w?"".concat(a,"-leave-to"):w,A=function(e){if(null==e)return null;if(Object(g.n)(e))return[T(e.enter),T(e.leave)];var t=T(e);return[t,t]}(l),E=A&&A[0],H=A&&A[1],Y=t.onBeforeEnter,R=t.onEnter,B=t.onEnterCancelled,M=t.onLeave,U=t.onLeaveCancelled,z=t.onBeforeAppear,F=void 0===z?Y:z,W=t.onAppear,G=void 0===W?R:W,K=t.onAppearCancelled,J=void 0===K?B:K,q=function(e,t,o){L(e,t?h:p),L(e,t?y:d),o&&o()},Q=function(e,t){e._isLeaving=!1,L(e,O),L(e,S),L(e,x),t&&t()},X=function(e){return function(t,o){var n=e?G:R,a=function(){return q(t,e,o)};C(n,[t,a]),D((function(){L(t,e?v:i),I(t,e?h:p),P(n)||V(t,r,E,a)}))}};return Object(g.e)(t,{onBeforeEnter(e){C(Y,[e]),I(e,i),I(e,d)},onBeforeAppear(e){C(F,[e]),I(e,v),I(e,y)},onEnter:X(!1),onAppear:X(!0),onLeave(e,t){e._isLeaving=!0;var o=function(){return Q(e,t)};I(e,O),I(e,x),N(),D((function(){e._isLeaving&&(L(e,O),I(e,S),P(M)||V(e,r,H,o))})),C(M,[e,o])},onEnterCancelled(e){q(e,!1),C(B,[e])},onAppearCancelled(e){q(e,!0),C(J,[e])},onLeaveCancelled(e){Q(e),C(U,[e])}})}function T(e){return Object(g.x)(e)}function I(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.add(t)})),(e[S]||(e[S]=new Set)).add(t)}function L(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.remove(t)}));var o=e[S];o&&(o.delete(t),o.size||(e[S]=void 0))}function D(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}var H=0;function V(e,t,o,n){var a=e._endId=++H,r=function(){a===e._endId&&n()};if(o)return setTimeout(r,o);var l=Y(e,t),c=l.type,i=l.timeout,s=l.propCount;if(!c)return n();var d=c+"end",u=0,p=function(){e.removeEventListener(d,f),r()},f=function(t){t.target===e&&++u>=s&&p()};setTimeout((function(){u0&&(d="transition",u=l,p=r.length):"animation"===t?s>0&&(d="animation",u=s,p=i.length):p=(d=(u=Math.max(l,s))>0?l>s?"transition":"animation":null)?"transition"===d?r.length:i.length:0,{type:d,timeout:u,propCount:p,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(n("".concat("transition","Property")).toString())}}function R(e,t){for(;e.length5&&void 0!==arguments[5]?arguments[5]:Object(g.r)(t);n&&t.startsWith("xlink:")?null==o?e.removeAttributeNS(X,t.slice(6,t.length)):e.setAttributeNS(X,t,o):null==o||r&&!Object(g.g)(o)?e.removeAttribute(t):e.setAttribute(t,r?"":Object(g.t)(o)?String(o):o)}function $(e,t,o,n){e.addEventListener(t,o,n)}function ee(e,t,o,n){e.removeEventListener(t,o,n)}var te=Symbol("_vei");var oe=/(?:Once|Passive|Capture)$/;function ne(e){var t,o;if(oe.test(e))for(t={};o=e.match(oe);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):Object(g.f)(e.slice(2)),t]}var ae=0,re=Promise.resolve();function le(e,t){var o=function(e){if(e._vts){if(e._vts<=o.attached)return}else e._vts=Date.now();Object(n.callWithAsyncErrorHandling)(function(e,t){if(Object(g.i)(t)){var o=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){o.call(e),e._stopped=!0},t.map((function(e){return function(t){return!t._stopped&&e&&e(t)}}))}return t}(e,o.value),t,5,[e])};return o.value=e,o.attached=ae||(re.then((function(){return ae=0})),ae=Date.now()),o}var ce=function(e){return 111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123}; +/*! #__NO_SIDE_EFFECTS__ */ +"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");var ie,se=["ctrl","shift","alt","meta"],de={stop:function(e){return e.stopPropagation()},prevent:function(e){return e.preventDefault()},self:function(e){return e.target!==e.currentTarget},ctrl:function(e){return!e.ctrlKey},shift:function(e){return!e.shiftKey},alt:function(e){return!e.altKey},meta:function(e){return!e.metaKey},left:function(e){return"button"in e&&0!==e.button},middle:function(e){return"button"in e&&1!==e.button},right:function(e){return"button"in e&&2!==e.button},exact:function(e,t){return se.some((function(o){return e["".concat(o,"Key")]&&!t.includes(o)}))}},ue=function(e,t){var o=e._withMods||(e._withMods={}),n=t.join(".");return o[n]||(o[n]=function(o){for(var n=0;n1?r-1:0),c=1;c4&&void 0!==arguments[4]?arguments[4]:null,r=e[te]||(e[te]={}),l=r[t];if(n&&l)l.value=n;else{var c=ne(t),i=b()(c,2),s=i[0],d=i[1];if(n){var u=r[t]=le(n,a);$(e,s,u,d)}else l&&(ee(e,s,l,d),r[t]=void 0)}}(e,t,o,n,r):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,o,n){if(n)return"innerHTML"===t||"textContent"===t||!!(t in e&&ce(t)&&Object(g.j)(o));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){var a=e.tagName;if("IMG"===a||"VIDEO"===a||"CANVAS"===a||"SOURCE"===a)return!1}if(ce(t)&&Object(g.s)(o))return!1;return t in e} +/*! #__NO_SIDE_EFFECTS__ */(e,t,n,l))?(!function(e,t,o,n){if("innerHTML"!==t&&"textContent"!==t){var a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){var r="OPTION"===a?e.getAttribute("value")||"":e.value,l=null==o?"":String(o);return r===l&&"_value"in e||(e.value=l),null==o&&e.removeAttribute(t),void(e._value=o)}var c=!1;if(""===o||null==o){var i=typeof e[t];"boolean"===i?o=Object(g.g)(o):null==o&&"string"===i?(o="",c=!0):"number"===i&&(o=0,c=!0)}try{e[t]=o}catch(e){0}c&&e.removeAttribute(t)}else{if(null==o)return;e[t]=o}}(e,t,n),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Z(e,t,n,l,r,"value"!==t)):("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),Z(e,t,n,l))}},w);function fe(){return ie||(ie=Object(n.createRenderer)(pe))}var ve=function(){var e;(e=fe()).render.apply(e,arguments)}},"./node_modules/webpack/buildin/global.js":function(e,t,o){e.exports=o("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,o){"use strict";var n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=Object(a.defineComponent)({name:"App",setup(){var e=Object(r.useRouter)(),t=Object(r.useRoute)(),o=Object(a.ref)(""),n=Object(a.ref)(0),l=Object(a.ref)([{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]);return{activatedTab:n,backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC",currentRoute:t,subTitle:o,tabs:l,goBack:function(){e.back()},navigateTo:function(t,o){o!==n.value&&(n.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const i=o.n(c)()(l,[["render",function(e,t,o,a,r,l){var c=Object(n.z)("router-view");return Object(n.t)(),Object(n.f)("div",{id:"root"},[Object(n.g)("div",{id:"header"},[Object(n.g)("div",{class:"left-title"},[Object(n.I)(Object(n.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},null,8,["src"]),[[n.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(n.t)(),Object(n.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(n.e)("v-if",!0)]),Object(n.g)("label",{class:"title"},Object(n.D)(e.subTitle),1)]),Object(n.g)("div",{class:"body-container",onClick:Object(n.J)((function(){}),["stop"])},[Object(n.e)(" if you don't need keep-alive, just use '' "),Object(n.i)(c,null,{default:Object(n.H)((function(e){var t=e.Component,o=e.route;return[(Object(n.t)(),Object(n.d)(n.b,null,[(Object(n.t)(),Object(n.d)(Object(n.A)(t),{key:o.path}))],1024))]})),_:1})]),Object(n.g)("div",{class:"bottom-tabs"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tabs,(function(t,o){return Object(n.t)(),Object(n.f)("div",{key:"tab-"+o,class:Object(n.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(n.J)((function(n){return e.navigateTo(t,o)}),["stop"])},[Object(n.g)("span",{class:"bottom-tab-text"},Object(n.D)(t.text),1)],10,["onClick"])})),128))])])}]]);t.a=i},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return p})),o.d(t,"b",(function(){return s})),o.d(t,"d",(function(){return i})),o.d(t,"c",(function(){return d})),o.d(t,"e",(function(){return u})),o.d(t,"f",(function(){return c})),o.d(t,"g",(function(){return v})),o.d(t,"h",(function(){return f})),o.d(t,"i",(function(){return b}));var n=o("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),a=o.n(n),r=o("./node_modules/@babel/runtime/regenerator/index.js"),l=o.n(r),c=function(t){return e.getTurboModule("demoTurbo").getString(t)},i=function(t){return e.getTurboModule("demoTurbo").getNum(t)},s=function(t){return e.getTurboModule("demoTurbo").getBoolean(t)},d=function(t){return e.getTurboModule("demoTurbo").getMap(t)},u=function(t){return e.getTurboModule("demoTurbo").getObject(t)},p=function(t){return e.getTurboModule("demoTurbo").getArray(t)},f=function(){var t=a()(l.a.mark((function t(o){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(o));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),v=function(){return e.getTurboModule("demoTurbo").getTurboConfig()},b=function(t){return e.getTurboModule("demoTurbo").printTurboConfig(t)}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),n=o.n(t),a=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function s(e){for(var t=1;tr?n:r)*Number(t.replace("rem",""))/844)).toFixed(2))}}return s(s({},e),{},{value:t})}}}),u=Object(l.a)();d.use(u),a.EventBus.$on("onSizeChanged",(function(e){e.width&&e.height&&Object(a.setScreenSize)({width:e.width,height:e.height})}));d.$start().then((function(e){var t=e.superProps,o=e.rootViewId;Object(c.b)({superProps:t,rootViewId:o}),u.push("/"),a.BackAndroid.addListener((function(){return console.log("backAndroid"),!0})),d.mount("#root")}))}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return At}));var n=o("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),a=o.n(n),r=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),l=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var c=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),i=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)(!1);Object(c.onActivated)((function(){console.log("".concat(Date.now(),"-button-activated"))})),Object(c.onDeactivated)((function(){console.log("".concat(Date.now(),"-button-Deactivated"))}));return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:function(){e.value=!e.value},onTouchBtnStart:function(e){console.log("onBtnTouchDown",e)},onTouchBtnMove:function(e){console.log("onBtnTouchMove",e)},onTouchBtnEnd:function(e){console.log("onBtnTouchEnd",e)},onClickViewOnce:function(){o.value=!o.value}}}}),s=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),d=o.n(s);var u=d()(i,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"button-demo"},[Object(l.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(l.g)("button",{class:Object(l.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchBtnStart&&e.onTouchBtnStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchBtnMove&&e.onTouchBtnMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchBtnEnd&&e.onTouchBtnEnd.apply(e,arguments)}),["stop"])),onClick:t[3]||(t[3]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[e.isClicked?(Object(l.t)(),Object(l.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(l.t)(),Object(l.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(l.I)(Object(l.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[l.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),p=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),f=o.n(p);function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t1&&(o.value.numberOfLines-=1)},incrementLine:function(){o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:function(e){o.value.ellipsizeMode=e},changeTextShadow:function(){n.value.textShadowOffsetX=t.value%2==1?10:1,n.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:function(e){a.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var ie=d()(ce,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"p-demo"},[Object(l.g)("div",null,[Object(l.g)("label",null,"不带样式:"),Object(l.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchTextStart&&e.onTouchTextStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchTextMove&&e.onTouchTextMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchTextEnd&&e.onTouchTextEnd.apply(e,arguments)}),["stop"]))}," 这是最普通的一行文字 ",32),Object(l.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(l.D)(e.labelTouchStatus),1),Object(l.g)("label",null,"颜色:"),Object(l.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(l.g)("label",null,"尺寸:"),Object(l.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(l.g)("label",null,"粗体:"),Object(l.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(l.g)("label",null,"下划线:"),Object(l.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(l.g)("label",null,"删除线:"),Object(l.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(l.g)("label",null,"自定义字体:"),Object(l.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(l.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(l.g)("label",null,"文字阴影:"),Object(l.g)("p",{class:"p-demo-7 p-demo-content",style:Object(l.p)(e.textShadow),onClick:t[3]||(t[3]=function(){return e.changeTextShadow&&e.changeTextShadow.apply(e,arguments)})}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(l.g)("label",null,"文本字符间距"),Object(l.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(l.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(l.g)("label",null,"字体 style:"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(l.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(l.g)("p",null,"font-style: [not set]")]),Object(l.g)("label",null,"numberOfLines="+Object(l.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(l.D)(e.textMode.ellipsizeMode),1),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(l.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(l.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(l.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(l.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(l.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(l.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.incrementLine&&e.incrementLine.apply(e,arguments)})},[Object(l.g)("span",null,"加一行")]),Object(l.g)("button",{class:"button",onClick:t[5]||(t[5]=function(){return e.decrementLine&&e.decrementLine.apply(e,arguments)})},[Object(l.g)("span",null,"减一行")])]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[6]||(t[6]=function(){return e.changeMode("clip")})},[Object(l.g)("span",null,"clip")]),Object(l.g)("button",{class:"button",onClick:t[7]||(t[7]=function(){return e.changeMode("head")})},[Object(l.g)("span",null,"head")]),Object(l.g)("button",{class:"button",onClick:t[8]||(t[8]=function(){return e.changeMode("middle")})},[Object(l.g)("span",null,"middle")]),Object(l.g)("button",{class:"button",onClick:t[9]||(t[9]=function(){return e.changeMode("tail")})},[Object(l.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("label",{key:0},"break-strategy="+Object(l.D)(e.breakStrategy),1)):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1,class:"p-demo-content"},[Object(l.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(l.D)(e.longText),9,["break-strategy"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(l.J)((function(){return e.changeBreakStrategy("simple")}),["stop"]))},[Object(l.g)("span",null,"simple")]),Object(l.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(l.J)((function(){return e.changeBreakStrategy("high_quality")}),["stop"]))},[Object(l.g)("span",null,"high_quality")]),Object(l.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(l.J)((function(){return e.changeBreakStrategy("balanced")}),["stop"]))},[Object(l.g)("span",null,"balanced")])])])):Object(l.e)("v-if",!0),Object(l.g)("label",null,"vertical-align"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(l.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(l.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字"),Object(l.g)("span",{style:{"font-size":"16"}},"字")])):Object(l.e)("v-if",!0)]),Object(l.g)("label",null,"tint-color & background-color"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(l.e)("v-if",!0)]),Object(l.g)("label",null,"margin"),Object(l.g)("div",{class:"p-demo-content"},[Object(l.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:0}," legacy mode: ")):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(l.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(l.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var se=Object(c.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var de=d()(se,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(l.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(l.g)("p",null,"没有偏移阴影样式")])])):Object(l.e)("v-if",!0),"ios"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(l.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(l.g)("p",null,"没有偏移阴影样式")])])):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(l.g)("div",{class:"offset-shadow-demo-content-android"},[Object(l.g)("p",null,"偏移阴影样式")])])):Object(l.e)("v-if",!0),"ios"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(l.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(l.g)("p",null,"偏移阴影样式")])])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ue=Object(c.defineComponent)({setup(){var e=Object(c.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(c.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:function(e){console.log(e)},changeBreakStrategy:function(e){t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var pe=d()(ue,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"demo-textarea"},[Object(l.g)("label",null,"多行文本:"),Object(l.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=function(t){return e.content=t.value}),"on:contentSizeChange":t[1]||(t[1]=function(){return e.contentSizeChange&&e.contentSizeChange.apply(e,arguments)})},null,40,["value"]),Object(l.g)("div",{class:"output-container"},[Object(l.g)("p",{class:"output"}," 输入的文本为:"+Object(l.D)(e.content),1)]),"android"===e.Platform?(Object(l.t)(),Object(l.f)("label",{key:0},"break-strategy="+Object(l.D)(e.breakStrategy),1)):Object(l.e)("v-if",!0),"android"===e.Platform?(Object(l.t)(),Object(l.f)("div",{key:1},[Object(l.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(l.g)("div",{class:"button-bar"},[Object(l.g)("button",{class:"button",onClick:t[2]||(t[2]=function(){return e.changeBreakStrategy("simple")})},[Object(l.g)("span",null,"simple")]),Object(l.g)("button",{class:"button",onClick:t[3]||(t[3]=function(){return e.changeBreakStrategy("high_quality")})},[Object(l.g)("span",null,"high_quality")]),Object(l.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.changeBreakStrategy("balanced")})},[Object(l.g)("span",null,"balanced")])])])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var fe=o("./src/components/demo/demoTurbo.ts"),ve=Object(c.defineComponent)({setup(){var e=null,t=Object(c.ref)(""),o=function(){var o=I()(D.a.mark((function o(n){var a,r,l,c;return D.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("nativeWithPromise"!==n){o.next=6;break}return o.next=3,Object(fe.h)("aaa");case 3:t.value=o.sent,o.next=7;break;case 6:"getTurboConfig"===n?(e=Object(fe.g)(),t.value="获取到config对象"):"printTurboConfig"===n?t.value=Object(fe.i)(null!==(a=e)&&void 0!==a?a:Object(fe.g)()):"getInfo"===n?t.value=(null!==(r=e)&&void 0!==r?r:Object(fe.g)()).getInfo():"setInfo"===n?((null!==(l=e)&&void 0!==l?l:Object(fe.g)()).setInfo("Hello World"),t.value="设置config信息成功"):(c={getString:function(){return Object(fe.f)("123")},getNum:function(){return Object(fe.d)(1024)},getBoolean:function(){return Object(fe.b)(!0)},getMap:function(){return Object(fe.c)(new Map([["a","1"],["b","2"]]))},getObject:function(){return Object(fe.e)({c:"3",d:"4"})},getArray:function(){return Object(fe.a)(["a","b","c"])}},t.value=c[n]());case 7:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}();return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:o}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var be=d()(ve,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"demo-turbo"},[Object(l.g)("span",{class:"result"},Object(l.D)(e.result),1),Object(l.g)("ul",{style:{flex:"1"}},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.funList,(function(t){return Object(l.t)(),Object(l.f)("li",{key:t,class:"cell"},[Object(l.g)("div",{class:"contentView"},[Object(l.g)("div",{class:"func-info"},[Object(l.g)("span",{numberOfLines:0},"函数名:"+Object(l.D)(t),1)]),Object(l.g)("span",{class:"action-button",onClick:Object(l.J)((function(){return e.onTurboFunc(t)}),["stop"])},"运行",8,["onClick"])])])})),128))])])}]]);var ye=null,me=Object(c.ref)([]),ge=function(e){me.value.unshift(e)},he=function(){ye&&1===ye.readyState&&ye.close()},je=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null);return{output:me,inputUrl:e,inputMessage:t,connect:function(){var t=e.value;t&&t.getValue().then((function(e){!function(e){he(),(ye=new WebSocket(e)).onopen=function(){var e;return ge("[Opened] ".concat(null===(e=ye)||void 0===e?void 0:e.url))},ye.onclose=function(){var e;return ge("[Closed] ".concat(null===(e=ye)||void 0===e?void 0:e.url))},ye.onerror=function(e){ge("[Error] ".concat(e.reason))},ye.onmessage=function(e){return ge("[Received] ".concat(e.data))}}(e)}))},disconnect:function(){he()},sendMessage:function(){var e=t.value;e&&e.getValue().then((function(e){!function(e){ge("[Sent] ".concat(e)),ye&&ye.send(e)}(e)}))}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var Oe={demoDiv:{name:"div 组件",component:E},demoShadow:{name:"box-shadow",component:de},demoP:{name:"p 组件",component:ie},demoButton:{name:"button 组件",component:u},demoImg:{name:"img 组件",component:U},demoInput:{name:"input 组件",component:J},demoTextarea:{name:"textarea 组件",component:pe},demoUl:{name:"ul/li 组件",component:le},demoIFrame:{name:"iframe 组件",component:R},demoWebSocket:{name:"WebSocket",component:d()(je,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"websocket-demo"},[Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Url: "),Object(l.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(l.g)("div",{class:"row"},[Object(l.g)("button",{onClick:t[0]||(t[0]=Object(l.J)((function(){return e.connect&&e.connect.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Connect")]),Object(l.g)("button",{onClick:t[1]||(t[1]=Object(l.J)((function(){return e.disconnect&&e.disconnect.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Disconnect")])])]),Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Message: "),Object(l.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(l.g)("button",{onClick:t[2]||(t[2]=Object(l.J)((function(){return e.sendMessage&&e.sendMessage.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",null,"Send")])]),Object(l.g)("div",null,[Object(l.g)("p",{class:"demo-title"}," Log: "),Object(l.g)("div",{class:"output fullscreen"},[Object(l.g)("div",null,[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.output,(function(e,t){return Object(l.t)(),Object(l.f)("p",{key:t},Object(l.D)(e),1)})),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:V},demoTurbo:{name:"Turbo",component:be}};var _e=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(0),o=Object(c.ref)(0);Object(c.onMounted)((function(){o.value=y.Native.Dimensions.screen.width}));return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:function(t){var n=t.touches[0].clientX-40;console.log("touchdown x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchDown2:function(e){t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:function(t){var n=t.touches[0].clientX-40;console.log("touchmove x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchMove2:function(e){t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var xe=d()(_e,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"set-native-props-demo"},[Object(l.g)("label",null,"setNativeProps实现拖动效果"),Object(l.g)("div",{class:"native-demo-1-drag",style:Object(l.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(l.J)((function(){return e.onTouchDown1&&e.onTouchDown1.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(l.J)((function(){return e.onTouchMove1&&e.onTouchMove1.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(l.g)("div",{class:"splitter"}),Object(l.g)("label",null,"普通渲染实现拖动效果"),Object(l.g)("div",{class:"native-demo-2-drag",style:Object(l.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(l.J)((function(){return e.onTouchDown2&&e.onTouchDown2.apply(e,arguments)}),["stop"])),onTouchmove:t[3]||(t[3]=Object(l.J)((function(){return e.onTouchMove2&&e.onTouchMove2.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{class:"native-demo-2-point",style:Object(l.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);var we={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]},Se=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup:()=>({colorActions:we})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var Ae=d()(Se,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"color-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);var ke={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}},Ce=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup(e){var t=Object(c.ref)(null);return Object(c.onMounted)((function(){e.onRef&&e.onRef(t.value)})),{animationView:t,loopActions:ke}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var Pe=d()(Ce,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"loop-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);var Ee={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Te={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Ie=Object(c.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:function(){}}},emits:["actionsDidUpdate"],setup(e){var t=Object(c.toRefs)(e).direction,o=Object(c.ref)(""),n=Object(c.ref)(null);return Object(c.watch)(t,(function(e){switch(e){case"horizon":o.value=Ee;break;case"vertical":o.value=Te;break;default:throw new Error("direction must be defined in props")}}),{immediate:!0}),Object(c.onMounted)((function(){e.onRef&&e.onRef(n.value)})),{loopActions:o,animationLoop:n}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Le=d()(Ie,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=function(t){return e.$emit("actionsDidUpdate")})},{default:Object(l.H)((function(){return[Object(l.g)("div",{class:"loop-white"},[Object(l.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);var De={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},He={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},Ve=Object(c.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){var t=Object(c.ref)(null),o=Object(c.ref)({face:De,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),n=Object(c.toRefs)(e).isChanged;return Object(c.watch)(n,(function(e,n){!n&&e?(console.log("changed to face2"),o.value.face=He):n&&!e&&(console.log("changed to face1"),o.value.face=De),setTimeout((function(){t.value&&t.value.start()}),10)})),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:function(){console.log("animation-start callback")},animationEnd:function(){console.log("animation-end callback")},animationRepeat:function(){console.log("animation-repeat callback")},animationCancel:function(){console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ye=d()(Ve,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(l.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Re=Object(c.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Be=d()(Re,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("animation");return Object(l.t)(),Object(l.f)("div",null,[Object(l.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(l.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(l.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ne=Object(c.defineComponent)({components:{Loop:Le,colorComponent:Ae,CubicBezier:Pe},setup(){var e=Object(c.ref)(!0),t=Object(c.ref)(!0),o=Object(c.ref)(!0),n=Object(c.ref)("horizon"),a=Object(c.ref)(!0),r=Object(c.ref)(null),l=Object(c.shallowRef)(Be);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:n,voteComponent:l,colorComponent:Ae,isChanged:a,animationRef:r,voteUp:function(){l.value=Be},voteDown:function(){l.value=Ye,a.value=!a.value},onRef:function(e){r.value=e},toggleLoopPlaying:function(){e.value=!e.value},toggleColorPlaying:function(){t.value=!t.value},toggleCubicPlaying:function(){o.value=!o.value},toggleDirection:function(){n.value="horizon"===n.value?"vertical":"horizon"},actionsDidUpdate:function(){Object(c.nextTick)().then((function(){console.log("actions updated & startAnimation"),r.value&&r.value.start()}))}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var Me=d()(Ne,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("loop"),i=Object(l.z)("color-component"),s=Object(l.z)("cubic-bezier");return Object(l.t)(),Object(l.f)("ul",{id:"animation-demo"},[Object(l.g)("li",null,[Object(l.g)("label",null,"控制动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.toggleLoopPlaying&&e.toggleLoopPlaying.apply(e,arguments)})},[e.loopPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.toggleDirection&&e.toggleDirection.apply(e,arguments)})},["horizon"===e.direction?(Object(l.t)(),Object(l.f)("span",{key:0},"切换为纵向")):(Object(l.t)(),Object(l.f)("span",{key:1},"切换为横向"))])]),Object(l.g)("div",{style:{height:"150px"}},[Object(l.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"I'm a looping animation")]})),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"点赞笑脸动画:"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=function(){return e.voteUp&&e.voteUp.apply(e,arguments)})},[Object(l.g)("span",null,"点赞 👍")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=function(){return e.voteDown&&e.voteDown.apply(e,arguments)})},[Object(l.g)("span",null,"踩 👎")])]),Object(l.g)("div",{class:"vote-face-container center"},[(Object(l.t)(),Object(l.d)(Object(l.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"渐变色动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=function(){return e.toggleColorPlaying&&e.toggleColorPlaying.apply(e,arguments)})},[e.colorPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))])]),Object(l.g)("div",null,[Object(l.i)(i,{playing:e.colorPlaying},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"背景色渐变")]})),_:1},8,["playing"])])]),Object(l.g)("li",null,[Object(l.g)("div",{style:{"margin-top":"10px"}}),Object(l.g)("label",null,"贝塞尔曲线动画"),Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=function(){return e.toggleCubicPlaying&&e.toggleCubicPlaying.apply(e,arguments)})},[e.cubicPlaying?(Object(l.t)(),Object(l.f)("span",{key:0},"暂停")):(Object(l.t)(),Object(l.f)("span",{key:1},"播放"))])]),Object(l.g)("div",null,[Object(l.i)(s,{playing:e.cubicPlaying},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]})),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ue=o("./node_modules/vue-router/dist/vue-router.mjs"),ze=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],Fe=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)("fade"),n=Object(c.ref)(!1),a=Object(c.ref)(!1),r=Object(c.ref)(!1);return Object(Ue.onBeforeRouteLeave)((function(t,o,n){e.value||n()})),{supportedOrientations:ze,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:n,autoHideStatusBar:a,autoHideNavigationBar:r,stopPropagation:function(e){e.stopPropagation()},onClose:function(o){o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:function(){console.log("Dialog is opening")},onClickView:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e.value=!e.value,o.value=t},onClickOpenSecond:function(e){e.stopPropagation(),t.value=!t.value},onClickDialogConfig:function(e){switch(e){case"hideStatusBar":a.value=!a.value;break;case"immerseStatusBar":n.value=!n.value;break;case"hideNavigationBar":r.value=!r.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var We=d()(Fe,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{id:"dialog-demo"},[Object(l.g)("label",null,"显示或者隐藏对话框:"),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(l.J)((function(){return e.onClickView("slide")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(l.J)((function(){return e.onClickView("fade")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(l.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(l.J)((function(){return e.onClickView("slide_fade")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(l.J)((function(){return e.onClickDialogConfig("hideStatusBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(l.J)((function(){return e.onClickDialogConfig("immerseStatusBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(l.g)("button",{style:Object(l.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(l.J)((function(){return e.onClickDialogConfig("hideNavigationBar")}),["stop"]))},[Object(l.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(l.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(l.t)(),Object(l.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=function(){return e.onShow&&e.onShow.apply(e,arguments)}),"on:requestClose":t[13]||(t[13]=function(){return e.onClose&&e.onClose.apply(e,arguments)}),"on:orientationChange":t[14]||(t[14]=function(){return e.onOrientationChange&&e.onOrientationChange.apply(e,arguments)})},[Object(l.e)(" dialog on iOS platform can only have one child node "),Object(l.g)("div",{class:"dialog-demo-wrapper"},[Object(l.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[Object(l.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=function(){return e.stopPropagation&&e.stopPropagation.apply(e,arguments)})},[Object(l.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(l.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(l.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(l.t)(),Object(l.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=function(){return e.onClose&&e.onClose.apply(e,arguments)}),"on:orientationChange":t[10]||(t[10]=function(){return e.onOrientationChange&&e.onOrientationChange.apply(e,arguments)})},[Object(l.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(l.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(l.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(l.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Ge,Ke=o("./src/util.ts"),Je=Object(c.defineComponent)({setup(){var e=Object(c.ref)("ready to set"),t=Object(c.ref)(""),o=Object(c.ref)(""),n=Object(c.ref)("正在获取..."),a=Object(c.ref)(""),r=Object(c.ref)(""),l=Object(c.ref)(""),i=Object(c.ref)(null),s=Object(c.ref)("请求网址中..."),d=Object(c.ref)("ready to set"),u=Object(c.ref)(""),p=Object(c.ref)(0),f=function(){var e=I()(D.a.mark((function e(){var o;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.Native.AsyncStorage.getItem("itemKey");case 2:o=e.sent,t.value=o||"undefined";case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=I()(D.a.mark((function e(){var t;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");case 2:t=e.sent,console.log("ImageLoader getSize",t),o.value="".concat(t.width,"x").concat(t.height);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=I()(D.a.mark((function e(){var t,o,n=arguments;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],e.prev=1,e.next=4,y.Native.getBoundingClientRect(i.value,{relToContainer:t});case 4:o=e.sent,t?r.value="".concat(JSON.stringify(o)):a.value="".concat(JSON.stringify(o)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getBoundingClientRect error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){l.value=JSON.stringify(Object(Ke.a)()),y.Native.NetInfo.fetch().then((function(e){n.value=e})),Ge=y.Native.NetInfo.addEventListener("change",(function(e){n.value="收到通知: ".concat(e.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(e){s.value="成功状态: ".concat(e.status)})).catch((function(e){s.value="收到错误: ".concat(e)})),y.EventBus.$on("testEvent",(function(){p.value+=1}))})),{Native:y.Native,rect1:a,rect2:r,rectRef:i,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:n,superProps:l,fetchText:s,cookieString:d,cookiesValue:u,getSize:v,setItem:function(){y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:f,removeItem:function(){y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:function(){y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:function(){y.Native.Cookie.getAll("https://hippyjs.org").then((function(e){u.value=e}))},getBoundingClientRect:b,triggerAppEvent:function(){y.EventBus.$emit("testEvent")},eventTriggeredTimes:p}},beforeDestroy(){Ge&&y.Native.NetInfo.removeEventListener("change",Ge),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var qe=d()(Je,[["render",function(e,t,o,n,a,r){var c,i;return Object(l.t)(),Object(l.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(l.g)("div",null,[Object(l.e)(" platform "),e.Native.Platform?(Object(l.t)(),Object(l.f)("div",{key:0,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(l.g)("p",null,Object(l.D)(e.Native.Platform),1)])):Object(l.e)("v-if",!0),Object(l.e)(" device name "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Device"),Object(l.g)("p",null,Object(l.D)(e.Native.Device),1)]),Object(l.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:1,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(l.g)("p",null,Object(l.D)(e.Native.isIPhoneX),1)])):Object(l.e)("v-if",!0),Object(l.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:2,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(l.g)("p",null,Object(l.D)(e.Native.OSVersion||"null"),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Internationalization related information "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(l.g)("p",null,Object(l.D)("国际化相关信息")),Object(l.g)("p",null,Object(l.D)("国家 ".concat(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(l.g)("p",null,Object(l.D)("语言 ".concat(null===(i=e.Native.Localization)||void 0===i?void 0:i.language)),1),Object(l.g)("p",null,Object(l.D)("方向 ".concat(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(l.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(l.t)(),Object(l.f)("div",{key:3,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(l.g)("p",null,Object(l.D)(e.Native.APILevel||"null"),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Whether the screen is vertically displayed "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(l.g)("p",null,Object(l.D)(e.Native.screenIsVertical),1)]),Object(l.e)(" width of window "),e.Native.Dimensions.window.width?(Object(l.t)(),Object(l.f)("div",{key:4,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.window.width),1)])):Object(l.e)("v-if",!0),Object(l.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(l.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(l.t)(),Object(l.f)("div",{key:5,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.window.height),1)])):Object(l.e)("v-if",!0),Object(l.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(l.t)(),Object(l.f)("div",{key:6,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.width),1)])):Object(l.e)("v-if",!0),Object(l.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(l.t)(),Object(l.f)("div",{key:7,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.height),1)])):Object(l.e)("v-if",!0),Object(l.e)(" the pt value of a pixel "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(l.g)("p",null,Object(l.D)(e.Native.OnePixel),1)]),Object(l.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(l.t)(),Object(l.f)("div",{key:8,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(l.t)(),Object(l.f)("div",{key:9,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(l.t)(),Object(l.f)("div",{key:10,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(l.g)("p",null,Object(l.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(l.e)("v-if",!0),Object(l.e)(" The startup parameters passed from the native "),e.superProps?(Object(l.t)(),Object(l.f)("div",{key:11,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(l.g)("p",null,Object(l.D)(e.superProps),1)])):Object(l.e)("v-if",!0),Object(l.e)(" A demo of Native Event,Just show how to use "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"App event"),Object(l.g)("div",null,[Object(l.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=function(){return e.triggerAppEvent&&e.triggerAppEvent.apply(e,arguments)})},[Object(l.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(l.g)("div",{class:"event-btn-result"},[Object(l.g)("p",null,"Event triggered times: "+Object(l.D)(e.eventTriggeredTimes),1)])])]),Object(l.e)(" example of measuring the size of an element "),Object(l.g)("div",{ref:"measure-block",class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[1]||(t[1]=function(){return e.getBoundingClientRect(!1)})},[Object(l.g)("span",null,"relative to App")]),Object(l.g)("span",{style:{"max-width":"200px"}},Object(l.D)(e.rect1),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[2]||(t[2]=function(){return e.getBoundingClientRect(!0)})},[Object(l.g)("span",null,"relative to Container")]),Object(l.g)("span",{style:{"max-width":"200px"}},Object(l.D)(e.rect2),1)])],512),Object(l.e)(" local storage "),e.Native.AsyncStorage?(Object(l.t)(),Object(l.f)("div",{key:12,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[3]||(t[3]=function(){return e.setItem&&e.setItem.apply(e,arguments)})},[Object(l.g)("span",null,"setItem")]),Object(l.g)("span",null,Object(l.D)(e.storageSetStatus),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[4]||(t[4]=function(){return e.removeItem&&e.removeItem.apply(e,arguments)})},[Object(l.g)("span",null,"removeItem")]),Object(l.g)("span",null,Object(l.D)(e.storageSetStatus),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[5]||(t[5]=function(){return e.getItem&&e.getItem.apply(e,arguments)})},[Object(l.g)("span",null,"getItem")]),Object(l.g)("span",null,Object(l.D)(e.storageValue),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" ImageLoader "),e.Native.ImageLoader?(Object(l.t)(),Object(l.f)("div",{key:13,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[6]||(t[6]=function(){return e.getSize&&e.getSize.apply(e,arguments)})},[Object(l.g)("span",null,"getSize")]),Object(l.g)("span",null,Object(l.D)(e.imageSize),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" Fetch "),Object(l.g)("div",{class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("span",null,Object(l.D)(e.fetchText),1)])]),Object(l.e)(" network info "),e.Native.NetInfo?(Object(l.t)(),Object(l.f)("div",{key:14,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("span",null,Object(l.D)(e.netInfoText),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" Cookie "),e.Native.Cookie?(Object(l.t)(),Object(l.f)("div",{key:15,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[7]||(t[7]=function(){return e.setCookie&&e.setCookie.apply(e,arguments)})},[Object(l.g)("span",null,"setCookie")]),Object(l.g)("span",null,Object(l.D)(e.cookieString),1)]),Object(l.g)("div",{class:"item-wrapper"},[Object(l.g)("button",{class:"item-button",onClick:t[8]||(t[8]=function(){return e.getCookie&&e.getCookie.apply(e,arguments)})},[Object(l.g)("span",null,"getCookie")]),Object(l.g)("span",null,Object(l.D)(e.cookiesValue),1)])])):Object(l.e)("v-if",!0),Object(l.e)(" iOS platform "),e.Native.isIOS()?(Object(l.t)(),Object(l.f)("div",{key:16,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(l.g)("p",null,Object(l.D)(e.Native.isIOS()),1)])):Object(l.e)("v-if",!0),Object(l.e)(" Android platform "),e.Native.isAndroid()?(Object(l.t)(),Object(l.f)("div",{key:17,class:"native-block"},[Object(l.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(l.g)("p",null,Object(l.D)(e.Native.isAndroid()),1)])):Object(l.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);var Qe="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Xe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[Qe,Qe,Qe],subInfo:["三图评论","11评"]}},Ze={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},$e={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}},et=[$e,Xe,Ze,Xe,Ze,Xe,Ze,$e,Xe];var tt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var ot=d()(tt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-one"},[Object(l.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{class:"style-one-image-container"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.itemBean.picList,(function(e,t){return Object(l.t)(),Object(l.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"])})),128))]),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join("")),1)])])}]]);var nt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var at=d()(nt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-two"},[Object(l.g)("div",{class:"style-two-left-container"},[Object(l.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join("")),1)])]),Object(l.g)("div",{class:"style-two-image-container"},[Object(l.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var rt=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var lt=d()(rt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{class:"list-view-item style-five"},[Object(l.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(l.D)(e.itemBean.title),1),Object(l.g)("div",{class:"style-five-image-container"},[Object(l.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(l.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(l.g)("p",{class:"normal-text"},Object(l.D)(e.itemBean.subInfo.join(" ")),1)])])}]]),ct=0,it=Object(c.ref)({top:0,left:0}),st=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e(et)}),800)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dt=Object(c.defineComponent)({components:{StyleOne:ot,StyleTwo:at,StyleFive:lt},setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null),o=Object(c.ref)(null),n=Object(c.ref)(a()(et)),r=!1,l=!1,i=Object(c.ref)(""),s=Object(c.ref)("继续下拉触发刷新"),d=Object(c.ref)("正在加载..."),u=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=2;break}return e.abrupt("return");case 2:return l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",e.next=7,st();case 7:n.value=e.sent,n.value=n.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3});case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=I()(D.a.mark((function e(t){var l;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("endReached",t),!r){e.next=3;break}return e.abrupt("return");case 3:return r=!0,d.value="加载更多...",e.next=7,st();case 7:0===(l=e.sent).length&&(d.value="没有更多数据"),n.value=[].concat(a()(n.value),a()(l)),r=!1,o.value&&o.value.collapsePullFooter();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){r=!1,l=!1,n.value=a()(et),ct=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})})),{loadingState:i,dataSource:n,headerRefreshText:s,footerRefreshText:d,list:e,pullHeader:t,pullFooter:o,onEndReached:p,onHeaderReleased:u,onHeaderIdle:function(){},onHeaderPulling:function(e){l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:function(){},onFooterPulling:function(e){console.log("onFooterPulling",e)},onScroll:function(e){e.stopPropagation(),it.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:function(){if(y.Native){if(e.value){var t=e.value;console.log("scroll to next page",e,it.value,ct);var o=it.value.top+ct-200;t.scrollTo({left:it.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(y.Native){if(e.value){var t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var ut=d()(dt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("pull-header"),i=Object(l.z)("style-one"),s=Object(l.z)("style-two"),d=Object(l.z)("style-five"),u=Object(l.z)("pull-footer");return Object(l.t)(),Object(l.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到下一页")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToBottom&&e.scrollToBottom.apply(e,arguments)})},[Object(l.g)("span",null,"翻动到底部")]),Object(l.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(l.D)(e.dataSource.length),1)]),Object(l.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=function(){return e.onScroll&&e.onScroll.apply(e,arguments)})},[Object(l.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(l.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"ul-refresh-text"},Object(l.D)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(e,t){return Object(l.t)(),Object(l.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(l.t)(),Object(l.d)(i,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),2===e.style?(Object(l.t)(),Object(l.d)(s,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),5===e.style?(Object(l.t)(),Object(l.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0)],8,["type","sticky"])})),128)),Object(l.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(l.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"pull-footer-text"},Object(l.D)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var pt=Object(c.defineComponent)({setup(){var e=Object(c.ref)("idle"),t=Object(c.ref)(2),o=Object(c.ref)(2);return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:function(){console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:function(){console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:function(e){console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:function(e){console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:function(t){console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var ft=d()(pt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("swiper-slide"),i=Object(l.z)("swiper");return Object(l.t)(),Object(l.f)("div",{id:"demo-swiper"},[Object(l.g)("div",{class:"toolbar"},[Object(l.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToPrevPage&&e.scrollToPrevPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到上一页")]),Object(l.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(l.g)("span",null,"翻到下一页")]),Object(l.g)("p",{class:"toolbar-text"}," 当前第 "+Object(l.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(l.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(l.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(l.H)((function(){return[Object(l.e)(" slides "),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(e){return Object(l.t)(),Object(l.d)(c,{key:e,style:Object(l.p)({backgroundColor:4278222848+100*e})},{default:Object(l.H)((function(){return[Object(l.g)("p",null,"I'm Slide "+Object(l.D)(e+1),1)]})),_:2},1032,["style"])})),128))]})),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(l.e)(" A Demo of dots "),Object(l.g)("div",{id:"swiper-dots"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(t){return Object(l.t)(),Object(l.f)("div",{key:t,class:Object(l.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2)})),128))])])}]]);var vt=0,bt={top:0,left:5,bottom:0,right:5},yt="ios"===y.Native.Platform,mt=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e((vt+=1)>=50?[]:[].concat(a()(et),a()(et)))}),600)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=Object(c.defineComponent)({components:{StyleOne:ot,StyleTwo:at,StyleFive:lt},setup(){var e=Object(c.ref)([].concat(a()(et),a()(et),a()(et),a()(et))),t=!1,o=!1,n=Object(c.ref)(!1),r=Object(c.ref)("正在加载..."),l=Object(c.ref)(null),i=Object(c.ref)(null),s="继续下拉触发刷新",d="正在加载...",u=Object(c.computed)((function(){return n.value?"正在刷新":"下拉刷新"})),p=Object(c.ref)(null),f=Object(c.ref)(null),v=Object(c.computed)((function(){return(y.Native.Dimensions.screen.width-bt.left-bt.right-6)/2})),b=function(){var t=I()(D.a.mark((function t(){var o;return D.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.value=!0,t.next=3,mt();case 3:o=t.sent,n.value=!1,e.value=o.reverse(),f.value&&f.value.refreshCompleted();case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=I()(D.a.mark((function e(){return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=2;break}return e.abrupt("return");case 2:o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var o=I()(D.a.mark((function o(){var n;return D.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(console.log("end Reached"),!t){o.next=3;break}return o.abrupt("return");case 3:return t=!0,d="加载更多...",o.next=7,mt();case 7:0===(n=o.sent).length&&(d="没有更多数据"),e.value=[].concat(a()(e.value),a()(n)),t=!1,i.value&&i.value.collapsePullFooter();case 12:case"end":return o.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();return{dataSource:e,isRefreshing:n,refreshText:u,STYLE_LOADING:100,loadingState:r,header:f,gridView:p,contentInset:bt,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:v,onScroll:function(e){console.log("waterfall onScroll",e)},onRefresh:b,onEndReached:g,onClickItem:function(e){p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:yt,onHeaderPulling:function(e){o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:m,headerRefreshText:s,footerRefreshText:d,loadMoreDataFlag:t,pullHeader:l,pullFooter:i}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ht=d()(gt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("pull-header"),i=Object(l.z)("waterfall-item"),s=Object(l.z)("style-one"),d=Object(l.z)("style-two"),u=Object(l.z)("style-five"),p=Object(l.z)("pull-footer"),f=Object(l.z)("waterfall");return Object(l.t)(),Object(l.f)("div",{id:"demo-waterfall"},[Object(l.i)(f,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(l.H)((function(){return[Object(l.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"ul-refresh-text"},Object(l.D)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(l.t)(),Object(l.f)("div",{key:0,class:"banner-view"},[Object(l.g)("span",null,"BannerView")])):(Object(l.t)(),Object(l.d)(i,{key:1,"full-span":!0,class:"banner-view"},{default:Object(l.H)((function(){return[Object(l.g)("span",null,"BannerView")]})),_:1})),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.dataSource,(function(t,o){return Object(l.t)(),Object(l.d)(i,{key:o,style:Object(l.p)({width:e.itemWidth}),type:t.style,onClick:Object(l.J)((function(){return e.onClickItem(o)}),["stop"])},{default:Object(l.H)((function(){return[1===t.style?(Object(l.t)(),Object(l.d)(s,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),2===t.style?(Object(l.t)(),Object(l.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0),5===t.style?(Object(l.t)(),Object(l.d)(u,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(l.e)("v-if",!0)]})),_:2},1032,["style","type","onClick"])})),128)),Object(l.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(l.H)((function(){return[Object(l.g)("p",{class:"pull-footer-text"},Object(l.D)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])]})),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var jt=Object(c.defineComponent)({setup(){var e=Object(c.ref)(0),t=Object(c.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:function(t){e.value=t.height},onTabClick:function(e){t.value=e-1},onDropped:function(e){t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var Ot={demoNative:{name:"Native 能力",component:qe},demoAnimation:{name:"animation 组件",component:Me},demoDialog:{name:"dialog 组件",component:We},demoSwiper:{name:"swiper 组件",component:ft},demoPullHeaderFooter:{name:"pull header/footer 组件",component:ut},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:d()(jt,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("swiper-slide"),i=Object(l.z)("swiper");return Object(l.t)(),Object(l.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=function(){return e.onLayout&&e.onLayout.apply(e,arguments)})},[Object(l.g)("div",{id:"demo-content"},[Object(l.g)("div",{id:"banner"}),Object(l.g)("div",{id:"tabs"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(2,(function(t){return Object(l.g)("p",{key:"tab"+t,class:Object(l.o)(e.currentSlide===t-1?"selected":""),onClick:function(o){return e.onTabClick(t)}}," tab "+Object(l.D)(t)+" "+Object(l.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])})),64))]),Object(l.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(l.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(l.H)((function(){return[Object(l.i)(c,{key:"slide1"},{default:Object(l.H)((function(){return[Object(l.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(30,(function(e){return Object(l.g)("li",{key:"item"+e,class:Object(l.o)(e%2?"item-even":"item-odd")},[Object(l.g)("p",null,"Item "+Object(l.D)(e),1)],2)})),64))])]})),_:1}),Object(l.i)(c,{key:"slide2"},{default:Object(l.H)((function(){return[Object(l.g)("ul",{nestedScrollTopPriority:"self"},[(Object(l.t)(),Object(l.f)(l.a,null,Object(l.x)(30,(function(e){return Object(l.g)("li",{key:"item"+e,class:Object(l.o)(e%2?"item-even":"item-odd")},[Object(l.g)("p",null,"Item "+Object(l.D)(e),1)],2)})),64))])]})),_:1})]})),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:xe}};var _t=Object(c.defineComponent)({name:"App",setup(){var e=Object.keys(Oe).map((function(e){return{id:e,name:Oe[e].name}})),t=Object.keys(Ot).map((function(e){return{id:e,name:Ot[e].name}}));return Object(c.onMounted)((function(){})),{featureList:e,nativeFeatureList:t,version:c.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var xt=d()(_t,[["render",function(e,t,o,n,a,r){var c=Object(l.z)("router-link");return Object(l.t)(),Object(l.f)("ul",{class:"feature-list"},[Object(l.g)("li",null,[Object(l.g)("div",{id:"version-info"},[Object(l.g)("p",{class:"feature-title"}," Vue: "+Object(l.D)(e.version),1),e.Native?(Object(l.t)(),Object(l.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(l.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(l.e)("v-if",!0)])]),Object(l.g)("li",null,[Object(l.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.featureList,(function(e){return Object(l.t)(),Object(l.f)("li",{key:e.id,class:"feature-item"},[Object(l.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(l.H)((function(){return[Object(l.h)(Object(l.D)(e.name),1)]})),_:2},1032,["to"])])})),128)),e.nativeFeatureList.length?(Object(l.t)(),Object(l.f)("li",{key:0},[Object(l.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(l.e)("v-if",!0),(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.nativeFeatureList,(function(e){return Object(l.t)(),Object(l.f)("li",{key:e.id,class:"feature-item"},[Object(l.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(l.H)((function(){return[Object(l.h)(Object(l.D)(e.name),1)]})),_:2},1032,["to"])])})),128))])}],["__scopeId","data-v-63300fa4"]]);var wt=Object(c.defineComponent)({setup(){var e=Object(c.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(c.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:function(){t.value&&t.value.blur()},openBundle:function(){if(e.value){var t=Object(Ke.a)().rootViewId;y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");var St=[{path:"/",component:xt},{path:"/remote-debug",component:d()(wt,[["render",function(e,t,o,n,a,r){return Object(l.t)(),Object(l.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(l.J)((function(){return e.blurInput&&e.blurInput.apply(e,arguments)}),["stop"]))},[Object(l.g)("div",{class:"tips-wrap"},[(Object(l.t)(!0),Object(l.f)(l.a,null,Object(l.x)(e.tips,(function(t,o){return Object(l.t)(),Object(l.f)("p",{key:o,class:"tips-item",style:Object(l.p)(e.styles.tipText)},Object(l.D)(o+1)+". "+Object(l.D)(t),5)})),128))]),Object(l.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(l.J)((function(){}),["stop"]),onChange:t[0]||(t[0]=function(t){return e.bundleUrl=t.value})},null,40,["value"]),Object(l.g)("div",{class:"buttonContainer",style:Object(l.p)(e.styles.buttonContainer)},[Object(l.g)("button",{style:Object(l.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(l.J)((function(){return e.openBundle&&e.openBundle.apply(e,arguments)}),["stop"]))},[Object(l.g)("span",{style:Object(l.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"}].concat(a()(Object.keys(Oe).map((function(e){return{path:"/demo/".concat(e),name:Oe[e].name,component:Oe[e].component}}))),a()(Object.keys(Ot).map((function(e){return{path:"/demo/".concat(e),name:Ot[e].name,component:Ot[e].component}}))));function At(){return Object(r.createHippyRouter)({routes:St})}},"./src/util.ts":function(e,t,o){"use strict";var n;function a(e){n=e}function r(){return n}o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){o("./node_modules/@hippy/rejection-tracking-polyfill/index.js"),e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/examples/ios-demo/res/vue3/vendor.ios.js b/framework/examples/ios-demo/res/vue3/vendor.ios.js index f60cd592da3..d7bbf893879 100644 --- a/framework/examples/ios-demo/res/vue3/vendor.ios.js +++ b/framework/examples/ios-demo/res/vue3/vendor.ios.js @@ -1,8 +1,8 @@ var hippyVueBase=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-vue-next/dist/index.js":function(e,t,n){"use strict";(function(e,r){ /*! - * @hippy/vue-next v3.3.0 - * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.0) - * Build at: Thu Jun 20 2024 15:23:50 GMT+0800 (中国标准时间) + * @hippy/vue-next v3.3.1 + * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.1) + * Build at: Mon Aug 26 2024 14:48:41 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -22,21 +22,21 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports; * See the License for the specific language governing permissions and * limitations under the License. */ -var i=["mode","valueType","startValue","toValue"],o=["transform"],a=["transform"];function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=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 c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),u=new I(r||[]);return i(a,"_invoke",{value:x(e,n,u)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",h="executing",v="completed",y={};function m(){}function g(){}function b(){}var O={};s(O,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==n&&r.call(w,a)&&(O=w);var S=b.prototype=m.prototype=Object.create(O);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(i,o,a,u){var c=d(e[i],e,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==k(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function x(t,n,r){var i=p;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var c=T(u,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var s=d(t,n,r);if("normal"===s.type){if(i=r.done?v:"suspendedYield",s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(i=v,r.method="throw",r.arg=s.arg)}}}function T(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function f(e,t,n,r,i,o,a){try{var u=e[o](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){f(o,r,i,a,u,"next",e)}function u(e){f(o,r,i,a,u,"throw",e)}a(void 0)}))}}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=A(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function h(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t,n){return t=m(t),y(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=k(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},N.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&&T(e,t)}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(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){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(e,t)||A(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 A(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n255?255:t},B=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},U=function(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},H=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=U(i,r,e+1/3),a=U(i,r,e),u=U(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8},$=function(e){return(parseFloat(e)%360+360)%360/360},Y=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function W(e){var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=D.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(R,e)?R[e]:(t=D.rgb.exec(e),Array.isArray(t)?(V(t[1])<<24|V(t[2])<<16|V(t[3])<<8|255)>>>0:(t=D.rgba.exec(e))?(V(t[1])<<24|V(t[2])<<16|V(t[3])<<8|B(t[4]))>>>0:(t=D.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=D.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=D.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=D.hsl.exec(e))?(255|H($(t[1]),Y(t[2]),Y(t[3])))>>>0:(t=D.hsla.exec(e))?(H($(t[1]),Y(t[2]),Y(t[3]))|B(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var z={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},K={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},G="turn",q="rad",J="deg",X=/\/\*[\s\S]{0,1000}?\*\//gm;var Z=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function Q(e){if("number"==typeof e)return e;if(Z.test(e))try{return parseFloat(e)}catch(e){}return e}function ee(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){var t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function te(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=N(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";var r="180",i=j(n,3),o=i[0],a=i[1],u=i[2];return a&&u?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,n=parseFloat(e),r=e||"",i=e.split("."),o=j(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case G:r="".concat((360*n).toFixed(2));break;case q:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,u):o&&void 0!==K[o]&&(r=K[o]),r}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.replace(/\s+/g," ").trim(),n=t.split(/\s+(?![^(]*?\))/),r=j(n,2),i=r[0],o=r[1],a=/^([+-]?\d+\.?\d*)%$/g;return!i||a.exec(i)||o?i&&a.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:W(i)}:null:{color:W(i)}}function re(e,t){var n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";var i=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},i.forEach((function(e,t){if(0===t){var r=te(e);if(r)n.angle=r;else{n.angle="180";var i=ne(e);i&&o.push(i)}}else{var a=ne(e);a&&o.push(a)}})),n.colorStopList=o}else{var a=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(a&&a.length>1){var u=j(a,2);n=u[1]}}return[r,n]}function ie(e,t){var n=e&&"string"==typeof e.type,r=n?e:t;return Object.keys(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){ie(e,r)})):n&&"object"===k(n)&&ie(n,r)})),n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t}),e}var oe=function(){return O((function e(){g(this,e),this.changeMap=new Map}),[{key:"addAttribute",value:function(e,t){var n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}},{key:"addPseudoClass",value:function(e,t){var n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}},{key:"properties",value:function(e){var t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}])}(),ae=function(){function e(t){var n=this;g(this,e),this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=t,t.forEach((function(e){return e.lookupSort(n)}))}return O(e,[{key:"append",value:function(e){var t=this;this.ruleSets=this.ruleSets.concat(e),e.forEach((function(e){return e.lookupSort(t)}))}},{key:"delete",value:function(e){var t=this,n=[];this.ruleSets=this.ruleSets.filter((function(t){return t.hash!==e||(n.push(t),!1)})),n.forEach((function(e){return e.removeSort(t)}))}},{key:"query",value:function(e,t){var n=this,r=e.tagName,i=e.id,o=e.classList,a=e.props,u=i,c=o;if(null==a?void 0:a.attributes){var s=a.attributes;c=new Set(((null==s?void 0:s.class)||"").split(" ").filter((function(e){return e.trim()}))),u=s.id}var l=[this.universal,this.id[u],this.type[r]];(null==c?void 0:c.size)&&c.forEach((function(e){return l.push(n.class[e])}));var f=l.filter((function(e){return!!e})).reduce((function(e,t){return e.concat(t)}),[]),d=new oe;return d.selectors=f.filter((function(n){return n.sel.accumulateChanges(e,d,t)})).sort((function(e,t){return e.sel.specificity-t.sel.specificity||e.pos-t.pos})).map((function(e){return e.sel})),d}},{key:"removeById",value:function(t,n){e.removeFromMap(this.id,t,n)}},{key:"sortById",value:function(e,t){this.addToMap(this.id,e,t)}},{key:"removeByClass",value:function(t,n){e.removeFromMap(this.class,t,n)}},{key:"sortByClass",value:function(e,t){this.addToMap(this.class,e,t)}},{key:"removeByType",value:function(t,n){e.removeFromMap(this.type,t,n)}},{key:"sortByType",value:function(e,t){this.addToMap(this.type,e,t)}},{key:"removeAsUniversal",value:function(e){var t=this.universal.findIndex((function(t){var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)}));-1!==t&&this.universal.splice(t)}},{key:"sortAsUniversal",value:function(e){this.universal.push(this.makeDocSelector(e))}},{key:"addToMap",value:function(e,t,n){this.position+=1;var r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}},{key:"makeDocSelector",value:function(e){return this.position+=1,{sel:e,pos:this.position}}}],[{key:"removeFromMap",value:function(e,t,n){var r=e[t],i=r.findIndex((function(e){var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)}));-1!==i&&r.splice(i,1)}}])}();function ue(e){return null==e}function ce(e){return e?" ".concat(e):""}function se(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}var le=function(){return O((function e(){g(this,e),this.specificity=0}),[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(null!=t?t:this)}}])}(),fe=function(e){function t(){var e;return g(this,t),(e=v(this,t,arguments)).rarity=0,e}return x(t,e),O(t,[{key:"accumulateChanges",value:function(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}},{key:"match",value:function(e){return!!e}},{key:"mayMatch",value:function(e){return this.match(e)}},{key:"trackChanges",value:function(e,t){}}])}(le),de=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.head=e.reduce((function(e,t){return!e||e instanceof fe&&t.rarity>e.rarity?t:e}),null),n.dynamic=e.some((function(e){return e.dynamic})),n.selectors=e,n}return x(t,e),O(t,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&this.selectors.every((function(t){return t.match(e)}))}},{key:"mayMatch",value:function(e){return!!e&&this.selectors.every((function(t){return t.mayMatch(e)}))}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n){return n.trackChanges(e,t)}))}},{key:"lookupSort",value:function(e,t){this.head&&this.head instanceof fe&&this.head.lookupSort(e,null!=t?t:this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof fe&&this.head.removeSort(e,null!=t?t:this)}}])}(fe),pe=function(e){function t(){var e;return g(this,t),(e=v(this,t)).specificity=0,e.rarity=0,e.dynamic=!1,e}return x(t,e),O(t,[{key:"toString",value:function(){return"*".concat(ce(this.combinator))}},{key:"match",value:function(){return!0}}])}(fe),he=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).specificity=65536,n.rarity=3,n.dynamic=!1,n.id=e,n}return x(t,e),O(t,[{key:"toString",value:function(){return"#".concat(this.id).concat(ce(this.combinator))}},{key:"match",value:function(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}},{key:"lookupSort",value:function(e,t){e.sortById(this.id,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,null!=t?t:this)}}])}(fe),ve=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).specificity=1,n.rarity=1,n.dynamic=!1,n.cssType=e,n}return x(t,e),O(t,[{key:"toString",value:function(){return"".concat(this.cssType).concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&e.tagName===this.cssType}},{key:"lookupSort",value:function(e,t){e.sortByType(this.cssType,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeByType(this.cssType,null!=t?t:this)}}])}(fe),ye=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).specificity=256,n.rarity=2,n.dynamic=!1,n.className=e,n}return x(t,e),O(t,[{key:"toString",value:function(){return".".concat(this.className).concat(ce(this.combinator))}},{key:"match",value:function(e){var t,n,r;if(!e)return!1;var i=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter((function(e){return e.trim()})));return!(!i.size||!i.has(this.className))}},{key:"lookupSort",value:function(e,t){e.sortByClass(this.className,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeByClass(this.className,null!=t?t:this)}}])}(fe),me=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).specificity=256,n.rarity=0,n.dynamic=!0,n.cssPseudoClass=e,n}return x(t,e),O(t,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(ce(this.combinator))}},{key:"match",value:function(){return!1}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}])}(fe),ge=function(e,t){var n,r,i,o=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==o?o:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(i=null==e?void 0:e.styleScopeId)||void 0===i?void 0:i.includes(t))?t:void 0},be=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return g(this,t),(n=v(this,t)).attribute="",n.test="",n.value="",n.specificity=256,n.rarity=0,n.dynamic=!0,n.attribute=e,n.test=r,n.value=i,r?i?(n.match=function(t){if(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props[e]))return!1;var n="".concat(ge(t,e));if("="===r)return n===i;if("^="===r)return n.startsWith(i);if("$="===r)return n.endsWith(i);if("*="===r)return-1!==n.indexOf(i);if("~="===r){var o=n.split(" ");return-1!==(null==o?void 0:o.indexOf(i))}return"|="===r&&(n===i||n.startsWith("".concat(i,"-")))},n):(n.match=function(){return!1},y(n)):(n.match=function(t){return!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!ue(ge(t,e))},y(n))}return x(t,e),O(t,[{key:"toString",value:function(){return"[".concat(this.attribute).concat(ce(this.test)).concat(this.test&&this.value||"","]").concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&!e}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}])}(fe),Oe=function(e){function t(e){var n;return g(this,t),(n=v(this,t)).specificity=0,n.rarity=4,n.dynamic=!1,n.combinator=void 0,n.error=e,n}return x(t,e),O(t,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}},{key:"lookupSort",value:function(){return null}},{key:"removeSort",value:function(){return null}}])}(fe),_e=function(){return O((function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.parentNode),!!e&&t.match(e)}))?e:null)}},{key:"mayMatch",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)}))?e:null)}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n,r){0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)}))}}])}(),we=function(){return O((function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.nextSibling),!!e&&t.match(e)}))?e:null)}},{key:"mayMatch",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)}))?e:null)}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n,r){0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)}))}}])}(),Se=function(e){function t(e){var n;g(this,t),n=v(this,t);var r=[void 0," ",">","+","~"],i=[],o=[],a=[],u=h(e),c=u.length-1;n.specificity=0,n.dynamic=!1;for(var s=c;s>=0;s--){var l=u[s];if(-1===r.indexOf(l.combinator))throw console.error('Unsupported combinator "'.concat(l.combinator,'".')),new Error('Unsupported combinator "'.concat(l.combinator,'".'));void 0!==l.combinator&&" "!==l.combinator||a.push(o=[i=[]]),">"===l.combinator&&o.push(i=[]),n.specificity+=l.specificity,l.dynamic&&(n.dynamic=!0),i.push(l)}return n.groups=a.map((function(e){return new _e(e.map((function(e){return new we(e)})))})),n.last=u[c],n}return x(t,e),O(t,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e,t){return!!e&&this.groups.every((function(n,r){if(0===r)return!!(e=n.match(e));for(var i=se(e,t);i;){if(e=n.match(i))return!0;i=se(i,t)}return!1}))}},{key:"lookupSort",value:function(e){this.last.lookupSort(e,this)}},{key:"removeSort",value:function(e){this.last.removeSort(e,this)}},{key:"accumulateChanges",value:function(e,t,n){if(!this.dynamic)return this.match(e,n);var r=[],i=this.groups.every((function(t,i){if(0===i){var o=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=o)}for(var a=se(e,n);a;){var u=t.mayMatch(a);if(u)return r.push({left:a,right:null}),e=u,!0;a=se(a,n)}return!1}));if(!i)return!1;if(!t)return i;for(var o=0;o)?\\s*"},xe={};function Te(e,t,n){var r="";ke&&(r="gy"),xe[e]||(xe[e]=new RegExp(Ne[e],r));var i,o=xe[e];if(ke)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),!(i=o.exec(t)))return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function je(e,t){var n,r;return null!==(r=null!==(n=function(e,t){var n=Te("universalSelectorRegEx",e,t),r=n.result,i=n.regexp;return r?{value:{type:"*"},start:t,end:i.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){var n=Te("simpleIdentifierSelectorRegEx",e,t),r=n.result,i=n.regexp;if(!r)return null;var o=i.lastIndex;return{value:{type:r[1],identifier:r[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){var n=Te("attributeSelectorRegEx",e,t),r=n.result,i=n.regexp;if(!r)return null;var o=i.lastIndex,a=r[1];return r[2]?{value:{type:"[]",property:a,test:r[2],value:r[3]||r[4]||r[5]},start:t,end:o}:{value:{type:"[]",property:a},start:t,end:o}}(e,t)}function Ae(e,t){var n=je(e,t);if(!n)return null;for(var r=n.end,i=[];n;){i.push(n.value),n=je(e,r=n.end)}return{start:t,end:r,value:i}}function Ie(e,t){var n=Te("combinatorRegEx",e,t),r=n.result,i=n.regexp;return r?{start:t,end:ke?i.lastIndex:t,value:r[1]||" "}:null}var Ce,Pe=function(e){return e};function Re(e){return"declaration"===e.type}function Le(e){return function(t){return e(t)}}function Me(e){switch(e.type){case"*":return new pe;case"#":return new he(e.identifier);case"":return new ve(e.identifier.replace(/-/,"").toLowerCase());case".":return new ye(e.identifier);case":":return new me(e.identifier);case"[]":return e.test?new be(e.property,e.test,e.value):new be(e.property);default:return null}}function Fe(e){return 0===e.length?new Oe(new Error("Empty simple selector sequence.")):1===e.length?Me(e[0]):new de(e.map(Me))}function De(e){try{var t=function(e,t){var n=t,r=Te("whiteSpaceRegEx",e,t),i=r.result,o=r.regexp;i&&(n=o.lastIndex);var a,u=[],c=!0,s=[void 0,void 0];return(ke?[e]:e.split(" ")).forEach((function(e){if(!ke){if(""===e)return;n=0}do{var t=Ae(e,n);if(!t){if(c)return;break}if(n=t.end,a&&(s[1]=a.value),s=[t.value,void 0],u.push(s),a=Ie(e,n))n=a.end;c=!(!a||" "===a.value)}while(a)})),{start:t,end:n,value:u}}(e,0);return t?function(e){if(0===e.length)return new Oe(new Error("Empty selector."));if(1===e.length)return Fe(e[0][0]);var t,n=[],r=p(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=Fe(i[0]),a=i[1];a&&o&&(o.combinator=a),n.push(o)}}catch(e){r.e(e)}finally{r.f()}return new Se(n)}(t.value):new Oe(new Error("Empty selector"))}catch(e){return new Oe(e)}}function Ve(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function Be(t,n){if(t){if(!Ve(Ce))return Ce;var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((function(e){var n=e[0],r=e[1];return r=r.map((function(e){var t=j(e,2);return{type:"declaration",property:t[0],value:t[1]}})).map(Le(null!=t?t:Pe)),n=n.map(De),new Ee(n,r,"")}))}(t,n);return Ce=new ae(r)}var i=e[Ue];if(Ve(Ce)||i){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((function(e){var n=e.declarations.filter(Re).map(Le(null!=t?t:Pe)),r=e.selectors.map(De);return new Ee(r,n,e.hash)}))}(i);Ce?Ce.append(o):Ce=new ae(o),e[Ue]=void 0}return e[He]&&(e[He].forEach((function(e){Ce.delete(e)})),e[He]=void 0),Ce}var Ue="__HIPPY_VUE_STYLES__",He="__HIPPY_VUE_DISPOSE_STYLES__",$e=Object.create(null),Ye={$on:function(e,t,n){return Array.isArray(e)?e.forEach((function(e){Ye.$on(e,t,n)})):($e[e]||($e[e]=[]),$e[e].push({fn:t,ctx:n})),Ye},$once:function(e,t,n){function r(){Ye.$off(e,r);for(var i=arguments.length,o=new Array(i),a=0;a1?r-1:0),o=1;o0||e.didTimeout)&&function e(t){var n;"number"==typeof t?In(t):t&&(In(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)})))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout((function(){n({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1)}function Rn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=t;r-1){var f;if("onLayout"===i){f=new On(o),Object.assign(f,{eventPhase:c,nativeParams:null!=u?u:{}});var d=u.layout,p=d.x,h=d.y,v=d.height,y=d.width;f.top=h,f.left=p,f.bottom=h+v,f.right=p+y,f.width=y,f.height=v}else{f=new gn(o),Object.assign(f,{eventPhase:c,nativeParams:null!=u?u:{}});var m=l.component.processEventData;m&&m({__evt:i,handler:f},u)}s.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(i,f,u),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else qe.apply(void 0,Mn.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else qe.apply(void 0,Mn.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Fn);var Dn,Vn=function(){function e(){g(this,e),this.listeners={}}return O(e,[{key:"addEventListener",value:function(e,t,n){for(var r=e.split(","),i=r.length,o=0;o=0&&c.splice(s,1),c.length||(this.listeners[u]=void 0)}}}else this.listeners[u]=void 0}}},{key:"emitEvent",value:function(e){var t,n,r=e.type,i=this.listeners[r];if(i)for(var o=i.length-1;o>=0;o-=1){var a=i[o];(null===(t=a.options)||void 0===t?void 0:t.once)&&i.splice(o,1),(null===(n=a.options)||void 0===n?void 0:n.thisArg)?a.callback.apply(a.options.thisArg,[e]):a.callback(e)}}},{key:"getEventListenerList",value:function(){return this.listeners}}],[{key:"indexOfListener",value:function(e,t,n){return e.findIndex((function(e){return n?e.callback===t&&C.looseEqual(e.options,n):e.callback===t}))}}])}();!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Dn||(Dn={}));var Bn,Un=!1,Hn=[];function $n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener;r=fn(i)?sn[i]:dn(i),o===cn&&t.removeEventListener(n,r,a),o===un&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Yn(e,t){0}function Wn(){Un||(Un=!0,0!==Hn.length?P.nextTick().then((function(){var t=function(e){var t,n=[],r=p(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.type,a=i.nodes,u=i.eventNodes,c=i.printedNodes,s=n[n.length-1];s&&s.type===o?(s.nodes=s.nodes.concat(a),s.eventNodes=s.eventNodes.concat(u),s.printedNodes=s.printedNodes.concat(c)):n.push({type:o,nodes:a,eventNodes:u,printedNodes:c})}}catch(e){r.e(e)}finally{r.f()}return n}(Hn),n=yn().rootViewId,r=new e.Hippy.SceneBuilder(n);t.forEach((function(e){switch(e.type){case Dn.CREATE:Yn(e.printedNodes),r.create(e.nodes,!0),$n(e.eventNodes,r);break;case Dn.UPDATE:Yn(e.printedNodes),r.update(e.nodes),$n(e.eventNodes,r);break;case Dn.DELETE:Yn(e.printedNodes),r.delete(e.nodes);break;case Dn.MOVE:Yn(e.printedNodes),r.move(e.nodes);break;case Dn.UPDATE_EVENT:$n(e.eventNodes,r)}})),r.build(),Un=!1,Hn=[]})):Un=!1)}function zn(e){var t=j(e,3),n=t[0],r=t[1],i=t[2];Hn.push({type:Dn.CREATE,nodes:n,eventNodes:r,printedNodes:i}),Wn()}function Kn(e){var t=j(e,3),n=t[0],r=t[2];n&&(Hn.push({type:Dn.MOVE,nodes:n,eventNodes:[],printedNodes:r}),Wn())}function Gn(e){var t=j(e,3),n=t[0],r=t[1],i=t[2];n&&(Hn.push({type:Dn.UPDATE,nodes:n,eventNodes:r,printedNodes:i}),Wn())}function qn(e){var t,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(e){var t=n[e],i=t.name,o=t.type,a=t.isCapture,u=t.listener;r.push({name:i,type:o,isCapture:a,listener:u})})),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(Bn||(Bn={}));var Jn=function(t){function n(e,t){var r,i;return g(this,n),(r=v(this,n)).isMounted=!1,r.events={},r.childNodes=[],r.parentNode=null,r.prevSibling=null,r.nextSibling=null,r.tagComponent=null,r.nodeId=null!==(i=null==t?void 0:t.id)&&void 0!==i?i:n.getUniqueNodeId(),r.nodeType=e,r.isNeedInsertToNative=function(e){return e===Bn.ElementNode}(e),(null==t?void 0:t.id)&&(r.isMounted=!0),r}return x(n,t),O(n,[{key:"firstChild",get:function(){return this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){var e=this.childNodes.length;return e?this.childNodes[e-1]:null}},{key:"component",get:function(){return this.tagComponent}},{key:"index",get:function(){var e=0;this.parentNode&&(e=this.parentNode.childNodes.filter((function(e){return e.isNeedInsertToNative})).indexOf(this));return e}},{key:"isRootNode",value:function(){return 1===this.nodeId}},{key:"hasChildNodes",value:function(){return!!this.childNodes.length}},{key:"insertBefore",value:function(e,t){var n=e,r=t;if(!n)throw new Error("No child to insert");if(r){if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");var i=this;r.parentNode!==this&&(i=r.parentNode);var o=i.childNodes.indexOf(r),a=r;r.isNeedInsertToNative||(a=Rn(this.childNodes,o)),n.parentNode=i,n.nextSibling=r,n.prevSibling=i.childNodes[o-1],i.childNodes[o-1]&&(i.childNodes[o-1].nextSibling=n),r.prevSibling=n,i.childNodes.splice(o,0,n),a.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:a.nodeId,relativeToRef:Ln}):this.insertChildNativeNode(n)}else this.appendChild(n)}},{key:"moveChild",value:function(e,t){var n=e,r=t;if(!n)throw new Error("No child to move");if(r){if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");var i=this.childNodes.indexOf(n),o=this.childNodes.indexOf(r),a=r;if(r.isNeedInsertToNative||(a=Rn(this.childNodes,o)),o!==i){n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=n),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=n),this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=this.childNodes[i+1]),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=this.childNodes[i-1]),this.childNodes.splice(i,1);var u=this.childNodes.indexOf(r);this.childNodes.splice(u,0,n),a.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:a.nodeId,relativeToRef:Ln}):this.insertChildNativeNode(n)}}else this.appendChild(n)}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?An(n,n.nodeId):this.insertChildNativeNode(n)))}},{key:"removeChild",value:function(e){var t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode===this){if(t.isNeedInsertToNative){t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;var n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}}else t.parentNode.removeChild(t)}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length){var t,n=p(this.childNodes);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=this.findChild.call(r,e);if(i)return i}}catch(e){n.e(e)}finally{n.f()}}return null}},{key:"eachNode",value:function(e){var t=this;e&&e(this),this.childNodes.length&&this.childNodes.forEach((function(n){t.eachNode.call(n,e)}))}},{key:"insertChildNativeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.isNeedInsertToNative){var n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){var i=n?this:e;zn(i.convertToNativeNodes(!0,t)),i.eachNode((function(e){var t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),An(t,t.nodeId)}))}}}},{key:"moveChildNativeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.isNeedInsertToNative&&(!t||t.refId!==e.nodeId)){var n=e;Kn(n.convertToNativeNodes(!1,t))}}},{key:"removeChildNativeNode",value:function(e){if(e&&e.isNeedInsertToNative){var t,n,r,i,o=e;o.isMounted&&(o.isMounted=!1,t=o.convertToNativeNodes(!1,{}),n=j(t,3),r=n[0],i=n[2],r&&(Hn.push({type:Dn.DELETE,nodes:r,eventNodes:[],printedNodes:i}),Wn()))}}},{key:"updateNativeNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isMounted){var t=this.convertToNativeNodes(e,{});Gn(t)}}},{key:"updateNativeEvent",value:function(){this.isMounted&&function(e){Hn.push({type:Dn.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),Wn()}(qn(this))}},{key:"convertToNativeNodes",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){var o=[],a=[],u=[];return this.eachNode((function(e){var t=j(e.convertToNativeNodes(!1,r),3),n=t[0],i=t[1],c=t[2];Array.isArray(n)&&n.length&&o.push.apply(o,h(n)),Array.isArray(i)&&i.length&&a.push.apply(a,h(i)),Array.isArray(c)&&c.length&&u.push.apply(u,h(c))})),[o,a,u]}if(!this.component)throw new Error("tagName is not supported yet");var c=yn(),s=c.rootViewId,l=null!=i?i:{},f=w({id:this.nodeId,pId:null!==(n=null===(t=this.parentNode)||void 0===t?void 0:t.nodeId)&&void 0!==n?n:s},l),d=qn(this),p=void 0,v=[f,r];return[[v],[d],[p]]}}],[{key:"getUniqueNodeId",value:function(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}}])}(Vn),Xn=function(e){function t(e,n){var r;return g(this,t),(r=v(this,t,[Bn.TextNode,n])).text=e,r.data=e,r.isNeedInsertToNative=!1,r}return x(t,e),O(t,[{key:"setText",value:function(e){this.text=e,this.parentNode&&this.parentNode.nodeType===Bn.ElementNode&&this.parentNode.setText(e)}}])}(Jn);function Zn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=r,o={textShadowOffsetX:"width",textShadowOffsetY:"height"};return i.textShadowOffset=null!==(t=i.textShadowOffset)&&void 0!==t?t:{},Object.assign(i.textShadowOffset,{[o[e]]:n}),["textShadowOffset",i.textShadowOffset]}function Qn(e,t){var n=t;e.component.name===ze.TextInput&&an()&&(n.textAlign||(n.textAlign="right"))}function er(e,t,n){var r=t,i=n;e.component.name===ze.View&&("scroll"===i.overflowX&&i.overflowY,"scroll"===i.overflowY?r.name="ScrollView":"scroll"===i.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),i.flexDirection=an()?"row-reverse":"row"),"ScrollView"===r.name&&(e.childNodes.length,e.childNodes.length&&e.nodeType===Bn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),i.backgroundImage&&(i.backgroundImage=ct(i.backgroundImage)))}function tr(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,i=n.length;r1&&void 0!==arguments[1]&&arguments[1];e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"appendChild",this).call(this,e,n)}},{key:"insertBefore",value:function(e,n){e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"moveChild",value:function(e,n){e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"moveChild",this).call(this,e,n)}},{key:"removeChild",value:function(e){e instanceof Xn&&this.setText("",{notToNative:!0}),c(m(t.prototype),"removeChild",this).call(this,e)}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t,i=e;try{if("boolean"==typeof this.attributes[i]&&""===r&&(r=!0),void 0===i)return void(!n.notToNative&&this.updateNativeNode());switch(i){case"class":var o=new Set(pt(r));if(at(this.classList,o))return;return this.classList=o,void(!n.notToNative&&this.updateNativeNode(!0));case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){"Property ".concat(i," must be string:").concat(e.message)}n&&n.textUpdate||(r=dt(r)),r=ot(r);break;case"numberOfRows":if(!Pt.isIOS())return;break;case"caretColor":case"caret-color":i="caret-color",r=Pt.parseColor(r);break;case"break-strategy":i="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":i="placeholderTextColor",r=Pt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":i="underlineColorAndroid",r=Pt.parseColor(r);break;case"nativeBackgroundAndroid":var a=r;void 0!==a.color&&(a.color=Pt.parseColor(a.color)),i="nativeBackgroundAndroid",r=a}if(this.attributes[i]===r)return;this.attributes[i]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"removeStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.style={},e||this.updateNativeNode()}},{key:"setStyles",value:function(e){var t=this;e&&"object"===k(e)&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),this.updateNativeNode())}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());var r=this.beforeLoadStyle({property:e,value:t}),i=r.property,o=r.value;switch(i){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=re(i,o),u=j(a,2);i=u[0],o=u[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=Zn(i,o,this.style),s=j(c,2);i=s[0],o=s[1];break;case"textShadowOffset":var l=null!=o?o:{},f=l.x,d=void 0===f?0:f,p=l.width,h=void 0===p?0:p,v=l.y,y=void 0===v?0:v,m=l.height,g=void 0===m?0:m;o={width:d||h,height:y||g};break;default:Object.prototype.hasOwnProperty.call(z,i)&&(i=z[i]),"string"==typeof o&&(o=o.trim(),o=i.toLowerCase().indexOf("color")>=0?Pt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):Qe(o))}null!=o&&this.style[i]!==o&&(this.style[i]=o,n||this.updateNativeNode())}},{key:"scrollToPosition",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;if("number"==typeof e&&"number"==typeof t){var r=n;!1===r&&(r=0),Pt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}}},{key:"scrollTo",value:function(e,t,n){if("object"===k(e)&&e){var r=e.left,i=e.top,o=e.behavior,a=void 0===o?"auto":o,u=e.duration;this.scrollToPosition(r,i,"none"===a?0:u)}else this.scrollToPosition(e,t,n)}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"getNativeEventName",value:function(e){var t="on".concat(Xe(e));if(this.component){var n=this.component.eventNamesMap;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}},{key:"addEventListener",value:function(e,n,r){var i=this,o=e,a=n,u=r,s=!0;"scroll"!==o||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);var l=this.getNativeEventName(o);if(this.attributes[l]&&(s=!1),"function"==typeof this.polyfillNativeEvents){var f=this.polyfillNativeEvents(hn,o,a,u);o=f.eventNames,a=f.callback,u=f.options}c(m(t.prototype),"addEventListener",this).call(this,o,a,u),tr(o,(function(e){var t,n,r=i.getNativeEventName(e);i.events[r]?i.events[r]&&i.events[r].type!==un&&(i.events[r].type=un):i.events[r]={name:r,type:un,listener:(t=r,n=e,function(e){var r=e.id,i=e.currentId,o=e.params,a=e.eventPhase;Fn.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:i,params:o,eventPhase:a},e)}),isCapture:!1}})),s&&this.updateNativeEvent()}},{key:"removeEventListener",value:function(e,n,r){var i=this,o=e,a=n,u=r;if("function"==typeof this.polyfillNativeEvents){var s=this.polyfillNativeEvents(vn,o,a,u);o=s.eventNames,a=s.callback,u=s.options}c(m(t.prototype),"removeEventListener",this).call(this,o,a,u),tr(o,(function(e){var t=i.getNativeEventName(e);i.events[t]&&(i.events[t].type=cn)}));var l=this.getNativeEventName(o);this.attributes[l]&&delete this.attributes[l],this.updateNativeEvent()}},{key:"dispatchEvent",value:function(e,t,n){var r=e;r.currentTarget=this,r.target||(r.target=t||this,Tn(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}},{key:"convertToNativeNodes",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return c(m(t.prototype),"convertToNativeNodes",this).call(this,!0,r);var i=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof t){var o=this.parentNode.processedStyle,a=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];a.forEach((function(e){!i[e]&&o[e]&&(i[e]=o[e])}))}if(it()(this,i),this.component.defaultNativeStyle){var u=this.component.defaultNativeStyle,s={};Object.keys(u).forEach((function(e){n.getAttribute(e)||(s[e]=u[e])})),i=w(w({},s),i)}this.processedStyle=i;var l={name:this.component.name,props:w(w({},this.getNativeProps()),{},{style:i}),tagName:this.tagName};return Qn(this,i),er(this,l,i),c(m(t.prototype),"convertToNativeNodes",this).call(this,!1,r,l)}},{key:"repaintWithChildren",value:function(){this.updateNativeNode(!0)}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"setPressed",value:function(e){Pt.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Pt.callUIFunction(this,"setHotspot",[e,t])}},{key:"setStyleScope",value:function(e){var t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}},{key:"styleScopeId",get:function(){return this.scopedIdList}},{key:"getInlineStyle",value:function(){var e=this,t={};return Object.keys(this.style).forEach((function(n){var r=P.toRaw(e.style[n]);void 0!==r&&(t[n]=r)})),t}},{key:"getNativeStyles",value:function(){var e=this,n={};return Be(void 0,tt()).query(this).selectors.forEach((function(t){var r,i;ft(t,e)&&(null===(i=null===(r=t.ruleSet)||void 0===r?void 0:r.declarations)||void 0===i?void 0:i.length)&&t.ruleSet.declarations.forEach((function(e){e.property&&(n[e.property]=e.value)}))})),this.ssrInlineStyle&&(n=w(w({},n),this.ssrInlineStyle)),n=t.parseRem(w(w({},n),this.getInlineStyle()))}},{key:"getNativeProps",value:function(){var e=this,t={},n=this.component.defaultNativeProps;n&&Object.keys(n).forEach((function(r){if(void 0===e.getAttribute(r)){var i=n[r];t[r]=C.isFunction(i)?i(e):P.toRaw(i)}})),Object.keys(this.attributes).forEach((function(n){var r,i=P.toRaw(e.getAttribute(n));if(e.component.attributeMaps&&e.component.attributeMaps[n]){var o=e.component.attributeMaps[n];if(C.isString(o))t[o]=P.toRaw(i);else if(C.isFunction(o))t[n]=P.toRaw(o(i));else{var a=o.name,u=o.propsValue,c=o.jointKey;C.isFunction(u)&&(i=u(i)),c?(t[c]=null!==(r=t[c])&&void 0!==r?r:{},Object.assign(t[c],{[a]:P.toRaw(i)})):t[a]=P.toRaw(i)}}else t[n]=P.toRaw(i)}));var r=this.component.nativeProps;return r&&Object.keys(r).forEach((function(e){t[e]=P.toRaw(r[e])})),t}},{key:"getNodeAttributes",value:function(){var e;try{var t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if("object"!==k(t)||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);var r={},i=Object.keys(t);return i.forEach((function(i){var o=t[i];"object"!==k(o)||null===o?r[i]=o:Array.isArray(o)?r[i]=h(o):o instanceof Set?r[i]=new Set(h(o)):o instanceof Map?r[i]=new Map(h(o)):(n.set(t,t),r[i]=e(o,n))})),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=w({id:this.id,hippyNodeId:"".concat(this.nodeId),class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach((function(e){e.toLowerCase().includes("color")&&delete r[e]})),r}catch(e){return{}}}},{key:"getNativeEvents",value:function(){var e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){var r=this.component.eventNamesMap;n.forEach((function(n){var i=null==r?void 0:r.get(n);if(i)e[i]=!!t[n];else{var o="on".concat(Xe(n));e[o]=!!t[n]}}))}return e}},{key:"hackSpecialIssue",value:function(){this.fixVShowDirectiveIssue()}},{key:"fixVShowDirectiveIssue",value:function(){var e,t=this,n=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){n=void 0===e?"flex":e,t.updateNativeNode()}})}}],[{key:"parseRem",value:function(e){var t={},n=Object.keys(e);return n.length?n.forEach((function(n){t[n]=function(e){var t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;var n=yn().ratioBaseWidth;return 100*t*(Pt.Dimensions.screen.width/n)}(e[n])})):t=e,t}}])}(Jn);var rr=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"],ir={install:function(t){!function(t){var n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(k(t))>=0?Pt.parseColor(t):t}function c(e){return"loop"===e?-1:e}function s(t){var o=t.mode,a=void 0===o?"timing":o,s=t.valueType,l=t.startValue,f=t.toValue,d=u(t,i),p=w(w({},n),d);void 0!==s&&(p.valueType=t.valueType),p.startValue=r(p.valueType,l),p.toValue=r(p.valueType,f),p.repeatCount=c(p.repeatCount),p.mode=a;var h=new e.Hippy.Animation(p),v=h.getId();return{animation:h,animationId:v}}function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),i=r.getId();return{animation:r,animationId:i}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){if(Array.isArray(e[r])){var i=e[r],o=i[i.length-1].repeatCount,a=l(i.map((function(e){var n=s(w(w({},e),{},{repeatCount:0})),r=n.animationId,i=n.animation;return Object.assign(t,{[r]:i}),{animationId:r,follow:!0}})),c(o)),u=a.animationId,f=a.animation;n[r]={animationId:u},Object.assign(t,{[u]:f})}else{var d=s(e[r]),p=d.animationId,h=d.animation;Object.assign(t,{[p]:h}),n[r]={animationId:p}}})),n}function d(e){var t=e.transform,n=u(e,o),r=Object.keys(n).map((function(t){return e[t].animationId}));if(Array.isArray(t)&&t.length>0){var i=[];t.forEach((function(e){return Object.keys(e).forEach((function(t){if(e[t]){var n=e[t].animationId;"number"==typeof n&&n%1==0&&i.push(n)}}))})),r=[].concat(h(r),i)}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:function(){return{style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}},watch:{playing:function(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions:function(){var e=this;this.destroy(),this.create(),setTimeout((function(){var t=e.$attrs[st("actionsDidUpdate")];"function"==typeof t&&t()}))}},created:function(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount:function(){this.create()},mounted:function(){var e=this;this.$props.playing&&setTimeout((function(){e.start()}),0)},beforeDestroy:function(){this.destroy()},deactivated:function(){this.pause()},activated:function(){this.resume()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=u(e,a);this.animationIdsMap={};var r=f(n,this.animationIdsMap);if(t){var i=f(t,this.animationIdsMap);r.transform=Object.keys(i).map((function(e){return{[e]:i[e]}}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[st(t)]){var r=e.animationEventMap[t];r&&"function"==typeof e["".concat(r)]&&n.removeEventListener(r)}}))}))},addAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[st(t)]){var r=e.animationEventMap[t];r&&n.addEventListener(r,(function(){e.$emit(t)}))}}))}))},reset:function(){this.$alreadyStarted=!1},start:function(){var e=this;this.$alreadyStarted?this.resume():(this.animationIds=d(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.start()})))},resume:function(){var e=this;d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.destroy()}))}},render:function(){return P.h(this.tag,w({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}(t),Bt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){var t=Pt.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=j(n,2),i=r[0],o=r[1];Bt("hi-pull-".concat(o),{component:{name:"Pull".concat(i,"View"),processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"on".concat(i,"Released"):case"on".concat(i,"Pulling"):Object.assign(n,t)}return n}}}),e.component("pull-".concat(o),{methods:{["expandPull".concat(i)]:function(){t(this.$refs.instance,"expandPull".concat(i))},["collapsePull".concat(i)]:function(e){"Header"===i&&void 0!==e?t(this.$refs.instance,"collapsePull".concat(i,"WithOptions"),[e]):t(this.$refs.instance,"collapsePull".concat(i))},onLayout:function(e){this.$contentHeight=e.height},["on".concat(i,"Released")]:function(e){this.$emit("released",e)},["on".concat(i,"Pulling")]:function(e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render:function(){var e=this.$attrs,t=e.onReleased,n=e.onPulling,r=e.onIdle,a={onLayout:this.onLayout};return"function"==typeof t&&(a["on".concat(i,"Released")]=this["on".concat(i,"Released")]),"function"!=typeof n&&"function"!=typeof r||(a["on".concat(i,"Pulling")]=this["on".concat(i,"Pulling")]),P.h("hi-pull-".concat(o),w(w({},a),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})}))}(t),function(e){Bt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),Bt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){Pt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){Pt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(){return P.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render:function(){var e=P.h("div",null,this.$slots.default?this.$slots.default():null);return P.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(t),function(e){Bt("hi-waterfall",{component:{name:"WaterfallView",processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":var r=t.startEdgePos,i=t.endEdgePos,o=t.firstVisibleRowIndex,a=t.lastVisibleRowIndex,u=t.visibleRowFrames;Object.assign(n,{startEdgePos:r,endEdgePos:i,firstVisibleRowIndex:o,lastVisibleRowIndex:a,visibleRowFrames:u})}return n}}}),Bt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:function(){return{top:0,left:0,bottom:0,right:0}}},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call:function(e,t){Pt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh:function(){this.call("startRefresh")},startRefreshWithType:function(e){this.call("startRefreshWithType",[e])},callExposureReport:function(){this.call("callExposureReport",[])},scrollToIndex:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;this.call("scrollToIndex",[n,n,i])},scrollToContentOffset: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;this.call("scrollToContentOffset",[n,i,a])},startLoadMore:function(){this.call("startLoadMore")}},render:function(){var e=lt.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return P.h("hi-waterfall",w(w({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render:function(){return P.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(t),function(e){Bt("hi-swiper",{component:{name:"ViewPager",processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),Bt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:function(){return{$initialSlide:0}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(e){Pt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation:function(e){Pt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render:function(){var e=lt.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return P.h("hi-swiper",w(w({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render:function(){return P.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(t)}};var or=function(e){function t(e,n){var r;return g(this,t),(r=v(this,t,["comment",n])).text=e,r.data=e,r.isNeedInsertToNative=!1,r}return x(t,e),O(t)}(nr),ar=function(e){function t(){return g(this,t),v(this,t,arguments)}return x(t,e),O(t,[{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"getValue",value:(r=d(l().mark((function e(){var t=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Pt.callUIFunction(t,"getValue",(function(t){return e(t.text)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"setValue",value:function(e){Pt.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Pt.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Pt.callUIFunction(this,"blurTextInput",[])}},{key:"clear",value:function(){Pt.callUIFunction(this,"clear",[])}},{key:"isFocused",value:(n=d(l().mark((function e(){var t=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Pt.callUIFunction(t,"isFocused",(function(t){return e(t.value)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}]);var n,r}(nr),ur=function(e){function t(){return g(this,t),v(this,t,arguments)}return x(t,e),O(t,[{key:"scrollToIndex",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];Pt.callUIFunction(this,"scrollToIndex",[e,t,n])}},{key:"scrollToPosition",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];"number"==typeof e&&"number"==typeof t&&Pt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}])}(nr),cr=function(e){function t(){return g(this,t),v(this,t,[Bn.DocumentNode])}return x(t,e),O(t,null,[{key:"createComment",value:function(e){return new or(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new ar(e);case"ul":return new ur(e);default:return new nr(e)}}},{key:"createTextNode",value:function(e){return new Xn(e)}}])}(Jn);var sr={insert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){var t=e.parentNode;t&&(t.removeChild(e),Pn(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return cr.createElement(e)},createComment:function(e){return cr.createComment(e)},createText:function(e){return cr.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};var lr=/(?:Once|Passive|Capture)$/;function fr(e){var t,n=e,r={};if(lr.test(n))for(var i=n.match(lr);i;)n=n.slice(0,n.length-i[0].length),r[i[0].toLowerCase()]=!0,i=n.match(lr);return n=":"===n[2]?n.slice(3):n.slice(2),[(t=n,"".concat(t.charAt(0).toLowerCase()).concat(t.slice(1))),r]}function dr(e,t){var n=function e(n){P.callWithAsyncErrorHandling(e.value,t,P.ErrorCodes.NATIVE_EVENT_HANDLER,[n])};return n.value=e,n}function pr(e,t,n){var r=e,i={};if(!function(e,t,n){var r=!e,i=!t&&!n,o=JSON.stringify(t)===JSON.stringify(n);return r||i||o}(r,t,n))if(t&&!n)r.removeStyle();else{if(C.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach((function(e){var t=n[e];(function(e){return null==e})(t)||(i[P.camelize(e)]=t)})),r.removeStyle(!0),r.setStyles(i))}}function hr(e,t,n,r,i,o,a){switch(t){case"class":!function(e,t){var n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":pr(e,n,r);break;default:C.isOn(t)?function(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=e,u=null!==(i=a._vei)&&void 0!==i?i:a._vei={},c=u[t];if(r&&c)c.value=r;else{var s=fr(t),l=j(s,2),f=l[0],d=l[1];if(r){u[t]=dr(r,o);var p=u[t];a.addEventListener(f,p,d)}else a.removeEventListener(f,c,d),u[t]=void 0}}(e,t,n,r,a):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}var vr=!1,yr=function(){return O((function e(t,n,r){var i=this;g(this,e),this.webSocketId=-1,this.protocol="",this.listeners={},this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var o=w({},r);if(vr||(vr=!0,Ye.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!t)throw new TypeError("Invalid WebSocket url");Array.isArray(n)&&n.length>0?(this.protocol=n.join(","),o["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof n&&(this.protocol=n,o["Sec-WebSocket-Protocol"]=this.protocol);var a={headers:o,url:t};Pt.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&(i.webSocketId=e.id)}))}),[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Pt.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(k(e)));Pt.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.addEventListener("open",e)}},{key:"onclose",set:function(e){this.addEventListener("close",e)}},{key:"onerror",set:function(e){this.addEventListener("error",e)}},{key:"onmessage",set:function(e){this.addEventListener("message",e)}},{key:"onWebSocketEvent",value:function(e){if("object"===k(e)&&e.id===this.webSocketId){var t=e.type;if("string"==typeof t){"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ye.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach((function(t){C.isFunction(t)&&t(e.data)}))}}}},{key:"addEventListener",value:function(e,t){if(function(e){return-1!==["open","close","message","error"].indexOf(e)}(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);var n=st(e);this.webSocketCallbacks[n]=this.listeners[e]}}}])}();function mr(e,t){var n=function(e){var t;if("comment"===e.name)return new or(e.props.text,e);if("Text"===e.name&&!e.tagName){var n=new Xn(e.props.text,e);return n.nodeType=Bn.TextNode,n.data=e.props.text,n}switch(e.tagName){case"input":case"textarea":return new ar(e.tagName,e);case"ul":return new ur(e.tagName,e);default:return new nr(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e),r=t.filter((function(t){return t.pId===e.id})).sort((function(e,t){return e.index-t.index})),i=r.filter((function(e){return"comment"===e.name}));if(i.length){r=r.filter((function(e){return"comment"!==e.name}));for(var o=i.length-1;o>=0;o--)r.splice(i[o].index,0,i[o])}return r.forEach((function(e){n.appendChild(mr(e,t),!0)})),n}e.WebSocket=yr;var gr=['%c[Hippy-Vue-Next "3.3.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function br(e,t){if(Pt.isIOS()){var n=function(e){var t,n,r,i=e.iPhone;if((null==i?void 0:i.statusBar)&&(r=i.statusBar),null==r?void 0:r.disabled)return null;var o=new nr("div"),a=Pt.Dimensions.screen.statusBarHeight;Pt.screenIsVertical?o.setStyle("height",a):o.setStyle("height",0);var u=4282431619;if(Number.isInteger(u)&&(u=r.backgroundColor),o.setStyle("backgroundColor",u),"string"==typeof r.backgroundImage){var c=new nr("img");c.setStyle("width",Pt.Dimensions.screen.width),c.setStyle("height",a),c.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),o.appendChild(c)}return o.addEventListener("layout",(function(){Pt.screenIsVertical?o.setStyle("height",a):o.setStyle("height",0)})),o}(e);if(n){var r=t.$el.parentNode;r.childNodes.length?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)}}}var Or=function(e,t){var n,r,i,o,a=e,u=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);a.use(on),a.use(ir),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(i=t.styleOptions.beforeLoadStyle,et=i),t.silent&&(o=t.silent,o),function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Ke=e}(t.trimWhitespace);var c=a.mount;return a.mount=function(e){var n;mn("rootContainer",e);var r,i=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?mr(j(r=t.ssrNodeList,1)[0],r):function(e){var t=cr.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=c(i,u,!1);return mn("instance",o),u||br(t,o),o},a.$start=function(){var e=d(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){Pt.hippyNativeRegister.regist(t.appName,(function(r){var i,o,u=r.__instanceId__;Ge.apply(void 0,gr.concat(["Start",t.appName,"with rootViewId",u,r]));var c,s=yn();(null==s?void 0:s.app)&&s.app.unmount(),c={rootViewId:u,superProps:r,app:a,ratioBaseWidth:null!==(o=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==o?o:750},pn=c;var l={superProps:r,rootViewId:u};C.isFunction(n)?n(l):e(l)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a};t.BackAndroid=Dt,t.ContentSizeEvent=Sn,t.EventBus=Ye,t.ExposureEvent=Nn,t.FocusEvent=En,t.HIPPY_DEBUG_ADDRESS=We,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="3.3.0",t.HippyEvent=gn,t.HippyKeyboardEvent=wn,t.HippyLayoutEvent=On,t.HippyLoadResourceEvent=_n,t.HippyTouchEvent=bn,t.IS_PROD=!0,t.ListViewEvent=xn,t.NATIVE_COMPONENT_MAP=ze,t.Native=Pt,t.ViewPagerEvent=kn,t._setBeforeRenderToNative=function(e,t){C.isFunction(e)&&(1===t?rt=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=function(e,t){var n=P.createRenderer(w({patchProp:hr},sr)).createApp(e);return Or(n,t)},t.createHippyApp=Or,t.createSSRApp=function(e,t){var n=P.createHydrationRenderer(w({patchProp:hr},sr)).createApp(e);return Or(n,t)},t.eventIsKeyboardEvent=Tn,t.getCssMap=Be,t.getTagComponent=Ut,t.isNativeTag=function(e){return rr.includes(e)},t.parseCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{source:0},n=1,r=1;function i(e){var t=e.match(/\n/g);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(t){var n=t.exec(e);if(!n)return null;var r=n[0];return i(r),e=e.slice(r.length),n}function a(){o(/^\s*/)}function u(){return function(i){return i.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},a(),i}}var c=[];function s(i){var o=w(w({},new Error("".concat(t.source,":").concat(n,":").concat(r,": ").concat(i))),{},{reason:i,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw o;c.push(o)}function l(){var t=u();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:"comment",comment:o})}function f(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t||[];e=l();)!1!==e&&n.push(e);return n}function d(){var t,n=[];for(a(),f(n);e.length&&"}"!==e.charAt(0)&&(t=M()||b());)t&&(n.push(t),f(n));return n}function p(){var e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:c}}}function h(){return o(/^{\s*/)}function v(){return o(/^}/)}function y(){var e=o(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")})):null}function m(){var e=u(),t=o(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!o(/^:\s*/))return s("property missing ':'");var n=t.replace(X,""),r=C.camelize(n),i=z[r]||r,a=o(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/),c=a?a[0].trim().replace(X,""):"";switch(i){case"backgroundImage":var l=j(re(i,c),2);i=l[0],c=l[1];break;case"transform":var f=/((\w+)\s*\()/,d=/(?:\(['"]?)(.*?)(?:['"]?\))/,p=c;c=[],p.split(" ").forEach((function(e){if(f.test(e)){var t,n,r=f.exec(e),i=d.exec(e);if(r)t=j(r,3)[2];if(i)n=j(i,2)[1];0===n.indexOf(".")&&(n="0".concat(n)),parseFloat(n).toString()===n&&(n=parseFloat(n));var o={};o[t]=n,c.push(o)}else s("missing '('")}));break;case"fontWeight":break;case"shadowOffset":var h=c.split(" ").filter((function(e){return e})).map((function(e){return ee(e)})),v=j(h,1)[0],y=j(h,2)[1];y||(y=v),c={x:v,y:y};break;case"collapsable":c=Boolean(c);break;default:c=Q(c);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find((function(e){return i.toLowerCase().indexOf(e)>-1}))&&(c=ee(c))}var m=e({type:"declaration",value:c,property:i});return o(/^[;\s]*/),m}function g(){var e,t=[];if(!h())return s("missing '{'");for(f(t);e=m();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),f(t));return v()?t:s("missing '}'")}function b(){var e=u(),t=y();return t?(f(),e({type:"rule",selectors:t,declarations:g()})):s("selector missing")}function O(){for(var e,t=[],n=u();e=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),o(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:g()}):null}function _(){var e=u(),t=o(/^@([-\w]+)?keyframes\s*/);if(!t)return null;var n=t[1];if(!(t=o(/^([-\w]+)\s*/)))return s("@keyframes missing name");var r,i=t[1];if(!h())return s("@keyframes missing '{'");for(var a=f();r=O();)a.push(r),a=a.concat(f());return v()?e({type:"keyframes",name:i,vendor:n,keyframes:a}):s("@keyframes missing '}'")}function S(){var e=u(),t=o(/^@supports *([^{]+)/);if(!t)return null;var n=t[1].trim();if(!h())return s("@supports missing '{'");var r=f().concat(d());return v()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}function E(){var e=u();if(!o(/^@host\s*/))return null;if(!h())return s("@host missing '{'");var t=f().concat(d());return v()?e({type:"host",rules:t}):s("@host missing '}'")}function k(){var e=u(),t=o(/^@media *([^{]+)/);if(!t)return null;var n=t[1].trim();if(!h())return s("@media missing '{'");var r=f().concat(d());return v()?e({type:"media",media:n,rules:r}):s("@media missing '}'")}function N(){var e=u(),t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}function x(){var e=u();if(!o(/^@page */))return null;var t=y()||[];if(!h())return s("@page missing '{'");for(var n,r=f();n=m();)r.push(n),r=r.concat(f());return v()?e({type:"page",selectors:t,declarations:r}):s("@page missing '}'")}function T(){var e=u(),t=o(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;var n=t[1].trim(),r=t[2].trim();if(!h())return s("@document missing '{'");var i=f().concat(d());return v()?e({type:"document",document:r,vendor:n,rules:i}):s("@document missing '}'")}function A(){var e=u();if(!o(/^@font-face\s*/))return null;if(!h())return s("@font-face missing '{'");for(var t,n=f();t=m();)n.push(t),n=n.concat(f());return v()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}function I(e){var t=new RegExp("^@".concat(e,"\\s*([^;]+);"));return function(){var n=u(),r=o(t);if(!r)return null;var i={type:e};return i[e]=r[1].trim(),n(i)}}var P=I("import"),R=I("charset"),L=I("namespace");function M(){return"@"!==e[0]?null:_()||k()||N()||S()||P()||R()||L()||T()||x()||E()||A()}return ie(p(),null)},t.registerElement=Bt,t.setScreenSize=function(t){var n;if(t.width&&t.height){var r=(null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device).screen;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=W}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return b})),n.d(t,"ITERATE_KEY",(function(){return W})),n.d(t,"ReactiveEffect",(function(){return E})),n.d(t,"ReactiveFlags",(function(){return bt})),n.d(t,"TrackOpTypes",(function(){return mt})),n.d(t,"TriggerOpTypes",(function(){return gt})),n.d(t,"computed",(function(){return Je})),n.d(t,"customRef",(function(){return lt})),n.d(t,"deferredComputed",(function(){return yt})),n.d(t,"effect",(function(){return j})),n.d(t,"effectScope",(function(){return O})),n.d(t,"enableTracking",(function(){return L})),n.d(t,"getCurrentScope",(function(){return w})),n.d(t,"isProxy",(function(){return Ye})),n.d(t,"isReactive",(function(){return Ue})),n.d(t,"isReadonly",(function(){return He})),n.d(t,"isRef",(function(){return Qe})),n.d(t,"isShallow",(function(){return $e})),n.d(t,"markRaw",(function(){return ze})),n.d(t,"onScopeDispose",(function(){return S})),n.d(t,"pauseScheduling",(function(){return F})),n.d(t,"pauseTracking",(function(){return R})),n.d(t,"proxyRefs",(function(){return ct})),n.d(t,"reactive",(function(){return Me})),n.d(t,"readonly",(function(){return De})),n.d(t,"ref",(function(){return et})),n.d(t,"resetScheduling",(function(){return D})),n.d(t,"resetTracking",(function(){return M})),n.d(t,"shallowReactive",(function(){return Fe})),n.d(t,"shallowReadonly",(function(){return Ve})),n.d(t,"shallowRef",(function(){return tt})),n.d(t,"stop",(function(){return A})),n.d(t,"toRaw",(function(){return We})),n.d(t,"toRef",(function(){return ht})),n.d(t,"toRefs",(function(){return ft})),n.d(t,"toValue",(function(){return at})),n.d(t,"track",(function(){return K})),n.d(t,"trigger",(function(){return G})),n.d(t,"triggerRef",(function(){return it})),n.d(t,"unref",(function(){return ot}));var r,i=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");function o(e,t,n){return t=a(t),function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(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&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function d(e,t,n,r,i,o,a){try{var u=e[o](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,i)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){d(o,r,i,a,u,"next",e)}function u(e){d(o,r,i,a,u,"throw",e)}a(void 0)}))}}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=I(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function h(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t,n){return t=g(t),m(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function m(e,t){if(t&&("object"==N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=N(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},x.apply(this,arguments)}function T(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&&j(e,t)}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function A(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){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(e,t)||I(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 I(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n255?255:t},U=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},H=function(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(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=H(i,r,e+1/3),a=H(i,r,e),u=H(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8},Y=function(e){return(parseFloat(e)%360+360)%360/360},W=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function z(e){var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=V.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(L,e)?L[e]:(t=V.rgb.exec(e),Array.isArray(t)?(B(t[1])<<24|B(t[2])<<16|B(t[3])<<8|255)>>>0:(t=V.rgba.exec(e))?(B(t[1])<<24|B(t[2])<<16|B(t[3])<<8|U(t[4]))>>>0:(t=V.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=V.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=V.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=V.hsl.exec(e))?(255|$(Y(t[1]),W(t[2]),W(t[3])))>>>0:(t=V.hsla.exec(e))?($(Y(t[1]),W(t[2]),W(t[3]))|U(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var K={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},G={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},q="turn",J="rad",X="deg",Z=/\/\*[\s\S]{0,1000}?\*\//gm;var Q=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ee(e){if("number"==typeof e)return e;if(Q.test(e))try{return parseFloat(e)}catch(e){}return e}function te(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){var t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function ne(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=x(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";var r="180",i=A(n,3),o=i[0],a=i[1],u=i[2];return a&&u?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X,n=parseFloat(e),r=e||"",i=e.split("."),o=A(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case q:r="".concat((360*n).toFixed(2));break;case J:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,u):o&&void 0!==G[o]&&(r=G[o]),r}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.replace(/\s+/g," ").trim(),n=t.split(/\s+(?![^(]*?\))/),r=A(n,2),i=r[0],o=r[1],a=/^([+-]?\d+\.?\d*)%$/g;return!i||a.exec(i)||o?i&&a.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:z(i)}:null:{color:z(i)}}function ie(e,t){var n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";var i=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},i.forEach((function(e,t){if(0===t){var r=ne(e);if(r)n.angle=r;else{n.angle="180";var i=re(e);i&&o.push(i)}}else{var a=re(e);a&&o.push(a)}})),n.colorStopList=o}else{var a=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(a&&a.length>1){var u=A(a,2);n=u[1]}}return[r,n]}function oe(e,t){var n=e&&"string"==typeof e.type,r=n?e:t;return Object.keys(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){oe(e,r)})):n&&"object"===N(n)&&oe(n,r)})),n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t}),e}var ae=function(){return _((function e(){b(this,e),this.changeMap=new Map}),[{key:"addAttribute",value:function(e,t){var n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}},{key:"addPseudoClass",value:function(e,t){var n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}},{key:"properties",value:function(e){var t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}])}(),ue=function(){function e(t){var n=this;b(this,e),this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=t,t.forEach((function(e){return e.lookupSort(n)}))}return _(e,[{key:"append",value:function(e){var t=this;this.ruleSets=this.ruleSets.concat(e),e.forEach((function(e){return e.lookupSort(t)}))}},{key:"delete",value:function(e){var t=this,n=[];this.ruleSets=this.ruleSets.filter((function(t){return t.hash!==e||(n.push(t),!1)})),n.forEach((function(e){return e.removeSort(t)}))}},{key:"query",value:function(e,t){var n=this,r=e.tagName,i=e.id,o=e.classList,a=e.props,u=i,c=o;if(null==a?void 0:a.attributes){var s=a.attributes;c=new Set(((null==s?void 0:s.class)||"").split(" ").filter((function(e){return e.trim()}))),u=s.id}var l=[this.universal,this.id[u],this.type[r]];(null==c?void 0:c.size)&&c.forEach((function(e){return l.push(n.class[e])}));var f=l.filter((function(e){return!!e})).reduce((function(e,t){return e.concat(t)}),[]),d=new ae;return d.selectors=f.filter((function(n){return n.sel.accumulateChanges(e,d,t)})).sort((function(e,t){return e.sel.specificity-t.sel.specificity||e.pos-t.pos})).map((function(e){return e.sel})),d}},{key:"removeById",value:function(t,n){e.removeFromMap(this.id,t,n)}},{key:"sortById",value:function(e,t){this.addToMap(this.id,e,t)}},{key:"removeByClass",value:function(t,n){e.removeFromMap(this.class,t,n)}},{key:"sortByClass",value:function(e,t){this.addToMap(this.class,e,t)}},{key:"removeByType",value:function(t,n){e.removeFromMap(this.type,t,n)}},{key:"sortByType",value:function(e,t){this.addToMap(this.type,e,t)}},{key:"removeAsUniversal",value:function(e){var t=this.universal.findIndex((function(t){var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)}));-1!==t&&this.universal.splice(t)}},{key:"sortAsUniversal",value:function(e){this.universal.push(this.makeDocSelector(e))}},{key:"addToMap",value:function(e,t,n){this.position+=1;var r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}},{key:"makeDocSelector",value:function(e){return this.position+=1,{sel:e,pos:this.position}}}],[{key:"removeFromMap",value:function(e,t,n){var r=e[t],i=r.findIndex((function(e){var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)}));-1!==i&&r.splice(i,1)}}])}();function ce(e){return null==e}function se(e){return e?" ".concat(e):""}function le(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}var fe=function(){return _((function e(){b(this,e),this.specificity=0}),[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(null!=t?t:this)}}])}(),de=function(e){function t(){var e;return b(this,t),(e=y(this,t,arguments)).rarity=0,e}return T(t,e),_(t,[{key:"accumulateChanges",value:function(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}},{key:"match",value:function(e){return!!e}},{key:"mayMatch",value:function(e){return this.match(e)}},{key:"trackChanges",value:function(e,t){}}])}(fe),pe=function(e){function t(e){var n;return b(this,t),(n=y(this,t)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.head=e.reduce((function(e,t){return!e||e instanceof de&&t.rarity>e.rarity?t:e}),null),n.dynamic=e.some((function(e){return e.dynamic})),n.selectors=e,n}return T(t,e),_(t,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(se(this.combinator))}},{key:"match",value:function(e){return!!e&&this.selectors.every((function(t){return t.match(e)}))}},{key:"mayMatch",value:function(e){return!!e&&this.selectors.every((function(t){return t.mayMatch(e)}))}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n){return n.trackChanges(e,t)}))}},{key:"lookupSort",value:function(e,t){this.head&&this.head instanceof de&&this.head.lookupSort(e,null!=t?t:this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof de&&this.head.removeSort(e,null!=t?t:this)}}])}(de),ve=function(e){function t(){var e;return b(this,t),(e=y(this,t)).specificity=0,e.rarity=0,e.dynamic=!1,e}return T(t,e),_(t,[{key:"toString",value:function(){return"*".concat(se(this.combinator))}},{key:"match",value:function(){return!0}}])}(de),he=function(e){function t(e){var n;return b(this,t),(n=y(this,t)).specificity=65536,n.rarity=3,n.dynamic=!1,n.id=e,n}return T(t,e),_(t,[{key:"toString",value:function(){return"#".concat(this.id).concat(se(this.combinator))}},{key:"match",value:function(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}},{key:"lookupSort",value:function(e,t){e.sortById(this.id,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,null!=t?t:this)}}])}(de),ye=function(e){function t(e){var n;return b(this,t),(n=y(this,t)).specificity=1,n.rarity=1,n.dynamic=!1,n.cssType=e,n}return T(t,e),_(t,[{key:"toString",value:function(){return"".concat(this.cssType).concat(se(this.combinator))}},{key:"match",value:function(e){return!!e&&e.tagName===this.cssType}},{key:"lookupSort",value:function(e,t){e.sortByType(this.cssType,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeByType(this.cssType,null!=t?t:this)}}])}(de),me=function(e){function t(e){var n;return b(this,t),(n=y(this,t)).specificity=256,n.rarity=2,n.dynamic=!1,n.className=e,n}return T(t,e),_(t,[{key:"toString",value:function(){return".".concat(this.className).concat(se(this.combinator))}},{key:"match",value:function(e){var t,n,r;if(!e)return!1;var i=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter((function(e){return e.trim()})));return!(!i.size||!i.has(this.className))}},{key:"lookupSort",value:function(e,t){e.sortByClass(this.className,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeByClass(this.className,null!=t?t:this)}}])}(de),ge=function(e){function t(e){var n;return b(this,t),(n=y(this,t)).specificity=256,n.rarity=0,n.dynamic=!0,n.cssPseudoClass=e,n}return T(t,e),_(t,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(se(this.combinator))}},{key:"match",value:function(){return!1}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}])}(de),be=function(e,t){var n,r,i,o=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==o?o:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(i=null==e?void 0:e.styleScopeId)||void 0===i?void 0:i.includes(t))?t:void 0},Oe=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return b(this,t),(n=y(this,t)).attribute="",n.test="",n.value="",n.specificity=256,n.rarity=0,n.dynamic=!0,n.attribute=e,n.test=r,n.value=i,r?i?(n.match=function(t){if(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props[e]))return!1;var n="".concat(be(t,e));if("="===r)return n===i;if("^="===r)return n.startsWith(i);if("$="===r)return n.endsWith(i);if("*="===r)return-1!==n.indexOf(i);if("~="===r){var o=n.split(" ");return-1!==(null==o?void 0:o.indexOf(i))}return"|="===r&&(n===i||n.startsWith("".concat(i,"-")))},n):(n.match=function(){return!1},m(n)):(n.match=function(t){return!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!ce(be(t,e))},m(n))}return T(t,e),_(t,[{key:"toString",value:function(){return"[".concat(this.attribute).concat(se(this.test)).concat(this.test&&this.value||"","]").concat(se(this.combinator))}},{key:"match",value:function(e){return!!e&&!e}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}])}(de),_e=function(e){function t(e){var n;return b(this,t),(n=y(this,t)).specificity=0,n.rarity=4,n.dynamic=!1,n.combinator=void 0,n.error=e,n}return T(t,e),_(t,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}},{key:"lookupSort",value:function(){return null}},{key:"removeSort",value:function(){return null}}])}(de),we=function(){return _((function e(t){b(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.parentNode),!!e&&t.match(e)}))?e:null)}},{key:"mayMatch",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)}))?e:null)}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n,r){0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)}))}}])}(),Se=function(){return _((function e(t){b(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.nextSibling),!!e&&t.match(e)}))?e:null)}},{key:"mayMatch",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)}))?e:null)}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n,r){0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)}))}}])}(),Ee=function(e){function t(e){var n;b(this,t),n=y(this,t);var r=[void 0," ",">","+","~"],i=[],o=[],a=[],u=h(e),c=u.length-1;n.specificity=0,n.dynamic=!1;for(var s=c;s>=0;s--){var l=u[s];if(-1===r.indexOf(l.combinator))throw console.error('Unsupported combinator "'.concat(l.combinator,'".')),new Error('Unsupported combinator "'.concat(l.combinator,'".'));void 0!==l.combinator&&" "!==l.combinator||a.push(o=[i=[]]),">"===l.combinator&&o.push(i=[]),n.specificity+=l.specificity,l.dynamic&&(n.dynamic=!0),i.push(l)}return n.groups=a.map((function(e){return new we(e.map((function(e){return new Se(e)})))})),n.last=u[c],n}return T(t,e),_(t,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e,t){return!!e&&this.groups.every((function(n,r){if(0===r)return!!(e=n.match(e));for(var i=le(e,t);i;){if(e=n.match(i))return!0;i=le(i,t)}return!1}))}},{key:"lookupSort",value:function(e){this.last.lookupSort(e,this)}},{key:"removeSort",value:function(e){this.last.removeSort(e,this)}},{key:"accumulateChanges",value:function(e,t,n){if(!this.dynamic)return this.match(e,n);var r=[],i=this.groups.every((function(t,i){if(0===i){var o=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=o)}for(var a=le(e,n);a;){var u=t.mayMatch(a);if(u)return r.push({left:a,right:null}),e=u,!0;a=le(a,n)}return!1}));if(!i)return!1;if(!t)return i;for(var o=0;o)?\\s*"},Te={};function je(e,t,n){var r="";Ne&&(r="gy"),Te[e]||(Te[e]=new RegExp(xe[e],r));var i,o=Te[e];if(Ne)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),!(i=o.exec(t)))return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function Ae(e,t){var n,r;return null!==(r=null!==(n=function(e,t){var n=je("universalSelectorRegEx",e,t),r=n.result,i=n.regexp;return r?{value:{type:"*"},start:t,end:i.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){var n=je("simpleIdentifierSelectorRegEx",e,t),r=n.result,i=n.regexp;if(!r)return null;var o=i.lastIndex;return{value:{type:r[1],identifier:r[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){var n=je("attributeSelectorRegEx",e,t),r=n.result,i=n.regexp;if(!r)return null;var o=i.lastIndex,a=r[1];return r[2]?{value:{type:"[]",property:a,test:r[2],value:r[3]||r[4]||r[5]},start:t,end:o}:{value:{type:"[]",property:a},start:t,end:o}}(e,t)}function Ie(e,t){var n=Ae(e,t);if(!n)return null;for(var r=n.end,i=[];n;){i.push(n.value),n=Ae(e,r=n.end)}return{start:t,end:r,value:i}}function Ce(e,t){var n=je("combinatorRegEx",e,t),r=n.result,i=n.regexp;return r?{start:t,end:Ne?i.lastIndex:t,value:r[1]||" "}:null}var Pe,Re=function(e){return e};function Le(e){return"declaration"===e.type}function Me(e){return function(t){return e(t)}}function Fe(e){switch(e.type){case"*":return new ve;case"#":return new he(e.identifier);case"":return new ye(e.identifier.replace(/-/,"").toLowerCase());case".":return new me(e.identifier);case":":return new ge(e.identifier);case"[]":return e.test?new Oe(e.property,e.test,e.value):new Oe(e.property);default:return null}}function De(e){return 0===e.length?new _e(new Error("Empty simple selector sequence.")):1===e.length?Fe(e[0]):new pe(e.map(Fe))}function Ve(e){try{var t=function(e,t){var n=t,r=je("whiteSpaceRegEx",e,t),i=r.result,o=r.regexp;i&&(n=o.lastIndex);var a,u=[],c=!0,s=[void 0,void 0];return(Ne?[e]:e.split(" ")).forEach((function(e){if(!Ne){if(""===e)return;n=0}do{var t=Ie(e,n);if(!t){if(c)return;break}if(n=t.end,a&&(s[1]=a.value),s=[t.value,void 0],u.push(s),a=Ce(e,n))n=a.end;c=!(!a||" "===a.value)}while(a)})),{start:t,end:n,value:u}}(e,0);return t?function(e){if(0===e.length)return new _e(new Error("Empty selector."));if(1===e.length)return De(e[0][0]);var t,n=[],r=v(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=De(i[0]),a=i[1];a&&o&&(o.combinator=a),n.push(o)}}catch(e){r.e(e)}finally{r.f()}return new Ee(n)}(t.value):new _e(new Error("Empty selector"))}catch(e){return new _e(e)}}function Be(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function Ue(t,n){if(t){if(!Be(Pe))return Pe;var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((function(e){var n=e[0],r=e[1];return r=r.map((function(e){var t=A(e,2);return{type:"declaration",property:t[0],value:t[1]}})).map(Me(null!=t?t:Re)),n=n.map(Ve),new ke(n,r,"")}))}(t,n);return Pe=new ue(r)}var i=e[He];if(Be(Pe)||i){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((function(e){var n=e.declarations.filter(Le).map(Me(null!=t?t:Re)),r=e.selectors.map(Ve);return new ke(r,n,e.hash)}))}(i,n);Pe?Pe.append(o):Pe=new ue(o),e[He]=void 0}return e[$e]&&(e[$e].forEach((function(e){Pe.delete(e)})),e[$e]=void 0),Pe}var He="__HIPPY_VUE_STYLES__",$e="__HIPPY_VUE_DISPOSE_STYLES__",Ye=Object.create(null),We={$on:function(e,t,n){return Array.isArray(e)?e.forEach((function(e){We.$on(e,t,n)})):(Ye[e]||(Ye[e]=[]),Ye[e].push({fn:t,ctx:n})),We},$once:function(e,t,n){function r(){We.$off(e,r);for(var i=arguments.length,o=new Array(i),a=0;a1?r-1:0),o=1;o0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Cn(t):t&&(Cn(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)})))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout((function(){n({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1)}function Ln(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=t;r-1){var f;if("onLayout"===i){f=new _n(o),Object.assign(f,{eventPhase:c,nativeParams:null!=u?u:{}});var d=u.layout,p=d.x,v=d.y,h=d.height,y=d.width;f.top=v,f.left=p,f.bottom=v+h,f.right=p+y,f.width=y,f.height=h}else{f=new bn(o),Object.assign(f,{eventPhase:c,nativeParams:null!=u?u:{}});var m=l.component.processEventData;m&&m({__evt:i,handler:f},u)}s.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(i,f,u),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else Je.apply(void 0,Fn.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Je.apply(void 0,Fn.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Dn);var Vn,Bn=function(){function e(){b(this,e),this.listeners={}}return _(e,[{key:"addEventListener",value:function(e,t,n){for(var r=e.split(","),i=r.length,o=0;o=0&&c.splice(s,1),c.length||(this.listeners[u]=void 0)}}}else this.listeners[u]=void 0}}},{key:"emitEvent",value:function(e){var t,n,r=e.type,i=this.listeners[r];if(i)for(var o=i.length-1;o>=0;o-=1){var a=i[o];(null===(t=a.options)||void 0===t?void 0:t.once)&&i.splice(o,1),(null===(n=a.options)||void 0===n?void 0:n.thisArg)?a.callback.apply(a.options.thisArg,[e]):a.callback(e)}}},{key:"getEventListenerList",value:function(){return this.listeners}}],[{key:"indexOfListener",value:function(e,t,n){return e.findIndex((function(e){return n?e.callback===t&&P.looseEqual(e.options,n):e.callback===t}))}}])}();!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Vn||(Vn={}));var Un,Hn=!1,$n=[];function Yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener;r=dn(i)?ln[i]:pn(i),o===sn&&t.removeEventListener(n,r,a),o===cn&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Wn(e,t){0}function zn(){Hn||(Hn=!0,0!==$n.length?R.nextTick().then((function(){var t=function(e){var t,n=[],r=v(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.type,a=i.nodes,u=i.eventNodes,c=i.printedNodes,s=n[n.length-1];s&&s.type===o?(s.nodes=s.nodes.concat(a),s.eventNodes=s.eventNodes.concat(u),s.printedNodes=s.printedNodes.concat(c)):n.push({type:o,nodes:a,eventNodes:u,printedNodes:c})}}catch(e){r.e(e)}finally{r.f()}return n}($n),n=mn().rootViewId,r=new e.Hippy.SceneBuilder(n);t.forEach((function(e){switch(e.type){case Vn.CREATE:Wn(e.printedNodes),r.create(e.nodes,!0),Yn(e.eventNodes,r);break;case Vn.UPDATE:Wn(e.printedNodes),r.update(e.nodes),Yn(e.eventNodes,r);break;case Vn.DELETE:Wn(e.printedNodes),r.delete(e.nodes);break;case Vn.MOVE:Wn(e.printedNodes),r.move(e.nodes);break;case Vn.UPDATE_EVENT:Yn(e.eventNodes,r)}})),r.build(),Hn=!1,$n=[]})):Hn=!1)}function Kn(e){var t=A(e,3),n=t[0],r=t[1],i=t[2];$n.push({type:Vn.CREATE,nodes:n,eventNodes:r,printedNodes:i}),zn()}function Gn(e){var t=A(e,3),n=t[0],r=t[2];n&&($n.push({type:Vn.MOVE,nodes:n,eventNodes:[],printedNodes:r}),zn())}function qn(e){var t=A(e,3),n=t[0],r=t[1],i=t[2];n&&($n.push({type:Vn.UPDATE,nodes:n,eventNodes:r,printedNodes:i}),zn())}function Jn(e){var t,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(e){var t=n[e],i=t.name,o=t.type,a=t.isCapture,u=t.listener;r.push({name:i,type:o,isCapture:a,listener:u})})),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(Un||(Un={}));var Xn=function(t){function n(e,t){var r,i;return b(this,n),(r=y(this,n)).isMounted=!1,r.events={},r.childNodes=[],r.parentNode=null,r.prevSibling=null,r.nextSibling=null,r.tagComponent=null,r.nodeId=null!==(i=null==t?void 0:t.id)&&void 0!==i?i:n.getUniqueNodeId(),r.nodeType=e,r.isNeedInsertToNative=function(e){return e===Un.ElementNode}(e),(null==t?void 0:t.id)&&(r.isMounted=!0),r}return T(n,t),_(n,[{key:"firstChild",get:function(){return this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){var e=this.childNodes.length;return e?this.childNodes[e-1]:null}},{key:"component",get:function(){return this.tagComponent}},{key:"index",get:function(){var e=0;this.parentNode&&(e=this.parentNode.childNodes.filter((function(e){return e.isNeedInsertToNative})).indexOf(this));return e}},{key:"isRootNode",value:function(){return 1===this.nodeId}},{key:"hasChildNodes",value:function(){return!!this.childNodes.length}},{key:"insertBefore",value:function(e,t){var n=e,r=t;if(!n)throw new Error("No child to insert");if(r){if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");var i=this;r.parentNode!==this&&(i=r.parentNode);var o=i.childNodes.indexOf(r),a=r;r.isNeedInsertToNative||(a=Ln(this.childNodes,o)),n.parentNode=i,n.nextSibling=r,n.prevSibling=i.childNodes[o-1],i.childNodes[o-1]&&(i.childNodes[o-1].nextSibling=n),r.prevSibling=n,i.childNodes.splice(o,0,n),a.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:a.nodeId,relativeToRef:Mn}):this.insertChildNativeNode(n)}else this.appendChild(n)}},{key:"moveChild",value:function(e,t){var n=e,r=t;if(!n)throw new Error("No child to move");if(r){if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");var i=this.childNodes.indexOf(n),o=this.childNodes.indexOf(r),a=r;if(r.isNeedInsertToNative||(a=Ln(this.childNodes,o)),o!==i){n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=n),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=n),this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=this.childNodes[i+1]),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=this.childNodes[i-1]),this.childNodes.splice(i,1);var u=this.childNodes.indexOf(r);this.childNodes.splice(u,0,n),a.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:a.nodeId,relativeToRef:Mn}):this.insertChildNativeNode(n)}}else this.appendChild(n)}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?In(n,n.nodeId):this.insertChildNativeNode(n)))}},{key:"removeChild",value:function(e){var t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode===this){if(t.isNeedInsertToNative){t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;var n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}}else t.parentNode.removeChild(t)}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length){var t,n=v(this.childNodes);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=this.findChild.call(r,e);if(i)return i}}catch(e){n.e(e)}finally{n.f()}}return null}},{key:"eachNode",value:function(e){var t=this;e&&e(this),this.childNodes.length&&this.childNodes.forEach((function(n){t.eachNode.call(n,e)}))}},{key:"insertChildNativeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.isNeedInsertToNative){var n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){var i=n?this:e;Kn(i.convertToNativeNodes(!0,t)),i.eachNode((function(e){var t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),In(t,t.nodeId)}))}}}},{key:"moveChildNativeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.isNeedInsertToNative&&(!t||t.refId!==e.nodeId)){var n=e;Gn(n.convertToNativeNodes(!1,t))}}},{key:"removeChildNativeNode",value:function(e){if(e&&e.isNeedInsertToNative){var t,n,r,i,o=e;o.isMounted&&(o.isMounted=!1,t=o.convertToNativeNodes(!1,{}),n=A(t,3),r=n[0],i=n[2],r&&($n.push({type:Vn.DELETE,nodes:r,eventNodes:[],printedNodes:i}),zn()))}}},{key:"updateNativeNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isMounted){var t=this.convertToNativeNodes(e,{});qn(t)}}},{key:"updateNativeEvent",value:function(){this.isMounted&&function(e){$n.push({type:Vn.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),zn()}(Jn(this))}},{key:"convertToNativeNodes",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){var o=[],a=[],u=[];return this.eachNode((function(e){var t=A(e.convertToNativeNodes(!1,r),3),n=t[0],i=t[1],c=t[2];Array.isArray(n)&&n.length&&o.push.apply(o,h(n)),Array.isArray(i)&&i.length&&a.push.apply(a,h(i)),Array.isArray(c)&&c.length&&u.push.apply(u,h(c))})),[o,a,u]}if(!this.component)throw new Error("tagName is not supported yet");var c=mn(),s=c.rootViewId,l=null!=i?i:{},f=S({id:this.nodeId,pId:null!==(n=null===(t=this.parentNode)||void 0===t?void 0:t.nodeId)&&void 0!==n?n:s},l),d=Jn(this),p=void 0,v=[f,r];return[[v],[d],[p]]}}],[{key:"getUniqueNodeId",value:function(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}}])}(Bn),Zn=function(e){function t(e,n){var r;return b(this,t),(r=y(this,t,[Un.TextNode,n])).text=e,r.data=e,r.isNeedInsertToNative=!1,r}return T(t,e),_(t,[{key:"setText",value:function(e){this.text=e,this.parentNode&&this.parentNode.nodeType===Un.ElementNode&&this.parentNode.setText(e)}}])}(Xn);function Qn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=r,o={textShadowOffsetX:"width",textShadowOffsetY:"height"};return i.textShadowOffset=null!==(t=i.textShadowOffset)&&void 0!==t?t:{},Object.assign(i.textShadowOffset,{[o[e]]:n}),["textShadowOffset",i.textShadowOffset]}function er(e,t){var n=t;e.component.name===Ke.TextInput&&un()&&(n.textAlign||(n.textAlign="right"))}function tr(e,t,n){var r=t,i=n;e.component.name===Ke.View&&("scroll"===i.overflowX&&i.overflowY,"scroll"===i.overflowY?r.name="ScrollView":"scroll"===i.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),i.flexDirection=un()?"row-reverse":"row"),"ScrollView"===r.name&&(e.childNodes.length,e.childNodes.length&&e.nodeType===Un.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),i.backgroundImage&&(i.backgroundImage=st(i.backgroundImage)))}function nr(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,i=n.length;r1&&void 0!==arguments[1]&&arguments[1];e instanceof Zn&&this.setText(e.text,{notToNative:!0}),c(t,"appendChild",this,3)([e,n])}},{key:"insertBefore",value:function(e,n){e instanceof Zn&&this.setText(e.text,{notToNative:!0}),c(t,"insertBefore",this,3)([e,n])}},{key:"moveChild",value:function(e,n){e instanceof Zn&&this.setText(e.text,{notToNative:!0}),c(t,"moveChild",this,3)([e,n])}},{key:"removeChild",value:function(e){e instanceof Zn&&this.setText("",{notToNative:!0}),c(t,"removeChild",this,3)([e])}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t,i=e;try{if("boolean"==typeof this.attributes[i]&&""===r&&(r=!0),void 0===i)return void(!n.notToNative&&this.updateNativeNode());switch(i){case"class":var o=new Set(vt(r));if(ut(this.classList,o))return;return this.classList=o,void(!n.notToNative&&this.updateNativeNode(!0));case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){"Property ".concat(i," must be string:").concat(e.message)}n&&n.textUpdate||(r=pt(r)),r=at(r);break;case"numberOfRows":if(!Rt.isIOS())return;break;case"caretColor":case"caret-color":i="caret-color",r=Rt.parseColor(r);break;case"break-strategy":i="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":i="placeholderTextColor",r=Rt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":i="underlineColorAndroid",r=Rt.parseColor(r);break;case"nativeBackgroundAndroid":var a=r;void 0!==a.color&&(a.color=Rt.parseColor(a.color)),i="nativeBackgroundAndroid",r=a}if(this.attributes[i]===r)return;this.attributes[i]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"removeStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.style={},e||this.updateNativeNode()}},{key:"setStyles",value:function(e){var t=this;e&&"object"===N(e)&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),this.updateNativeNode())}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());var r=this.beforeLoadStyle({property:e,value:t}),i=r.property,o=r.value;switch(i){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=ie(i,o),u=A(a,2);i=u[0],o=u[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=Qn(i,o,this.style),s=A(c,2);i=s[0],o=s[1];break;case"textShadowOffset":var l=null!=o?o:{},f=l.x,d=void 0===f?0:f,p=l.width,v=void 0===p?0:p,h=l.y,y=void 0===h?0:h,m=l.height,g=void 0===m?0:m;o={width:d||v,height:y||g};break;default:Object.prototype.hasOwnProperty.call(K,i)&&(i=K[i]),"string"==typeof o&&(o=o.trim(),o=i.toLowerCase().indexOf("color")>=0?Rt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):et(o))}null!=o&&this.style[i]!==o&&(this.style[i]=o,n||this.updateNativeNode())}},{key:"scrollToPosition",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;if("number"==typeof e&&"number"==typeof t){var r=n;!1===r&&(r=0),Rt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}}},{key:"scrollTo",value:function(e,t,n){if("object"===N(e)&&e){var r=e.left,i=e.top,o=e.behavior,a=void 0===o?"auto":o,u=e.duration;this.scrollToPosition(r,i,"none"===a?0:u)}else this.scrollToPosition(e,t,n)}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"getNativeEventName",value:function(e){var t="on".concat(Ze(e));if(this.component){var n=this.component.eventNamesMap;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}},{key:"addEventListener",value:function(e,n,r){var i=this,o=e,a=n,u=r,s=!0;"scroll"!==o||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);var l=this.getNativeEventName(o);if(this.attributes[l]&&(s=!1),"function"==typeof this.polyfillNativeEvents){var f=this.polyfillNativeEvents(hn,o,a,u);o=f.eventNames,a=f.callback,u=f.options}c(t,"addEventListener",this,3)([o,a,u]),nr(o,(function(e){var t,n,r=i.getNativeEventName(e);i.events[r]?i.events[r]&&i.events[r].type!==cn&&(i.events[r].type=cn):i.events[r]={name:r,type:cn,listener:(t=r,n=e,function(e){var r=e.id,i=e.currentId,o=e.params,a=e.eventPhase;Dn.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:i,params:o,eventPhase:a},e)}),isCapture:!1}})),s&&this.updateNativeEvent()}},{key:"removeEventListener",value:function(e,n,r){var i=this,o=e,a=n,u=r;if("function"==typeof this.polyfillNativeEvents){var s=this.polyfillNativeEvents(yn,o,a,u);o=s.eventNames,a=s.callback,u=s.options}c(t,"removeEventListener",this,3)([o,a,u]),nr(o,(function(e){var t=i.getNativeEventName(e);i.events[t]&&(i.events[t].type=sn)}));var l=this.getNativeEventName(o);this.attributes[l]&&delete this.attributes[l],this.updateNativeEvent()}},{key:"dispatchEvent",value:function(e,t,n){var r=e;r.currentTarget=this,r.target||(r.target=t||this,jn(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}},{key:"convertToNativeNodes",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return c(t,"convertToNativeNodes",this,3)([!0,r]);var i=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof t){var o=this.parentNode.processedStyle,a=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];a.forEach((function(e){!i[e]&&o[e]&&(i[e]=o[e])}))}if(ot()(this,i),this.component.defaultNativeStyle){var u=this.component.defaultNativeStyle,s={};Object.keys(u).forEach((function(e){n.getAttribute(e)||(s[e]=u[e])})),i=S(S({},s),i)}this.processedStyle=i;var l={name:this.component.name,props:S(S({},this.getNativeProps()),{},{style:i}),tagName:this.tagName};return er(this,i),tr(this,l,i),c(t,"convertToNativeNodes",this,3)([!1,r,l])}},{key:"repaintWithChildren",value:function(){this.updateNativeNode(!0)}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"setPressed",value:function(e){Rt.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Rt.callUIFunction(this,"setHotspot",[e,t])}},{key:"setStyleScope",value:function(e){var t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}},{key:"styleScopeId",get:function(){return this.scopedIdList}},{key:"getInlineStyle",value:function(){var e=this,t={};return Object.keys(this.style).forEach((function(n){var r=R.toRaw(e.style[n]);void 0!==r&&(t[n]=r)})),t}},{key:"getNativeStyles",value:function(){var e=this,n={};return Ue(void 0,nt()).query(this).selectors.forEach((function(t){var r,i;dt(t,e)&&(null===(i=null===(r=t.ruleSet)||void 0===r?void 0:r.declarations)||void 0===i?void 0:i.length)&&t.ruleSet.declarations.forEach((function(e){e.property&&(n[e.property]=e.value)}))})),this.ssrInlineStyle&&(n=S(S({},n),this.ssrInlineStyle)),n=t.parseRem(S(S({},n),this.getInlineStyle()))}},{key:"getNativeProps",value:function(){var e=this,t={},n=this.component.defaultNativeProps;n&&Object.keys(n).forEach((function(r){if(void 0===e.getAttribute(r)){var i=n[r];t[r]=P.isFunction(i)?i(e):R.toRaw(i)}})),Object.keys(this.attributes).forEach((function(n){var r,i=R.toRaw(e.getAttribute(n));if(e.component.attributeMaps&&e.component.attributeMaps[n]){var o=e.component.attributeMaps[n];if(P.isString(o))t[o]=R.toRaw(i);else if(P.isFunction(o))t[n]=R.toRaw(o(i));else{var a=o.name,u=o.propsValue,c=o.jointKey;P.isFunction(u)&&(i=u(i)),c?(t[c]=null!==(r=t[c])&&void 0!==r?r:{},Object.assign(t[c],{[a]:R.toRaw(i)})):t[a]=R.toRaw(i)}}else t[n]=R.toRaw(i)}));var r=this.component.nativeProps;return r&&Object.keys(r).forEach((function(e){t[e]=R.toRaw(r[e])})),t}},{key:"getNodeAttributes",value:function(){var e;try{var t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if("object"!==N(t)||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);var r={},i=Object.keys(t);return i.forEach((function(i){var o=t[i];"object"!==N(o)||null===o?r[i]=o:Array.isArray(o)?r[i]=h(o):o instanceof Set?r[i]=new Set(h(o)):o instanceof Map?r[i]=new Map(h(o)):(n.set(t,t),r[i]=e(o,n))})),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=S({id:this.id,hippyNodeId:"".concat(this.nodeId),class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach((function(e){"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]})),r}catch(e){return{}}}},{key:"getNativeEvents",value:function(){var e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){var r=this.component.eventNamesMap;n.forEach((function(n){var i=null==r?void 0:r.get(n);if(i)e[i]=!!t[n];else{var o="on".concat(Ze(n));e[o]=!!t[n]}}))}return e}},{key:"hackSpecialIssue",value:function(){this.fixVShowDirectiveIssue()}},{key:"fixVShowDirectiveIssue",value:function(){var e,t=this,n=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){n=void 0===e?"flex":e,t.updateNativeNode()}})}}],[{key:"parseRem",value:function(e){var t={},n=Object.keys(e);return n.length?n.forEach((function(n){t[n]=function(e){var t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;var n=mn().ratioBaseWidth;return 100*t*(Rt.Dimensions.screen.width/n)}(e[n])})):t=e,t}}])}(Xn);var ir=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"],or={install:function(t){!function(t){var n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(N(t))>=0?Rt.parseColor(t):t}function c(e){return"loop"===e?-1:e}function s(t){var o=t.mode,a=void 0===o?"timing":o,s=t.valueType,l=t.startValue,f=t.toValue,d=u(t,i),p=S(S({},n),d);void 0!==s&&(p.valueType=t.valueType),p.startValue=r(p.valueType,l),p.toValue=r(p.valueType,f),p.repeatCount=c(p.repeatCount),p.mode=a;var v=new e.Hippy.Animation(p),h=v.getId();return{animation:v,animationId:h}}function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),i=r.getId();return{animation:r,animationId:i}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){if(Array.isArray(e[r])){var i=e[r],o=i[i.length-1].repeatCount,a=l(i.map((function(e){var n=s(S(S({},e),{},{repeatCount:0})),r=n.animationId,i=n.animation;return Object.assign(t,{[r]:i}),{animationId:r,follow:!0}})),c(o)),u=a.animationId,f=a.animation;n[r]={animationId:u},Object.assign(t,{[u]:f})}else{var d=s(e[r]),p=d.animationId,v=d.animation;Object.assign(t,{[p]:v}),n[r]={animationId:p}}})),n}function d(e){var t=e.transform,n=u(e,o),r=Object.keys(n).map((function(t){return e[t].animationId}));if(Array.isArray(t)&&t.length>0){var i=[];t.forEach((function(e){return Object.keys(e).forEach((function(t){if(e[t]){var n=e[t].animationId;"number"==typeof n&&n%1==0&&i.push(n)}}))})),r=[].concat(h(r),i)}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:function(){return{style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}},watch:{playing:function(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions:function(){var e=this;this.destroy(),this.create(),setTimeout((function(){var t=e.$attrs[lt("actionsDidUpdate")];"function"==typeof t&&t()}))}},created:function(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount:function(){this.create()},mounted:function(){var e=this;this.$props.playing&&setTimeout((function(){e.start()}),0)},beforeDestroy:function(){this.destroy()},deactivated:function(){this.pause()},activated:function(){this.resume()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=u(e,a);this.animationIdsMap={};var r=f(n,this.animationIdsMap);if(t){var i=f(t,this.animationIdsMap);r.transform=Object.keys(i).map((function(e){return{[e]:i[e]}}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=R.toRaw(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[lt(t)]){var r=e.animationEventMap[t];r&&"function"==typeof e["".concat(r)]&&n.removeEventListener(r)}}))}))},addAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=R.toRaw(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[lt(t)]){var r=e.animationEventMap[t];r&&n.addEventListener(r,(function(){e.$emit(t)}))}}))}))},reset:function(){this.$alreadyStarted=!1},start:function(){var e=this;this.$alreadyStarted?this.resume():(this.animationIds=d(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=R.toRaw(e.animationIdsMap[t]);null==n||n.start()})))},resume:function(){var e=this;d(this.style).forEach((function(t){var n=R.toRaw(e.animationIdsMap[t]);null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&d(this.style).forEach((function(t){var n=R.toRaw(e.animationIdsMap[t]);null==n||n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,d(this.style).forEach((function(t){var n=R.toRaw(e.animationIdsMap[t]);null==n||n.destroy()}))}},render:function(){return R.h(this.tag,S({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}(t),Ut("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){var t=Rt.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=A(n,2),i=r[0],o=r[1];Ut("hi-pull-".concat(o),{component:{name:"Pull".concat(i,"View"),processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"on".concat(i,"Released"):case"on".concat(i,"Pulling"):Object.assign(n,t)}return n}}}),e.component("pull-".concat(o),{methods:{["expandPull".concat(i)]:function(){t(this.$refs.instance,"expandPull".concat(i))},["collapsePull".concat(i)]:function(e){"Header"===i&&void 0!==e?t(this.$refs.instance,"collapsePull".concat(i,"WithOptions"),[e]):t(this.$refs.instance,"collapsePull".concat(i))},onLayout:function(e){this.$contentHeight=e.height},["on".concat(i,"Released")]:function(e){this.$emit("released",e)},["on".concat(i,"Pulling")]:function(e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render:function(){var e=this.$attrs,t=e.onReleased,n=e.onPulling,r=e.onIdle,a={onLayout:this.onLayout};return"function"==typeof t&&(a["on".concat(i,"Released")]=this["on".concat(i,"Released")]),"function"!=typeof n&&"function"!=typeof r||(a["on".concat(i,"Pulling")]=this["on".concat(i,"Pulling")]),R.h("hi-pull-".concat(o),S(S({},a),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})}))}(t),function(e){Ut("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),Ut("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){Rt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){Rt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(){return R.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render:function(){var e=R.h("div",null,this.$slots.default?this.$slots.default():null);return R.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(t),function(e){Ut("hi-waterfall",{component:{name:"WaterfallView",processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":var r=t.startEdgePos,i=t.endEdgePos,o=t.firstVisibleRowIndex,a=t.lastVisibleRowIndex,u=t.visibleRowFrames;Object.assign(n,{startEdgePos:r,endEdgePos:i,firstVisibleRowIndex:o,lastVisibleRowIndex:a,visibleRowFrames:u})}return n}}}),Ut("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:function(){return{top:0,left:0,bottom:0,right:0}}},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call:function(e,t){Rt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh:function(){this.call("startRefresh")},startRefreshWithType:function(e){this.call("startRefreshWithType",[e])},callExposureReport:function(){this.call("callExposureReport",[])},scrollToIndex:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;this.call("scrollToIndex",[n,n,i])},scrollToContentOffset: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;this.call("scrollToContentOffset",[n,i,a])},startLoadMore:function(){this.call("startLoadMore")}},render:function(){var e=ft.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return R.h("hi-waterfall",S(S({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render:function(){return R.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(t),function(e){Ut("hi-swiper",{component:{name:"ViewPager",processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),Ut("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:function(){return{$initialSlide:0}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(e){Rt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation:function(e){Rt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render:function(){var e=ft.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return R.h("hi-swiper",S(S({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render:function(){return R.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(t)}};var ar=function(e){function t(e,n){var r;return b(this,t),(r=y(this,t,["comment",n])).text=e,r.data=e,r.isNeedInsertToNative=!1,r}return T(t,e),_(t)}(rr),ur=function(e){function t(){return b(this,t),y(this,t,arguments)}return T(t,e),_(t,[{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"getValue",value:(r=p(f().mark((function e(){var t=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Rt.callUIFunction(t,"getValue",(function(t){return e(t.text)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"setValue",value:function(e){Rt.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Rt.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Rt.callUIFunction(this,"blurTextInput",[])}},{key:"clear",value:function(){Rt.callUIFunction(this,"clear",[])}},{key:"isFocused",value:(n=p(f().mark((function e(){var t=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Rt.callUIFunction(t,"isFocused",(function(t){return e(t.value)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}]);var n,r}(rr),cr=function(e){function t(){return b(this,t),y(this,t,arguments)}return T(t,e),_(t,[{key:"scrollToIndex",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];Rt.callUIFunction(this,"scrollToIndex",[e,t,n])}},{key:"scrollToPosition",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];"number"==typeof e&&"number"==typeof t&&Rt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}])}(rr),sr=function(e){function t(){return b(this,t),y(this,t,[Un.DocumentNode])}return T(t,e),_(t,null,[{key:"createComment",value:function(e){return new ar(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new ur(e);case"ul":return new cr(e);default:return new rr(e)}}},{key:"createTextNode",value:function(e){return new Zn(e)}}])}(Xn);var lr={insert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){var t=e.parentNode;t&&(t.removeChild(e),Rn(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return sr.createElement(e)},createComment:function(e){return sr.createComment(e)},createText:function(e){return sr.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};var fr=/(?:Once|Passive|Capture)$/;function dr(e){var t,n=e,r={};if(fr.test(n))for(var i=n.match(fr);i;)n=n.slice(0,n.length-i[0].length),r[i[0].toLowerCase()]=!0,i=n.match(fr);return n=":"===n[2]?n.slice(3):n.slice(2),[(t=n,"".concat(t.charAt(0).toLowerCase()).concat(t.slice(1))),r]}function pr(e,t){var n=function(e){R.callWithAsyncErrorHandling(n.value,t,R.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}function vr(e,t,n){var r=e,i={};if(!function(e,t,n){var r=!e,i=!t&&!n,o=JSON.stringify(t)===JSON.stringify(n);return r||i||o}(r,t,n))if(t&&!n)r.removeStyle();else{if(P.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach((function(e){var t=n[e];(function(e){return null==e})(t)||(i[R.camelize(e)]=t)})),r.removeStyle(!0),r.setStyles(i))}}function hr(e,t,n,r,i,o,a){switch(t){case"class":!function(e,t){var n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":vr(e,n,r);break;default:P.isOn(t)&&!function(e){return["onInterceptTouchEvent","onInterceptPullUpEvent"].indexOf(e)>=0}(t)?function(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=e,u=null!==(i=a._vei)&&void 0!==i?i:a._vei={},c=u[t];if(r&&c)c.value=r;else{var s=dr(t),l=A(s,2),f=l[0],d=l[1];if(r){u[t]=pr(r,o);var p=u[t];a.addEventListener(f,p,d)}else a.removeEventListener(f,c,d),u[t]=void 0}}(e,t,n,r,a):function(e,t,n,r){n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}var yr=!1,mr=function(){return _((function e(t,n,r){var i=this;b(this,e),this.webSocketId=-1,this.protocol="",this.listeners={},this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var o=S({},r);if(yr||(yr=!0,We.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!t)throw new TypeError("Invalid WebSocket url");Array.isArray(n)&&n.length>0?(this.protocol=n.join(","),o["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof n&&(this.protocol=n,o["Sec-WebSocket-Protocol"]=this.protocol);var a={headers:o,url:t};Rt.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&(i.webSocketId=e.id)}))}),[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Rt.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(N(e)));Rt.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.addEventListener("open",e)}},{key:"onclose",set:function(e){this.addEventListener("close",e)}},{key:"onerror",set:function(e){this.addEventListener("error",e)}},{key:"onmessage",set:function(e){this.addEventListener("message",e)}},{key:"onWebSocketEvent",value:function(e){if("object"===N(e)&&e.id===this.webSocketId){var t=e.type;if("string"==typeof t){"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,We.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach((function(t){P.isFunction(t)&&t(e.data)}))}}}},{key:"addEventListener",value:function(e,t){if(function(e){return-1!==["open","close","message","error"].indexOf(e)}(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);var n=lt(e);this.webSocketCallbacks[n]=this.listeners[e]}}}])}();function gr(e,t){var n=function(e){var t;if("comment"===e.name)return new ar(e.props.text,e);if("Text"===e.name&&!e.tagName){var n=new Zn(e.props.text,e);return n.nodeType=Un.TextNode,n.data=e.props.text,n}switch(e.tagName){case"input":case"textarea":return new ur(e.tagName,e);case"ul":return new cr(e.tagName,e);default:return new rr(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e),r=t.filter((function(t){return t.pId===e.id})).sort((function(e,t){return e.index-t.index})),i=r.filter((function(e){return"comment"===e.name}));if(i.length){r=r.filter((function(e){return"comment"!==e.name}));for(var o=i.length-1;o>=0;o--)r.splice(i[o].index,0,i[o])}return r.forEach((function(e){n.appendChild(gr(e,t),!0)})),n}e.WebSocket=mr;var br=['%c[Hippy-Vue-Next "3.3.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Or(e,t){if(Rt.isIOS()){var n=function(e){var t,n,r,i=e.iPhone;if((null==i?void 0:i.statusBar)&&(r=i.statusBar),null==r?void 0:r.disabled)return null;var o=new rr("div"),a=Rt.Dimensions.screen.statusBarHeight;Rt.screenIsVertical?o.setStyle("height",a):o.setStyle("height",0);var u=4282431619;if(Number.isInteger(u)&&(u=r.backgroundColor),o.setStyle("backgroundColor",u),"string"==typeof r.backgroundImage){var c=new rr("img");c.setStyle("width",Rt.Dimensions.screen.width),c.setStyle("height",a),c.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),o.appendChild(c)}return o.addEventListener("layout",(function(){Rt.screenIsVertical?o.setStyle("height",a):o.setStyle("height",0)})),o}(e);if(n){var r=t.$el.parentNode;r.childNodes.length?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)}}}var _r=function(e,t){var n,r,i,o,a=e,u=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);a.use(an),a.use(or),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(i=t.styleOptions.beforeLoadStyle,tt=i),t.silent&&(o=t.silent,o),function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Ge=e}(t.trimWhitespace);var c=a.mount;return a.mount=function(e){var n;gn("rootContainer",e);var r,i=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?gr(A(r=t.ssrNodeList,1)[0],r):function(e){var t=sr.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=c(i,u,!1);return gn("instance",o),u||Or(t,o),o},a.$start=function(){var e=p(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){Rt.hippyNativeRegister.regist(t.appName,(function(r){var i,o,u=r.__instanceId__;qe.apply(void 0,br.concat(["Start",t.appName,"with rootViewId",u,r]));var c,s=mn();(null==s?void 0:s.app)&&s.app.unmount(),c={rootViewId:u,superProps:r,app:a,ratioBaseWidth:null!==(o=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==o?o:750},vn=c;var l={superProps:r,rootViewId:u};P.isFunction(n)?n(l):e(l)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a};t.BackAndroid=Vt,t.ContentSizeEvent=En,t.EventBus=We,t.ExposureEvent=xn,t.FocusEvent=kn,t.HIPPY_DEBUG_ADDRESS=ze,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="3.3.1",t.HippyEvent=bn,t.HippyKeyboardEvent=Sn,t.HippyLayoutEvent=_n,t.HippyLoadResourceEvent=wn,t.HippyTouchEvent=On,t.IS_PROD=!0,t.ListViewEvent=Tn,t.NATIVE_COMPONENT_MAP=Ke,t.Native=Rt,t.ViewPagerEvent=Nn,t._setBeforeRenderToNative=function(e,t){P.isFunction(e)&&(1===t?it=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=function(e,t){var n=R.createRenderer(S({patchProp:hr},lr)).createApp(e);return _r(n,t)},t.createHippyApp=_r,t.createSSRApp=function(e,t){var n=R.createHydrationRenderer(S({patchProp:hr},lr)).createApp(e);return _r(n,t)},t.eventIsKeyboardEvent=jn,t.getCssMap=Ue,t.getTagComponent=Ht,t.isNativeTag=function(e){return ir.includes(e)},t.parseCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{source:0},n=1,r=1;function i(e){var t=e.match(/\n/g);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(t){var n=t.exec(e);if(!n)return null;var r=n[0];return i(r),e=e.slice(r.length),n}function a(){o(/^\s*/)}function u(){return function(i){return i.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},a(),i}}var c=[];function s(i){var o=S(S({},new Error("".concat(t.source,":").concat(n,":").concat(r,": ").concat(i))),{},{reason:i,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw o;c.push(o)}function l(){var t=u();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:"comment",comment:o})}function f(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t||[];e=l();)!1!==e&&n.push(e);return n}function d(){var t,n=[];for(a(),f(n);e.length&&"}"!==e.charAt(0)&&(t=M()||b());)t&&(n.push(t),f(n));return n}function p(){var e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:c}}}function v(){return o(/^{\s*/)}function h(){return o(/^}/)}function y(){var e=o(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")})):null}function m(){var e=u(),t=o(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!o(/^:\s*/))return s("property missing ':'");var n=t.replace(Z,""),r=P.camelize(n),i=K[r]||r,a=o(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/),c=a?a[0].trim().replace(Z,""):"";switch(i){case"backgroundImage":var l=A(ie(i,c),2);i=l[0],c=l[1];break;case"transform":var f=/((\w+)\s*\()/,d=/(?:\(['"]?)(.*?)(?:['"]?\))/,p=c;c=[],p.split(" ").forEach((function(e){if(f.test(e)){var t,n,r=f.exec(e),i=d.exec(e);if(r)t=A(r,3)[2];if(i)n=A(i,2)[1];0===n.indexOf(".")&&(n="0".concat(n)),parseFloat(n).toString()===n&&(n=parseFloat(n));var o={};o[t]=n,c.push(o)}else s("missing '('")}));break;case"fontWeight":break;case"shadowOffset":var v=c.split(" ").filter((function(e){return e})).map((function(e){return te(e)})),h=A(v,1)[0],y=A(v,2)[1];y||(y=h),c={x:h,y:y};break;case"collapsable":c=Boolean(c);break;default:c=ee(c);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find((function(e){return i.toLowerCase().indexOf(e)>-1}))&&(c=te(c))}var m=e({type:"declaration",value:c,property:i});return o(/^[;\s]*/),m}function g(){var e,t=[];if(!v())return s("missing '{'");for(f(t);e=m();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),f(t));return h()?t:s("missing '}'")}function b(){var e=u(),t=y();return t?(f(),e({type:"rule",selectors:t,declarations:g()})):s("selector missing")}function O(){for(var e,t=[],n=u();e=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),o(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:g()}):null}function _(){var e=u(),t=o(/^@([-\w]+)?keyframes\s*/);if(!t)return null;var n=t[1];if(!(t=o(/^([-\w]+)\s*/)))return s("@keyframes missing name");var r,i=t[1];if(!v())return s("@keyframes missing '{'");for(var a=f();r=O();)a.push(r),a=a.concat(f());return h()?e({type:"keyframes",name:i,vendor:n,keyframes:a}):s("@keyframes missing '}'")}function w(){var e=u(),t=o(/^@supports *([^{]+)/);if(!t)return null;var n=t[1].trim();if(!v())return s("@supports missing '{'");var r=f().concat(d());return h()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}function E(){var e=u();if(!o(/^@host\s*/))return null;if(!v())return s("@host missing '{'");var t=f().concat(d());return h()?e({type:"host",rules:t}):s("@host missing '}'")}function k(){var e=u(),t=o(/^@media *([^{]+)/);if(!t)return null;var n=t[1].trim();if(!v())return s("@media missing '{'");var r=f().concat(d());return h()?e({type:"media",media:n,rules:r}):s("@media missing '}'")}function N(){var e=u(),t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}function x(){var e=u();if(!o(/^@page */))return null;var t=y()||[];if(!v())return s("@page missing '{'");for(var n,r=f();n=m();)r.push(n),r=r.concat(f());return h()?e({type:"page",selectors:t,declarations:r}):s("@page missing '}'")}function T(){var e=u(),t=o(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;var n=t[1].trim(),r=t[2].trim();if(!v())return s("@document missing '{'");var i=f().concat(d());return h()?e({type:"document",document:r,vendor:n,rules:i}):s("@document missing '}'")}function j(){var e=u();if(!o(/^@font-face\s*/))return null;if(!v())return s("@font-face missing '{'");for(var t,n=f();t=m();)n.push(t),n=n.concat(f());return h()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}function I(e){var t=new RegExp("^@".concat(e,"\\s*([^;]+);"));return function(){var n=u(),r=o(t);if(!r)return null;var i={type:e};return i[e]=r[1].trim(),n(i)}}var C=I("import"),R=I("charset"),L=I("namespace");function M(){return"@"!==e[0]?null:_()||k()||N()||w()||C()||R()||L()||T()||x()||E()||j()}return oe(p(),null)},t.registerElement=Ut,t.setScreenSize=function(t){var n;if(t.width&&t.height){var r=(null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device).screen;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=z}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return b})),n.d(t,"ITERATE_KEY",(function(){return W})),n.d(t,"ReactiveEffect",(function(){return E})),n.d(t,"ReactiveFlags",(function(){return bt})),n.d(t,"TrackOpTypes",(function(){return mt})),n.d(t,"TriggerOpTypes",(function(){return gt})),n.d(t,"computed",(function(){return Je})),n.d(t,"customRef",(function(){return lt})),n.d(t,"deferredComputed",(function(){return yt})),n.d(t,"effect",(function(){return j})),n.d(t,"effectScope",(function(){return O})),n.d(t,"enableTracking",(function(){return L})),n.d(t,"getCurrentScope",(function(){return w})),n.d(t,"isProxy",(function(){return Ye})),n.d(t,"isReactive",(function(){return Ue})),n.d(t,"isReadonly",(function(){return He})),n.d(t,"isRef",(function(){return Qe})),n.d(t,"isShallow",(function(){return $e})),n.d(t,"markRaw",(function(){return ze})),n.d(t,"onScopeDispose",(function(){return S})),n.d(t,"pauseScheduling",(function(){return F})),n.d(t,"pauseTracking",(function(){return R})),n.d(t,"proxyRefs",(function(){return ct})),n.d(t,"reactive",(function(){return Me})),n.d(t,"readonly",(function(){return De})),n.d(t,"ref",(function(){return et})),n.d(t,"resetScheduling",(function(){return D})),n.d(t,"resetTracking",(function(){return M})),n.d(t,"shallowReactive",(function(){return Fe})),n.d(t,"shallowReadonly",(function(){return Ve})),n.d(t,"shallowRef",(function(){return tt})),n.d(t,"stop",(function(){return A})),n.d(t,"toRaw",(function(){return We})),n.d(t,"toRef",(function(){return vt})),n.d(t,"toRefs",(function(){return ft})),n.d(t,"toValue",(function(){return at})),n.d(t,"track",(function(){return K})),n.d(t,"trigger",(function(){return G})),n.d(t,"triggerRef",(function(){return it})),n.d(t,"unref",(function(){return ot}));var r,i=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");function o(e,t,n){return t=a(t),function(e,t){if(t&&("object"==p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(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&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]&&arguments[0];h(this,e),this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=r,!t&&r&&(this.index=(r.scopes||(r.scopes=[])).push(this)-1)}),[{key:"active",get:function(){return this._active}},{key:"run",value:function(e){if(this._active){var t=r;try{return r=this,e()}finally{r=t}}else 0}},{key:"on",value:function(){r=this}},{key:"off",value:function(){r=this.parent}},{key:"stop",value:function(e){if(this._active){var t,n;for(t=0,n=this.effects.length;t1&&void 0!==arguments[1]?arguments[1]:r;t&&t.active&&t.effects.push(e)}function w(){return r}function S(e){r&&r.cleanups.push(e)}var E=function(){return y((function e(t,n,r,i){h(this,e),this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,_(this,i)}),[{key:"dirty",get:function(){if(1===this._dirtyLevel){R();for(var e=0;e=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),M()}return this._dirtyLevel>=2},set:function(e){this._dirtyLevel=e?2:0}},{key:"run",value:function(){if(this._dirtyLevel=0,!this.active)return this.fn();var e=I,t=g;try{return I=!0,g=this,this._runnings++,N(this),this.fn()}finally{x(this),this._runnings--,g=t,I=e}}},{key:"stop",value:function(){var e;this.active&&(N(this),x(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}])}();function k(e){return e.value}function N(e){e._trackId++,e._depsLength=0}function x(e){if(e.deps&&e.deps.length>e._depsLength){for(var t=e._depsLength;t=f)&&c.push(e)}))}else switch(void 0!==n&&c.push(u.get(n)),t){case"add":Object(i.isArray)(e)?Object(i.isIntegerKey)(n)&&c.push(u.get("length")):(c.push(u.get(W)),Object(i.isMap)(e)&&c.push(u.get(z)));break;case"delete":Object(i.isArray)(e)||(c.push(u.get(W)),Object(i.isMap)(e)&&c.push(u.get(z)));break;case"set":Object(i.isMap)(e)&&c.push(u.get(W))}F();var d,p=l(c);try{for(p.s();!(d=p.n()).done;){var h=d.value;h&&U(h,2)}}catch(e){p.e(e)}finally{p.f()}D()}}var q=Object(i.makeMap)("__proto__,__v_isRef,__isVue"),J=new Set(Object.getOwnPropertyNames(Symbol).filter((function(e){return"arguments"!==e&&"caller"!==e})).map((function(e){return Symbol[e]})).filter(i.isSymbol)),X=Z();function Z(){var e={};return["includes","indexOf","lastIndexOf"].forEach((function(t){e[t]=function(){for(var e=We(this),n=0,r=this.length;n0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h(this,e),this._isReadonly=t,this._shallow=n}),[{key:"get",value:function(e,t,n){var r=this._isReadonly,o=this._shallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?Le:Re:o?Pe:Ce).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;var a=Object(i.isArray)(e);if(!r){if(a&&Object(i.hasOwn)(X,t))return Reflect.get(X,t,n);if("hasOwnProperty"===t)return Q}var u=Reflect.get(e,t,n);return(Object(i.isSymbol)(t)?J.has(t):q(t))?u:(r||K(e,0,t),o?u:Qe(u)?a&&Object(i.isIntegerKey)(t)?u:u.value:Object(i.isObject)(u)?r?De(u):Me(u):u)}}])}(),te=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return h(this,t),o(this,t,[!1,e])}return u(t,e),y(t,[{key:"set",value:function(e,t,n,r){var o=e[t];if(!this._shallow){var a=He(o);if($e(n)||He(n)||(o=We(o),n=We(n)),!Object(i.isArray)(e)&&Qe(o)&&!Qe(n))return!a&&(o.value=n,!0)}var u=Object(i.isArray)(e)&&Object(i.isIntegerKey)(t)?Number(t)0&&void 0!==arguments[0]&&arguments[0];return h(this,t),o(this,t,[!0,e])}return u(t,e),y(t,[{key:"set",value:function(e,t){return!0}},{key:"deleteProperty",value:function(e,t){return!0}}])}(ee),re=new te,ie=new ne,oe=new te(!0),ae=new ne(!0),ue=function(e){return e},ce=function(e){return Reflect.getPrototypeOf(e)};function se(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=We(e=e.__v_raw),a=We(t);n||(Object(i.hasChanged)(t,a)&&K(o,0,t),K(o,0,a));var u=ce(o),c=u.has,s=r?ue:n?Ge:Ke;return c.call(o,t)?s(e.get(t)):c.call(o,a)?s(e.get(a)):void(e!==o&&e.get(t))}function le(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=We(n),o=We(e);return t||(Object(i.hasChanged)(e,o)&&K(r,0,e),K(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&K(We(e),0,W),Reflect.get(e,"size",e)}function de(e){e=We(e);var t=We(this);return ce(t).has.call(t,e)||(t.add(e),G(t,"add",e,e)),this}function pe(e,t){t=We(t);var n=We(this),r=ce(n),o=r.has,a=r.get,u=o.call(n,e);u||(e=We(e),u=o.call(n,e));var c=a.call(n,e);return n.set(e,t),u?Object(i.hasChanged)(t,c)&&G(n,"set",e,t):G(n,"add",e,t),this}function he(e){var t=We(this),n=ce(t),r=n.has,i=n.get,o=r.call(t,e);o||(e=We(e),o=r.call(t,e));i&&i.call(t,e);var a=t.delete(e);return o&&G(t,"delete",e,void 0),a}function ve(){var e=We(this),t=0!==e.size,n=e.clear();return t&&G(e,"clear",void 0,void 0),n}function ye(e,t){return function(n,r){var i=this,o=i.__v_raw,a=We(o),u=t?ue:e?Ge:Ke;return!e&&K(a,0,W),o.forEach((function(e,t){return n.call(r,u(e),u(t),i)}))}}function me(e,t,n){return function(){var r=this.__v_raw,o=We(r),a=Object(i.isMap)(o),u="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,s=r[e].apply(r,arguments),l=n?ue:t?Ge:Ke;return!t&&K(o,0,c?z:W),{next:function(){var e=s.next(),t=e.value,n=e.done;return n?{value:t,done:n}:{value:u?[l(t[0]),l(t[1])]:l(t),done:n}},[Symbol.iterator]:function(){return this}}}}function ge(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}function be(){var e={get:function(e){return se(this,e)},get size(){return fe(this)},has:le,add:de,set:pe,delete:he,clear:ve,forEach:ye(!1,!1)},t={get:function(e){return se(this,e,!1,!0)},get size(){return fe(this)},has:le,add:de,set:pe,delete:he,clear:ve,forEach:ye(!1,!0)},n={get:function(e){return se(this,e,!0)},get size(){return fe(this,!0)},has:function(e){return le.call(this,e,!0)},add:ge("add"),set:ge("set"),delete:ge("delete"),clear:ge("clear"),forEach:ye(!0,!1)},r={get:function(e){return se(this,e,!0,!0)},get size(){return fe(this,!0)},has:function(e){return le.call(this,e,!0)},add:ge("add"),set:ge("set"),delete:ge("delete"),clear:ge("clear"),forEach:ye(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((function(i){e[i]=me(i,!1,!1),n[i]=me(i,!0,!1),t[i]=me(i,!1,!0),r[i]=me(i,!0,!0)})),[e,n,t,r]}var Oe,_e,we=(_e=4,function(e){if(Array.isArray(e))return e}(Oe=be())||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(Oe,_e)||f(Oe,_e)||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.")}()),Se=we[0],Ee=we[1],ke=we[2],Ne=we[3];function xe(e,t){var n=t?e?Ne:ke:e?Ee:Se;return function(t,r,o){return"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(Object(i.hasOwn)(n,r)&&r in t?n:t,r,o)}}var Te={get:xe(!1,!1)},je={get:xe(!1,!0)},Ae={get:xe(!0,!1)},Ie={get:xe(!0,!0)};var Ce=new WeakMap,Pe=new WeakMap,Re=new WeakMap,Le=new WeakMap;function Me(e){return He(e)?e:Be(e,!1,re,Te,Ce)}function Fe(e){return Be(e,!1,oe,je,Pe)}function De(e){return Be(e,!0,ie,Ae,Re)}function Ve(e){return Be(e,!0,ae,Ie,Le)}function Be(e,t,n,r,o){if(!Object(i.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;var a=o.get(e);if(a)return a;var u,c=(u=e).__v_skip||!Object.isExtensible(u)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(i.toRawType)(u));if(0===c)return e;var s=new Proxy(e,2===c?r:n);return o.set(e,s),s}function Ue(e){return He(e)?Ue(e.__v_raw):!(!e||!e.__v_isReactive)}function He(e){return!(!e||!e.__v_isReadonly)}function $e(e){return!(!e||!e.__v_isShallow)}function Ye(e){return Ue(e)||He(e)}function We(e){var t=e&&e.__v_raw;return t?We(t):e}function ze(e){return Object(i.def)(e,"__v_skip",!0),e}var Ke=function(e){return Object(i.isObject)(e)?Me(e):e},Ge=function(e){return Object(i.isObject)(e)?De(e):e},qe=function(){return y((function e(t,n,r,i){var o=this;h(this,e),this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new E((function(){return t(o._value)}),(function(){return Ze(o,1)}),(function(){return o.dep&&H(o.dep)})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}),[{key:"value",get:function(){var e=We(this);return e._cacheable&&!e.effect.dirty||Object(i.hasChanged)(e._value,e._value=e.effect.run())&&Ze(e,2),Xe(e),e.effect._dirtyLevel>=1&&Ze(e,1),e._value},set:function(e){this._setter(e)}},{key:"_dirty",get:function(){return this.effect.dirty},set:function(e){this.effect.dirty=e}}])}();function Je(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(i.isFunction)(e);a?(n=e,r=i.NOOP):(n=e.get,r=e.set);var u=new qe(n,r,a||!r,o);return u}function Xe(e){I&&g&&(e=We(e),V(g,e.dep||(e.dep=$((function(){return e.dep=void 0}),e instanceof qe?e:void 0))))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=(e=We(e)).dep;n&&U(n,t)}function Qe(e){return!(!e||!0!==e.__v_isRef)}function et(e){return nt(e,!1)}function tt(e){return nt(e,!0)}function nt(e,t){return Qe(e)?e:new rt(e,t)}var rt=function(){return y((function e(t,n){h(this,e),this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:We(t),this._value=n?t:Ke(t)}),[{key:"value",get:function(){return Xe(this),this._value},set:function(e){var t=this.__v_isShallow||$e(e)||He(e);e=t?e:We(e),Object(i.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ke(e),Ze(this,2,e))}}])}();function it(e){Ze(e,2,void 0)}function ot(e){return Qe(e)?e.value:e}function at(e){return Object(i.isFunction)(e)?e():ot(e)}var ut={get:function(e,t,n){return ot(Reflect.get(e,t,n))},set:function(e,t,n,r){var i=e[t];return Qe(i)&&!Qe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ct(e){return Ue(e)?e:new Proxy(e,ut)}var st=function(){return y((function e(t){var n=this;h(this,e),this.dep=void 0,this.__v_isRef=!0;var r=t((function(){return Xe(n)}),(function(){return Ze(n)})),i=r.get,o=r.set;this._get=i,this._set=o}),[{key:"value",get:function(){return this._get()},set:function(e){this._set(e)}}])}();function lt(e){return new st(e)}function ft(e){var t=Object(i.isArray)(e)?new Array(e.length):{};for(var n in e)t[n]=vt(e,n);return t}var dt=function(){return y((function e(t,n,r){h(this,e),this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}),[{key:"value",get:function(){var e=this._object[this._key];return void 0===e?this._defaultValue:e},set:function(e){this._object[this._key]=e}},{key:"dep",get:function(){return e=We(this._object),t=this._key,null==(n=Y.get(e))?void 0:n.get(t);var e,t,n}}])}(),pt=function(){return y((function e(t){h(this,e),this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}),[{key:"value",get:function(){return this._getter()}}])}();function ht(e,t,n){return Qe(e)?e:Object(i.isFunction)(e)?new pt(e):Object(i.isObject)(e)&&arguments.length>1?vt(e,t,n):et(e)}function vt(e,t,n){var r=e[t];return Qe(r)?r:new dt(e,t,n)}var yt=Je,mt={GET:"get",HAS:"has",ITERATE:"iterate"},gt={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},bt={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw"}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"BaseTransition",(function(){return Fe})),n.d(t,"BaseTransitionPropsValidators",(function(){return Me})),n.d(t,"Comment",(function(){return Hn})),n.d(t,"DeprecationTypes",(function(){return ai})),n.d(t,"ErrorCodes",(function(){return y})),n.d(t,"ErrorTypeStrings",(function(){return ei})),n.d(t,"Fragment",(function(){return Bn})),n.d(t,"KeepAlive",(function(){return qe})),n.d(t,"Static",(function(){return $n})),n.d(t,"Suspense",(function(){return de})),n.d(t,"Teleport",(function(){return Dn})),n.d(t,"Text",(function(){return Un})),n.d(t,"assertNumber",(function(){return v})),n.d(t,"callWithAsyncErrorHandling",(function(){return b})),n.d(t,"callWithErrorHandling",(function(){return g})),n.d(t,"cloneVNode",(function(){return sr})),n.d(t,"compatUtils",(function(){return oi})),n.d(t,"computed",(function(){return zr})),n.d(t,"createBlock",(function(){return Zn})),n.d(t,"createCommentVNode",(function(){return dr})),n.d(t,"createElementBlock",(function(){return Xn})),n.d(t,"createElementVNode",(function(){return or})),n.d(t,"createHydrationRenderer",(function(){return Nn})),n.d(t,"createPropsRestProxy",(function(){return Dt})),n.d(t,"createRenderer",(function(){return kn})),n.d(t,"createSlots",(function(){return yt})),n.d(t,"createStaticVNode",(function(){return fr})),n.d(t,"createTextVNode",(function(){return lr})),n.d(t,"createVNode",(function(){return ar})),n.d(t,"defineAsyncComponent",(function(){return ze})),n.d(t,"defineComponent",(function(){return Ye})),n.d(t,"defineEmits",(function(){return Nt})),n.d(t,"defineExpose",(function(){return xt})),n.d(t,"defineModel",(function(){return At})),n.d(t,"defineOptions",(function(){return Tt})),n.d(t,"defineProps",(function(){return kt})),n.d(t,"defineSlots",(function(){return jt})),n.d(t,"devtools",(function(){return ti})),n.d(t,"getCurrentInstance",(function(){return Er})),n.d(t,"getTransitionRawChildren",(function(){return $e})),n.d(t,"guardReactiveProps",(function(){return cr})),n.d(t,"h",(function(){return Gr})),n.d(t,"handleError",(function(){return O})),n.d(t,"hasInjectionContext",(function(){return on})),n.d(t,"initCustomFormatter",(function(){return qr})),n.d(t,"inject",(function(){return rn})),n.d(t,"isMemoSame",(function(){return Xr})),n.d(t,"isRuntimeOnly",(function(){return Fr})),n.d(t,"isVNode",(function(){return Qn})),n.d(t,"mergeDefaults",(function(){return Mt})),n.d(t,"mergeModels",(function(){return Ft})),n.d(t,"mergeProps",(function(){return yr})),n.d(t,"nextTick",(function(){return I})),n.d(t,"onActivated",(function(){return Xe})),n.d(t,"onBeforeMount",(function(){return ot})),n.d(t,"onBeforeUnmount",(function(){return st})),n.d(t,"onBeforeUpdate",(function(){return ut})),n.d(t,"onDeactivated",(function(){return Ze})),n.d(t,"onErrorCaptured",(function(){return ht})),n.d(t,"onMounted",(function(){return at})),n.d(t,"onRenderTracked",(function(){return pt})),n.d(t,"onRenderTriggered",(function(){return dt})),n.d(t,"onServerPrefetch",(function(){return ft})),n.d(t,"onUnmounted",(function(){return lt})),n.d(t,"onUpdated",(function(){return ct})),n.d(t,"openBlock",(function(){return zn})),n.d(t,"popScopeId",(function(){return q})),n.d(t,"provide",(function(){return nn})),n.d(t,"pushScopeId",(function(){return G})),n.d(t,"queuePostFlushCb",(function(){return R})),n.d(t,"registerRuntimeCompiler",(function(){return Mr})),n.d(t,"renderList",(function(){return vt})),n.d(t,"renderSlot",(function(){return mt})),n.d(t,"resolveComponent",(function(){return ie})),n.d(t,"resolveDirective",(function(){return ue})),n.d(t,"resolveDynamicComponent",(function(){return ae})),n.d(t,"resolveFilter",(function(){return ii})),n.d(t,"resolveTransitionHooks",(function(){return Ve})),n.d(t,"setBlockTracking",(function(){return qn})),n.d(t,"setDevtoolsHook",(function(){return ni})),n.d(t,"setTransitionHooks",(function(){return He})),n.d(t,"ssrContextKey",(function(){return be})),n.d(t,"ssrUtils",(function(){return ri})),n.d(t,"toHandlers",(function(){return bt})),n.d(t,"transformVNodeArgs",(function(){return tr})),n.d(t,"useAttrs",(function(){return Pt})),n.d(t,"useModel",(function(){return Kr})),n.d(t,"useSSRContext",(function(){return Oe})),n.d(t,"useSlots",(function(){return Ct})),n.d(t,"useTransitionState",(function(){return Re})),n.d(t,"version",(function(){return Zr})),n.d(t,"warn",(function(){return Qr})),n.d(t,"watch",(function(){return ke})),n.d(t,"watchEffect",(function(){return _e})),n.d(t,"watchPostEffect",(function(){return we})),n.d(t,"watchSyncEffect",(function(){return Se})),n.d(t,"withAsyncContext",(function(){return Vt})),n.d(t,"withCtx",(function(){return X})),n.d(t,"withDefaults",(function(){return It})),n.d(t,"withDirectives",(function(){return Ae})),n.d(t,"withMemo",(function(){return Jr})),n.d(t,"withScopeId",(function(){return J}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");n.d(t,"EffectScope",(function(){return r.EffectScope})),n.d(t,"ReactiveEffect",(function(){return r.ReactiveEffect})),n.d(t,"TrackOpTypes",(function(){return r.TrackOpTypes})),n.d(t,"TriggerOpTypes",(function(){return r.TriggerOpTypes})),n.d(t,"customRef",(function(){return r.customRef})),n.d(t,"effect",(function(){return r.effect})),n.d(t,"effectScope",(function(){return r.effectScope})),n.d(t,"getCurrentScope",(function(){return r.getCurrentScope})),n.d(t,"isProxy",(function(){return r.isProxy})),n.d(t,"isReactive",(function(){return r.isReactive})),n.d(t,"isReadonly",(function(){return r.isReadonly})),n.d(t,"isRef",(function(){return r.isRef})),n.d(t,"isShallow",(function(){return r.isShallow})),n.d(t,"markRaw",(function(){return r.markRaw})),n.d(t,"onScopeDispose",(function(){return r.onScopeDispose})),n.d(t,"proxyRefs",(function(){return r.proxyRefs})),n.d(t,"reactive",(function(){return r.reactive})),n.d(t,"readonly",(function(){return r.readonly})),n.d(t,"ref",(function(){return r.ref})),n.d(t,"shallowReactive",(function(){return r.shallowReactive})),n.d(t,"shallowReadonly",(function(){return r.shallowReadonly})),n.d(t,"shallowRef",(function(){return r.shallowRef})),n.d(t,"stop",(function(){return r.stop})),n.d(t,"toRaw",(function(){return r.toRaw})),n.d(t,"toRef",(function(){return r.toRef})),n.d(t,"toRefs",(function(){return r.toRefs})),n.d(t,"toValue",(function(){return r.toValue})),n.d(t,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var i=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(e,t)||s(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 u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0];v(this,e),this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=r,!t&&r&&(this.index=(r.scopes||(r.scopes=[])).push(this)-1)}),[{key:"active",get:function(){return this._active}},{key:"run",value:function(e){if(this._active){var t=r;try{return r=this,e()}finally{r=t}}else 0}},{key:"on",value:function(){r=this}},{key:"off",value:function(){r=this.parent}},{key:"stop",value:function(e){if(this._active){var t,n;for(t=0,n=this.effects.length;t1&&void 0!==arguments[1]?arguments[1]:r;t&&t.active&&t.effects.push(e)}function w(){return r}function S(e){r&&r.cleanups.push(e)}var E=function(){return y((function e(t,n,r,i){v(this,e),this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,_(this,i)}),[{key:"dirty",get:function(){if(1===this._dirtyLevel){R();for(var e=0;e=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),M()}return this._dirtyLevel>=2},set:function(e){this._dirtyLevel=e?2:0}},{key:"run",value:function(){if(this._dirtyLevel=0,!this.active)return this.fn();var e=I,t=g;try{return I=!0,g=this,this._runnings++,N(this),this.fn()}finally{x(this),this._runnings--,g=t,I=e}}},{key:"stop",value:function(){var e;this.active&&(N(this),x(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}])}();function k(e){return e.value}function N(e){e._trackId++,e._depsLength=0}function x(e){if(e.deps&&e.deps.length>e._depsLength){for(var t=e._depsLength;t=f)&&c.push(e)}))}else switch(void 0!==n&&c.push(u.get(n)),t){case"add":Object(i.isArray)(e)?Object(i.isIntegerKey)(n)&&c.push(u.get("length")):(c.push(u.get(W)),Object(i.isMap)(e)&&c.push(u.get(z)));break;case"delete":Object(i.isArray)(e)||(c.push(u.get(W)),Object(i.isMap)(e)&&c.push(u.get(z)));break;case"set":Object(i.isMap)(e)&&c.push(u.get(W))}F();var d,p=l(c);try{for(p.s();!(d=p.n()).done;){var v=d.value;v&&U(v,2)}}catch(e){p.e(e)}finally{p.f()}D()}}var q=Object(i.makeMap)("__proto__,__v_isRef,__isVue"),J=new Set(Object.getOwnPropertyNames(Symbol).filter((function(e){return"arguments"!==e&&"caller"!==e})).map((function(e){return Symbol[e]})).filter(i.isSymbol)),X=Z();function Z(){var e={};return["includes","indexOf","lastIndexOf"].forEach((function(t){e[t]=function(){for(var e=We(this),n=0,r=this.length;n0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,e),this._isReadonly=t,this._shallow=n}),[{key:"get",value:function(e,t,n){var r=this._isReadonly,o=this._shallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?Le:Re:o?Pe:Ce).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;var a=Object(i.isArray)(e);if(!r){if(a&&Object(i.hasOwn)(X,t))return Reflect.get(X,t,n);if("hasOwnProperty"===t)return Q}var u=Reflect.get(e,t,n);return(Object(i.isSymbol)(t)?J.has(t):q(t))?u:(r||K(e,0,t),o?u:Qe(u)?a&&Object(i.isIntegerKey)(t)?u:u.value:Object(i.isObject)(u)?r?De(u):Me(u):u)}}])}(),te=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,t),o(this,t,[!1,e])}return u(t,e),y(t,[{key:"set",value:function(e,t,n,r){var o=e[t];if(!this._shallow){var a=He(o);if($e(n)||He(n)||(o=We(o),n=We(n)),!Object(i.isArray)(e)&&Qe(o)&&!Qe(n))return!a&&(o.value=n,!0)}var u=Object(i.isArray)(e)&&Object(i.isIntegerKey)(t)?Number(t)0&&void 0!==arguments[0]&&arguments[0];return v(this,t),o(this,t,[!0,e])}return u(t,e),y(t,[{key:"set",value:function(e,t){return!0}},{key:"deleteProperty",value:function(e,t){return!0}}])}(ee),re=new te,ie=new ne,oe=new te(!0),ae=new ne(!0),ue=function(e){return e},ce=function(e){return Reflect.getPrototypeOf(e)};function se(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=We(e=e.__v_raw),a=We(t);n||(Object(i.hasChanged)(t,a)&&K(o,0,t),K(o,0,a));var u=ce(o),c=u.has,s=r?ue:n?Ge:Ke;return c.call(o,t)?s(e.get(t)):c.call(o,a)?s(e.get(a)):void(e!==o&&e.get(t))}function le(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=We(n),o=We(e);return t||(Object(i.hasChanged)(e,o)&&K(r,0,e),K(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&K(We(e),0,W),Reflect.get(e,"size",e)}function de(e){e=We(e);var t=We(this);return ce(t).has.call(t,e)||(t.add(e),G(t,"add",e,e)),this}function pe(e,t){t=We(t);var n=We(this),r=ce(n),o=r.has,a=r.get,u=o.call(n,e);u||(e=We(e),u=o.call(n,e));var c=a.call(n,e);return n.set(e,t),u?Object(i.hasChanged)(t,c)&&G(n,"set",e,t):G(n,"add",e,t),this}function ve(e){var t=We(this),n=ce(t),r=n.has,i=n.get,o=r.call(t,e);o||(e=We(e),o=r.call(t,e));i&&i.call(t,e);var a=t.delete(e);return o&&G(t,"delete",e,void 0),a}function he(){var e=We(this),t=0!==e.size,n=e.clear();return t&&G(e,"clear",void 0,void 0),n}function ye(e,t){return function(n,r){var i=this,o=i.__v_raw,a=We(o),u=t?ue:e?Ge:Ke;return!e&&K(a,0,W),o.forEach((function(e,t){return n.call(r,u(e),u(t),i)}))}}function me(e,t,n){return function(){var r=this.__v_raw,o=We(r),a=Object(i.isMap)(o),u="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,s=r[e].apply(r,arguments),l=n?ue:t?Ge:Ke;return!t&&K(o,0,c?z:W),{next:function(){var e=s.next(),t=e.value,n=e.done;return n?{value:t,done:n}:{value:u?[l(t[0]),l(t[1])]:l(t),done:n}},[Symbol.iterator]:function(){return this}}}}function ge(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}function be(){var e={get:function(e){return se(this,e)},get size(){return fe(this)},has:le,add:de,set:pe,delete:ve,clear:he,forEach:ye(!1,!1)},t={get:function(e){return se(this,e,!1,!0)},get size(){return fe(this)},has:le,add:de,set:pe,delete:ve,clear:he,forEach:ye(!1,!0)},n={get:function(e){return se(this,e,!0)},get size(){return fe(this,!0)},has:function(e){return le.call(this,e,!0)},add:ge("add"),set:ge("set"),delete:ge("delete"),clear:ge("clear"),forEach:ye(!0,!1)},r={get:function(e){return se(this,e,!0,!0)},get size(){return fe(this,!0)},has:function(e){return le.call(this,e,!0)},add:ge("add"),set:ge("set"),delete:ge("delete"),clear:ge("clear"),forEach:ye(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((function(i){e[i]=me(i,!1,!1),n[i]=me(i,!0,!1),t[i]=me(i,!1,!0),r[i]=me(i,!0,!0)})),[e,n,t,r]}var Oe,_e,we=(_e=4,function(e){if(Array.isArray(e))return e}(Oe=be())||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(Oe,_e)||f(Oe,_e)||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.")}()),Se=we[0],Ee=we[1],ke=we[2],Ne=we[3];function xe(e,t){var n=t?e?Ne:ke:e?Ee:Se;return function(t,r,o){return"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(Object(i.hasOwn)(n,r)&&r in t?n:t,r,o)}}var Te={get:xe(!1,!1)},je={get:xe(!1,!0)},Ae={get:xe(!0,!1)},Ie={get:xe(!0,!0)};var Ce=new WeakMap,Pe=new WeakMap,Re=new WeakMap,Le=new WeakMap;function Me(e){return He(e)?e:Be(e,!1,re,Te,Ce)}function Fe(e){return Be(e,!1,oe,je,Pe)}function De(e){return Be(e,!0,ie,Ae,Re)}function Ve(e){return Be(e,!0,ae,Ie,Le)}function Be(e,t,n,r,o){if(!Object(i.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;var a=o.get(e);if(a)return a;var u,c=(u=e).__v_skip||!Object.isExtensible(u)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(i.toRawType)(u));if(0===c)return e;var s=new Proxy(e,2===c?r:n);return o.set(e,s),s}function Ue(e){return He(e)?Ue(e.__v_raw):!(!e||!e.__v_isReactive)}function He(e){return!(!e||!e.__v_isReadonly)}function $e(e){return!(!e||!e.__v_isShallow)}function Ye(e){return Ue(e)||He(e)}function We(e){var t=e&&e.__v_raw;return t?We(t):e}function ze(e){return Object(i.def)(e,"__v_skip",!0),e}var Ke=function(e){return Object(i.isObject)(e)?Me(e):e},Ge=function(e){return Object(i.isObject)(e)?De(e):e},qe=function(){return y((function e(t,n,r,i){var o=this;v(this,e),this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new E((function(){return t(o._value)}),(function(){return Ze(o,1)}),(function(){return o.dep&&H(o.dep)})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}),[{key:"value",get:function(){var e=We(this);return e._cacheable&&!e.effect.dirty||Object(i.hasChanged)(e._value,e._value=e.effect.run())&&Ze(e,2),Xe(e),e.effect._dirtyLevel>=1&&Ze(e,1),e._value},set:function(e){this._setter(e)}},{key:"_dirty",get:function(){return this.effect.dirty},set:function(e){this.effect.dirty=e}}])}();function Je(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(i.isFunction)(e);a?(n=e,r=i.NOOP):(n=e.get,r=e.set);var u=new qe(n,r,a||!r,o);return u}function Xe(e){I&&g&&(e=We(e),V(g,e.dep||(e.dep=$((function(){return e.dep=void 0}),e instanceof qe?e:void 0))))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=(e=We(e)).dep;n&&U(n,t)}function Qe(e){return!(!e||!0!==e.__v_isRef)}function et(e){return nt(e,!1)}function tt(e){return nt(e,!0)}function nt(e,t){return Qe(e)?e:new rt(e,t)}var rt=function(){return y((function e(t,n){v(this,e),this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:We(t),this._value=n?t:Ke(t)}),[{key:"value",get:function(){return Xe(this),this._value},set:function(e){var t=this.__v_isShallow||$e(e)||He(e);e=t?e:We(e),Object(i.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ke(e),Ze(this,2,e))}}])}();function it(e){Ze(e,2,void 0)}function ot(e){return Qe(e)?e.value:e}function at(e){return Object(i.isFunction)(e)?e():ot(e)}var ut={get:function(e,t,n){return ot(Reflect.get(e,t,n))},set:function(e,t,n,r){var i=e[t];return Qe(i)&&!Qe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ct(e){return Ue(e)?e:new Proxy(e,ut)}var st=function(){return y((function e(t){var n=this;v(this,e),this.dep=void 0,this.__v_isRef=!0;var r=t((function(){return Xe(n)}),(function(){return Ze(n)})),i=r.get,o=r.set;this._get=i,this._set=o}),[{key:"value",get:function(){return this._get()},set:function(e){this._set(e)}}])}();function lt(e){return new st(e)}function ft(e){var t=Object(i.isArray)(e)?new Array(e.length):{};for(var n in e)t[n]=ht(e,n);return t}var dt=function(){return y((function e(t,n,r){v(this,e),this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}),[{key:"value",get:function(){var e=this._object[this._key];return void 0===e?this._defaultValue:e},set:function(e){this._object[this._key]=e}},{key:"dep",get:function(){return e=We(this._object),t=this._key,null==(n=Y.get(e))?void 0:n.get(t);var e,t,n}}])}(),pt=function(){return y((function e(t){v(this,e),this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}),[{key:"value",get:function(){return this._getter()}}])}();function vt(e,t,n){return Qe(e)?e:Object(i.isFunction)(e)?new pt(e):Object(i.isObject)(e)&&arguments.length>1?ht(e,t,n):et(e)}function ht(e,t,n){var r=e[t];return Qe(r)?r:new dt(e,t,n)}var yt=Je,mt={GET:"get",HAS:"has",ITERATE:"iterate"},gt={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},bt={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw"}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"BaseTransition",(function(){return Fe})),n.d(t,"BaseTransitionPropsValidators",(function(){return Me})),n.d(t,"Comment",(function(){return Hn})),n.d(t,"DeprecationTypes",(function(){return ai})),n.d(t,"ErrorCodes",(function(){return y})),n.d(t,"ErrorTypeStrings",(function(){return ei})),n.d(t,"Fragment",(function(){return Bn})),n.d(t,"KeepAlive",(function(){return qe})),n.d(t,"Static",(function(){return $n})),n.d(t,"Suspense",(function(){return de})),n.d(t,"Teleport",(function(){return Dn})),n.d(t,"Text",(function(){return Un})),n.d(t,"assertNumber",(function(){return h})),n.d(t,"callWithAsyncErrorHandling",(function(){return b})),n.d(t,"callWithErrorHandling",(function(){return g})),n.d(t,"cloneVNode",(function(){return sr})),n.d(t,"compatUtils",(function(){return oi})),n.d(t,"computed",(function(){return zr})),n.d(t,"createBlock",(function(){return Zn})),n.d(t,"createCommentVNode",(function(){return dr})),n.d(t,"createElementBlock",(function(){return Xn})),n.d(t,"createElementVNode",(function(){return or})),n.d(t,"createHydrationRenderer",(function(){return Nn})),n.d(t,"createPropsRestProxy",(function(){return Dt})),n.d(t,"createRenderer",(function(){return kn})),n.d(t,"createSlots",(function(){return yt})),n.d(t,"createStaticVNode",(function(){return fr})),n.d(t,"createTextVNode",(function(){return lr})),n.d(t,"createVNode",(function(){return ar})),n.d(t,"defineAsyncComponent",(function(){return ze})),n.d(t,"defineComponent",(function(){return Ye})),n.d(t,"defineEmits",(function(){return Nt})),n.d(t,"defineExpose",(function(){return xt})),n.d(t,"defineModel",(function(){return At})),n.d(t,"defineOptions",(function(){return Tt})),n.d(t,"defineProps",(function(){return kt})),n.d(t,"defineSlots",(function(){return jt})),n.d(t,"devtools",(function(){return ti})),n.d(t,"getCurrentInstance",(function(){return Er})),n.d(t,"getTransitionRawChildren",(function(){return $e})),n.d(t,"guardReactiveProps",(function(){return cr})),n.d(t,"h",(function(){return Gr})),n.d(t,"handleError",(function(){return O})),n.d(t,"hasInjectionContext",(function(){return on})),n.d(t,"initCustomFormatter",(function(){return qr})),n.d(t,"inject",(function(){return rn})),n.d(t,"isMemoSame",(function(){return Xr})),n.d(t,"isRuntimeOnly",(function(){return Fr})),n.d(t,"isVNode",(function(){return Qn})),n.d(t,"mergeDefaults",(function(){return Mt})),n.d(t,"mergeModels",(function(){return Ft})),n.d(t,"mergeProps",(function(){return yr})),n.d(t,"nextTick",(function(){return I})),n.d(t,"onActivated",(function(){return Xe})),n.d(t,"onBeforeMount",(function(){return ot})),n.d(t,"onBeforeUnmount",(function(){return st})),n.d(t,"onBeforeUpdate",(function(){return ut})),n.d(t,"onDeactivated",(function(){return Ze})),n.d(t,"onErrorCaptured",(function(){return vt})),n.d(t,"onMounted",(function(){return at})),n.d(t,"onRenderTracked",(function(){return pt})),n.d(t,"onRenderTriggered",(function(){return dt})),n.d(t,"onServerPrefetch",(function(){return ft})),n.d(t,"onUnmounted",(function(){return lt})),n.d(t,"onUpdated",(function(){return ct})),n.d(t,"openBlock",(function(){return zn})),n.d(t,"popScopeId",(function(){return q})),n.d(t,"provide",(function(){return nn})),n.d(t,"pushScopeId",(function(){return G})),n.d(t,"queuePostFlushCb",(function(){return R})),n.d(t,"registerRuntimeCompiler",(function(){return Mr})),n.d(t,"renderList",(function(){return ht})),n.d(t,"renderSlot",(function(){return mt})),n.d(t,"resolveComponent",(function(){return ie})),n.d(t,"resolveDirective",(function(){return ue})),n.d(t,"resolveDynamicComponent",(function(){return ae})),n.d(t,"resolveFilter",(function(){return ii})),n.d(t,"resolveTransitionHooks",(function(){return Ve})),n.d(t,"setBlockTracking",(function(){return qn})),n.d(t,"setDevtoolsHook",(function(){return ni})),n.d(t,"setTransitionHooks",(function(){return He})),n.d(t,"ssrContextKey",(function(){return be})),n.d(t,"ssrUtils",(function(){return ri})),n.d(t,"toHandlers",(function(){return bt})),n.d(t,"transformVNodeArgs",(function(){return tr})),n.d(t,"useAttrs",(function(){return Pt})),n.d(t,"useModel",(function(){return Kr})),n.d(t,"useSSRContext",(function(){return Oe})),n.d(t,"useSlots",(function(){return Ct})),n.d(t,"useTransitionState",(function(){return Re})),n.d(t,"version",(function(){return Zr})),n.d(t,"warn",(function(){return Qr})),n.d(t,"watch",(function(){return ke})),n.d(t,"watchEffect",(function(){return _e})),n.d(t,"watchPostEffect",(function(){return we})),n.d(t,"watchSyncEffect",(function(){return Se})),n.d(t,"withAsyncContext",(function(){return Vt})),n.d(t,"withCtx",(function(){return X})),n.d(t,"withDefaults",(function(){return It})),n.d(t,"withDirectives",(function(){return Ae})),n.d(t,"withMemo",(function(){return Jr})),n.d(t,"withScopeId",(function(){return J}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");n.d(t,"EffectScope",(function(){return r.EffectScope})),n.d(t,"ReactiveEffect",(function(){return r.ReactiveEffect})),n.d(t,"TrackOpTypes",(function(){return r.TrackOpTypes})),n.d(t,"TriggerOpTypes",(function(){return r.TriggerOpTypes})),n.d(t,"customRef",(function(){return r.customRef})),n.d(t,"effect",(function(){return r.effect})),n.d(t,"effectScope",(function(){return r.effectScope})),n.d(t,"getCurrentScope",(function(){return r.getCurrentScope})),n.d(t,"isProxy",(function(){return r.isProxy})),n.d(t,"isReactive",(function(){return r.isReactive})),n.d(t,"isReadonly",(function(){return r.isReadonly})),n.d(t,"isRef",(function(){return r.isRef})),n.d(t,"isShallow",(function(){return r.isShallow})),n.d(t,"markRaw",(function(){return r.markRaw})),n.d(t,"onScopeDispose",(function(){return r.onScopeDispose})),n.d(t,"proxyRefs",(function(){return r.proxyRefs})),n.d(t,"reactive",(function(){return r.reactive})),n.d(t,"readonly",(function(){return r.readonly})),n.d(t,"ref",(function(){return r.ref})),n.d(t,"shallowReactive",(function(){return r.shallowReactive})),n.d(t,"shallowReadonly",(function(){return r.shallowReadonly})),n.d(t,"shallowRef",(function(){return r.shallowRef})),n.d(t,"stop",(function(){return r.stop})),n.d(t,"toRaw",(function(){return r.toRaw})),n.d(t,"toRef",(function(){return r.toRef})),n.d(t,"toRefs",(function(){return r.toRefs})),n.d(t,"toValue",(function(){return r.toValue})),n.d(t,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var i=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(e,t)||s(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 u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?o-1:0),u=1;u")})).join("\n"),i]);else{var s,l=["[Vue warn]: ".concat(e)].concat(a);i.length&&l.push.apply(l,["\n"].concat(c(h(i)))),(s=console).warn.apply(s,c(l))}Object(r.resetTracking)()}function p(){var e=f[f.length-1];if(!e)return[];for(var t=[];e;){var n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});var r=e.component&&e.component.parent;e=r&&r.vnode}return t}function h(e){var t=[];return e.forEach((function(e,n){var o,a,u,s,l,f,d,p,h,v;t.push.apply(t,c(0===n?[]:["\n"]).concat(c((l=(s=e).vnode,f=s.recurseCount,d=f>0?"... (".concat(f," recursive calls)"):"",p=!!l.component&&null==l.component.parent,h=" at <".concat(Yr(l.component,l.type,p)),v=">"+d,l.props?[h].concat(c((o=l.props,a=[],(u=Object.keys(o)).slice(0,3).forEach((function(e){a.push.apply(a,c(function e(t,n,o){return Object(i.isString)(n)?(n=JSON.stringify(n),o?n:["".concat(t,"=").concat(n)]):"number"==typeof n||"boolean"==typeof n||null==n?o?n:["".concat(t,"=").concat(n)]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),o?n:["".concat(t,"=Ref<"),n,">"]):Object(i.isFunction)(n)?["".concat(t,"=fn").concat(n.name?"<".concat(n.name,">"):"")]:(n=Object(r.toRaw)(n),o?n:["".concat(t,"="),n])}(e,o[e])))})),u.length>3&&a.push(" ..."),a)),[v]):[h+v]))))})),t}function v(e,t){}var y={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},m={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function g(e,t,n,r){var i;try{i=r?e.apply(void 0,c(r)):e()}catch(e){O(e,t,n)}return i}function b(e,t,n,r){if(Object(i.isFunction)(e)){var o=g(e,t,n,r);return o&&Object(i.isPromise)(o)&&o.catch((function(e){O(e,t,n)})),o}for(var a=[],u=0;u3&&void 0!==arguments[3])||arguments[3],i=t?t.vnode:null;if(t){for(var o=t.parent,a=t.proxy,u="https://vuejs.org/error-reference/#runtime-".concat(n);o;){var c=o.ec;if(c)for(var s=0;s>>1,i=E[r],o=F(i);o2&&void 0!==arguments[2]?arguments[2]:w?k+1:0;for(0;n2?r-2:0),a=2;a2&&void 0!==arguments[2]&&arguments[2],r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;var a=e.emits,u={},c=!1;if(__VUE_OPTIONS_API__&&!Object(i.isFunction)(e)){var s=function(e){var n=$(e,t,!0);n&&(c=!0,Object(i.extend)(u,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return a||c?(Object(i.isArray)(a)?a.forEach((function(e){return u[e]=null})):Object(i.extend)(u,a),Object(i.isObject)(e)&&r.set(e,u),u):(Object(i.isObject)(e)&&r.set(e,null),null)}function Y(e,t){return!(!e||!Object(i.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(i.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(i.hasOwn)(e,Object(i.hyphenate)(t))||Object(i.hasOwn)(e,t))}var W=null,z=null;function K(e){var t=W;return W=e,z=e&&e.type.__scopeId||null,t}function G(e){z=e}function q(){z=null}var J=function(e){return X};function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;if(!t)return e;if(e._n)return e;var n=function n(){n._d&&qn(-1);var r,i=K(t);try{r=e.apply(void 0,arguments)}finally{K(i),n._d&&qn(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function Z(e){var t,n,r=e.type,o=e.vnode,u=e.proxy,c=e.withProxy,s=e.props,l=a(e.propsOptions,1)[0],f=e.slots,d=e.attrs,p=e.emit,h=e.render,v=e.renderCache,y=e.data,m=e.setupState,g=e.ctx,b=e.inheritAttrs,_=K(e);try{if(4&o.shapeFlag){var w=c||u,S=w;t=pr(h.call(S,w,v,s,m,y,g)),n=d}else{var E=r;0,t=pr(E.length>1?E(s,{attrs:d,slots:f,emit:p}):E(s,null)),n=r.props?d:ee(d)}}catch(n){Yn.length=0,O(n,e,1),t=ar(Hn)}var k=t;if(n&&!1!==b){var N=Object.keys(n),x=k.shapeFlag;if(N.length)if(7&x)l&&N.some(i.isModelListener)&&(n=te(n,l)),k=sr(k,n);else;}return o.dirs&&((k=sr(k)).dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&(k.transition=o.transition),t=k,K(_),t}function Q(e){for(var t,n=0;n3&&void 0!==arguments[3]&&arguments[3],r=W||Sr;if(r){var o=r.type;if("components"===e){var a=$r(o,!1);if(a&&(a===t||a===Object(i.camelize)(t)||a===Object(i.capitalize)(Object(i.camelize)(t))))return o}var u=se(r[e]||o[e],t)||se(r.appContext[e],t);return!u&&n?o:u}}function se(e,t){return e&&(e[t]||e[Object(i.camelize)(t)]||e[Object(i.capitalize)(Object(i.camelize)(t))])}var le=function(e){return e.__isSuspense},fe=0,de={name:"Suspense",__isSuspense:!0,process:function(e,t,n,r,i,o,a,u,c,s){if(null==e)!function(e,t,n,r,i,o,a,u,c){var s=c.p,l=(0,c.o.createElement)("div"),f=e.suspense=he(e,i,r,t,l,n,o,a,u,c);s(null,f.pendingBranch=e.ssContent,l,null,r,f,o,a),f.deps>0?(pe(e,"onPending"),pe(e,"onFallback"),s(null,e.ssFallback,t,n,r,null,o,a),me(f,e.ssFallback)):f.resolve(!1,!0)}(t,n,r,i,o,a,u,c,s);else{if(o&&o.deps>0)return void(t.suspense=e.suspense);!function(e,t,n,r,i,o,a,u,c){var s=c.p,l=c.um,f=c.o.createElement,d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;var p=t.ssContent,h=t.ssFallback,v=d.activeBranch,y=d.pendingBranch,m=d.isInFallback,g=d.isHydrating;if(y)d.pendingBranch=p,er(p,y)?(s(y,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():m&&(g||(s(v,h,n,r,i,null,o,a,u),me(d,h)))):(d.pendingId=fe++,g?(d.isHydrating=!1,d.activeBranch=y):l(y,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=f("div"),m?(s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():(s(v,h,n,r,i,null,o,a,u),me(d,h))):v&&er(p,v)?(s(v,p,n,r,i,d,o,a,u),d.resolve(!0)):(s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0&&d.resolve()));else if(v&&er(p,v))s(v,p,n,r,i,d,o,a,u),me(d,p);else if(pe(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=fe++,s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0)d.resolve();else{var b=d.timeout,O=d.pendingId;b>0?setTimeout((function(){d.pendingId===O&&d.fallback(h)}),b):0===b&&d.fallback(h)}}(e,t,n,r,i,a,u,c,s)}},hydrate:function(e,t,n,r,i,o,a,u,c){var s=t.suspense=he(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,u,!0),l=c(e,s.pendingBranch=t.ssContent,n,s,o,a);0===s.deps&&s.resolve(!1,!0);return l},create:he,normalize:function(e){var t=e.shapeFlag,n=e.children,r=32&t;e.ssContent=ve(r?n.default:n),e.ssFallback=r?ve(n.fallback):ar(Hn)}};function pe(e,t){var n=e.props&&e.props[t];Object(i.isFunction)(n)&&n()}function he(e,t,n,r,o,a,u,s,l,f){var d=arguments.length>10&&void 0!==arguments[10]&&arguments[10];var p,h=f.p,v=f.m,y=f.um,m=f.n,g=f.o,b=g.parentNode,_=g.remove,w=ge(e);w&&(null==t?void 0:t.pendingBranch)&&(p=t.pendingId,t.deps++);var S=e.props?Object(i.toNumber)(e.props.timeout):void 0;var E=a,k={vnode:e,parent:t,parentComponent:n,namespace:u,container:r,hiddenContainer:o,deps:0,pendingId:fe++,timeout:"number"==typeof S?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r=k.vnode,i=k.activeBranch,o=k.pendingBranch,u=k.pendingId,s=k.effects,l=k.parentComponent,f=k.container,d=!1;k.isHydrating?k.isHydrating=!1:e||((d=i&&o.transition&&"out-in"===o.transition.mode)&&(i.transition.afterLeave=function(){u===k.pendingId&&(v(o,f,a===E?m(i):a,0),R(s))}),i&&(b(i.el)!==k.hiddenContainer&&(a=m(i)),y(i,l,k,!0)),d||v(o,f,a,0)),me(k,o),k.pendingBranch=null,k.isInFallback=!1;for(var h=k.parent,g=!1;h;){if(h.pendingBranch){var O;(O=h.effects).push.apply(O,c(s)),g=!0;break}h=h.parent}g||d||R(s),k.effects=[],w&&t&&t.pendingBranch&&p===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),pe(r,"onResolve")},fallback:function(e){if(k.pendingBranch){var t=k.vnode,n=k.activeBranch,r=k.parentComponent,i=k.container,o=k.namespace;pe(t,"onFallback");var a=m(n),u=function(){k.isInFallback&&(h(null,e,i,a,r,null,o,s,l),me(k,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),k.isInFallback=!0,y(n,r,null,!0),c||u()}},move:function(e,t,n){k.activeBranch&&v(k.activeBranch,e,t,n),k.container=e},next:function(){return k.activeBranch&&m(k.activeBranch)},registerDep:function(e,t){var n=!!k.pendingBranch;n&&k.deps++;var r=e.vnode.el;e.asyncDep.catch((function(t){O(t,e,0)})).then((function(i){if(!e.isUnmounted&&!k.isUnmounted&&k.pendingId===e.suspenseId){e.asyncResolved=!0;var o=e.vnode;0,Lr(e,i,!1),r&&(o.el=r);var a=!r&&e.subTree.el;t(e,o,b(r||e.subTree.el),r?null:m(e.subTree),k,u,l),a&&_(a),re(e,o.el),n&&0==--k.deps&&k.resolve()}}))},unmount:function(e,t){k.isUnmounted=!0,k.activeBranch&&y(k.activeBranch,n,e,t),k.pendingBranch&&y(k.pendingBranch,n,e,t)}};return k}function ve(e){var t;if(Object(i.isFunction)(e)){var n=Gn&&e._c;n&&(e._d=!1,zn()),e=e(),n&&(e._d=!0,t=Wn,Kn())}if(Object(i.isArray)(e)){var r=Q(e);0,e=r}return e=pr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((function(t){return t!==e}))),e}function ye(e,t){var n;t&&t.pendingBranch?Object(i.isArray)(e)?(n=t.effects).push.apply(n,c(e)):t.effects.push(e):R(e)}function me(e,t){e.activeBranch=t;for(var n=e.vnode,r=e.parentComponent,i=t.el;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,re(r,i))}function ge(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}var be=Symbol.for("v-scx"),Oe=function(){var e=rn(be);return e};function _e(e,t){return Ne(e,null,t)}function we(e,t){return Ne(e,null,{flush:"post"})}function Se(e,t){return Ne(e,null,{flush:"sync"})}var Ee={};function ke(e,t,n){return Ne(e,t,n)}function Ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.EMPTY_OBJ,o=n.immediate,a=n.deep,u=n.flush,c=n.once;n.onTrack,n.onTrigger;if(t&&c){var s=t;t=function(){s.apply(void 0,arguments),x()}}var l,f,d=Sr,p=function(e){return!0===a?e:je(e,!1===a?1:void 0)},h=!1,v=!1;if(Object(r.isRef)(e)?(l=function(){return e.value},h=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(l=function(){return p(e)},h=!0):Object(i.isArray)(e)?(v=!0,h=e.some((function(e){return Object(r.isReactive)(e)||Object(r.isShallow)(e)})),l=function(){return e.map((function(e){return Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?p(e):Object(i.isFunction)(e)?g(e,d,2):void 0}))}):l=Object(i.isFunction)(e)?t?function(){return g(e,d,2)}:function(){return f&&f(),b(e,d,3,[O])}:i.NOOP,t&&a){var y=l;l=function(){return je(y())}}var m,O=function(e){f=k.onStop=function(){g(e,d,4),f=k.onStop=void 0}};if(Cr){if(O=i.NOOP,t?o&&b(t,d,3,[l(),v?[]:void 0,O]):l(),"sync"!==u)return i.NOOP;var _=Oe();m=_.__watcherHandles||(_.__watcherHandles=[])}var w,S=v?new Array(e.length).fill(Ee):Ee,E=function(){if(k.active&&k.dirty)if(t){var e=k.run();(a||h||(v?e.some((function(e,t){return Object(i.hasChanged)(e,S[t])})):Object(i.hasChanged)(e,S)))&&(f&&f(),b(t,d,3,[e,S===Ee?void 0:v&&S[0]===Ee?[]:S,O]),S=e)}else k.run()};E.allowRecurse=!!t,"sync"===u?w=E:"post"===u?w=function(){return En(E,d&&d.suspense)}:(E.pre=!0,d&&(E.id=d.uid),w=function(){return C(E)});var k=new r.ReactiveEffect(l,i.NOOP,w),N=Object(r.getCurrentScope)(),x=function(){k.stop(),N&&Object(i.remove)(N.effects,k)};return t?o?E():S=k.run():"post"===u?En(k.run.bind(k),d&&d.suspense):k.run(),m&&m.push(x),x}function xe(e,t,n){var r,o=this.proxy,a=Object(i.isString)(e)?e.includes(".")?Te(o,e):function(){return o[e]}:e.bind(o,o);Object(i.isFunction)(t)?r=t:(r=t.handler,n=t);var u=xr(this),c=Ne(a,r.bind(o),n);return u(),c}function Te(e,t){var n=t.split(".");return function(){for(var t=e,r=0;r2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0;if(!Object(i.isObject)(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),Object(r.isRef)(e))je(e.value,t,n,o);else if(Object(i.isArray)(e))for(var a=0;a1){var s,l=u(t);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(f.type!==Hn){0,c=f,!0;break}}}catch(e){l.e(e)}finally{l.f()}}var d=Object(r.toRaw)(e),p=d.mode;if(a.isLeaving)return Be(c);var h=Ue(c);if(!h)return Be(c);var v=Ve(h,d,a,o);He(h,v);var y=o.subTree,m=y&&Ue(y),g=!1,b=h.type.getTransitionKey;if(b){var O=b();void 0===n?n=O:O!==n&&(n=O,g=!0)}if(m&&m.type!==Hn&&(!er(h,m)||g)){var _=Ve(m,d,a,o);if(He(m,_),"out-in"===p)return a.isLeaving=!0,_.afterLeave=function(){a.isLeaving=!1,!1!==o.update.active&&(o.effect.dirty=!0,o.update())},Be(c);"in-out"===p&&h.type!==Hn&&(_.delayLeave=function(e,t,n){De(a,m)[String(m.key)]=m,e[Ce]=function(){t(),e[Ce]=void 0,delete v.delayedLeave},v.delayedLeave=n})}return c}}}};function De(e,t){var n=e.leavingVNodes,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ve(e,t,n,r){var o=t.appear,a=t.mode,u=t.persisted,c=void 0!==u&&u,s=t.onBeforeEnter,l=t.onEnter,f=t.onAfterEnter,d=t.onEnterCancelled,p=t.onBeforeLeave,h=t.onLeave,v=t.onAfterLeave,y=t.onLeaveCancelled,m=t.onBeforeAppear,g=t.onAppear,O=t.onAfterAppear,_=t.onAppearCancelled,w=String(e.key),S=De(n,e),E=function(e,t){e&&b(e,r,9,t)},k=function(e,t){var n=t[1];E(e,t),Object(i.isArray)(e)?e.every((function(e){return e.length<=1}))&&n():e.length<=1&&n()},N={mode:a,persisted:c,beforeEnter:function(t){var r=s;if(!n.isMounted){if(!o)return;r=m||s}t[Ce]&&t[Ce](!0);var i=S[w];i&&er(e,i)&&i.el[Ce]&&i.el[Ce](),E(r,[t])},enter:function(e){var t=l,r=f,i=d;if(!n.isMounted){if(!o)return;t=g||l,r=O||f,i=_||d}var a=!1,u=e[Pe]=function(t){a||(a=!0,E(t?i:r,[e]),N.delayedLeave&&N.delayedLeave(),e[Pe]=void 0)};t?k(t,[e,u]):u()},leave:function(t,r){var i=String(e.key);if(t[Pe]&&t[Pe](!0),n.isUnmounting)return r();E(p,[t]);var o=!1,a=t[Ce]=function(n){o||(o=!0,r(),E(n?y:v,[t]),t[Ce]=void 0,S[i]===e&&delete S[i])};S[i]=e,h?k(h,[t,a]):a()},clone:function(e){return Ve(e,t,n,r)}};return N}function Be(e){if(Ge(e))return(e=sr(e)).children=null,e}function Ue(e){return Ge(e)?e.children?e.children[0]:void 0:e}function He(e,t){6&e.shapeFlag&&e.component?He(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $e(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=[],i=0,o=0;o1)for(var c=0;c1?o-1:0),u=1;u")})).join("\n"),i]);else{var s,l=["[Vue warn]: ".concat(e)].concat(a);i.length&&l.push.apply(l,["\n"].concat(c(v(i)))),(s=console).warn.apply(s,c(l))}Object(r.resetTracking)()}function p(){var e=f[f.length-1];if(!e)return[];for(var t=[];e;){var n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});var r=e.component&&e.component.parent;e=r&&r.vnode}return t}function v(e){var t=[];return e.forEach((function(e,n){var o,a,u,s,l,f,d,p,v,h;t.push.apply(t,c(0===n?[]:["\n"]).concat(c((l=(s=e).vnode,f=s.recurseCount,d=f>0?"... (".concat(f," recursive calls)"):"",p=!!l.component&&null==l.component.parent,v=" at <".concat(Yr(l.component,l.type,p)),h=">"+d,l.props?[v].concat(c((o=l.props,a=[],(u=Object.keys(o)).slice(0,3).forEach((function(e){a.push.apply(a,c(function e(t,n,o){return Object(i.isString)(n)?(n=JSON.stringify(n),o?n:["".concat(t,"=").concat(n)]):"number"==typeof n||"boolean"==typeof n||null==n?o?n:["".concat(t,"=").concat(n)]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),o?n:["".concat(t,"=Ref<"),n,">"]):Object(i.isFunction)(n)?["".concat(t,"=fn").concat(n.name?"<".concat(n.name,">"):"")]:(n=Object(r.toRaw)(n),o?n:["".concat(t,"="),n])}(e,o[e])))})),u.length>3&&a.push(" ..."),a)),[h]):[v+h]))))})),t}function h(e,t){}var y={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},m={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function g(e,t,n,r){var i;try{i=r?e.apply(void 0,c(r)):e()}catch(e){O(e,t,n)}return i}function b(e,t,n,r){if(Object(i.isFunction)(e)){var o=g(e,t,n,r);return o&&Object(i.isPromise)(o)&&o.catch((function(e){O(e,t,n)})),o}for(var a=[],u=0;u3&&void 0!==arguments[3])||arguments[3],i=t?t.vnode:null;if(t){for(var o=t.parent,a=t.proxy,u="https://vuejs.org/error-reference/#runtime-".concat(n);o;){var c=o.ec;if(c)for(var s=0;s>>1,i=E[r],o=F(i);o2&&void 0!==arguments[2]?arguments[2]:w?k+1:0;for(0;n2?r-2:0),a=2;a2&&void 0!==arguments[2]&&arguments[2],r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;var a=e.emits,u={},c=!1;if(__VUE_OPTIONS_API__&&!Object(i.isFunction)(e)){var s=function(e){var n=$(e,t,!0);n&&(c=!0,Object(i.extend)(u,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return a||c?(Object(i.isArray)(a)?a.forEach((function(e){return u[e]=null})):Object(i.extend)(u,a),Object(i.isObject)(e)&&r.set(e,u),u):(Object(i.isObject)(e)&&r.set(e,null),null)}function Y(e,t){return!(!e||!Object(i.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(i.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(i.hasOwn)(e,Object(i.hyphenate)(t))||Object(i.hasOwn)(e,t))}var W=null,z=null;function K(e){var t=W;return W=e,z=e&&e.type.__scopeId||null,t}function G(e){z=e}function q(){z=null}var J=function(e){return X};function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;if(!t)return e;if(e._n)return e;var n=function(){n._d&&qn(-1);var r,i=K(t);try{r=e.apply(void 0,arguments)}finally{K(i),n._d&&qn(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function Z(e){var t,n,r=e.type,o=e.vnode,u=e.proxy,c=e.withProxy,s=e.props,l=a(e.propsOptions,1)[0],f=e.slots,d=e.attrs,p=e.emit,v=e.render,h=e.renderCache,y=e.data,m=e.setupState,g=e.ctx,b=e.inheritAttrs,_=K(e);try{if(4&o.shapeFlag){var w=c||u,S=w;t=pr(v.call(S,w,h,s,m,y,g)),n=d}else{var E=r;0,t=pr(E.length>1?E(s,{attrs:d,slots:f,emit:p}):E(s,null)),n=r.props?d:ee(d)}}catch(n){Yn.length=0,O(n,e,1),t=ar(Hn)}var k=t;if(n&&!1!==b){var N=Object.keys(n),x=k.shapeFlag;if(N.length)if(7&x)l&&N.some(i.isModelListener)&&(n=te(n,l)),k=sr(k,n);else;}return o.dirs&&((k=sr(k)).dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&(k.transition=o.transition),t=k,K(_),t}function Q(e){for(var t,n=0;n3&&void 0!==arguments[3]&&arguments[3],r=W||Sr;if(r){var o=r.type;if("components"===e){var a=$r(o,!1);if(a&&(a===t||a===Object(i.camelize)(t)||a===Object(i.capitalize)(Object(i.camelize)(t))))return o}var u=se(r[e]||o[e],t)||se(r.appContext[e],t);return!u&&n?o:u}}function se(e,t){return e&&(e[t]||e[Object(i.camelize)(t)]||e[Object(i.capitalize)(Object(i.camelize)(t))])}var le=function(e){return e.__isSuspense},fe=0,de={name:"Suspense",__isSuspense:!0,process:function(e,t,n,r,i,o,a,u,c,s){if(null==e)!function(e,t,n,r,i,o,a,u,c){var s=c.p,l=(0,c.o.createElement)("div"),f=e.suspense=ve(e,i,r,t,l,n,o,a,u,c);s(null,f.pendingBranch=e.ssContent,l,null,r,f,o,a),f.deps>0?(pe(e,"onPending"),pe(e,"onFallback"),s(null,e.ssFallback,t,n,r,null,o,a),me(f,e.ssFallback)):f.resolve(!1,!0)}(t,n,r,i,o,a,u,c,s);else{if(o&&o.deps>0)return void(t.suspense=e.suspense);!function(e,t,n,r,i,o,a,u,c){var s=c.p,l=c.um,f=c.o.createElement,d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;var p=t.ssContent,v=t.ssFallback,h=d.activeBranch,y=d.pendingBranch,m=d.isInFallback,g=d.isHydrating;if(y)d.pendingBranch=p,er(p,y)?(s(y,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():m&&(g||(s(h,v,n,r,i,null,o,a,u),me(d,v)))):(d.pendingId=fe++,g?(d.isHydrating=!1,d.activeBranch=y):l(y,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=f("div"),m?(s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():(s(h,v,n,r,i,null,o,a,u),me(d,v))):h&&er(p,h)?(s(h,p,n,r,i,d,o,a,u),d.resolve(!0)):(s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0&&d.resolve()));else if(h&&er(p,h))s(h,p,n,r,i,d,o,a,u),me(d,p);else if(pe(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=fe++,s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0)d.resolve();else{var b=d.timeout,O=d.pendingId;b>0?setTimeout((function(){d.pendingId===O&&d.fallback(v)}),b):0===b&&d.fallback(v)}}(e,t,n,r,i,a,u,c,s)}},hydrate:function(e,t,n,r,i,o,a,u,c){var s=t.suspense=ve(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,u,!0),l=c(e,s.pendingBranch=t.ssContent,n,s,o,a);0===s.deps&&s.resolve(!1,!0);return l},create:ve,normalize:function(e){var t=e.shapeFlag,n=e.children,r=32&t;e.ssContent=he(r?n.default:n),e.ssFallback=r?he(n.fallback):ar(Hn)}};function pe(e,t){var n=e.props&&e.props[t];Object(i.isFunction)(n)&&n()}function ve(e,t,n,r,o,a,u,s,l,f){var d=arguments.length>10&&void 0!==arguments[10]&&arguments[10];var p,v=f.p,h=f.m,y=f.um,m=f.n,g=f.o,b=g.parentNode,_=g.remove,w=ge(e);w&&(null==t?void 0:t.pendingBranch)&&(p=t.pendingId,t.deps++);var S=e.props?Object(i.toNumber)(e.props.timeout):void 0;var E=a,k={vnode:e,parent:t,parentComponent:n,namespace:u,container:r,hiddenContainer:o,deps:0,pendingId:fe++,timeout:"number"==typeof S?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r=k.vnode,i=k.activeBranch,o=k.pendingBranch,u=k.pendingId,s=k.effects,l=k.parentComponent,f=k.container,d=!1;k.isHydrating?k.isHydrating=!1:e||((d=i&&o.transition&&"out-in"===o.transition.mode)&&(i.transition.afterLeave=function(){u===k.pendingId&&(h(o,f,a===E?m(i):a,0),R(s))}),i&&(b(i.el)!==k.hiddenContainer&&(a=m(i)),y(i,l,k,!0)),d||h(o,f,a,0)),me(k,o),k.pendingBranch=null,k.isInFallback=!1;for(var v=k.parent,g=!1;v;){if(v.pendingBranch){var O;(O=v.effects).push.apply(O,c(s)),g=!0;break}v=v.parent}g||d||R(s),k.effects=[],w&&t&&t.pendingBranch&&p===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),pe(r,"onResolve")},fallback:function(e){if(k.pendingBranch){var t=k.vnode,n=k.activeBranch,r=k.parentComponent,i=k.container,o=k.namespace;pe(t,"onFallback");var a=m(n),u=function(){k.isInFallback&&(v(null,e,i,a,r,null,o,s,l),me(k,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),k.isInFallback=!0,y(n,r,null,!0),c||u()}},move:function(e,t,n){k.activeBranch&&h(k.activeBranch,e,t,n),k.container=e},next:function(){return k.activeBranch&&m(k.activeBranch)},registerDep:function(e,t){var n=!!k.pendingBranch;n&&k.deps++;var r=e.vnode.el;e.asyncDep.catch((function(t){O(t,e,0)})).then((function(i){if(!e.isUnmounted&&!k.isUnmounted&&k.pendingId===e.suspenseId){e.asyncResolved=!0;var o=e.vnode;0,Lr(e,i,!1),r&&(o.el=r);var a=!r&&e.subTree.el;t(e,o,b(r||e.subTree.el),r?null:m(e.subTree),k,u,l),a&&_(a),re(e,o.el),n&&0==--k.deps&&k.resolve()}}))},unmount:function(e,t){k.isUnmounted=!0,k.activeBranch&&y(k.activeBranch,n,e,t),k.pendingBranch&&y(k.pendingBranch,n,e,t)}};return k}function he(e){var t;if(Object(i.isFunction)(e)){var n=Gn&&e._c;n&&(e._d=!1,zn()),e=e(),n&&(e._d=!0,t=Wn,Kn())}if(Object(i.isArray)(e)){var r=Q(e);0,e=r}return e=pr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((function(t){return t!==e}))),e}function ye(e,t){var n;t&&t.pendingBranch?Object(i.isArray)(e)?(n=t.effects).push.apply(n,c(e)):t.effects.push(e):R(e)}function me(e,t){e.activeBranch=t;for(var n=e.vnode,r=e.parentComponent,i=t.el;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,re(r,i))}function ge(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}var be=Symbol.for("v-scx"),Oe=function(){var e=rn(be);return e};function _e(e,t){return Ne(e,null,t)}function we(e,t){return Ne(e,null,{flush:"post"})}function Se(e,t){return Ne(e,null,{flush:"sync"})}var Ee={};function ke(e,t,n){return Ne(e,t,n)}function Ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.EMPTY_OBJ,o=n.immediate,a=n.deep,u=n.flush,c=n.once;n.onTrack,n.onTrigger;if(t&&c){var s=t;t=function(){s.apply(void 0,arguments),x()}}var l,f,d=Sr,p=function(e){return!0===a?e:je(e,!1===a?1:void 0)},v=!1,h=!1;if(Object(r.isRef)(e)?(l=function(){return e.value},v=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(l=function(){return p(e)},v=!0):Object(i.isArray)(e)?(h=!0,v=e.some((function(e){return Object(r.isReactive)(e)||Object(r.isShallow)(e)})),l=function(){return e.map((function(e){return Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?p(e):Object(i.isFunction)(e)?g(e,d,2):void 0}))}):l=Object(i.isFunction)(e)?t?function(){return g(e,d,2)}:function(){return f&&f(),b(e,d,3,[O])}:i.NOOP,t&&a){var y=l;l=function(){return je(y())}}var m,O=function(e){f=k.onStop=function(){g(e,d,4),f=k.onStop=void 0}};if(Cr){if(O=i.NOOP,t?o&&b(t,d,3,[l(),h?[]:void 0,O]):l(),"sync"!==u)return i.NOOP;var _=Oe();m=_.__watcherHandles||(_.__watcherHandles=[])}var w,S=h?new Array(e.length).fill(Ee):Ee,E=function(){if(k.active&&k.dirty)if(t){var e=k.run();(a||v||(h?e.some((function(e,t){return Object(i.hasChanged)(e,S[t])})):Object(i.hasChanged)(e,S)))&&(f&&f(),b(t,d,3,[e,S===Ee?void 0:h&&S[0]===Ee?[]:S,O]),S=e)}else k.run()};E.allowRecurse=!!t,"sync"===u?w=E:"post"===u?w=function(){return En(E,d&&d.suspense)}:(E.pre=!0,d&&(E.id=d.uid),w=function(){return C(E)});var k=new r.ReactiveEffect(l,i.NOOP,w),N=Object(r.getCurrentScope)(),x=function(){k.stop(),N&&Object(i.remove)(N.effects,k)};return t?o?E():S=k.run():"post"===u?En(k.run.bind(k),d&&d.suspense):k.run(),m&&m.push(x),x}function xe(e,t,n){var r,o=this.proxy,a=Object(i.isString)(e)?e.includes(".")?Te(o,e):function(){return o[e]}:e.bind(o,o);Object(i.isFunction)(t)?r=t:(r=t.handler,n=t);var u=xr(this),c=Ne(a,r.bind(o),n);return u(),c}function Te(e,t){var n=t.split(".");return function(){for(var t=e,r=0;r2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0;if(!Object(i.isObject)(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),Object(r.isRef)(e))je(e.value,t,n,o);else if(Object(i.isArray)(e))for(var a=0;a1){var s,l=u(t);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(f.type!==Hn){0,c=f,!0;break}}}catch(e){l.e(e)}finally{l.f()}}var d=Object(r.toRaw)(e),p=d.mode;if(a.isLeaving)return Be(c);var v=Ue(c);if(!v)return Be(c);var h=Ve(v,d,a,o);He(v,h);var y=o.subTree,m=y&&Ue(y),g=!1,b=v.type.getTransitionKey;if(b){var O=b();void 0===n?n=O:O!==n&&(n=O,g=!0)}if(m&&m.type!==Hn&&(!er(v,m)||g)){var _=Ve(m,d,a,o);if(He(m,_),"out-in"===p)return a.isLeaving=!0,_.afterLeave=function(){a.isLeaving=!1,!1!==o.update.active&&(o.effect.dirty=!0,o.update())},Be(c);"in-out"===p&&v.type!==Hn&&(_.delayLeave=function(e,t,n){De(a,m)[String(m.key)]=m,e[Ce]=function(){t(),e[Ce]=void 0,delete h.delayedLeave},h.delayedLeave=n})}return c}}}};function De(e,t){var n=e.leavingVNodes,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ve(e,t,n,r){var o=t.appear,a=t.mode,u=t.persisted,c=void 0!==u&&u,s=t.onBeforeEnter,l=t.onEnter,f=t.onAfterEnter,d=t.onEnterCancelled,p=t.onBeforeLeave,v=t.onLeave,h=t.onAfterLeave,y=t.onLeaveCancelled,m=t.onBeforeAppear,g=t.onAppear,O=t.onAfterAppear,_=t.onAppearCancelled,w=String(e.key),S=De(n,e),E=function(e,t){e&&b(e,r,9,t)},k=function(e,t){var n=t[1];E(e,t),Object(i.isArray)(e)?e.every((function(e){return e.length<=1}))&&n():e.length<=1&&n()},N={mode:a,persisted:c,beforeEnter:function(t){var r=s;if(!n.isMounted){if(!o)return;r=m||s}t[Ce]&&t[Ce](!0);var i=S[w];i&&er(e,i)&&i.el[Ce]&&i.el[Ce](),E(r,[t])},enter:function(e){var t=l,r=f,i=d;if(!n.isMounted){if(!o)return;t=g||l,r=O||f,i=_||d}var a=!1,u=e[Pe]=function(t){a||(a=!0,E(t?i:r,[e]),N.delayedLeave&&N.delayedLeave(),e[Pe]=void 0)};t?k(t,[e,u]):u()},leave:function(t,r){var i=String(e.key);if(t[Pe]&&t[Pe](!0),n.isUnmounting)return r();E(p,[t]);var o=!1,a=t[Ce]=function(n){o||(o=!0,r(),E(n?y:h,[t]),t[Ce]=void 0,S[i]===e&&delete S[i])};S[i]=e,v?k(v,[t,a]):a()},clone:function(e){return Ve(e,t,n,r)}};return N}function Be(e){if(Ge(e))return(e=sr(e)).children=null,e}function Ue(e){return Ge(e)?e.children?e.children[0]:void 0:e}function He(e,t){6&e.shapeFlag&&e.component?He(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $e(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=[],i=0,o=0;o1)for(var c=0;c1)return s=null,t;if(!(Qn(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;var i=nt(r),o=i.type,a=$r(We(i)?i.type.__asyncResolved||{}:o),l=e.include,f=e.exclude,d=e.max;if(l&&(!a||!Je(l,a))||f&&a&&Je(f,a))return s=i,r;var p=null==i.key?o:i.key,h=u.get(p);return i.el&&(i=sr(i),128&r.shapeFlag&&(r.ssContent=i)),b=p,h?(i.el=h.el,i.component=h.component,i.transition&&He(i,i.transition),i.shapeFlag|=512,c.delete(p),c.add(p)):(c.add(p),d&&c.size>parseInt(d,10)&&g(c.values().next().value)),i.shapeFlag|=256,s=i,le(r.type)?r:i}}};function Je(e,t){return Object(i.isArray)(e)?e.some((function(e){return Je(e,t)})):Object(i.isString)(e)?e.split(",").includes(t):!!Object(i.isRegExp)(e)&&e.test(t)}function Xe(e,t){Qe(e,"a",t)}function Ze(e,t){Qe(e,"da",t)}function Qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(rt(t,r,n),n)for(var i=n.parent;i&&i.parent;)Ge(i.parent.vnode)&&et(r,t,n,i),i=i.parent}function et(e,t,n,r){var o=rt(t,e,r,!0);lt((function(){Object(i.remove)(r[t],o)}),n)}function tt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function nt(e){return 128&e.shapeFlag?e.ssContent:e}function rt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=function(){if(!n.isUnmounted){Object(r.pauseTracking)();for(var i=xr(n),o=arguments.length,a=new Array(o),u=0;u1&&void 0!==arguments[1]?arguments[1]:Sr;return(!Cr||"sp"===e)&&rt(e,(function(){return t.apply(void 0,arguments)}),n)}},ot=it("bm"),at=it("m"),ut=it("bu"),ct=it("u"),st=it("bum"),lt=it("um"),ft=it("sp"),dt=it("rtg"),pt=it("rtc");function ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sr;rt("ec",e,t)}function vt(e,t,n,r){var o,a=n&&n[r];if(Object(i.isArray)(e)||Object(i.isString)(e)){o=new Array(e.length);for(var u=0,c=e.length;u2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(W.isCE||W.parent&&We(W.parent)&&W.parent.isCE)return"default"!==t&&(n.name=t),ar("slot",n,r&&r());var o=e[t];o&&o._c&&(o._d=!1),zn();var a=o&>(o(n)),u=Zn(Bn,{key:n.key||a&&a.key||"_".concat(t)},a||(r?r():[]),a&&1===e._?64:-2);return!i&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function gt(e){return e.some((function(e){return!Qn(e)||e.type!==Hn&&!(e.type===Bn&&!gt(e.children))}))?e:null}function bt(e,t){var n={};for(var r in e)n[t&&/[A-Z]/.test(r)?"on:".concat(r):Object(i.toHandlerKey)(r)]=e[r];return n}var Ot=function e(t){return t?jr(t)?Br(t)||t.proxy:e(t.parent):null},_t=Object(i.extend)(Object.create(null),{$:function(e){return e},$el:function(e){return e.vnode.el},$data:function(e){return e.data},$props:function(e){return e.props},$attrs:function(e){return e.attrs},$slots:function(e){return e.slots},$refs:function(e){return e.refs},$parent:function(e){return Ot(e.parent)},$root:function(e){return Ot(e.root)},$emit:function(e){return e.emit},$options:function(e){return __VUE_OPTIONS_API__?Yt(e):e.type},$forceUpdate:function(e){return e.f||(e.f=function(){e.effect.dirty=!0,C(e.update)})},$nextTick:function(e){return e.n||(e.n=I.bind(e.proxy))},$watch:function(e){return __VUE_OPTIONS_API__?xe.bind(e):i.NOOP}}),wt=function(e,t){return e!==i.EMPTY_OBJ&&!e.__isScriptSetup&&Object(i.hasOwn)(e,t)},St={get:function(e,t){var n,o=e._,a=o.ctx,u=o.setupState,c=o.data,s=o.props,l=o.accessCache,f=o.type,d=o.appContext;if("$"!==t[0]){var p=l[t];if(void 0!==p)switch(p){case 1:return u[t];case 2:return c[t];case 4:return a[t];case 3:return s[t]}else{if(wt(u,t))return l[t]=1,u[t];if(c!==i.EMPTY_OBJ&&Object(i.hasOwn)(c,t))return l[t]=2,c[t];if((n=o.propsOptions[0])&&Object(i.hasOwn)(n,t))return l[t]=3,s[t];if(a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t))return l[t]=4,a[t];__VUE_OPTIONS_API__&&!Bt||(l[t]=0)}}var h,v,y=_t[t];return y?("$attrs"===t&&Object(r.track)(o,"get",t),y(o)):(h=f.__cssModules)&&(h=h[t])?h:a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t)?(l[t]=4,a[t]):(v=d.config.globalProperties,Object(i.hasOwn)(v,t)?v[t]:void 0)},set:function(e,t,n){var r=e._,o=r.data,a=r.setupState,u=r.ctx;return wt(a,t)?(a[t]=n,!0):o!==i.EMPTY_OBJ&&Object(i.hasOwn)(o,t)?(o[t]=n,!0):!Object(i.hasOwn)(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(u[t]=n,!0))},has:function(e,t){var n,r=e._,o=r.data,a=r.setupState,u=r.accessCache,c=r.ctx,s=r.appContext,l=r.propsOptions;return!!u[t]||o!==i.EMPTY_OBJ&&Object(i.hasOwn)(o,t)||wt(a,t)||(n=l[0])&&Object(i.hasOwn)(n,t)||Object(i.hasOwn)(c,t)||Object(i.hasOwn)(_t,t)||Object(i.hasOwn)(s.config.globalProperties,t)},defineProperty:function(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(i.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};var Et=Object(i.extend)({},St,{get:function(e,t){if(t!==Symbol.unscopables)return St.get(e,t,e)},has:function(e,t){var n="_"!==t[0]&&!Object(i.isGloballyAllowed)(t);return n}});function kt(){return null}function Nt(){return null}function xt(e){0}function Tt(e){0}function jt(){return null}function At(){0}function It(e,t){return null}function Ct(){return Rt().slots}function Pt(){return Rt().attrs}function Rt(){var e=Er();return e.setupContext||(e.setupContext=Vr(e))}function Lt(e){return Object(i.isArray)(e)?e.reduce((function(e,t){return e[t]=null,e}),{}):e}function Mt(e,t){var n=Lt(e);for(var r in t)if(!r.startsWith("__skip")){var o=n[r];o?Object(i.isArray)(o)||Object(i.isFunction)(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(o=n[r]={default:t[r]}),o&&t["__skip_".concat(r)]&&(o.skipFactory=!0)}return n}function Ft(e,t){return e&&t?Object(i.isArray)(e)&&Object(i.isArray)(t)?e.concat(t):Object(i.extend)({},Lt(e),Lt(t)):e||t}function Dt(e,t){var n={},r=function(r){t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[r]}})};for(var i in e)r(i);return n}function Vt(e){var t=Er();var n=e();return Tr(),Object(i.isPromise)(n)&&(n=n.catch((function(e){throw xr(t),e}))),[n,function(){return xr(t)}]}var Bt=!0;function Ut(e){var t=Yt(e),n=e.proxy,o=e.ctx;Bt=!1,t.beforeCreate&&Ht(t.beforeCreate,e,"bc");var a=t.data,u=t.computed,c=t.methods,s=t.watch,l=t.provide,f=t.inject,d=t.created,p=t.beforeMount,h=t.mounted,v=t.beforeUpdate,y=t.updated,m=t.activated,g=t.deactivated,b=(t.beforeDestroy,t.beforeUnmount),O=(t.destroyed,t.unmounted),_=t.render,w=t.renderTracked,S=t.renderTriggered,E=t.errorCaptured,k=t.serverPrefetch,N=t.expose,x=t.inheritAttrs,T=t.components,j=t.directives;t.filters;if(f&&function(e,t){arguments.length>2&&void 0!==arguments[2]||i.NOOP;Object(i.isArray)(e)&&(e=Gt(e));var n=function(){var n,a=e[o];n=Object(i.isObject)(a)?"default"in a?rn(a.from||o,a.default,!0):rn(a.from||o):rn(a),Object(r.isRef)(n)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:function(){return n.value},set:function(e){return n.value=e}}):t[o]=n};for(var o in e)n()}(f,o,null),c)for(var A in c){var I=c[A];Object(i.isFunction)(I)&&(o[A]=I.bind(n))}if(a){0;var C=a.call(n,n);if(Object(i.isObject)(C))e.data=Object(r.reactive)(C);else;}if(Bt=!0,u){var P=function(e){var t=u[e],r=Object(i.isFunction)(t)?t.bind(n,n):Object(i.isFunction)(t.get)?t.get.bind(n,n):i.NOOP;var a=!Object(i.isFunction)(t)&&Object(i.isFunction)(t.set)?t.set.bind(n):i.NOOP,c=zr({get:r,set:a});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:function(){return c.value},set:function(e){return c.value=e}})};for(var R in u)P(R)}if(s)for(var L in s)$t(s[L],o,n,L);if(l){var M=Object(i.isFunction)(l)?l.call(n):l;Reflect.ownKeys(M).forEach((function(e){nn(e,M[e])}))}function F(e,t){Object(i.isArray)(t)?t.forEach((function(t){return e(t.bind(n))})):t&&e(t.bind(n))}if(d&&Ht(d,e,"c"),F(ot,p),F(at,h),F(ut,v),F(ct,y),F(Xe,m),F(Ze,g),F(ht,E),F(pt,w),F(dt,S),F(st,b),F(lt,O),F(ft,k),Object(i.isArray)(N))if(N.length){var D=e.exposed||(e.exposed={});N.forEach((function(e){Object.defineProperty(D,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})}))}else e.exposed||(e.exposed={});_&&e.render===i.NOOP&&(e.render=_),null!=x&&(e.inheritAttrs=x),T&&(e.components=T),j&&(e.directives=j)}function Ht(e,t,n){b(Object(i.isArray)(e)?e.map((function(e){return e.bind(t.proxy)})):e.bind(t.proxy),t,n)}function $t(e,t,n,r){var o=r.includes(".")?Te(n,r):function(){return n[r]};if(Object(i.isString)(e)){var a=t[e];Object(i.isFunction)(a)&&ke(o,a)}else if(Object(i.isFunction)(e))ke(o,e.bind(n));else if(Object(i.isObject)(e))if(Object(i.isArray)(e))e.forEach((function(e){return $t(e,t,n,r)}));else{var u=Object(i.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(i.isFunction)(u)&&ke(o,u,e)}else 0}function Yt(e){var t,n=e.type,r=n.mixins,o=n.extends,a=e.appContext,u=a.mixins,c=a.optionsCache,s=a.config.optionMergeStrategies,l=c.get(n);return l?t=l:u.length||r||o?(t={},u.length&&u.forEach((function(e){return Wt(t,e,s,!0)})),Wt(t,n,s)):t=n,Object(i.isObject)(n)&&c.set(n,t),t}function Wt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.mixins,o=t.extends;for(var a in o&&Wt(e,o,n,!0),i&&i.forEach((function(t){return Wt(e,t,n,!0)})),t)if(r&&"expose"===a);else{var u=zt[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var zt={data:Kt,props:Xt,emits:Xt,methods:Jt,computed:Jt,beforeCreate:qt,created:qt,beforeMount:qt,mounted:qt,beforeUpdate:qt,updated:qt,beforeDestroy:qt,beforeUnmount:qt,destroyed:qt,unmounted:qt,activated:qt,deactivated:qt,errorCaptured:qt,serverPrefetch:qt,components:Jt,directives:Jt,watch:function(e,t){if(!e)return t;if(!t)return e;var n=Object(i.extend)(Object.create(null),e);for(var r in t)n[r]=qt(e[r],t[r]);return n},provide:Kt,inject:function(e,t){return Jt(Gt(e),Gt(t))}};function Kt(e,t){return t?e?function(){return Object(i.extend)(Object(i.isFunction)(e)?e.call(this,this):e,Object(i.isFunction)(t)?t.call(this,this):t)}:t:e}function Gt(e){if(Object(i.isArray)(e)){for(var t={},n=0;n1&&void 0!==arguments[1]?arguments[1]:null;Object(i.isFunction)(n)||(n=Object(i.extend)({},n)),null==r||Object(i.isObject)(r)||(r=null);var o=Zt(),a=new WeakSet,u=!1,c=o.app={_uid:Qt++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Zr,get config(){return o.config},set config(e){0},use:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],r=Sr||W;if(r||tn){var o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:tn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Object(i.isFunction)(t)?t.call(r&&r.proxy):t}else 0}function on(){return!!(Sr||W||tn)}function an(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a={},u={};for(var c in Object(i.def)(u,nr,1),e.propsDefaults=Object.create(null),un(e,t,a,u),e.propsOptions[0])c in a||(a[c]=void 0);n?e.props=o?a:Object(r.shallowReactive)(a):e.type.props?e.props=a:e.props=u,e.attrs=u}function un(e,t,n,o){var u,c=a(e.propsOptions,2),s=c[0],l=c[1],f=!1;if(t)for(var d in t)if(!Object(i.isReservedProp)(d)){var p=t[d],h=void 0;s&&Object(i.hasOwn)(s,h=Object(i.camelize)(d))?l&&l.includes(h)?(u||(u={}))[h]=p:n[h]=p:Y(e.emitsOptions,d)||d in o&&p===o[d]||(o[d]=p,f=!0)}if(l)for(var v=Object(r.toRaw)(n),y=u||i.EMPTY_OBJ,m=0;m2&&void 0!==arguments[2]&&arguments[2],r=t.propsCache,o=r.get(e);if(o)return o;var u=e.props,s={},l=[],f=!1;if(__VUE_OPTIONS_API__&&!Object(i.isFunction)(e)){var d=function(e){f=!0;var n=a(sn(e,t,!0),2),r=n[0],o=n[1];Object(i.extend)(s,r),o&&l.push.apply(l,c(o))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!u&&!f)return Object(i.isObject)(e)&&r.set(e,i.EMPTY_ARR),i.EMPTY_ARR;if(Object(i.isArray)(u))for(var p=0;p-1,g[1]=O<0||b-1||Object(i.hasOwn)(g,"default"))&&l.push(y)}}}var _=[s,l];return Object(i.isObject)(e)&&r.set(e,_),_}function ln(e){return"$"!==e[0]}function fn(e){var t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function dn(e,t){return fn(e)===fn(t)}function pn(e,t){return Object(i.isArray)(t)?t.findIndex((function(t){return dn(t,e)})):Object(i.isFunction)(t)&&dn(t,e)?0:-1}var hn=function(e){return"_"===e[0]||"$stable"===e},vn=function(e){return Object(i.isArray)(e)?e.map(pr):[pr(e)]},yn=function(e,t,n){var r=e._ctx,o=function(){if(hn(a))return 1;var n=e[a];if(Object(i.isFunction)(n))t[a]=function(e,t,n){if(t._n)return t;var r=X((function(){return vn(t.apply(void 0,arguments))}),n);return r._c=!1,r}(0,n,r);else if(null!=n){0;var o=vn(n);t[a]=function(){return o}}};for(var a in e)o()},mn=function(e,t){var n=vn(t);e.slots.default=function(){return n}},gn=function(e,t){if(32&e.vnode.shapeFlag){var n=t._;n?(e.slots=Object(r.toRaw)(t),Object(i.def)(t,"_",n)):yn(t,e.slots={})}else e.slots={},t&&mn(e,t);Object(i.def)(e.slots,nr,1)};function bn(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Object(i.isArray)(e))e.forEach((function(e,r){return bn(e,t&&(Object(i.isArray)(t)?t[r]:t),n,o,a)}));else if(!We(o)||a){var u=4&o.shapeFlag?Br(o.component)||o.component.proxy:o.el,c=a?null:u,s=e.i,l=e.r;0;var f=t&&t.r,d=s.refs===i.EMPTY_OBJ?s.refs={}:s.refs,p=s.setupState;if(null!=f&&f!==l&&(Object(i.isString)(f)?(d[f]=null,Object(i.hasOwn)(p,f)&&(p[f]=null)):Object(r.isRef)(f)&&(f.value=null)),Object(i.isFunction)(l))g(l,s,12,[c,d]);else{var h=Object(i.isString)(l),v=Object(r.isRef)(l),y=e.f;if(h||v){var m=function(){if(y){var t=h?Object(i.hasOwn)(p,l)?p[l]:d[l]:l.value;a?Object(i.isArray)(t)&&Object(i.remove)(t,u):Object(i.isArray)(t)?t.includes(u)||t.push(u):h?(d[l]=[u],Object(i.hasOwn)(p,l)&&(p[l]=d[l])):(l.value=[u],e.k&&(d[e.k]=l.value))}else h?(d[l]=c,Object(i.hasOwn)(p,l)&&(p[l]=c)):v&&(l.value=c,e.k&&(d[e.k]=c))};a||y?m():(m.id=-1,En(m,n))}else 0}}}var On=!1,_n=function(e){return function(e){return e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName}(e)?"svg":function(e){return e.namespaceURI.includes("MathML")}(e)?"mathml":void 0},wn=function(e){return 8===e.nodeType};function Sn(e){var t=e.mt,n=e.p,r=e.o,a=r.patchProp,u=r.createText,c=r.nextSibling,s=r.parentNode,l=r.remove,f=r.insert,p=r.createComment,h=function n(r,i,a,l,p){var h=arguments.length>5&&void 0!==arguments[5]&&arguments[5],w=wn(r)&&"["===r.data,S=function(){return g(r,i,a,l,p,w)},E=i.type,k=i.ref,N=i.shapeFlag,x=i.patchFlag,T=r.nodeType;i.el=r,-2===x&&(h=!1,i.dynamicChildren=null);var j=null;switch(E){case Un:3!==T?""===i.children?(f(i.el=u(""),s(r),r),j=r):j=S():(r.data!==i.children&&(On=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&d("Hydration text mismatch in",r.parentNode,"\n - rendered on server: ".concat(JSON.stringify(r.data),"\n - expected on client: ").concat(JSON.stringify(i.children))),r.data=i.children),j=c(r));break;case Hn:_(r)?(j=c(r),O(i.el=r.content.firstChild,r,a)):j=8!==T||w?S():c(r);break;case $n:if(w&&(T=(r=c(r)).nodeType),1===T||3===T){j=r;for(var A=!i.children.length,I=0;I1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]",r=0;e;)if((e=c(e))&&wn(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return c(e);r--}return e},O=function(e,t,n){var r=t.parentNode;r&&r.replaceChild(e,t);for(var i=n;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},_=function(e){return 1===e.nodeType&&"template"===e.tagName.toLowerCase()};return[function(e,t){if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&d("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),M(),void(t._vnode=e);On=!1,h(t.firstChild,e,null,null,null),M(),t._vnode=e,On&&console.error("Hydration completed but contains mismatches.")},h]}var En=ye;function kn(e){return xn(e)}function Nn(e){return xn(e,Sn)}function xn(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(i.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(i.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),Object(i.getGlobalThis)().__VUE__=!0;var n,o,u=e.insert,c=e.remove,s=e.patchProp,l=e.createElement,f=e.createText,d=e.createComment,p=e.setText,h=e.setElementText,v=e.parentNode,y=e.nextSibling,m=e.setScopeId,g=void 0===m?i.NOOP:m,b=e.insertStaticContent,O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!er(e,t)&&(r=te(e),q(e,i,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);var s=t.type,l=t.ref,f=t.shapeFlag;switch(s){case Un:_(e,t,n,r);break;case Hn:w(e,t,n,r);break;case $n:null==e&&S(t,n,r,a);break;case Bn:D(e,t,n,r,i,o,a,u,c);break;default:1&f?T(e,t,n,r,i,o,a,u,c):6&f?V(e,t,n,r,i,o,a,u,c):(64&f||128&f)&&s.process(e,t,n,r,i,o,a,u,c,ae)}null!=l&&i&&bn(l,e&&e.ref,o,t||e,!t)}},_=function(e,t,n,r){if(null==e)u(t.el=f(t.children),n,r);else{var i=t.el=e.el;t.children!==e.children&&p(i,t.children)}},w=function(e,t,n,r){null==e?u(t.el=d(t.children||""),n,r):t.el=e.el},S=function(e,t,n,r){var i=a(b(e.children,t,n,r,e.el,e.anchor),2);e.el=i[0],e.anchor=i[1]},N=function(e,t,n){for(var r,i=e.el,o=e.anchor;i&&i!==o;)r=y(i),u(i,t,n),i=r;u(o,t,n)},x=function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=y(n),c(n),n=t;c(r)},T=function(e,t,n,r,i,o,a,u,c){"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?j(t,n,r,i,o,a,u,c):P(e,t,i,o,a,u,c)},j=function(e,t,n,r,o,a,c,f){var d,p,v=e.props,y=e.shapeFlag,m=e.transition,g=e.dirs;if(d=e.el=l(e.type,a,v&&v.is,v),8&y?h(d,e.children):16&y&&I(e.children,d,null,r,o,Tn(e,a),c,f),g&&Ie(e,null,r,"created"),A(d,e,e.scopeId,c,r),v){for(var b in v)"value"===b||Object(i.isReservedProp)(b)||s(d,b,null,v[b],a,e.children,r,o,ee);"value"in v&&s(d,"value",null,v.value,a),(p=v.onVnodeBeforeMount)&&mr(p,r,e)}g&&Ie(e,null,r,"beforeMount");var O=An(o,m);O&&m.beforeEnter(d),u(d,t,n),((p=v&&v.onVnodeMounted)||O||g)&&En((function(){p&&mr(p,r,e),O&&m.enter(d),g&&Ie(e,null,r,"mounted")}),o)},A=function e(t,n,r,i,o){if(r&&g(t,r),i)for(var a=0;a8&&void 0!==arguments[8]?arguments[8]:0,s=c;s0){if(16&l)F(c,t,v,y,n,r,o);else if(2&l&&v.class!==y.class&&s(c,"class",null,y.class,o),4&l&&s(c,"style",v.style,y.style,o),8&l)for(var m=t.dynamicProps,g=0;g0&&64&p&&h&&e.dynamicChildren?(R(e.dynamicChildren,h,n,i,o,a,c),(null!=t.key||i&&t===i.subTree)&&In(e,t,!0)):W(e,t,n,d,i,o,a,c,s)},V=function(e,t,n,r,i,o,a,u,c){t.slotScopeIds=u,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,c):B(t,n,r,i,o,a,c):U(e,t,c)},B=function(e,t,n,r,i,o,a){var u=e.component=Or(e,r,i);if(Ge(e)&&(u.ctx.renderer=ae),Pr(u),u.asyncDep){if(i&&i.registerDep(u,H),!e.el){var c=u.subTree=ar(Hn);w(null,c,t,n)}}else H(u,e,t,n,i,o,a)},U=function(e,t,n){var r,i,o=t.component=e.component;if(function(e,t,n){var r=e.props,i=e.children,o=e.component,a=t.props,u=t.children,c=t.patchFlag,s=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!u||u&&u.$stable)||r!==a&&(r?!a||ne(r,a,s):!!a);if(1024&c)return!0;if(16&c)return r?ne(r,a,s):!!a;if(8&c)for(var l=t.dynamicProps,f=0;fk&&E.splice(i,1),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},H=function(e,t,n,a,u,c,s){var l=e.effect=new r.ReactiveEffect((function r(){if(e.isMounted){var l=e.next,f=e.bu,d=e.u,p=e.parent,h=e.vnode,y=function e(t){var n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(y)return l&&(l.el=h.el,$(e,l,s)),void y.asyncDep.then((function(){e.isUnmounted||r()}));var m,g=l;0,jn(e,!1),l?(l.el=h.el,$(e,l,s)):l=h,f&&Object(i.invokeArrayFns)(f),(m=l.props&&l.props.onVnodeBeforeUpdate)&&mr(m,p,l,h),jn(e,!0);var b=Z(e);0;var _=e.subTree;e.subTree=b,O(_,b,v(_.el),te(_),e,u,c),l.el=b.el,null===g&&re(e,b.el),d&&En(d,u),(m=l.props&&l.props.onVnodeUpdated)&&En((function(){return mr(m,p,l,h)}),u)}else{var w,S=t,E=S.el,k=S.props,N=e.bm,x=e.m,T=e.parent,j=We(t);if(jn(e,!1),N&&Object(i.invokeArrayFns)(N),!j&&(w=k&&k.onVnodeBeforeMount)&&mr(w,T,t),jn(e,!0),E&&o){var A=function(){e.subTree=Z(e),o(E,e.subTree,e,u,null)};j?t.type.__asyncLoader().then((function(){return!e.isUnmounted&&A()})):A()}else{0;var I=e.subTree=Z(e);0,O(null,I,n,a,e,u,c),t.el=I.el}if(x&&En(x,u),!j&&(w=k&&k.onVnodeMounted)){var C=t;En((function(){return mr(w,T,C)}),u)}(256&t.shapeFlag||T&&We(T.vnode)&&256&T.vnode.shapeFlag)&&e.a&&En(e.a,u),e.isMounted=!0,t=n=a=null}}),i.NOOP,(function(){return C(f)}),e.scope),f=e.update=function(){l.dirty&&l.run()};f.id=e.uid,jn(e,!0),f()},$=function(e,t,n){t.component=e;var o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){var u=e.props,c=e.attrs,s=e.vnode.patchFlag,l=Object(r.toRaw)(u),f=a(e.propsOptions,1)[0],d=!1;if(!(o||s>0)||16&s){var p;for(var h in un(e,t,u,c)&&(d=!0),l)t&&(Object(i.hasOwn)(t,h)||(p=Object(i.hyphenate)(h))!==h&&Object(i.hasOwn)(t,p))||(f?!n||void 0===n[h]&&void 0===n[p]||(u[h]=cn(f,l,h,void 0,e,!0)):delete u[h]);if(c!==l)for(var v in c)t&&Object(i.hasOwn)(t,v)||(delete c[v],d=!0)}else if(8&s)for(var y=e.vnode.dynamicProps,m=0;m8&&void 0!==arguments[8]&&arguments[8],s=e&&e.children,l=e?e.shapeFlag:0,f=t.children,d=t.patchFlag,p=t.shapeFlag;if(d>0){if(128&d)return void K(s,f,n,r,i,o,a,u,c);if(256&d)return void z(s,f,n,r,i,o,a,u,c)}8&p?(16&l&&ee(s,i,o),f!==s&&h(n,f)):16&l?16&p?K(s,f,n,r,i,o,a,u,c):ee(s,i,o,!0):(8&l&&h(n,""),16&p&&I(f,n,r,i,o,a,u,c))},z=function(e,t,n,r,o,a,u,c,s){e=e||i.EMPTY_ARR,t=t||i.EMPTY_ARR;var l,f=e.length,d=t.length,p=Math.min(f,d);for(l=0;ld?ee(e,o,a,!0,!1,p):I(t,n,r,o,a,u,c,s,p)},K=function(e,t,n,r,o,a,u,c,s){for(var l=0,f=t.length,d=e.length-1,p=f-1;l<=d&&l<=p;){var h=e[l],v=t[l]=s?hr(t[l]):pr(t[l]);if(!er(h,v))break;O(h,v,n,null,o,a,u,c,s),l++}for(;l<=d&&l<=p;){var y=e[d],m=t[p]=s?hr(t[p]):pr(t[p]);if(!er(y,m))break;O(y,m,n,null,o,a,u,c,s),d--,p--}if(l>d){if(l<=p)for(var g=p+1,b=gp)for(;l<=d;)q(e[l],o,a,!0),l++;else{var _,w=l,S=l,E=new Map;for(l=S;l<=p;l++){var k=t[l]=s?hr(t[l]):pr(t[l]);null!=k.key&&E.set(k.key,l)}var N=0,x=p-S+1,T=!1,j=0,A=new Array(x);for(l=0;l=x)q(I,o,a,!0);else{var C=void 0;if(null!=I.key)C=E.get(I.key);else for(_=S;_<=p;_++)if(0===A[_-S]&&er(I,t[_])){C=_;break}void 0===C?q(I,o,a,!0):(A[C-S]=l+1,C>=j?j=C:T=!0,O(I,t[C],n,null,o,a,u,c,s),N++)}}var P=T?function(e){var t,n,r,i,o,a=e.slice(),u=[0],c=e.length;for(t=0;t>1]]0&&(a[t]=u[r-1]),u[r]=t)}}r=u.length,i=u[r-1];for(;r-- >0;)u[r]=i,i=a[i];return u}(A):i.EMPTY_ARR;for(_=P.length-1,l=x-1;l>=0;l--){var R=S+l,L=t[R],M=R+14&&void 0!==arguments[4]?arguments[4]:null,a=t.el,c=t.type,s=t.transition,l=t.children,f=t.shapeFlag;if(6&f)e(t.component.subTree,n,r,i);else if(128&f)t.suspense.move(n,r,i);else if(64&f)c.move(t,n,r,ae);else if(c!==Bn)if(c!==$n){var d=2!==i&&1&f&&s;if(d)if(0===i)s.beforeEnter(a),u(a,n,r),En((function(){return s.enter(a)}),o);else{var p=s.leave,h=s.delayLeave,v=s.afterLeave,y=function(){return u(a,n,r)},m=function(){p(a,(function(){y(),v&&v()}))};h?h(a,y,m):m()}else u(a,n,r)}else N(t,n,r);else{u(a,n,r);for(var g=0;g3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=e.type,a=e.props,u=e.ref,c=e.children,s=e.dynamicChildren,l=e.shapeFlag,f=e.patchFlag,d=e.dirs;if(null!=u&&bn(u,null,n,e,!0),256&l)t.ctx.deactivate(e);else{var p,h=1&l&&d,v=!We(e);if(v&&(p=a&&a.onVnodeBeforeUnmount)&&mr(p,t,e),6&l)Q(e.component,n,r);else{if(128&l)return void e.suspense.unmount(n,r);h&&Ie(e,null,t,"beforeUnmount"),64&l?e.type.remove(e,t,n,i,ae,r):s&&(o!==Bn||f>0&&64&f)?ee(s,t,n,!1,!0):(o===Bn&&384&f||!i&&16&l)&&ee(c,t,n),r&&J(e)}(v&&(p=a&&a.onVnodeUnmounted)||h)&&En((function(){p&&mr(p,t,e),h&&Ie(e,null,t,"unmounted")}),n)}},J=function(e){var t=e.type,n=e.el,r=e.anchor,i=e.transition;if(t!==Bn)if(t!==$n){var o=function(){c(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var a=i.leave,u=i.delayLeave,s=function(){return a(n,o)};u?u(e.el,o,s):s()}else o()}else x(e);else X(n,r)},X=function(e,t){for(var n;e!==t;)n=y(e),c(e),e=n;c(t)},Q=function(e,t,n){var r=e.bum,o=e.scope,a=e.update,u=e.subTree,c=e.um;r&&Object(i.invokeArrayFns)(r),o.stop(),a&&(a.active=!1,q(u,e,t,n)),c&&En(c,t),En((function(){e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=o;a2&&void 0!==arguments[2]&&arguments[2],r=e.children,o=t.children;if(Object(i.isArray)(r)&&Object(i.isArray)(o))for(var a=0;a4&&void 0!==arguments[4]?arguments[4]:2;0===a&&i(e.targetAnchor,t,n);var u=e.el,c=e.anchor,s=e.shapeFlag,l=e.children,f=e.props,d=2===a;if(d&&i(u,t,n),(!d||Pn(f))&&16&s)for(var p=0;p0&&void 0!==arguments[0]&&arguments[0];Yn.push(Wn=e?null:[])}function Kn(){Yn.pop(),Wn=Yn[Yn.length-1]||null}var Gn=1;function qn(e){Gn+=e}function Jn(e){return e.dynamicChildren=Gn>0?Wn||i.EMPTY_ARR:null,Kn(),Gn>0&&Wn&&Wn.push(e),e}function Xn(e,t,n,r,i,o){return Jn(or(e,t,n,r,i,o,!0))}function Zn(e,t,n,r,i){return Jn(ar(e,t,n,r,i,!0))}function Qn(e){return!!e&&!0===e.__v_isVNode}function er(e,t){return e.type===t.type&&e.key===t.key}function tr(e){e}var nr="__vInternal",rr=function(e){var t=e.key;return null!=t?t:null},ir=function(e){var t=e.ref,n=e.ref_key,o=e.ref_for;return"number"==typeof t&&(t=""+t),null!=t?Object(i.isString)(t)||Object(r.isRef)(t)||Object(i.isFunction)(t)?{i:W,r:t,k:n,f:!!o}:t:null};function or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===Bn?0:1,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rr(t),ref:t&&ir(t),scopeId:z,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:W};return c?(vr(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=Object(i.isString)(n)?8:16),Gn>0&&!u&&Wn&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&Wn.push(s),s}var ar=ur;function ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&e!==oe||(e=Hn),Qn(e)){var c=sr(e,t,!0);return n&&vr(c,n),Gn>0&&!u&&Wn&&(6&c.shapeFlag?Wn[Wn.indexOf(e)]=c:Wn.push(c)),c.patchFlag|=-2,c}if(Wr(e)&&(e=e.__vccOpts),t){var s=t=cr(t),l=s.class,f=s.style;l&&!Object(i.isString)(l)&&(t.class=Object(i.normalizeClass)(l)),Object(i.isObject)(f)&&(Object(r.isProxy)(f)&&!Object(i.isArray)(f)&&(f=Object(i.extend)({},f)),t.style=Object(i.normalizeStyle)(f))}var d=Object(i.isString)(e)?1:le(e)?128:Cn(e)?64:Object(i.isObject)(e)?4:Object(i.isFunction)(e)?2:0;return or(e,t,n,o,a,d,u,!0)}function cr(e){return e?Object(r.isProxy)(e)||nr in e?Object(i.extend)({},e):e:null}function sr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.props,o=e.ref,a=e.patchFlag,u=e.children,c=t?yr(r||{},t):r,s={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rr(c),ref:t&&t.ref?n&&o?Object(i.isArray)(o)?o.concat(ir(t)):[o,ir(t)]:ir(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Bn?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sr(e.ssContent),ssFallback:e.ssFallback&&sr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s}function lr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ar(Un,null,e,t)}function fr(e,t){var n=ar($n,null,e);return n.staticCount=t,n}function dr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(zn(),Zn(Hn,null,e)):ar(Hn,null,e)}function pr(e){return null==e||"boolean"==typeof e?ar(Hn):Object(i.isArray)(e)?ar(Bn,null,e.slice()):"object"===o(e)?hr(e):ar(Un,null,String(e))}function hr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:sr(e)}function vr(e,t){var n=0,r=e.shapeFlag;if(null==t)t=null;else if(Object(i.isArray)(t))n=16;else if("object"===o(t)){if(65&r){var a=t.default;return void(a&&(a._c&&(a._d=!1),vr(e,a()),a._c&&(a._d=!0)))}n=32;var u=t._;u||nr in t?3===u&&W&&(1===W.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=W}else Object(i.isFunction)(t)?(t={default:t,_ctx:W},n=32):(t=String(t),64&r?(n=16,t=[lr(t)]):n=8);e.children=t,e.shapeFlag|=n}function yr(){for(var e={},t=0;t3&&void 0!==arguments[3]?arguments[3]:null;b(e,t,7,[n,r])}var gr=Zt(),br=0;function Or(e,t,n){var o=e.type,a=(t?t.appContext:e.appContext)||gr,u={uid:br++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sn(o,a),emitsOptions:$(o,a),emit:null,emitted:null,propsDefaults:i.EMPTY_OBJ,inheritAttrs:o.inheritAttrs,ctx:i.EMPTY_OBJ,data:i.EMPTY_OBJ,props:i.EMPTY_OBJ,attrs:i.EMPTY_OBJ,slots:i.EMPTY_OBJ,refs:i.EMPTY_OBJ,setupState:i.EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=t?t.root:u,u.emit=H.bind(null,u),e.ce&&e.ce(u),u}var _r,wr,Sr=null,Er=function(){return Sr||W},kr=Object(i.getGlobalThis)(),Nr=function(e,t){var n;return(n=kr[e])||(n=kr[e]=[]),n.push(t),function(e){n.length>1?n.forEach((function(t){return t(e)})):n[0](e)}};_r=Nr("__VUE_INSTANCE_SETTERS__",(function(e){return Sr=e})),wr=Nr("__VUE_SSR_SETTERS__",(function(e){return Cr=e}));var xr=function(e){var t=Sr;return _r(e),e.scope.on(),function(){e.scope.off(),_r(t)}},Tr=function(){Sr&&Sr.scope.off(),_r(null)};function jr(e){return 4&e.vnode.shapeFlag}var Ar,Ir,Cr=!1;function Pr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&wr(t);var n=e.vnode,r=n.props,i=n.children,o=jr(e);an(e,r,o,t),gn(e,i);var a=o?Rr(e,t):void 0;return t&&wr(!1),a}function Rr(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=Object(r.markRaw)(new Proxy(e.ctx,St));var o=n.setup;if(o){var a=e.setupContext=o.length>1?Vr(e):null,u=xr(e);Object(r.pauseTracking)();var c=g(o,e,0,[e.props,a]);if(Object(r.resetTracking)(),u(),Object(i.isPromise)(c)){if(c.then(Tr,Tr),t)return c.then((function(n){Lr(e,n,t)})).catch((function(t){O(t,e,0)}));e.asyncDep=c}else Lr(e,c,t)}else Dr(e,t)}function Lr(e,t,n){Object(i.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(i.isObject)(t)&&(e.setupState=Object(r.proxyRefs)(t)),Dr(e,n)}function Mr(e){Ar=e,Ir=function(e){e.render._rc&&(e.withProxy=new Proxy(e.ctx,Et))}}var Fr=function(){return!Ar};function Dr(e,t,n){var o=e.type;if(!e.render){if(!t&&Ar&&!o.render){var a=o.template||Yt(e).template;if(a){0;var u=e.appContext.config,c=u.isCustomElement,s=u.compilerOptions,l=o.delimiters,f=o.compilerOptions,d=Object(i.extend)(Object(i.extend)({isCustomElement:c,delimiters:l},s),f);o.render=Ar(a,d)}}e.render=o.render||i.NOOP,Ir&&Ir(e)}if(__VUE_OPTIONS_API__){var p=xr(e);Object(r.pauseTracking)();try{Ut(e)}finally{Object(r.resetTracking)(),p()}}}function Vr(e){return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:function(t,n){return Object(r.track)(e,"get","$attrs"),t[n]}}))}(e)},slots:e.slots,emit:e.emit,expose:function(t){e.exposed=t||{}}}}function Br(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:function(t,n){return n in t?t[n]:n in _t?_t[n](e):void 0},has:function(e,t){return t in e||t in _t}}))}var Ur=/(?:^|[-_])(\w)/g,Hr=function(e){return e.replace(Ur,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};function $r(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object(i.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Yr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=$r(t);if(!r&&t.__file){var i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){var o=function(e){for(var n in e)if(e[n]===t)return n};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?Hr(r):n?"App":"Anonymous"}function Wr(e){return Object(i.isFunction)(e)&&"__vccOpts"in e}var zr=function(e,t){return Object(r.computed)(e,t,Cr)};function Kr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.EMPTY_OBJ,o=Er();var a=Object(i.camelize)(t),u=Object(i.hyphenate)(t),c=Object(r.customRef)((function(r,c){var s;return Se((function(){var n=e[t];Object(i.hasChanged)(s,n)&&(s=n,c())})),{get:function(){return r(),n.get?n.get(s):s},set:function(e){var r=o.vnode.props;r&&(t in r||a in r||u in r)&&("onUpdate:".concat(t)in r||"onUpdate:".concat(a)in r||"onUpdate:".concat(u)in r)||!Object(i.hasChanged)(e,s)||(s=e,c()),o.emit("update:".concat(t),n.set?n.set(e):e)}}})),s="modelValue"===t?"modelModifiers":"".concat(t,"Modifiers");return c[Symbol.iterator]=function(){var t=0;return{next:function(){return t<2?{value:t++?e[s]||{}:c,done:!1}:{done:!0}}}},c}function Gr(e,t,n){var r=arguments.length;return 2===r?Object(i.isObject)(t)&&!Object(i.isArray)(t)?Qn(t)?ar(e,null,[t]):ar(e,t):ar(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Qn(n)&&(n=[n]),ar(e,t,n))}function qr(){return void 0}function Jr(e,t,n,r){var i=n[r];if(i&&Xr(i,e))return i;var o=t();return o.memo=e.slice(),n[r]=o}function Xr(e,t){var n=e.memo;if(n.length!=t.length)return!1;for(var r=0;r0&&Wn&&Wn.push(e),!0}var Zr="3.4.15",Qr=i.NOOP,ei=m,ti=B,ni=function e(t,n){var r,i;if(B=t)B.enabled=!0,U.forEach((function(e){var t,n=e.event,r=e.args;return(t=B).emit.apply(t,[n].concat(c(r)))})),U=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((function(t){e(t,n)})),setTimeout((function(){B||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,!0,U=[])}),3e3)}else!0,U=[]},ri={createComponentInstance:Or,setupComponent:Pr,renderComponentRoot:Z,setCurrentRenderingInstance:K,isVNode:Qn,normalizeVNode:pr},ii=null,oi=null,ai=null},"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,n){"use strict";n.r(t),function(e){function r(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){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(e,t)||o(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 i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)return s=null,t;if(!(Qn(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;var i=nt(r),o=i.type,a=$r(We(i)?i.type.__asyncResolved||{}:o),l=e.include,f=e.exclude,d=e.max;if(l&&(!a||!Je(l,a))||f&&a&&Je(f,a))return s=i,r;var p=null==i.key?o:i.key,v=u.get(p);return i.el&&(i=sr(i),128&r.shapeFlag&&(r.ssContent=i)),b=p,v?(i.el=v.el,i.component=v.component,i.transition&&He(i,i.transition),i.shapeFlag|=512,c.delete(p),c.add(p)):(c.add(p),d&&c.size>parseInt(d,10)&&g(c.values().next().value)),i.shapeFlag|=256,s=i,le(r.type)?r:i}}};function Je(e,t){return Object(i.isArray)(e)?e.some((function(e){return Je(e,t)})):Object(i.isString)(e)?e.split(",").includes(t):!!Object(i.isRegExp)(e)&&e.test(t)}function Xe(e,t){Qe(e,"a",t)}function Ze(e,t){Qe(e,"da",t)}function Qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(rt(t,r,n),n)for(var i=n.parent;i&&i.parent;)Ge(i.parent.vnode)&&et(r,t,n,i),i=i.parent}function et(e,t,n,r){var o=rt(t,e,r,!0);lt((function(){Object(i.remove)(r[t],o)}),n)}function tt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function nt(e){return 128&e.shapeFlag?e.ssContent:e}function rt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=function(){if(!n.isUnmounted){Object(r.pauseTracking)();for(var i=xr(n),o=arguments.length,a=new Array(o),u=0;u1&&void 0!==arguments[1]?arguments[1]:Sr;return(!Cr||"sp"===e)&&rt(e,(function(){return t.apply(void 0,arguments)}),n)}},ot=it("bm"),at=it("m"),ut=it("bu"),ct=it("u"),st=it("bum"),lt=it("um"),ft=it("sp"),dt=it("rtg"),pt=it("rtc");function vt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sr;rt("ec",e,t)}function ht(e,t,n,r){var o,a=n&&n[r];if(Object(i.isArray)(e)||Object(i.isString)(e)){o=new Array(e.length);for(var u=0,c=e.length;u2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(W.isCE||W.parent&&We(W.parent)&&W.parent.isCE)return"default"!==t&&(n.name=t),ar("slot",n,r&&r());var o=e[t];o&&o._c&&(o._d=!1),zn();var a=o&>(o(n)),u=Zn(Bn,{key:n.key||a&&a.key||"_".concat(t)},a||(r?r():[]),a&&1===e._?64:-2);return!i&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function gt(e){return e.some((function(e){return!Qn(e)||e.type!==Hn&&!(e.type===Bn&&!gt(e.children))}))?e:null}function bt(e,t){var n={};for(var r in e)n[t&&/[A-Z]/.test(r)?"on:".concat(r):Object(i.toHandlerKey)(r)]=e[r];return n}var Ot=function(e){return e?jr(e)?Br(e)||e.proxy:Ot(e.parent):null},_t=Object(i.extend)(Object.create(null),{$:function(e){return e},$el:function(e){return e.vnode.el},$data:function(e){return e.data},$props:function(e){return e.props},$attrs:function(e){return e.attrs},$slots:function(e){return e.slots},$refs:function(e){return e.refs},$parent:function(e){return Ot(e.parent)},$root:function(e){return Ot(e.root)},$emit:function(e){return e.emit},$options:function(e){return __VUE_OPTIONS_API__?Yt(e):e.type},$forceUpdate:function(e){return e.f||(e.f=function(){e.effect.dirty=!0,C(e.update)})},$nextTick:function(e){return e.n||(e.n=I.bind(e.proxy))},$watch:function(e){return __VUE_OPTIONS_API__?xe.bind(e):i.NOOP}}),wt=function(e,t){return e!==i.EMPTY_OBJ&&!e.__isScriptSetup&&Object(i.hasOwn)(e,t)},St={get:function(e,t){var n,o=e._,a=o.ctx,u=o.setupState,c=o.data,s=o.props,l=o.accessCache,f=o.type,d=o.appContext;if("$"!==t[0]){var p=l[t];if(void 0!==p)switch(p){case 1:return u[t];case 2:return c[t];case 4:return a[t];case 3:return s[t]}else{if(wt(u,t))return l[t]=1,u[t];if(c!==i.EMPTY_OBJ&&Object(i.hasOwn)(c,t))return l[t]=2,c[t];if((n=o.propsOptions[0])&&Object(i.hasOwn)(n,t))return l[t]=3,s[t];if(a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t))return l[t]=4,a[t];__VUE_OPTIONS_API__&&!Bt||(l[t]=0)}}var v,h,y=_t[t];return y?("$attrs"===t&&Object(r.track)(o,"get",t),y(o)):(v=f.__cssModules)&&(v=v[t])?v:a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t)?(l[t]=4,a[t]):(h=d.config.globalProperties,Object(i.hasOwn)(h,t)?h[t]:void 0)},set:function(e,t,n){var r=e._,o=r.data,a=r.setupState,u=r.ctx;return wt(a,t)?(a[t]=n,!0):o!==i.EMPTY_OBJ&&Object(i.hasOwn)(o,t)?(o[t]=n,!0):!Object(i.hasOwn)(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(u[t]=n,!0))},has:function(e,t){var n,r=e._,o=r.data,a=r.setupState,u=r.accessCache,c=r.ctx,s=r.appContext,l=r.propsOptions;return!!u[t]||o!==i.EMPTY_OBJ&&Object(i.hasOwn)(o,t)||wt(a,t)||(n=l[0])&&Object(i.hasOwn)(n,t)||Object(i.hasOwn)(c,t)||Object(i.hasOwn)(_t,t)||Object(i.hasOwn)(s.config.globalProperties,t)},defineProperty:function(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(i.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};var Et=Object(i.extend)({},St,{get:function(e,t){if(t!==Symbol.unscopables)return St.get(e,t,e)},has:function(e,t){var n="_"!==t[0]&&!Object(i.isGloballyAllowed)(t);return n}});function kt(){return null}function Nt(){return null}function xt(e){0}function Tt(e){0}function jt(){return null}function At(){0}function It(e,t){return null}function Ct(){return Rt().slots}function Pt(){return Rt().attrs}function Rt(){var e=Er();return e.setupContext||(e.setupContext=Vr(e))}function Lt(e){return Object(i.isArray)(e)?e.reduce((function(e,t){return e[t]=null,e}),{}):e}function Mt(e,t){var n=Lt(e);for(var r in t)if(!r.startsWith("__skip")){var o=n[r];o?Object(i.isArray)(o)||Object(i.isFunction)(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(o=n[r]={default:t[r]}),o&&t["__skip_".concat(r)]&&(o.skipFactory=!0)}return n}function Ft(e,t){return e&&t?Object(i.isArray)(e)&&Object(i.isArray)(t)?e.concat(t):Object(i.extend)({},Lt(e),Lt(t)):e||t}function Dt(e,t){var n={},r=function(r){t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[r]}})};for(var i in e)r(i);return n}function Vt(e){var t=Er();var n=e();return Tr(),Object(i.isPromise)(n)&&(n=n.catch((function(e){throw xr(t),e}))),[n,function(){return xr(t)}]}var Bt=!0;function Ut(e){var t=Yt(e),n=e.proxy,o=e.ctx;Bt=!1,t.beforeCreate&&Ht(t.beforeCreate,e,"bc");var a=t.data,u=t.computed,c=t.methods,s=t.watch,l=t.provide,f=t.inject,d=t.created,p=t.beforeMount,v=t.mounted,h=t.beforeUpdate,y=t.updated,m=t.activated,g=t.deactivated,b=(t.beforeDestroy,t.beforeUnmount),O=(t.destroyed,t.unmounted),_=t.render,w=t.renderTracked,S=t.renderTriggered,E=t.errorCaptured,k=t.serverPrefetch,N=t.expose,x=t.inheritAttrs,T=t.components,j=t.directives;t.filters;if(f&&function(e,t){arguments.length>2&&void 0!==arguments[2]||i.NOOP;Object(i.isArray)(e)&&(e=Gt(e));var n=function(){var n,a=e[o];n=Object(i.isObject)(a)?"default"in a?rn(a.from||o,a.default,!0):rn(a.from||o):rn(a),Object(r.isRef)(n)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:function(){return n.value},set:function(e){return n.value=e}}):t[o]=n};for(var o in e)n()}(f,o,null),c)for(var A in c){var I=c[A];Object(i.isFunction)(I)&&(o[A]=I.bind(n))}if(a){0;var C=a.call(n,n);if(Object(i.isObject)(C))e.data=Object(r.reactive)(C);else;}if(Bt=!0,u){var P=function(e){var t=u[e],r=Object(i.isFunction)(t)?t.bind(n,n):Object(i.isFunction)(t.get)?t.get.bind(n,n):i.NOOP;var a=!Object(i.isFunction)(t)&&Object(i.isFunction)(t.set)?t.set.bind(n):i.NOOP,c=zr({get:r,set:a});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:function(){return c.value},set:function(e){return c.value=e}})};for(var R in u)P(R)}if(s)for(var L in s)$t(s[L],o,n,L);if(l){var M=Object(i.isFunction)(l)?l.call(n):l;Reflect.ownKeys(M).forEach((function(e){nn(e,M[e])}))}function F(e,t){Object(i.isArray)(t)?t.forEach((function(t){return e(t.bind(n))})):t&&e(t.bind(n))}if(d&&Ht(d,e,"c"),F(ot,p),F(at,v),F(ut,h),F(ct,y),F(Xe,m),F(Ze,g),F(vt,E),F(pt,w),F(dt,S),F(st,b),F(lt,O),F(ft,k),Object(i.isArray)(N))if(N.length){var D=e.exposed||(e.exposed={});N.forEach((function(e){Object.defineProperty(D,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})}))}else e.exposed||(e.exposed={});_&&e.render===i.NOOP&&(e.render=_),null!=x&&(e.inheritAttrs=x),T&&(e.components=T),j&&(e.directives=j)}function Ht(e,t,n){b(Object(i.isArray)(e)?e.map((function(e){return e.bind(t.proxy)})):e.bind(t.proxy),t,n)}function $t(e,t,n,r){var o=r.includes(".")?Te(n,r):function(){return n[r]};if(Object(i.isString)(e)){var a=t[e];Object(i.isFunction)(a)&&ke(o,a)}else if(Object(i.isFunction)(e))ke(o,e.bind(n));else if(Object(i.isObject)(e))if(Object(i.isArray)(e))e.forEach((function(e){return $t(e,t,n,r)}));else{var u=Object(i.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(i.isFunction)(u)&&ke(o,u,e)}else 0}function Yt(e){var t,n=e.type,r=n.mixins,o=n.extends,a=e.appContext,u=a.mixins,c=a.optionsCache,s=a.config.optionMergeStrategies,l=c.get(n);return l?t=l:u.length||r||o?(t={},u.length&&u.forEach((function(e){return Wt(t,e,s,!0)})),Wt(t,n,s)):t=n,Object(i.isObject)(n)&&c.set(n,t),t}function Wt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.mixins,o=t.extends;for(var a in o&&Wt(e,o,n,!0),i&&i.forEach((function(t){return Wt(e,t,n,!0)})),t)if(r&&"expose"===a);else{var u=zt[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var zt={data:Kt,props:Xt,emits:Xt,methods:Jt,computed:Jt,beforeCreate:qt,created:qt,beforeMount:qt,mounted:qt,beforeUpdate:qt,updated:qt,beforeDestroy:qt,beforeUnmount:qt,destroyed:qt,unmounted:qt,activated:qt,deactivated:qt,errorCaptured:qt,serverPrefetch:qt,components:Jt,directives:Jt,watch:function(e,t){if(!e)return t;if(!t)return e;var n=Object(i.extend)(Object.create(null),e);for(var r in t)n[r]=qt(e[r],t[r]);return n},provide:Kt,inject:function(e,t){return Jt(Gt(e),Gt(t))}};function Kt(e,t){return t?e?function(){return Object(i.extend)(Object(i.isFunction)(e)?e.call(this,this):e,Object(i.isFunction)(t)?t.call(this,this):t)}:t:e}function Gt(e){if(Object(i.isArray)(e)){for(var t={},n=0;n1&&void 0!==arguments[1]?arguments[1]:null;Object(i.isFunction)(n)||(n=Object(i.extend)({},n)),null==r||Object(i.isObject)(r)||(r=null);var o=Zt(),a=new WeakSet,u=!1,c=o.app={_uid:Qt++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Zr,get config(){return o.config},set config(e){0},use:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],r=Sr||W;if(r||tn){var o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:tn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Object(i.isFunction)(t)?t.call(r&&r.proxy):t}else 0}function on(){return!!(Sr||W||tn)}function an(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a={},u={};for(var c in Object(i.def)(u,nr,1),e.propsDefaults=Object.create(null),un(e,t,a,u),e.propsOptions[0])c in a||(a[c]=void 0);n?e.props=o?a:Object(r.shallowReactive)(a):e.type.props?e.props=a:e.props=u,e.attrs=u}function un(e,t,n,o){var u,c=a(e.propsOptions,2),s=c[0],l=c[1],f=!1;if(t)for(var d in t)if(!Object(i.isReservedProp)(d)){var p=t[d],v=void 0;s&&Object(i.hasOwn)(s,v=Object(i.camelize)(d))?l&&l.includes(v)?(u||(u={}))[v]=p:n[v]=p:Y(e.emitsOptions,d)||d in o&&p===o[d]||(o[d]=p,f=!0)}if(l)for(var h=Object(r.toRaw)(n),y=u||i.EMPTY_OBJ,m=0;m2&&void 0!==arguments[2]&&arguments[2],r=t.propsCache,o=r.get(e);if(o)return o;var u=e.props,s={},l=[],f=!1;if(__VUE_OPTIONS_API__&&!Object(i.isFunction)(e)){var d=function(e){f=!0;var n=a(sn(e,t,!0),2),r=n[0],o=n[1];Object(i.extend)(s,r),o&&l.push.apply(l,c(o))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!u&&!f)return Object(i.isObject)(e)&&r.set(e,i.EMPTY_ARR),i.EMPTY_ARR;if(Object(i.isArray)(u))for(var p=0;p-1,g[1]=O<0||b-1||Object(i.hasOwn)(g,"default"))&&l.push(y)}}}var _=[s,l];return Object(i.isObject)(e)&&r.set(e,_),_}function ln(e){return"$"!==e[0]}function fn(e){var t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function dn(e,t){return fn(e)===fn(t)}function pn(e,t){return Object(i.isArray)(t)?t.findIndex((function(t){return dn(t,e)})):Object(i.isFunction)(t)&&dn(t,e)?0:-1}var vn=function(e){return"_"===e[0]||"$stable"===e},hn=function(e){return Object(i.isArray)(e)?e.map(pr):[pr(e)]},yn=function(e,t,n){var r=e._ctx,o=function(){if(vn(a))return 1;var n=e[a];if(Object(i.isFunction)(n))t[a]=function(e,t,n){if(t._n)return t;var r=X((function(){return hn(t.apply(void 0,arguments))}),n);return r._c=!1,r}(0,n,r);else if(null!=n){0;var o=hn(n);t[a]=function(){return o}}};for(var a in e)o()},mn=function(e,t){var n=hn(t);e.slots.default=function(){return n}},gn=function(e,t){if(32&e.vnode.shapeFlag){var n=t._;n?(e.slots=Object(r.toRaw)(t),Object(i.def)(t,"_",n)):yn(t,e.slots={})}else e.slots={},t&&mn(e,t);Object(i.def)(e.slots,nr,1)};function bn(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Object(i.isArray)(e))e.forEach((function(e,r){return bn(e,t&&(Object(i.isArray)(t)?t[r]:t),n,o,a)}));else if(!We(o)||a){var u=4&o.shapeFlag?Br(o.component)||o.component.proxy:o.el,c=a?null:u,s=e.i,l=e.r;0;var f=t&&t.r,d=s.refs===i.EMPTY_OBJ?s.refs={}:s.refs,p=s.setupState;if(null!=f&&f!==l&&(Object(i.isString)(f)?(d[f]=null,Object(i.hasOwn)(p,f)&&(p[f]=null)):Object(r.isRef)(f)&&(f.value=null)),Object(i.isFunction)(l))g(l,s,12,[c,d]);else{var v=Object(i.isString)(l),h=Object(r.isRef)(l),y=e.f;if(v||h){var m=function(){if(y){var t=v?Object(i.hasOwn)(p,l)?p[l]:d[l]:l.value;a?Object(i.isArray)(t)&&Object(i.remove)(t,u):Object(i.isArray)(t)?t.includes(u)||t.push(u):v?(d[l]=[u],Object(i.hasOwn)(p,l)&&(p[l]=d[l])):(l.value=[u],e.k&&(d[e.k]=l.value))}else v?(d[l]=c,Object(i.hasOwn)(p,l)&&(p[l]=c)):h&&(l.value=c,e.k&&(d[e.k]=c))};a||y?m():(m.id=-1,En(m,n))}else 0}}}var On=!1,_n=function(e){return function(e){return e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName}(e)?"svg":function(e){return e.namespaceURI.includes("MathML")}(e)?"mathml":void 0},wn=function(e){return 8===e.nodeType};function Sn(e){var t=e.mt,n=e.p,r=e.o,a=r.patchProp,u=r.createText,c=r.nextSibling,s=r.parentNode,l=r.remove,f=r.insert,p=r.createComment,v=function(n,r,i,a,l){var p=arguments.length>5&&void 0!==arguments[5]&&arguments[5],w=wn(n)&&"["===n.data,S=function(){return g(n,r,i,a,l,w)},E=r.type,k=r.ref,N=r.shapeFlag,x=r.patchFlag,T=n.nodeType;r.el=n,-2===x&&(p=!1,r.dynamicChildren=null);var j=null;switch(E){case Un:3!==T?""===r.children?(f(r.el=u(""),s(n),n),j=n):j=S():(n.data!==r.children&&(On=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&d("Hydration text mismatch in",n.parentNode,"\n - rendered on server: ".concat(JSON.stringify(n.data),"\n - expected on client: ").concat(JSON.stringify(r.children))),n.data=r.children),j=c(n));break;case Hn:_(n)?(j=c(n),O(r.el=n.content.firstChild,n,i)):j=8!==T||w?S():c(n);break;case $n:if(w&&(T=(n=c(n)).nodeType),1===T||3===T){j=n;for(var A=!r.children.length,I=0;I1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]",r=0;e;)if((e=c(e))&&wn(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return c(e);r--}return e},O=function(e,t,n){var r=t.parentNode;r&&r.replaceChild(e,t);for(var i=n;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},_=function(e){return 1===e.nodeType&&"template"===e.tagName.toLowerCase()};return[function(e,t){if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&d("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),M(),void(t._vnode=e);On=!1,v(t.firstChild,e,null,null,null),M(),t._vnode=e,On&&console.error("Hydration completed but contains mismatches.")},v]}var En=ye;function kn(e){return xn(e)}function Nn(e){return xn(e,Sn)}function xn(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(i.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(i.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),Object(i.getGlobalThis)().__VUE__=!0;var n,o,u=e.insert,c=e.remove,s=e.patchProp,l=e.createElement,f=e.createText,d=e.createComment,p=e.setText,v=e.setElementText,h=e.parentNode,y=e.nextSibling,m=e.setScopeId,g=void 0===m?i.NOOP:m,b=e.insertStaticContent,O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!er(e,t)&&(r=te(e),q(e,i,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);var s=t.type,l=t.ref,f=t.shapeFlag;switch(s){case Un:_(e,t,n,r);break;case Hn:w(e,t,n,r);break;case $n:null==e&&S(t,n,r,a);break;case Bn:D(e,t,n,r,i,o,a,u,c);break;default:1&f?T(e,t,n,r,i,o,a,u,c):6&f?V(e,t,n,r,i,o,a,u,c):(64&f||128&f)&&s.process(e,t,n,r,i,o,a,u,c,ae)}null!=l&&i&&bn(l,e&&e.ref,o,t||e,!t)}},_=function(e,t,n,r){if(null==e)u(t.el=f(t.children),n,r);else{var i=t.el=e.el;t.children!==e.children&&p(i,t.children)}},w=function(e,t,n,r){null==e?u(t.el=d(t.children||""),n,r):t.el=e.el},S=function(e,t,n,r){var i=a(b(e.children,t,n,r,e.el,e.anchor),2);e.el=i[0],e.anchor=i[1]},N=function(e,t,n){for(var r,i=e.el,o=e.anchor;i&&i!==o;)r=y(i),u(i,t,n),i=r;u(o,t,n)},x=function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=y(n),c(n),n=t;c(r)},T=function(e,t,n,r,i,o,a,u,c){"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?j(t,n,r,i,o,a,u,c):P(e,t,i,o,a,u,c)},j=function(e,t,n,r,o,a,c,f){var d,p,h=e.props,y=e.shapeFlag,m=e.transition,g=e.dirs;if(d=e.el=l(e.type,a,h&&h.is,h),8&y?v(d,e.children):16&y&&I(e.children,d,null,r,o,Tn(e,a),c,f),g&&Ie(e,null,r,"created"),A(d,e,e.scopeId,c,r),h){for(var b in h)"value"===b||Object(i.isReservedProp)(b)||s(d,b,null,h[b],a,e.children,r,o,ee);"value"in h&&s(d,"value",null,h.value,a),(p=h.onVnodeBeforeMount)&&mr(p,r,e)}g&&Ie(e,null,r,"beforeMount");var O=An(o,m);O&&m.beforeEnter(d),u(d,t,n),((p=h&&h.onVnodeMounted)||O||g)&&En((function(){p&&mr(p,r,e),O&&m.enter(d),g&&Ie(e,null,r,"mounted")}),o)},A=function(e,t,n,r,i){if(n&&g(e,n),r)for(var o=0;o8&&void 0!==arguments[8]?arguments[8]:0,s=c;s0){if(16&l)F(c,t,h,y,n,r,o);else if(2&l&&h.class!==y.class&&s(c,"class",null,y.class,o),4&l&&s(c,"style",h.style,y.style,o),8&l)for(var m=t.dynamicProps,g=0;g0&&64&p&&v&&e.dynamicChildren?(R(e.dynamicChildren,v,n,i,o,a,c),(null!=t.key||i&&t===i.subTree)&&In(e,t,!0)):W(e,t,n,d,i,o,a,c,s)},V=function(e,t,n,r,i,o,a,u,c){t.slotScopeIds=u,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,c):B(t,n,r,i,o,a,c):U(e,t,c)},B=function(e,t,n,r,i,o,a){var u=e.component=Or(e,r,i);if(Ge(e)&&(u.ctx.renderer=ae),Pr(u),u.asyncDep){if(i&&i.registerDep(u,H),!e.el){var c=u.subTree=ar(Hn);w(null,c,t,n)}}else H(u,e,t,n,i,o,a)},U=function(e,t,n){var r,i,o=t.component=e.component;if(function(e,t,n){var r=e.props,i=e.children,o=e.component,a=t.props,u=t.children,c=t.patchFlag,s=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!u||u&&u.$stable)||r!==a&&(r?!a||ne(r,a,s):!!a);if(1024&c)return!0;if(16&c)return r?ne(r,a,s):!!a;if(8&c)for(var l=t.dynamicProps,f=0;fk&&E.splice(i,1),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},H=function(e,t,n,a,u,c,s){var l=function(){if(e.isMounted){var r=e.next,f=e.bu,d=e.u,p=e.parent,v=e.vnode,y=function e(t){var n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(y)return r&&(r.el=v.el,$(e,r,s)),void y.asyncDep.then((function(){e.isUnmounted||l()}));var m,g=r;0,jn(e,!1),r?(r.el=v.el,$(e,r,s)):r=v,f&&Object(i.invokeArrayFns)(f),(m=r.props&&r.props.onVnodeBeforeUpdate)&&mr(m,p,r,v),jn(e,!0);var b=Z(e);0;var _=e.subTree;e.subTree=b,O(_,b,h(_.el),te(_),e,u,c),r.el=b.el,null===g&&re(e,b.el),d&&En(d,u),(m=r.props&&r.props.onVnodeUpdated)&&En((function(){return mr(m,p,r,v)}),u)}else{var w,S=t,E=S.el,k=S.props,N=e.bm,x=e.m,T=e.parent,j=We(t);if(jn(e,!1),N&&Object(i.invokeArrayFns)(N),!j&&(w=k&&k.onVnodeBeforeMount)&&mr(w,T,t),jn(e,!0),E&&o){var A=function(){e.subTree=Z(e),o(E,e.subTree,e,u,null)};j?t.type.__asyncLoader().then((function(){return!e.isUnmounted&&A()})):A()}else{0;var I=e.subTree=Z(e);0,O(null,I,n,a,e,u,c),t.el=I.el}if(x&&En(x,u),!j&&(w=k&&k.onVnodeMounted)){var C=t;En((function(){return mr(w,T,C)}),u)}(256&t.shapeFlag||T&&We(T.vnode)&&256&T.vnode.shapeFlag)&&e.a&&En(e.a,u),e.isMounted=!0,t=n=a=null}},f=e.effect=new r.ReactiveEffect(l,i.NOOP,(function(){return C(d)}),e.scope),d=e.update=function(){f.dirty&&f.run()};d.id=e.uid,jn(e,!0),d()},$=function(e,t,n){t.component=e;var o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){var u=e.props,c=e.attrs,s=e.vnode.patchFlag,l=Object(r.toRaw)(u),f=a(e.propsOptions,1)[0],d=!1;if(!(o||s>0)||16&s){var p;for(var v in un(e,t,u,c)&&(d=!0),l)t&&(Object(i.hasOwn)(t,v)||(p=Object(i.hyphenate)(v))!==v&&Object(i.hasOwn)(t,p))||(f?!n||void 0===n[v]&&void 0===n[p]||(u[v]=cn(f,l,v,void 0,e,!0)):delete u[v]);if(c!==l)for(var h in c)t&&Object(i.hasOwn)(t,h)||(delete c[h],d=!0)}else if(8&s)for(var y=e.vnode.dynamicProps,m=0;m8&&void 0!==arguments[8]&&arguments[8],s=e&&e.children,l=e?e.shapeFlag:0,f=t.children,d=t.patchFlag,p=t.shapeFlag;if(d>0){if(128&d)return void K(s,f,n,r,i,o,a,u,c);if(256&d)return void z(s,f,n,r,i,o,a,u,c)}8&p?(16&l&&ee(s,i,o),f!==s&&v(n,f)):16&l?16&p?K(s,f,n,r,i,o,a,u,c):ee(s,i,o,!0):(8&l&&v(n,""),16&p&&I(f,n,r,i,o,a,u,c))},z=function(e,t,n,r,o,a,u,c,s){e=e||i.EMPTY_ARR,t=t||i.EMPTY_ARR;var l,f=e.length,d=t.length,p=Math.min(f,d);for(l=0;ld?ee(e,o,a,!0,!1,p):I(t,n,r,o,a,u,c,s,p)},K=function(e,t,n,r,o,a,u,c,s){for(var l=0,f=t.length,d=e.length-1,p=f-1;l<=d&&l<=p;){var v=e[l],h=t[l]=s?vr(t[l]):pr(t[l]);if(!er(v,h))break;O(v,h,n,null,o,a,u,c,s),l++}for(;l<=d&&l<=p;){var y=e[d],m=t[p]=s?vr(t[p]):pr(t[p]);if(!er(y,m))break;O(y,m,n,null,o,a,u,c,s),d--,p--}if(l>d){if(l<=p)for(var g=p+1,b=gp)for(;l<=d;)q(e[l],o,a,!0),l++;else{var _,w=l,S=l,E=new Map;for(l=S;l<=p;l++){var k=t[l]=s?vr(t[l]):pr(t[l]);null!=k.key&&E.set(k.key,l)}var N=0,x=p-S+1,T=!1,j=0,A=new Array(x);for(l=0;l=x)q(I,o,a,!0);else{var C=void 0;if(null!=I.key)C=E.get(I.key);else for(_=S;_<=p;_++)if(0===A[_-S]&&er(I,t[_])){C=_;break}void 0===C?q(I,o,a,!0):(A[C-S]=l+1,C>=j?j=C:T=!0,O(I,t[C],n,null,o,a,u,c,s),N++)}}var P=T?function(e){var t,n,r,i,o,a=e.slice(),u=[0],c=e.length;for(t=0;t>1]]0&&(a[t]=u[r-1]),u[r]=t)}}r=u.length,i=u[r-1];for(;r-- >0;)u[r]=i,i=a[i];return u}(A):i.EMPTY_ARR;for(_=P.length-1,l=x-1;l>=0;l--){var R=S+l,L=t[R],M=R+14&&void 0!==arguments[4]?arguments[4]:null,o=e.el,a=e.type,c=e.transition,s=e.children,l=e.shapeFlag;if(6&l)G(e.component.subTree,t,n,r);else if(128&l)e.suspense.move(t,n,r);else if(64&l)a.move(e,t,n,ae);else if(a!==Bn)if(a!==$n){var f=2!==r&&1&l&&c;if(f)if(0===r)c.beforeEnter(o),u(o,t,n),En((function(){return c.enter(o)}),i);else{var d=c.leave,p=c.delayLeave,v=c.afterLeave,h=function(){return u(o,t,n)},y=function(){d(o,(function(){h(),v&&v()}))};p?p(o,h,y):y()}else u(o,t,n)}else N(e,t,n);else{u(o,t,n);for(var m=0;m3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=e.type,a=e.props,u=e.ref,c=e.children,s=e.dynamicChildren,l=e.shapeFlag,f=e.patchFlag,d=e.dirs;if(null!=u&&bn(u,null,n,e,!0),256&l)t.ctx.deactivate(e);else{var p,v=1&l&&d,h=!We(e);if(h&&(p=a&&a.onVnodeBeforeUnmount)&&mr(p,t,e),6&l)Q(e.component,n,r);else{if(128&l)return void e.suspense.unmount(n,r);v&&Ie(e,null,t,"beforeUnmount"),64&l?e.type.remove(e,t,n,i,ae,r):s&&(o!==Bn||f>0&&64&f)?ee(s,t,n,!1,!0):(o===Bn&&384&f||!i&&16&l)&&ee(c,t,n),r&&J(e)}(h&&(p=a&&a.onVnodeUnmounted)||v)&&En((function(){p&&mr(p,t,e),v&&Ie(e,null,t,"unmounted")}),n)}},J=function(e){var t=e.type,n=e.el,r=e.anchor,i=e.transition;if(t!==Bn)if(t!==$n){var o=function(){c(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var a=i.leave,u=i.delayLeave,s=function(){return a(n,o)};u?u(e.el,o,s):s()}else o()}else x(e);else X(n,r)},X=function(e,t){for(var n;e!==t;)n=y(e),c(e),e=n;c(t)},Q=function(e,t,n){var r=e.bum,o=e.scope,a=e.update,u=e.subTree,c=e.um;r&&Object(i.invokeArrayFns)(r),o.stop(),a&&(a.active=!1,q(u,e,t,n)),c&&En(c,t),En((function(){e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=o;a2&&void 0!==arguments[2]&&arguments[2],r=e.children,o=t.children;if(Object(i.isArray)(r)&&Object(i.isArray)(o))for(var a=0;a4&&void 0!==arguments[4]?arguments[4]:2;0===a&&i(e.targetAnchor,t,n);var u=e.el,c=e.anchor,s=e.shapeFlag,l=e.children,f=e.props,d=2===a;if(d&&i(u,t,n),(!d||Pn(f))&&16&s)for(var p=0;p0&&void 0!==arguments[0]&&arguments[0];Yn.push(Wn=e?null:[])}function Kn(){Yn.pop(),Wn=Yn[Yn.length-1]||null}var Gn=1;function qn(e){Gn+=e}function Jn(e){return e.dynamicChildren=Gn>0?Wn||i.EMPTY_ARR:null,Kn(),Gn>0&&Wn&&Wn.push(e),e}function Xn(e,t,n,r,i,o){return Jn(or(e,t,n,r,i,o,!0))}function Zn(e,t,n,r,i){return Jn(ar(e,t,n,r,i,!0))}function Qn(e){return!!e&&!0===e.__v_isVNode}function er(e,t){return e.type===t.type&&e.key===t.key}function tr(e){e}var nr="__vInternal",rr=function(e){var t=e.key;return null!=t?t:null},ir=function(e){var t=e.ref,n=e.ref_key,o=e.ref_for;return"number"==typeof t&&(t=""+t),null!=t?Object(i.isString)(t)||Object(r.isRef)(t)||Object(i.isFunction)(t)?{i:W,r:t,k:n,f:!!o}:t:null};function or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===Bn?0:1,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rr(t),ref:t&&ir(t),scopeId:z,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:W};return c?(hr(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=Object(i.isString)(n)?8:16),Gn>0&&!u&&Wn&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&Wn.push(s),s}var ar=ur;function ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&e!==oe||(e=Hn),Qn(e)){var c=sr(e,t,!0);return n&&hr(c,n),Gn>0&&!u&&Wn&&(6&c.shapeFlag?Wn[Wn.indexOf(e)]=c:Wn.push(c)),c.patchFlag|=-2,c}if(Wr(e)&&(e=e.__vccOpts),t){var s=t=cr(t),l=s.class,f=s.style;l&&!Object(i.isString)(l)&&(t.class=Object(i.normalizeClass)(l)),Object(i.isObject)(f)&&(Object(r.isProxy)(f)&&!Object(i.isArray)(f)&&(f=Object(i.extend)({},f)),t.style=Object(i.normalizeStyle)(f))}var d=Object(i.isString)(e)?1:le(e)?128:Cn(e)?64:Object(i.isObject)(e)?4:Object(i.isFunction)(e)?2:0;return or(e,t,n,o,a,d,u,!0)}function cr(e){return e?Object(r.isProxy)(e)||nr in e?Object(i.extend)({},e):e:null}function sr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.props,o=e.ref,a=e.patchFlag,u=e.children,c=t?yr(r||{},t):r,s={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rr(c),ref:t&&t.ref?n&&o?Object(i.isArray)(o)?o.concat(ir(t)):[o,ir(t)]:ir(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Bn?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sr(e.ssContent),ssFallback:e.ssFallback&&sr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s}function lr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ar(Un,null,e,t)}function fr(e,t){var n=ar($n,null,e);return n.staticCount=t,n}function dr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(zn(),Zn(Hn,null,e)):ar(Hn,null,e)}function pr(e){return null==e||"boolean"==typeof e?ar(Hn):Object(i.isArray)(e)?ar(Bn,null,e.slice()):"object"===o(e)?vr(e):ar(Un,null,String(e))}function vr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:sr(e)}function hr(e,t){var n=0,r=e.shapeFlag;if(null==t)t=null;else if(Object(i.isArray)(t))n=16;else if("object"===o(t)){if(65&r){var a=t.default;return void(a&&(a._c&&(a._d=!1),hr(e,a()),a._c&&(a._d=!0)))}n=32;var u=t._;u||nr in t?3===u&&W&&(1===W.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=W}else Object(i.isFunction)(t)?(t={default:t,_ctx:W},n=32):(t=String(t),64&r?(n=16,t=[lr(t)]):n=8);e.children=t,e.shapeFlag|=n}function yr(){for(var e={},t=0;t3&&void 0!==arguments[3]?arguments[3]:null;b(e,t,7,[n,r])}var gr=Zt(),br=0;function Or(e,t,n){var o=e.type,a=(t?t.appContext:e.appContext)||gr,u={uid:br++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sn(o,a),emitsOptions:$(o,a),emit:null,emitted:null,propsDefaults:i.EMPTY_OBJ,inheritAttrs:o.inheritAttrs,ctx:i.EMPTY_OBJ,data:i.EMPTY_OBJ,props:i.EMPTY_OBJ,attrs:i.EMPTY_OBJ,slots:i.EMPTY_OBJ,refs:i.EMPTY_OBJ,setupState:i.EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=t?t.root:u,u.emit=H.bind(null,u),e.ce&&e.ce(u),u}var _r,wr,Sr=null,Er=function(){return Sr||W},kr=Object(i.getGlobalThis)(),Nr=function(e,t){var n;return(n=kr[e])||(n=kr[e]=[]),n.push(t),function(e){n.length>1?n.forEach((function(t){return t(e)})):n[0](e)}};_r=Nr("__VUE_INSTANCE_SETTERS__",(function(e){return Sr=e})),wr=Nr("__VUE_SSR_SETTERS__",(function(e){return Cr=e}));var xr=function(e){var t=Sr;return _r(e),e.scope.on(),function(){e.scope.off(),_r(t)}},Tr=function(){Sr&&Sr.scope.off(),_r(null)};function jr(e){return 4&e.vnode.shapeFlag}var Ar,Ir,Cr=!1;function Pr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&wr(t);var n=e.vnode,r=n.props,i=n.children,o=jr(e);an(e,r,o,t),gn(e,i);var a=o?Rr(e,t):void 0;return t&&wr(!1),a}function Rr(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=Object(r.markRaw)(new Proxy(e.ctx,St));var o=n.setup;if(o){var a=e.setupContext=o.length>1?Vr(e):null,u=xr(e);Object(r.pauseTracking)();var c=g(o,e,0,[e.props,a]);if(Object(r.resetTracking)(),u(),Object(i.isPromise)(c)){if(c.then(Tr,Tr),t)return c.then((function(n){Lr(e,n,t)})).catch((function(t){O(t,e,0)}));e.asyncDep=c}else Lr(e,c,t)}else Dr(e,t)}function Lr(e,t,n){Object(i.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(i.isObject)(t)&&(e.setupState=Object(r.proxyRefs)(t)),Dr(e,n)}function Mr(e){Ar=e,Ir=function(e){e.render._rc&&(e.withProxy=new Proxy(e.ctx,Et))}}var Fr=function(){return!Ar};function Dr(e,t,n){var o=e.type;if(!e.render){if(!t&&Ar&&!o.render){var a=o.template||Yt(e).template;if(a){0;var u=e.appContext.config,c=u.isCustomElement,s=u.compilerOptions,l=o.delimiters,f=o.compilerOptions,d=Object(i.extend)(Object(i.extend)({isCustomElement:c,delimiters:l},s),f);o.render=Ar(a,d)}}e.render=o.render||i.NOOP,Ir&&Ir(e)}if(__VUE_OPTIONS_API__){var p=xr(e);Object(r.pauseTracking)();try{Ut(e)}finally{Object(r.resetTracking)(),p()}}}function Vr(e){return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:function(t,n){return Object(r.track)(e,"get","$attrs"),t[n]}}))}(e)},slots:e.slots,emit:e.emit,expose:function(t){e.exposed=t||{}}}}function Br(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:function(t,n){return n in t?t[n]:n in _t?_t[n](e):void 0},has:function(e,t){return t in e||t in _t}}))}var Ur=/(?:^|[-_])(\w)/g,Hr=function(e){return e.replace(Ur,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};function $r(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object(i.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Yr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=$r(t);if(!r&&t.__file){var i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){var o=function(e){for(var n in e)if(e[n]===t)return n};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?Hr(r):n?"App":"Anonymous"}function Wr(e){return Object(i.isFunction)(e)&&"__vccOpts"in e}var zr=function(e,t){return Object(r.computed)(e,t,Cr)};function Kr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.EMPTY_OBJ,o=Er();var a=Object(i.camelize)(t),u=Object(i.hyphenate)(t),c=Object(r.customRef)((function(r,c){var s;return Se((function(){var n=e[t];Object(i.hasChanged)(s,n)&&(s=n,c())})),{get:function(){return r(),n.get?n.get(s):s},set:function(e){var r=o.vnode.props;r&&(t in r||a in r||u in r)&&("onUpdate:".concat(t)in r||"onUpdate:".concat(a)in r||"onUpdate:".concat(u)in r)||!Object(i.hasChanged)(e,s)||(s=e,c()),o.emit("update:".concat(t),n.set?n.set(e):e)}}})),s="modelValue"===t?"modelModifiers":"".concat(t,"Modifiers");return c[Symbol.iterator]=function(){var t=0;return{next:function(){return t<2?{value:t++?e[s]||{}:c,done:!1}:{done:!0}}}},c}function Gr(e,t,n){var r=arguments.length;return 2===r?Object(i.isObject)(t)&&!Object(i.isArray)(t)?Qn(t)?ar(e,null,[t]):ar(e,t):ar(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Qn(n)&&(n=[n]),ar(e,t,n))}function qr(){return void 0}function Jr(e,t,n,r){var i=n[r];if(i&&Xr(i,e))return i;var o=t();return o.memo=e.slice(),n[r]=o}function Xr(e,t){var n=e.memo;if(n.length!=t.length)return!1;for(var r=0;r0&&Wn&&Wn.push(e),!0}var Zr="3.4.15",Qr=i.NOOP,ei=m,ti=B,ni=function e(t,n){var r,i;if(B=t)B.enabled=!0,U.forEach((function(e){var t,n=e.event,r=e.args;return(t=B).emit.apply(t,[n].concat(c(r)))})),U=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((function(t){e(t,n)})),setTimeout((function(){B||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,!0,U=[])}),3e3)}else!0,U=[]},ri={createComponentInstance:Or,setupComponent:Pr,renderComponentRoot:Z,setCurrentRenderingInstance:K,isVNode:Qn,normalizeVNode:pr},ii=null,oi=null,ai=null},"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,n){"use strict";n.r(t),function(e){function r(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){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(e,t)||o(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 i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n122||e.charCodeAt(2)<97)},v=function(e){return e.startsWith("onUpdate:")},y=Object.assign,m=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},g=Object.prototype.hasOwnProperty,b=function(e,t){return g.call(e,t)},O=Array.isArray,_=function(e){return"[object Map]"===I(e)},w=function(e){return"[object Set]"===I(e)},S=function(e){return"[object Date]"===I(e)},E=function(e){return"[object RegExp]"===I(e)},k=function(e){return"function"==typeof e},N=function(e){return"string"==typeof e},x=function(e){return"symbol"===u(e)},T=function(e){return null!==e&&"object"===u(e)},j=function(e){return(T(e)||k(e))&&k(e.then)&&k(e.catch)},A=Object.prototype.toString,I=function(e){return A.call(e)},C=function(e){return I(e).slice(8,-1)},P=function(e){return"[object Object]"===I(e)},R=function(e){return N(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},L=c(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=c("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),F=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},D=/-(\w)/g,V=F((function(e){return e.replace(D,(function(e,t){return t?t.toUpperCase():""}))})),B=/\B([A-Z])/g,U=F((function(e){return e.replace(B,"-$1").toLowerCase()})),H=F((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),$=F((function(e){return e?"on".concat(H(e)):""})),Y=function(e,t){return!Object.is(e,t)},W=function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=e.split(/(\r?\n)/),i=r.filter((function(e,t){return t%2==1}));r=r.filter((function(e,t){return t%2==0}));for(var o=0,a=[],u=0;u=t){for(var c=u-2;c<=u+2||n>o;c++)if(!(c<0||c>=r.length)){var s=c+1;a.push("".concat(s).concat(" ".repeat(Math.max(3-String(s).length,0)),"| ").concat(r[c]));var l=r[c].length,f=i[c]&&i[c].length||0;if(c===u){var d=t-(o-(l+f)),p=Math.max(1,n>o?l-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(c>u){if(n>o){var h=Math.max(Math.min(n-o,l),1);a.push(" | "+"^".repeat(h))}o+=l+f}}break}return a.join("\n")}function ae(e){if(O(e)){for(var t={},n=0;n1&&(t[n[0].trim()]=n[1].trim())}})),t}function fe(e){var t="";if(!e||N(e))return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:U(n);(N(r)||"number"==typeof r)&&(t+="".concat(i,":").concat(r,";"))}return t}function de(e){var t="";if(N(e))t=e;else if(O(e))for(var n=0;n/="'\u0009\u000a\u000c\u0020]/,Se={};function Ee(e){if(Se.hasOwnProperty(e))return Se[e];var t=we.test(e);return t&&console.error("unsafe attribute name: ".concat(e)),Se[e]=!t}var ke={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ne=c("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),xe=c("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Te(e){if(null==e)return!1;var t=u(e);return"string"===t||"number"===t||"boolean"===t}var je=/["'&<>]/;function Ae(e){var t=""+e,n=je.exec(t);if(!n)return t;var r,i,o="",a=0;for(i=n.index;i||--!>|"]=a,e}),{})}:w(n)?{["Set(".concat(n.size,")")]:i(n.values()).map((function(e){return Fe(e)}))}:x(n)?Fe(n):!T(n)||O(n)||P(n)?n:String(n)},Fe=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return x(e)?"Symbol(".concat(null!=(t=e.description)?t:n,")"):e}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f1)for(var n=1;n122||e.charCodeAt(2)<97)},h=function(e){return e.startsWith("onUpdate:")},y=Object.assign,m=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},g=Object.prototype.hasOwnProperty,b=function(e,t){return g.call(e,t)},O=Array.isArray,_=function(e){return"[object Map]"===I(e)},w=function(e){return"[object Set]"===I(e)},S=function(e){return"[object Date]"===I(e)},E=function(e){return"[object RegExp]"===I(e)},k=function(e){return"function"==typeof e},N=function(e){return"string"==typeof e},x=function(e){return"symbol"===u(e)},T=function(e){return null!==e&&"object"===u(e)},j=function(e){return(T(e)||k(e))&&k(e.then)&&k(e.catch)},A=Object.prototype.toString,I=function(e){return A.call(e)},C=function(e){return I(e).slice(8,-1)},P=function(e){return"[object Object]"===I(e)},R=function(e){return N(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},L=c(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=c("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),F=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},D=/-(\w)/g,V=F((function(e){return e.replace(D,(function(e,t){return t?t.toUpperCase():""}))})),B=/\B([A-Z])/g,U=F((function(e){return e.replace(B,"-$1").toLowerCase()})),H=F((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),$=F((function(e){return e?"on".concat(H(e)):""})),Y=function(e,t){return!Object.is(e,t)},W=function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=e.split(/(\r?\n)/),i=r.filter((function(e,t){return t%2==1}));r=r.filter((function(e,t){return t%2==0}));for(var o=0,a=[],u=0;u=t){for(var c=u-2;c<=u+2||n>o;c++)if(!(c<0||c>=r.length)){var s=c+1;a.push("".concat(s).concat(" ".repeat(Math.max(3-String(s).length,0)),"| ").concat(r[c]));var l=r[c].length,f=i[c]&&i[c].length||0;if(c===u){var d=t-(o-(l+f)),p=Math.max(1,n>o?l-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(c>u){if(n>o){var v=Math.max(Math.min(n-o,l),1);a.push(" | "+"^".repeat(v))}o+=l+f}}break}return a.join("\n")}function ae(e){if(O(e)){for(var t={},n=0;n1&&(t[n[0].trim()]=n[1].trim())}})),t}function fe(e){var t="";if(!e||N(e))return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:U(n);(N(r)||"number"==typeof r)&&(t+="".concat(i,":").concat(r,";"))}return t}function de(e){var t="";if(N(e))t=e;else if(O(e))for(var n=0;n/="'\u0009\u000a\u000c\u0020]/,Se={};function Ee(e){if(Se.hasOwnProperty(e))return Se[e];var t=we.test(e);return t&&console.error("unsafe attribute name: ".concat(e)),Se[e]=!t}var ke={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ne=c("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),xe=c("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Te(e){if(null==e)return!1;var t=u(e);return"string"===t||"number"===t||"boolean"===t}var je=/["'&<>]/;function Ae(e){var t=""+e,n=je.exec(t);if(!n)return t;var r,i,o="",a=0;for(i=n.index;i||--!>|"]=a,e}),{})}:w(t)?{["Set(".concat(t.size,")")]:i(t.values()).map((function(e){return Fe(e)}))}:x(t)?Fe(t):!T(t)||O(t)||P(t)?t:String(t)},Fe=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return x(e)?"Symbol(".concat(null!=(t=e.description)?t:n,")"):e}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f1)for(var n=1;n0===l.indexOf(e))){var s=l.split("/"),c=s[s.length-1],h=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+c)}else{var u;h=l.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;lh&&o[n].offset>t;)o[n].offset+=3;return"(.*)"}));for(;i=n.exec(t);){for(var m=0,g=i.index;"\\"===t.charAt(--g);)m++;m%2!=1&&((h+u===o.length||o[h+u].offset>i.index)&&o.splice(h+u,0,{name:d++,optional:!1,offset:i.index}),u++)}return t+=l?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,s)};var n=/\((?!\?)/g},"./node_modules/prop-types/factoryWithThrowingShims.js":function(e,t,n){"use strict";var o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},"./node_modules/prop-types/index.js":function(e,t,n){e.exports=n("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/react-is/cjs/react-is.production.min.js":function(e,t,n){"use strict"; +!function(e){function t(t){for(var n,r,i=t[0],a=t[1],l=0,c=[];l0===l.indexOf(e))){var s=l.split("/"),c=s[s.length-1],h=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+c)}else{var u;h=l.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;lh&&o[n].offset>t;)o[n].offset+=3;return"(.*)"}));for(;i=n.exec(t);){for(var m=0,g=i.index;"\\"===t.charAt(--g);)m++;m%2!=1&&((h+u===o.length||o[h+u].offset>i.index)&&o.splice(h+u,0,{name:d++,optional:!1,offset:i.index}),u++)}return t+=l?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,s)};var n=/\((?!\?)/g},"./node_modules/prop-types/factoryWithThrowingShims.js":function(e,t,n){"use strict";var o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},"./node_modules/prop-types/index.js":function(e,t,n){e.exports=n("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/react-is/cjs/react-is.production.min.js":function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * @@ -6,4 +6,4 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,h=o?Symbol.for("react.context"):60110,u=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,p=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,S=o?Symbol.for("react.responder"):60118,x=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case l:case g:return e;default:switch(e=e&&e.$$typeof){case h:case m:case p:case y:case c:return e;default:return t}}case i:return t}}}function T(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=h,t.ContextProvider=c,t.Element=r,t.ForwardRef=m,t.Fragment=a,t.Lazy=p,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=g,t.isAsyncMode=function(e){return T(e)||E(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return E(e)===h},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===p},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===l||e===g||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===y||e.$$typeof===c||e.$$typeof===h||e.$$typeof===m||e.$$typeof===w||e.$$typeof===S||e.$$typeof===x||e.$$typeof===b)},t.typeOf=E},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){var o=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function m(){}function g(){}var f={};s(f,i,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(v([])));p&&p!==t&&n.call(p,i)&&(f=p);var b=g.prototype=d.prototype=Object.create(f);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=h(e[r],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=h(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var r=h(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function v(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return fn}));var o={};n.r(o),n.d(o,"Focusable",(function(){return N})),n.d(o,"Image",(function(){return q})),n.d(o,"ListView",(function(){return $})),n.d(o,"Modal",(function(){return re})),n.d(o,"RefreshWrapper",(function(){return Re})),n.d(o,"PullHeaderFooter",(function(){return ke})),n.d(o,"ScrollView",(function(){return Oe})),n.d(o,"Text",(function(){return Me})),n.d(o,"TextInput",(function(){return ze})),n.d(o,"View",(function(){return _e})),n.d(o,"ViewPager",(function(){return Je})),n.d(o,"WebView",(function(){return $e})),n.d(o,"BoxShadow",(function(){return nt})),n.d(o,"WaterfallView",(function(){return it})),n.d(o,"RippleViewAndroid",(function(){return dt}));var r={};n.r(r),n.d(r,"Animation",(function(){return yt})),n.d(r,"AsyncStorage",(function(){return bt})),n.d(r,"NetInfo",(function(){return St})),n.d(r,"WebSocket",(function(){return At})),n.d(r,"UIManagerModule",(function(){return It}));var i={};n.r(i),n.d(i,"Slider",(function(){return Mt})),n.d(i,"TabHost",(function(){return zt})),n.d(i,"SetNativeProps",(function(){return _t})),n.d(i,"DynamicImport",(function(){return Wt})),n.d(i,"Localization",(function(){return Ut})),n.d(i,"Turbo",(function(){return Qt})),n.d(i,"NestedScroll",(function(){return Xt}));var a=n("./node_modules/react/index.js"),l=n.n(a),s=n("../../packages/hippy-react/dist/index.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;h--){var m=r[h];"."===m?d(r,h):".."===m?(d(r,h),c++):c&&(d(r,h),c--)}if(!l)for(;c--;c)r.unshift("..");!l||""===r[0]||r[0]&&u(r[0])||r.unshift("");var g=r.join("/");return n&&"/"!==g.substr(-1)&&(g+="/"),g};var g="Invariant failed";function f(e,t){if(!e)throw new Error(g)}function y(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function p(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=h({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=m(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;ot?n.splice(t,n.length-t,o):n.push(o),u({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=p(e,t,d(),x.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(x.entries[x.index]=o,u({action:"REPLACE",location:o}))}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},canGo:function(e){var t=x.index+e;return t>=0&&t=0||(r[n]=e[n]);return r}var A=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),v=n.n(A),R=function(e){var t=Object(x.a)();return t.displayName=e,t}("Router"),V=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(c.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return l.a.createElement(R.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(l.a.Component);var k=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;rthis.onClick(e),requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},l.a.createElement(s.Text,{style:{color:"white"}},t===e?"我被点击了"+e:"没有被点击"+e)))}render(){return l.a.createElement(s.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}var W=n.p+"assets/defaultSource.jpg",K=n.p+"assets/hippyLogoWhite.png";const U="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",G=s.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"},img_result:{width:300,marginTop:-15,marginLeft:16,fontSize:16,color:"#4c9afa",borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4}});class q extends l.a.Component{constructor(e){super(e),this.state={gifLoadResult:{}}}render(){const{width:e,height:t,url:n}=this.state.gifLoadResult;return l.a.createElement(s.ScrollView,{style:G.container_style},l.a.createElement(s.Text,{style:G.info_style},"Contain:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.contain,defaultSource:W,source:{uri:U},onProgress:e=>{console.log("onProgress",e)},onLoadStart:()=>{console.log("image onloadStart")},onLoad:()=>{console.log("image onLoad")},onError:e=>{console.log("image onError",e)},onLoadEnd:()=>{console.log("image onLoadEnd")}}),l.a.createElement(s.Text,{style:G.info_style},"Cover:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"Center:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"CapInsets:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"TintColor:"),l.a.createElement(s.Image,{style:[G.image_style,{tintColor:"#4c9afa99"}],defaultSource:W,source:{uri:K},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"Cover GIF:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.cover,defaultSource:W,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoad:e=>{console.log("gif onLoad result: "+e);const{width:t,height:n,url:o}=e;this.setState({gifLoadResult:{width:t,height:n,url:o}})}}),l.a.createElement(s.Text,{style:G.img_result},`gifLoadResult: { width: ${e}, height: ${t}, url: ${n} }`))}}const Q=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],Y=s.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function X({index:e}){return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 1 UI"))}function J({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 2 UI"))}function Z({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 5 UI"))}class $ extends l.a.Component{constructor(e){super(e),this.state={dataSource:Q,fetchingDataFlag:!1,horizontal:void 0},this.delText="Delete",this.mockFetchData=this.mockFetchData.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.onDelete=this.onDelete.bind(this),this.onAppear=this.onAppear.bind(this),this.onDisappear=this.onDisappear.bind(this),this.onWillAppear=this.onWillAppear.bind(this),this.onWillDisappear=this.onWillDisappear.bind(this),this.rowShouldSticky=this.rowShouldSticky.bind(this),this.onScroll=this.onScroll.bind(this)}onDelete({index:e}){const{dataSource:t}=this.state,n=t.filter((t,n)=>e!==n);this.setState({dataSource:n})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e.concat(n);this.setState({dataSource:o,fetchingDataFlag:!1})}onAppear(e){console.log("onAppear",e)}onScroll(e){console.log("onScroll",e.contentOffset.y),e.contentOffset.y<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1}onDisappear(e){console.log("onDisappear",e)}onWillAppear(e){console.log("onWillAppear",e)}onWillDisappear(e){console.log("onWillDisappear",e)}rowShouldSticky(e){return 2===e}getRowType(e){return this.state.dataSource[e].style}getRowStyle(){const{horizontal:e}=this.state;return e?{width:100,height:50}:{}}getRowKey(e){return"row-"+e}getRenderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(X,{index:e});break;case 2:n=l.a.createElement(J,{index:e});break;case 5:n=l.a.createElement(Z,{index:e});break;case 100:n=l.a.createElement(s.Text,{style:Y.loading},"Loading now...")}return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.View,{style:Y.itemContainer},n),r?null:l.a.createElement(s.View,{style:Y.separatorLine}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(Q),600)})}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{onTouchDown:e=>{console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:e=>{console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:e=>(console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0),bounces:!0,horizontal:t,style:[{backgroundColor:"#ffffff"},t?{height:50}:{flex:1}],numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e),delText:this.delText,editable:!0,getRowStyle:this.getRowStyle,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear,onScroll:this.onScroll,scrollEventThrottle:1e3}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const ee="#4c9afa",te="#4c9afa",ne="white",oe=s.StyleSheet.create({container:{flex:1,flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},buttonView:{borderColor:ee,borderWidth:2,borderStyle:"solid",borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:ee,textAlign:"center",textAlignVertical:"center"},selectionText:{fontSize:20,textAlign:"center",textAlignVertical:"center",marginLeft:10,marginRight:10,padding:5,borderRadius:5,borderWidth:2}});class re extends l.a.Component{constructor(e){super(e),this.state={visible:!1,press:!1,animationType:"fade",immerseStatusBar:!1,hideStatusBar:!1,hideNavigationBar:!1},this.show=this.show.bind(this),this.hide=this.hide.bind(this)}feedback(e){this.setState({press:"in"===e})}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}render(){const{press:e,visible:t}=this.state;return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:oe.container},l.a.createElement(s.View,{onPressIn:()=>this.feedback("in"),onPressOut:()=>this.feedback("out"),onClick:this.show,style:[oe.buttonView,{borderColor:ee,opacity:e?.5:1}]},l.a.createElement(s.Text,{style:[oe.buttonText,{color:ee}]},"点击弹出浮层"))),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"fade"})},style:[oe.selectionText,{borderColor:"fade"===this.state.animationType?"red":ee},{color:"fade"===this.state.animationType?"red":ee}]},"fade"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide"})},style:[oe.selectionText,{borderColor:"slide"===this.state.animationType?"red":ee},{color:"slide"===this.state.animationType?"red":ee}]},"slide"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide_fade"})},style:[oe.selectionText,{borderColor:"slide_fade"===this.state.animationType?"red":ee},{color:"slide_fade"===this.state.animationType?"red":ee}]},"slide_fade")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideStatusBar:!this.state.hideStatusBar})},style:[oe.selectionText,{borderColor:this.state.hideStatusBar?"red":ee},{color:this.state.hideStatusBar?"red":ee}]},"autoHideStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({immerseStatusBar:!this.state.immerseStatusBar})},style:[oe.selectionText,{borderColor:this.state.immerseStatusBar?"red":ee},{color:this.state.immerseStatusBar?"red":ee}]},"immersionStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideNavigationBar:!this.state.hideNavigationBar})},style:[oe.selectionText,{borderColor:this.state.hideNavigationBar?"red":ee},{color:this.state.hideNavigationBar?"red":ee}]},"autoHideNavigationBar")),l.a.createElement(s.Modal,{transparent:!0,animationType:this.state.animationType,visible:t,requestClose:()=>{},orientationChange:e=>{console.log("orientation changed",e.orientation)},supportedOrientations:["portrait"],immersionStatusBar:this.state.immerseStatusBar,autoHideStatusBar:this.state.hideStatusBar,autoHideNavigationBar:this.state.hideNavigationBar},l.a.createElement(s.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},l.a.createElement(s.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:te,marginTop:300,flexDirection:"row",justifyContent:"center"}},l.a.createElement(s.Text,{style:{color:ne,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}const ie="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ae={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ie,ie,ie],subInfo:["三图评论","11评"]}},le={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},se={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var ce=[se,ae,le,ae,le,ae,le,se,ae],he=n("./node_modules/@babel/runtime/helpers/extends.js"),ue=n.n(he);var de={getScreenWidth(){const e=s.Dimensions.get("screen").width,t=s.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray(e){const t=[];for(let n=0;n=812&&s.PixelRatio.get()>=2&&(e=!0),e}};const me=(de.getScreenWidth()-24-12)/3,ge=Math.floor(me/1.35),fe=s.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:ge,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:me,height:ge},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function ye(e){const{itemBean:{title:t,picList:n}}=e;let{itemBean:{subInfo:o}}=e,r=null;if(o&&o.length){o=de.uniqueArray(o);const e=o.join(" ");r=l.a.createElement(s.Text,{style:fe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:{collapsable:!1}}),l.a.createElement(s.Text,{style:[fe.title],numberOfLines:2,enableScale:!0},t),l.a.createElement(s.View,{style:fe.imageContainer},l.a.createElement(s.Image,{style:fe.image,source:{uri:n[0]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:[fe.image,{marginLeft:6,marginRight:6}],source:{uri:n[1]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:fe.image,source:{uri:n[2]},resizeMode:s.Image.resizeMode.cover})),r?l.a.createElement(s.View,{style:fe.tagLine},r):null)}const pe=de.getScreenWidth()-24,be=Math.floor(pe-12)/3,we=Math.floor(be/1.35),Se=s.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:we},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:be,height:we},image:{width:be,height:we},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function xe(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;let n=null;const{title:o,picUrl:r}=t;let{subInfo:i}=t;if(i&&i.length){i=de.uniqueArray(i);const e=i.join(" ");n=l.a.createElement(s.Text,{style:Se.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:Se.container}),l.a.createElement(s.View,{style:Se.leftContainer},l.a.createElement(s.Text,{style:Se.title,numberOfLines:2,enableScale:!0},o),n?l.a.createElement(s.View,{style:Se.tagLine},n):null),l.a.createElement(s.View,{style:Se.imageContainer},l.a.createElement(s.Image,{resizeMode:s.Image.resizeMode.cover,style:Se.image,source:{uri:r}})))}const Ee=de.getScreenWidth()-24,Te=Math.floor(188*Ee/336),Ce=s.StyleSheet.create({text:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ee,height:Te,alignSelf:"center"},image:{width:Ee,height:Te},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ae(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;const{title:n,picUrl:o}=t;let{subInfo:r}=t,i=null;if(r&&r.length){r=de.uniqueArray(r);const e=r.join(" ");i=l.a.createElement(s.Text,{style:Ce.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,e,l.a.createElement(s.Text,{style:Ce.text,numberOfLines:2,enableScale:!0},n),l.a.createElement(s.View,{style:Ce.playerView},l.a.createElement(s.Image,{style:Ce.image,source:{uri:o},resizeMode:s.Image.resizeMode.cover})),i?l.a.createElement(s.View,{style:Ce.tagLine},i):null)}const ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});class Re extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],loadingState:"正在加载..."},this.fetchTimes=0,this.mockFetchData=this.mockFetchData.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e[e.length-1];o&&100===o.style&&e.pop();const r=e.concat(n);this.setState({dataSource:r})}onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}onClickItem(e){console.log(`item: ${e} is clicked..`)}getRenderRow(e){const{dataSource:t,loadingState:n}=this.state;let o=null;const r=t[e],i=t.length===e+1;switch(r.style){case 1:o=l.a.createElement(ye,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 2:o=l.a.createElement(xe,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 5:o=l.a.createElement(Ae,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 100:o=l.a.createElement(s.Text,{style:ve.loading},n)}return l.a.createElement(s.View,{style:ve.container},l.a.createElement(s.View,{style:ve.itemContainer},o),i?null:l.a.createElement(s.View,{style:ve.spliter}))}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:30}},l.a.createElement(s.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.setState({fetchingDataFlag:!1}),this.fetchTimes+=1,this.fetchTimes>=50?e([]):e(ce)),600)})}render(){const{dataSource:e}=this.state;return l.a.createElement(s.RefreshWrapper,{ref:e=>{this.refresh=e},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},l.a.createElement(s.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}const Ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class ke extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.mockFetchData=this.mockFetchData.bind(this),this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.getFooterStyle=this.getFooterStyle.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e}),this.listView.collapsePullHeader()}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(ce),800)})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData(),e=e.reverse()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ve.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}onClickItem(e,t){console.log(`item: ${e} is clicked..`,t.target.nodeId,t.currentTarget.nodeId)}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:Ve.pullContainer},l.a.createElement(s.Text,{style:Ve.pullContent},e))}getFooterStyle(){const{horizontal:e}=this.state;return e?{width:40}:{}}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:Ve.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}renderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 2:n=l.a.createElement(xe,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)})}return l.a.createElement(s.View,{style:Ve.container},l.a.createElement(s.View,{style:Ve.itemContainer},n),r?null:l.a.createElement(s.View,{style:Ve.splitter}))}getRowStyle(){const{horizontal:e}=this.state;return e?{height:300,justifyContent:"center",alignItems:"center"}:{}}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{horizontal:t,onClick:e=>console.log("ListView",e.target.nodeId,e.currentTarget.nodeId),ref:e=>{this.listView=e},style:[{backgroundColor:"#ffffff"},t?{height:300}:{flex:1}],numberOfRows:e.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:e=>0===e}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const Ie=s.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function Oe(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Horizontal ScrollView")),l.a.createElement(s.View,null,l.a.createElement(s.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:e=>console.log("onScroll",e),onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e)},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A"))),l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Vertical ScrollView")),l.a.createElement(s.ScrollView,{bounces:!0,horizontal:!1,style:Ie.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A")))}const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",Pe="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",Le=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}});let je=0;class Me extends l.a.Component{constructor(e){super(e),this.state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},numberOfLines:2,ellipsizeMode:void 0},this.incrementFontSize=this.incrementFontSize.bind(this),this.decrementFontSize=this.decrementFontSize.bind(this),this.incrementLine=this.incrementLine.bind(this),this.decrementLine=this.decrementLine.bind(this),this.changeMode=this.changeMode.bind(this)}incrementFontSize(){const{fontSize:e}=this.state;24!==e&&this.setState({fontSize:e+1})}decrementFontSize(){const{fontSize:e}=this.state;6!==e&&this.setState({fontSize:e-1})}incrementLine(){const{numberOfLines:e}=this.state;e<6&&this.setState({numberOfLines:e+1})}decrementLine(){const{numberOfLines:e}=this.state;e>1&&this.setState({numberOfLines:e-1})}changeMode(e){this.setState({ellipsizeMode:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{fontSize:e,textShadowColor:t,textShadowOffset:n,numberOfLines:o,ellipsizeMode:r,breakStrategy:i}=this.state,a=e=>l.a.createElement(s.View,{style:Le.itemTitle},l.a.createElement(s.Text,{style:!0},e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},a("shadow"),l.a.createElement(s.View,{style:[Le.itemContent,{height:60}],onClick:()=>{let e="red",t={x:10,y:1};je%2==1&&(e="grey",t={x:1,y:1}),je+=1,this.setState({textShadowColor:e,textShadowOffset:t})}},l.a.createElement(s.Text,{style:[Le.normalText,{color:"#242424",textShadowOffset:n,textShadowRadius:3,textShadowColor:t}]},"Text shadow is grey with radius 3 and offset 1")),a("color"),l.a.createElement(s.View,{style:[Le.itemContent,{height:80}]},l.a.createElement(s.Text,{style:[Le.normalText,{color:"#242424"}]},"Text color is black"),l.a.createElement(s.Text,{style:[Le.normalText,{color:"blue"}]},"Text color is blue"),l.a.createElement(s.Text,{style:[Le.normalText,{color:"rgb(228,61,36)"}]},"This is red")),a("fontSize"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[Le.normalText,{fontSize:e}]},"Text fontSize is "+e),l.a.createElement(s.View,{style:Le.button,onClick:this.incrementFontSize},l.a.createElement(s.Text,{style:Le.buttonText},"放大字体")),l.a.createElement(s.View,{style:Le.button,onClick:this.decrementFontSize},l.a.createElement(s.Text,{style:Le.buttonText},"缩小字体"))),a("fontStyle"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[Le.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),l.a.createElement(s.Text,{style:[Le.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),a("numberOfLines and ellipsizeMode"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[Le.normalText,{marginBottom:10}]},`numberOfLines=${o} | ellipsizeMode=${r}`),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),l.a.createElement(s.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),l.a.createElement(s.Text,null,"Text + Attachment")),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:this.incrementLine},l.a.createElement(s.Text,{style:Le.buttonText},"加一行")),l.a.createElement(s.View,{style:Le.button,onClick:this.decrementLine},l.a.createElement(s.Text,{style:Le.buttonText},"减一行"))),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("clip")},l.a.createElement(s.Text,{style:Le.buttonText},"clip")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("head")},l.a.createElement(s.Text,{style:Le.buttonText},"head")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("middle")},l.a.createElement(s.Text,{style:Le.buttonText},"middle")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("tail")},l.a.createElement(s.Text,{style:Le.buttonText},"tail")))),a("textDecoration"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),a("LetterSpacing"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),a("Nest Text"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:3},l.a.createElement(s.Text,{numberOfLines:3,style:[Le.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),l.a.createElement(s.Text,{numberOfLines:3,style:Le.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),a("Custom font"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:Le.customFont},"Hippy 跨端框架")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),a("Text Nested"),l.a.createElement(s.View,{style:[Le.itemContent,{height:150}]},l.a.createElement(s.Text,{style:{height:100,lineHeight:50}},l.a.createElement(s.Text,{numberOfLines:1,style:Le.normalText},"后面有张图片"),l.a.createElement(s.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),l.a.createElement(s.Text,{numberOfLines:1,style:Le.customFont},"前面有张图片")),l.a.createElement(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},l.a.createElement(s.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:De}}),l.a.createElement(s.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===s.Platform.OS&&a("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(s.View,{style:Le.itemContent},l.a.createElement(s.Text,{style:[Le.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:i},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),l.a.createElement(s.Text,{style:Le.normalText},"breakStrategy: "+i),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Le.buttonText},"simple")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Le.buttonText},"high_quality")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Le.buttonText},"balanced")))),a("verticalAlign"),l.a.createElement(s.View,{style:[Le.itemContent,{height:"android"===s.Platform.OS?160:70}]},l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,top:-10},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,top:-5},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,top:3},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字")))),a("tintColor & backgroundColor"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:De}})))),a("margin"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:De}})),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:De}})))))}}const Be=s.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}});class ze extends a.Component{constructor(e){super(e),this.state={textContent:""},this.changeInputContent=this.changeInputContent.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this)}changeInputContent(){this.setState({textContent:"当前时间毫秒:"+Date.now()})}focus(){this.input.focus()}blur(){this.input.blur()}async onFocus(){const e=await this.input.isFocused();this.setState({event:"onFocus",isFocused:e})}async onBlur(){const e=await this.input.isFocused();this.setState({event:"onBlur",isFocused:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{textContent:e,event:t,isFocused:n,breakStrategy:o}=this.state,r=e=>l.a.createElement(s.View,{style:Be.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:Be.container_style},r("text"),l.a.createElement(s.TextInput,{ref:e=>{this.input=e},style:Be.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:e,onBlur:()=>this.onBlur(),onFocus:()=>this.onFocus()}),l.a.createElement(s.Text,{style:Be.itemContent},`事件: ${t} | isFocused: ${n}`),l.a.createElement(s.View,{style:Be.button,onClick:this.changeInputContent},l.a.createElement(s.Text,null,"点击改变输入框内容")),l.a.createElement(s.View,{style:Be.button,onClick:this.focus},l.a.createElement(s.Text,null,"Focus")),l.a.createElement(s.View,{style:Be.button,onClick:this.blur},l.a.createElement(s.Text,null,"Blur")),r("numeric"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"numeric",placeholder:"numeric"}),r("phone-pad"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),r("password"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),r("maxLength"),l.a.createElement(s.TextInput,{caretColor:"yellow",style:Be.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===s.Platform.OS&&r("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.TextInput,{style:Be.input_style_block,breakStrategy:o,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),l.a.createElement(s.Text,{style:{}},"breakStrategy: "+o),l.a.createElement(s.View,{style:Be.buttonBar},l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Be.buttonText},"simple")),l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Be.buttonText},"high_quality")),l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Be.buttonText},"balanced")))))}}var Fe=n.p+"assets/defaultSource.jpg";const He=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function _e(){const e=e=>l.a.createElement(s.View,{style:He.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),l.a.createElement(s.View,{style:[He.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:Fe}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},l.a.createElement(s.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},l.a.createElement(s.Text,{style:{color:"white"}},"渐变色")),e("border props"),l.a.createElement(s.View,{style:[He.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),l.a.createElement(s.View,{style:[He.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"yellow"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"blue"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"green"}]})))}const Ne=s.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),We="SquarePagerView",Ke="TrianglePagerView",Ue="CirclePagerView";function Ge(e,t){const n=t=>l.a.createElement(s.View,{style:Ne.pageContainer,key:t},l.a.createElement(s.View,{style:[Ne.shapeBase,e],key:"shape"}),l.a.createElement(s.View,{style:Ne.mainRec,key:"title"},t?l.a.createElement(s.Text,{style:Ne.title},t):null));return n.displayName=t,n}const qe=Ge(Ne.square,We),Qe=Ge(Ne.triangle,Ke),Ye=Ge(Ne.circle,Ue),Xe=s.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}});class Je extends l.a.Component{constructor(e){super(e),_()(this,"state",{selectedIndex:0}),this.onPageSelected=this.onPageSelected.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageSelected(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}onPageScrollStateChanged(e){console.log("onPageScrollStateChanged",e)}onPageScroll({offset:e,position:t}){console.log("onPageScroll",e,t)}render(){const{selectedIndex:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},l.a.createElement(s.View,{style:Xe.buttonContainer},l.a.createElement(s.View,{style:Xe.button,onClick:()=>{this.viewpager.setPage(2)}},l.a.createElement(s.Text,{style:Xe.buttonText},"动效滑到第3页")),l.a.createElement(s.View,{style:Xe.button,onClick:()=>this.viewpager.setPageWithoutAnimation(0)},l.a.createElement(s.Text,{style:Xe.buttonText},"直接滑到第1页"))),l.a.createElement(s.ViewPager,{ref:e=>{this.viewpager=e},style:Xe.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[qe("squarePager"),Qe("TrianglePager"),Ye("CirclePager")]),l.a.createElement(s.View,{style:Xe.dotContainer},new Array(3).fill(0).map((t,n)=>{const o=n===e;return l.a.createElement(s.View,{style:[Xe.dot,o?Xe.selectDot:null],key:"dot_"+n})})))}}const Ze=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function $e(){return l.a.createElement(s.View,{style:{paddingHorizontal:10,flex:1}},l.a.createElement(s.View,{style:Ze.itemTitle},l.a.createElement(s.Text,null,"WebView 示例")),l.a.createElement(s.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Ze.webViewStyle,onLoad:({url:e})=>console.log("webview onload",e),onLoadStart:({url:e})=>console.log("webview onLoadStart",e),onLoadEnd:({url:e,success:t,error:n})=>console.log("webview onLoadEnd",e,t,n)}))}const et=s.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),tt=s.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function nt(){return l.a.createElement(s.View,{style:et.shadowDemo},"android"===s.Platform.OS?l.a.createElement(s.View,{style:et.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:et.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))):l.a.createElement(s.View,{style:et.shadowDemoCubeIos},l.a.createElement(s.View,{style:et.shadowDemoContentIos},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))),"android"===s.Platform.OS?l.a.createElement(s.View,{style:tt.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:tt.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))):l.a.createElement(s.View,{style:tt.shadowDemoCubeIos},l.a.createElement(s.View,{style:tt.shadowDemoContentIos},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))))}const ot=ce.filter(e=>2!==e.style),rt=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class it extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.numberOfColumns=2,this.columnSpacing=6,this.interItemSpacing=6,this.mockFetchData=this.mockFetchData.bind(this),this.renderItem=this.renderItem.bind(this),this.getItemType=this.getItemType.bind(this),this.getItemKey=this.getItemKey.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this),this.renderBanner=this.renderBanner.bind(this),this.getItemStyle=this.getItemStyle.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.onScroll=this.onScroll.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>rt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:rt.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}async onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}onClickItem(e){console.log(`item: ${e} is clicked..`)}getItemType(e){return this.state.dataSource[e].style}getItemKey(e){return"row-"+e}onItemClick(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}onScroll(e){}renderBanner(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}renderItem(e){const{dataSource:t}=this.state;let n=null;const o=t[e];switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean});break;case 2:n=l.a.createElement(xe,{itemBean:o.itemBean});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean})}return l.a.createElement(s.View,{onClick:()=>this.onItemClick(e),style:rt.container},l.a.createElement(s.View,{style:rt.itemContainer},n),l.a.createElement(s.View,{style:rt.splitter}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>{const t=[...ot,...ot];return e(t)},600)})}getWaterfallContentInset(){return{top:0,left:0,bottom:0,right:0}}getItemStyle(){const{numberOfColumns:e,columnSpacing:t}=this,n=s.Dimensions.get("screen").width-32,o=this.getWaterfallContentInset();return{width:(n-o.left-o.right-(e-1)*t)/e}}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:rt.pullContainer},l.a.createElement(s.Text,{style:rt.pullContent},e))}render(){const{dataSource:e}=this.state,{numberOfColumns:t,columnSpacing:n,interItemSpacing:o}=this,r=this.getWaterfallContentInset();return l.a.createElement(s.WaterfallView,{ref:e=>{this.listView=e},numberOfColumns:t,columnSpacing:n,interItemSpacing:o,numberOfItems:e.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:r})}}var at=n.p+"assets/defaultSource.jpg";function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{i.current.setPressed(!1)},{nativeBackgroundAndroid:h,style:u}=e;return l.a.createElement(s.View,{onLayout:()=>{s.UIManagerModule.measureInAppWindow(i.current,e=>{n(e.x),r(e.y)})},style:u,onTouchDown:e=>{i.current.setHotspot(e.page_x-t,e.page_y-o),i.current.setPressed(!0)},onTouchEnd:c,onTouchCancel:c,ref:i,nativeBackgroundAndroid:st(st({},ct),h)},e.children)}const ut=s.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderStyle:"solid",borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,borderStyle:"solid",backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:at,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function dt(){return"ios"===s.Platform.OS?l.a.createElement(s.Text,null,"iOS暂未支持水波纹效果"):l.a.createElement(s.ScrollView,{style:{margin:10,flex:1}},l.a.createElement(s.View,{style:[ut.imgRectangle,{marginTop:20,backgroundImage:at,backgroundSize:"cover"}]},l.a.createElement(ht,{style:[ut.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white",maxWidth:200}},"外层背景图,内层无边框水波纹,受外层影响始终有边框"))),l.a.createElement(ht,{style:[ut.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},l.a.createElement(s.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),l.a.createElement(ht,{style:[ut.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"#fff"}},"带背景色水波纹")),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white"}},"有边框水波纹,带本地底图效果"))),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"black"}},"有边框水波纹,带网络底图效果"))))}const mt="#4c9afa",gt="#f44837",ft=s.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:gt},showArea:{height:150,marginVertical:10},button:{borderColor:mt,borderWidth:2,borderStyle:"solid",justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:mt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}});class yt extends l.a.Component{constructor(e){super(e),this.state={}}componentWillMount(){this.horizonAnimation=new s.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new s.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.rotateAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:180,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:180,toValue:360,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewXAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewYAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new s.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}componentDidMount(){"web"===s.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef),this.rotateAnimationSet.setRef(this.rotateRef),this.skewXAnimationSet.setRef(this.skewRef),this.skewYAnimationSet.setRef(this.skewRef)),this.horizonAnimation.onAnimationStart(()=>{console.log("on animation start!!!")}),this.horizonAnimation.onAnimationEnd(()=>{console.log("on animation end!!!")}),this.horizonAnimation.onAnimationCancel(()=>{console.log("on animation cancel!!!")}),this.horizonAnimation.onAnimationRepeat(()=>{console.log("on animation repeat!!!")})}componentWillUnmount(){this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.bgColorAnimationSet&&this.bgColorAnimationSet.destroy(),this.txtColorAnimationSet&&this.txtColorAnimationSet.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy(),this.rotateAnimationSet&&this.rotateAnimationSet.destroy(),this.skewXAnimationSet&&this.skewXAnimationSet.destroy(),this.skewYAnimationSet&&this.skewYAnimationSet.destroy()}render(){return l.a.createElement(s.ScrollView,{style:ft.container},l.a.createElement(s.Text,{style:ft.title},"水平位移动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.horizonAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},l.a.createElement(s.Text,{style:ft.buttonText},"更新"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.horizonRef=e},style:[ft.square,{transform:[{translateX:this.horizonAnimation}]}]})),l.a.createElement(s.Text,{style:ft.title},"高度形变动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.verticalAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.verticalRef=e},style:[ft.square,{height:this.verticalAnimation}]})),l.a.createElement(s.Text,{style:ft.title},"旋转动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.rotateAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.rotateRef=e},style:[ft.square,{transform:[{rotate:this.rotateAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"倾斜动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.start(),this.skewYAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.skewXAnimationSet.pause(),this.skewYAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.resume(),this.skewYAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.skewRef=e},style:[ft.square,{transform:[{skewX:this.skewXAnimationSet},{skewY:this.skewYAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"缩放动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.scaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.scaleRef=e},style:[ft.square,{transform:[{scale:this.scaleAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"颜色渐变动画(文字渐变仅Android支持)"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.start(),this.txtColorAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.bgColorAnimationSet.pause(),this.txtColorAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.resume(),this.txtColorAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.bgColorRef=e},style:[ft.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},l.a.createElement(s.Text,{ref:e=>{this.textColorRef=e},style:[ft.colorText,{color:"android"===s.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),l.a.createElement(s.Text,{style:ft.title},"贝塞尔曲线动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.cubicBezierScaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.cubicBezierScaleRef=e},style:[ft.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}const pt=s.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}});class bt extends l.a.Component{constructor(e){super(e),this.state={result:""},this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onTextChangeValue=this.onTextChangeValue.bind(this),this.onClickSet=this.onClickSet.bind(this),this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onClickGet=this.onClickGet.bind(this)}onClickSet(){const{key:e,value:t}=this.state;e&&s.AsyncStorage.setItem(e,t)}onClickGet(){const{key:e}=this.state;e&&s.AsyncStorage.getItem(e).then(e=>{this.setState({result:e})})}onTextChangeKey(e){this.setState({key:e})}onTextChangeValue(e){this.setState({value:e})}render(){const{result:e}=this.state;return l.a.createElement(s.ScrollView,{style:pt.containerStyle},l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeValue})),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickSet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Set")),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{marginTop:60}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{display:"none"}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.Text,{style:[pt.infoStyle,{width:200}]},e)),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickGet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Get")))}}const wt=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},wrapper:{borderColor:"#eee",borderWidth:1,borderStyle:"solid",paddingHorizontal:10,paddingVertical:5,marginVertical:10,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},infoContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginTop:5,marginBottom:5,flexWrap:"wrap"},infoText:{collapsable:!1,marginVertical:5}});class St extends l.a.Component{constructor(e){super(e),this.state={netInfoStatusTxt:"",netInfoChangeTxt:"",fetchInfoTxt:"",cookies:""},this.listener=null}async fetchNetInfoStatus(){this.setState({netInfoStatusTxt:await s.NetInfo.fetch()})}fetchUrl(){fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>(this.setState({fetchInfoTxt:"成功状态: "+e.status}),e)).catch(e=>{this.setState({fetchInfoTxt:"收到错误: "+e})})}setCookies(){s.NetworkModule.setCookie("https://hippyjs.org","name=hippy;network=mobile")}getCookies(){s.NetworkModule.getCookies("https://hippyjs.org").then(e=>{this.setState({cookies:e})})}async componentWillMount(){const e=this;this.listener=s.NetInfo.addEventListener("change",t=>{e.setState({netInfoChangeTxt:""+t.network_info})})}componentWillUnmount(){this.listener&&s.NetInfo.removeEventListener("change",this.listener)}componentDidMount(){this.fetchUrl(),this.fetchNetInfoStatus()}render(){const{netInfoStatusTxt:e,fetchInfoTxt:t,netInfoChangeTxt:n,cookies:o}=this.state,r=e=>l.a.createElement(s.View,{style:wt.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},r("Fetch"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchUrl()},l.a.createElement(s.Text,{style:{color:"white"}},"请求 hippy 网址:")),l.a.createElement(s.Text,{style:wt.infoText},t))),r("NetInfo"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchNetInfoStatus()},l.a.createElement(s.Text,{style:{color:"white"}},"获取网络状态:")),l.a.createElement(s.Text,{style:wt.infoText},e)),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10}},l.a.createElement(s.Text,{style:{color:"white"}},"监听网络变化:")),l.a.createElement(s.Text,{style:wt.infoText},n))),r("NetworkModule"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.setCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"设置Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},"name=hippy;network=mobile")),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.getCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"获取Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},o))))}}const xt=s.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),Et="wss://echo.websocket.org",Tt="Rock it with Hippy WebSocket";let Ct;var At=function(){const e=Object(a.useRef)(null),t=Object(a.useRef)(null),[n,o]=Object(a.useState)([]),r=e=>{o(t=>[e,...t])};return l.a.createElement(s.View,{style:xt.fullScreen},l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Url:"),l.a.createElement(s.TextInput,{ref:e,value:Et,style:xt.input}),l.a.createElement(s.View,{style:xt.row},l.a.createElement(s.Text,{onClick:()=>{e.current.getValue().then(e=>{Ct&&1===Ct.readyState&&Ct.close(),Ct=new WebSocket(e),Ct.onopen=()=>r("[Opened] "+Ct.url),Ct.onclose=()=>r("[Closed] "+Ct.url),Ct.onerror=e=>r("[Error] "+e.reason),Ct.onmessage=e=>r("[Received] "+e.data)})},style:xt.button},"Connect"),l.a.createElement(s.Text,{onClick:()=>Ct.close(),style:xt.button},"Disconnect"))),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Message:"),l.a.createElement(s.TextInput,{ref:t,value:Tt,style:xt.input}),l.a.createElement(s.Text,{onClick:()=>t.current.getValue().then(e=>{r("[Sent] "+e),Ct.send(e)}),style:xt.button},"Send")),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Log:"),l.a.createElement(s.ScrollView,{style:xt.fullScreen},n.map((e,t)=>l.a.createElement(s.Text,{key:t,style:xt.output},e)))))};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t{const e=s.Dimensions.get("screen");({width:t,height:n}=e)});const[o,r]=Object(a.useState)({width:100,height:100,top:10,left:10}),[i,c]=Object(a.useState)({width:0,height:0,x:0,y:0}),h=async(t=!1)=>{try{const n=await s.UIManagerModule.getBoundingClientRect(e.current,{relToContainer:t});c(n)}catch(e){console.error("getBoxPosition error",e)}},u=Rt(Rt({},Vt.box),o);return l.a.createElement(s.View,{style:Vt.full},l.a.createElement(s.View,{style:Vt.demoContent},l.a.createElement(s.View,{ref:e,style:u},l.a.createElement(s.Text,{style:Vt.text,numberOfLines:2},"I am the box"))),l.a.createElement(s.View,{style:Vt.buttonContainer},l.a.createElement(s.View,{onClick:()=>{const e=kt(0,t-100),o=kt(0,n-450),i=kt(80,120);r({left:e,top:o,width:i,height:i})},style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Move position")),l.a.createElement(s.View,{onClick:()=>h(!1),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in App Window")),l.a.createElement(s.View,{onClick:()=>h(!0),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in Container(RootView)"))),l.a.createElement(s.View,{style:Vt.row},l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"Box style:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+u.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+u.height),l.a.createElement(s.Text,{style:Vt.black},"Left: "+u.left),l.a.createElement(s.Text,{style:Vt.black},"Top: "+u.top)),l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"getBoundingClientRect output:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+i.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+i.height),l.a.createElement(s.Text,{style:Vt.black},"X: "+i.x),l.a.createElement(s.Text,{style:Vt.black},"Y: "+i.y))))};const Ot=s.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}});class Dt extends l.a.Component{constructor(e){super(e),this.state={current:e.current||0}}update(e){const{current:t}=this.state;t!==e&&this.setState({current:e})}render(){const{count:e}=this.props,{current:t}=this.state,n=[];for(let o=0;o=r||(this.indicator&&this.indicator.update(o),this.currentIndex=o)}onScrollBeginDrag(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}onScrollEndDrag(){this.doCreateTimer()}onLayout(e){this.width=e.layout.width}doSwitchPage(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}doCreateTimer(){this.doClearTimer(),this.duration<=0||(this.interval=setInterval(()=>{this.doSwitchPage((this.currentIndex+1)%this.itemCount)},this.duration))}doClearTimer(){this.interval&&clearInterval(this.interval),this.interval=null}render(){const{images:e}=this.props,t=[];for(let n=0;n{this.scrollView=e}},t),l.a.createElement(Dt,{ref:e=>{this.indicator=e},count:this.itemCount}))}}_()(Pt,"defaultProps",{duration:0,currentPage:0,images:[]});const Lt=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],jt=s.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Mt(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.Text,{style:jt.infoStyle},"Auto:"),l.a.createElement(Pt,{style:jt.sliderStyle,images:Lt,duration:1e3}),l.a.createElement(s.Text,{style:jt.infoStyle},"Manual:"),l.a.createElement(Pt,{style:jt.sliderStyle,images:Lt,duration:0}))}const Bt=s.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1,borderStyle:"solid"},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}});class zt extends l.a.Component{constructor(e){super(e),this.state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},this.navScrollView=null,this.viewPager=null,this.onViewPagerChange=this.onViewPagerChange.bind(this),this.pressNavItem=this.pressNavItem.bind(this),this.scrollSV=this.scrollSV.bind(this)}static getPage(e,t){switch(t%3){case 0:return qe(e);case 1:return Ye(e);case 2:return Qe(e);default:return null}}componentDidUpdate(){this.scrollSV()}onViewPagerChange({position:e}){this.setState({curIndex:e})}scrollSV(){if(this.navScrollView){const{curIndex:e,navList:t}=this.state,n=t.length,o=de.getScreenWidth(),r=o/2/60,i=60*nn-r?60*n-o:60*e-60*r+30,this.navScrollView.scrollTo({x:a,y:0,animated:!0})}}pressNavItem(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}renderNav(){const{navList:e,curIndex:t}=this.state;return l.a.createElement(s.View,{style:Bt.container},l.a.createElement(s.ScrollView,{style:Bt.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:e=>{this.navScrollView=e}},e.map((e,n)=>l.a.createElement(s.View,{style:Bt.navItem,key:"nav_"+e,activeOpacity:.5,onClick:()=>this.pressNavItem(n)},l.a.createElement(s.Text,{style:[Bt.navItemText,t===n?Bt.navItemTextBlue:Bt.navItemTextNormal],numberOfLines:1},e)))))}render(){const{navList:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),l.a.createElement(s.ViewPager,{ref:e=>{this.viewPager=e},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},e.map((e,t)=>zt.getPage(e,t))))}}const{width:Ft}=s.Dimensions.get("window"),Ht=s.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}});class _t extends l.a.Component{constructor(e){super(e),this.demon1Point=l.a.createRef(),this.demo1PointDom=null,this.state={demo2Left:0},this.isDemon1Layouted=!1,this.idDemon2Layouted=!1,this.onTouchDown1=this.onTouchDown1.bind(this),this.onDemon1Layout=this.onDemon1Layout.bind(this),this.onTouchMove1=this.onTouchMove1.bind(this),this.onTouchDown2=this.onTouchDown2.bind(this),this.onTouchMove2=this.onTouchMove2.bind(this)}componentDidMount(){}onDemon1Layout(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=s.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}onTouchDown1(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchMove1(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchDown2(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.setState({demo2Left:n})}onTouchMove2(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.setState({demo2Left:n})}render(){const{demo2Left:e}=this.state;return l.a.createElement(s.View,{style:Ht.setNativePropsDemo},l.a.createElement(s.Text,null,"setNativeProps实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},l.a.createElement(s.View,{onLayout:this.onDemon1Layout,style:Ht.nativeDemo1Point,ref:this.demon1Point})),l.a.createElement(s.View,{style:Ht.splitter}),l.a.createElement(s.Text,null,"普通渲染实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},l.a.createElement(s.View,{style:[Ht.nativeDemo2Point,{left:e}]})))}}const Nt=s.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Wt extends l.a.Component{constructor(e){super(e),this.state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},this.onAsyncComponentLoad=this.onAsyncComponentLoad.bind(this)}onAsyncComponentLoad(){console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then(e=>{this.setState({AsyncComponentFromLocal:e.default||e})}).catch(e=>console.error("import async local component error",e)),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then(e=>{this.setState({AsyncComponentFromHttp:e.default||e})}).catch(e=>console.error("import async remote component error",e))}render(){const{AsyncComponentFromLocal:e,AsyncComponentFromHttp:t}=this.state;return l.a.createElement(s.View,{style:Nt.dynamicImportDemo},l.a.createElement(s.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),l.a.createElement(s.View,{style:{marginTop:20}},e?l.a.createElement(e,null):null,t?l.a.createElement(t,null):null))}}const Kt=s.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Ut extends l.a.Component{render(){const{country:e,language:t,direction:n}=s.Platform.Localization||{};return l.a.createElement(s.View,{style:Kt.LocalizationDemo},l.a.createElement(s.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},`国际化相关信息:国家 ${e} | 语言 ${t} | 方向 ${1===n?"RTL":"LTR"}`)))}}const Gt=()=>getTurboModule("demoTurbo").getTurboConfig(),qt=s.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}});class Qt extends l.a.Component{constructor(e){super(e),this.state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},this.onTurboFunc=this.onTurboFunc.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.getRowKey=this.getRowKey.bind(this)}async onTurboFunc(e){let t;if("nativeWithPromise"===e)t=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=Gt(),t="获取到config对象";else if("printTurboConfig"===e)n=this.config||Gt(),t=getTurboModule("demoTurbo").printTurboConfig(n);else if("getInfo"===e)t=(this.config||Gt()).getInfo();else if("setInfo"===e)(this.config||Gt()).setInfo("Hello World"),t="设置config信息成功";else{t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[e]()}var n;this.setState({result:t})}renderResultView(){return l.a.createElement(s.View,{style:qt.resultView},l.a.createElement(s.Text,{style:{backgroundColor:"darkseagreen"}},""+this.state.result))}getRenderRow(e){const{funList:t}=this.state;return l.a.createElement(s.View,{style:qt.cellContentView},l.a.createElement(s.View,{style:qt.funcInfo},l.a.createElement(s.Text,{numberofLines:0},"函数名:",t[e])),l.a.createElement(s.Text,{style:qt.actionButton,onClick:()=>this.onTurboFunc(t[e])},"执行"))}getRowKey(e){const{funList:t}=this.state;return t[e]}render(){const{funList:e}=this.state;return l.a.createElement(s.View,{style:qt.container},this.renderResultView(),l.a.createElement(s.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}const Yt=s.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}});class Xt extends l.a.Component{constructor(e){super(e),this.state={layoutHeight:0,currentSlide:0}}selectPage(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}render(){const{layoutHeight:e,currentSlide:t}=this.state;return l.a.createElement(s.ScrollView,{style:Yt.demoWrap,scrollEventThrottle:50,onLayout:e=>this.setState({layoutHeight:e.layout.height})},l.a.createElement(s.View,{style:Yt.banner}),l.a.createElement(s.View,{style:Yt.tabs},l.a.createElement(s.Text,{key:"tab1",style:0===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(0)},"tab 1 (parent first)"),l.a.createElement(s.Text,{key:"tab2",style:1===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(1)},"tab 2 (self first)")),l.a.createElement(s.ViewPager,{ref:e=>this.viewPager=e,initialPage:t,style:{height:e-80},onPageSelected:e=>this.setState({currentSlide:e.position})},l.a.createElement(s.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd}),l.a.createElement(s.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd})))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t 组件",component:$t.View,meta:{type:en.COMPONENT}},{path:"/Text",name:" 组件",component:$t.Text,meta:{type:en.COMPONENT}},{path:"/Image",name:" 组件",component:$t.Image,meta:{type:en.COMPONENT}},{path:"/ListView",name:" 组件",component:$t.ListView,meta:{type:en.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:$t.WaterfallView,meta:{type:en.COMPONENT}},{path:"/PullHeader",name:" 组件",component:$t.PullHeaderFooter,meta:{type:en.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:$t.RefreshWrapper,meta:{type:en.COMPONENT}},{path:"/ScrollView",name:" 组件",component:$t.ScrollView,meta:{type:en.COMPONENT}},{path:"/ViewPager",name:" 组件",component:$t.ViewPager,meta:{type:en.COMPONENT}},{path:"/TextInput",name:" 组件",component:$t.TextInput,meta:{type:en.COMPONENT}},{path:"/Modal",name:" 组件",component:$t.Modal,meta:{type:en.COMPONENT}},{path:"/Slider",name:" 组件",component:$t.Slider,meta:{type:en.COMPONENT}},{path:"/TabHost",name:" 组件",component:$t.TabHost,meta:{type:en.COMPONENT}},{path:"/WebView",name:" 组件",component:$t.WebView,meta:{type:en.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:$t.RippleViewAndroid,meta:{type:en.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:en.TITLE,mapType:en.MODULE}},{path:"/Animation",name:"Animation 模块",component:$t.Animation,meta:{type:en.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:$t.WebSocket,meta:{type:en.MODULE}},{path:"/NetInfo",name:"Network 模块",component:$t.NetInfo,meta:{type:en.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:$t.UIManagerModule,meta:{type:en.MODULE}},{path:"/Others",name:"Others",meta:{type:en.TITLE,mapType:en.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:$t.NestedScroll,meta:{type:en.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:$t.BoxShadow,meta:{type:en.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:$t.SetNativeProps,meta:{type:en.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:$t.DynamicImport,meta:{type:en.OTHER}},{path:"/Localization",name:"Localization 范例",component:$t.Localization,meta:{type:en.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:$t.Turbo,meta:{type:en.OTHER}}],nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC";const on="#1E304A",rn=s.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:on,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:on,lineHeight:16}});var an=F(({history:e,route:t})=>0===e.index?l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,null,l.a.createElement(s.Text,{numberOfLines:1,style:[rn.title]},t.name)),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},"unspecified"!==s.default.version?""+s.default.version:"master"))):l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,{onClick:()=>e.goBack(),style:[rn.headerButton]},l.a.createElement(s.Image,{style:rn.backIcon,source:{uri:nn}})),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},t.name))));function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sn(e){for(var t=1;t{t[en[e]]=!1}),this.state={pressItem:"",dataSource:[...tn],typeVisibleState:t},this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.clickTo=this.clickTo.bind(this),this.clickToggle=this.clickToggle.bind(this)}componentDidMount(){const{history:e}=this.props;"android"===s.Platform.OS&&s.BackAndroid.addListener(()=>(console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)))}getRowType(e){const{dataSource:t}=this.state;return t[e].meta.type}getRowKey(e){const{dataSource:t}=this.state;return t[e].path||""+e}feedback(e){const t=e||"";this.setState({pressItem:t})}clickTo(e){const{history:t}=this.props;t.push(e)}clickToggle(e){this.setState({typeVisibleState:sn(sn({},this.state.typeVisibleState),{},{[e]:!this.state.typeVisibleState[e]})})}renderRow(e){const{dataSource:t,pressItem:n,typeVisibleState:o}=this.state,r=t[e],{type:i}=r.meta;if(i===en.TITLE){const{mapType:e}=r.meta;return l.a.createElement(s.View,{style:[cn.typeContainer,o[e]?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{borderBottomLeftRadius:4,borderBottomRightRadius:4}],onClick:()=>this.clickToggle(e)},l.a.createElement(s.Text,{style:cn.typeText},r.name),l.a.createElement(s.Image,{style:[cn.arrowIcon,o[e]?{transform:[{rotate:"-90deg"}]}:{transform:[{rotate:"180deg"}]}],source:{uri:nn}}))}let a=!1;const c=t[e+1],h=t.length-1;return(c&&c.meta.type===en.TITLE||e===h)&&(a=!0),l.a.createElement(s.View,{style:o[i]?{display:"flex"}:{display:"none"}},l.a.createElement(s.View,{onPressIn:()=>this.feedback(r.path),onPressOut:()=>this.feedback(),onClick:()=>this.clickTo(r.path),style:[cn.buttonView,{opacity:n===r.path?.5:1}]},l.a.createElement(s.Text,{style:cn.buttonText},r.name)),a?null:l.a.createElement(s.View,{style:cn.separatorLine}))}render(){const{dataSource:e}=this.state;return l.a.createElement(s.ListView,{style:{flex:1},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey,paintType:"fcp"})}}const un=[{path:"/Gallery",name:"Hippy React",component:F(hn)},...tn];var dn=()=>l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(k,{initialEntries:["/Gallery"]},un.map(e=>{const t=e.component;return l.a.createElement(P,{key:e.path,exact:!0,path:""+e.path},l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(an,{route:e}),l.a.createElement(t,null)))})));const mn={container:{flex:1,paddingHorizontal:16,backgroundColor:"#E5E5E5"}};class gn extends a.Component{render(){const{children:e}=this.props;return l.a.createElement(s.View,{style:mn.container,onLayout:this.onLayout},e)}}class fn extends a.Component{componentDidMount(){s.ConsoleModule.log("~~~~~~~~~~~~~~~~~ This is a log from ConsoleModule ~~~~~~~~~~~~~~~~~")}render(){return l.a.createElement(gn,null,l.a.createElement(dn,null))}}},"./src/main.js":function(e,t,n){"use strict";n.r(t),function(e){var t=n("../../packages/hippy-react/dist/index.js"),o=n("./src/app.jsx");e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)}),new t.Hippy({appName:"Demo",entryPage:o.a,bubbles:!1,silent:!1}).start()}.call(this,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}}); \ No newline at end of file + */var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,h=o?Symbol.for("react.context"):60110,u=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,p=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,S=o?Symbol.for("react.responder"):60118,x=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case l:case g:return e;default:switch(e=e&&e.$$typeof){case h:case m:case p:case y:case c:return e;default:return t}}case i:return t}}}function T(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=h,t.ContextProvider=c,t.Element=r,t.ForwardRef=m,t.Fragment=a,t.Lazy=p,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=g,t.isAsyncMode=function(e){return T(e)||E(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return E(e)===h},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===p},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===l||e===g||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===y||e.$$typeof===c||e.$$typeof===h||e.$$typeof===m||e.$$typeof===w||e.$$typeof===S||e.$$typeof===x||e.$$typeof===b)},t.typeOf=E},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){var o=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function m(){}function g(){}var f={};s(f,i,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(v([])));p&&p!==t&&n.call(p,i)&&(f=p);var b=g.prototype=d.prototype=Object.create(f);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=h(e[r],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=h(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var r=h(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function v(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return fn}));var o={};n.r(o),n.d(o,"Focusable",(function(){return N})),n.d(o,"Image",(function(){return q})),n.d(o,"ListView",(function(){return $})),n.d(o,"Modal",(function(){return re})),n.d(o,"RefreshWrapper",(function(){return Re})),n.d(o,"PullHeaderFooter",(function(){return ke})),n.d(o,"ScrollView",(function(){return Oe})),n.d(o,"Text",(function(){return Be})),n.d(o,"TextInput",(function(){return ze})),n.d(o,"View",(function(){return _e})),n.d(o,"ViewPager",(function(){return Je})),n.d(o,"WebView",(function(){return $e})),n.d(o,"BoxShadow",(function(){return nt})),n.d(o,"WaterfallView",(function(){return it})),n.d(o,"RippleViewAndroid",(function(){return dt}));var r={};n.r(r),n.d(r,"Animation",(function(){return yt})),n.d(r,"AsyncStorage",(function(){return bt})),n.d(r,"NetInfo",(function(){return St})),n.d(r,"WebSocket",(function(){return At})),n.d(r,"UIManagerModule",(function(){return It}));var i={};n.r(i),n.d(i,"Slider",(function(){return Bt})),n.d(i,"TabHost",(function(){return zt})),n.d(i,"SetNativeProps",(function(){return _t})),n.d(i,"DynamicImport",(function(){return Wt})),n.d(i,"Localization",(function(){return Ut})),n.d(i,"Turbo",(function(){return Qt})),n.d(i,"NestedScroll",(function(){return Xt}));var a=n("./node_modules/react/index.js"),l=n.n(a),s=n("../../packages/hippy-react/dist/index.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;h--){var m=r[h];"."===m?d(r,h):".."===m?(d(r,h),c++):c&&(d(r,h),c--)}if(!l)for(;c--;c)r.unshift("..");!l||""===r[0]||r[0]&&u(r[0])||r.unshift("");var g=r.join("/");return n&&"/"!==g.substr(-1)&&(g+="/"),g};var g="Invariant failed";function f(e,t){if(!e)throw new Error(g)}function y(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function p(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=h({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=m(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;ot?n.splice(t,n.length-t,o):n.push(o),u({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=p(e,t,d(),x.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(x.entries[x.index]=o,u({action:"REPLACE",location:o}))}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},canGo:function(e){var t=x.index+e;return t>=0&&tthis.onClick(e),requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},l.a.createElement(s.Text,{style:{color:"white"}},t===e?"我被点击了"+e:"没有被点击"+e)))}render(){return l.a.createElement(s.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}var W=n.p+"assets/defaultSource.jpg",K=n.p+"assets/hippyLogoWhite.png";const U="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",G=s.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"},img_result:{width:300,marginTop:-15,marginLeft:16,fontSize:16,color:"#4c9afa",borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4}});class q extends l.a.Component{constructor(e){super(e),this.state={gifLoadResult:{}}}render(){const{width:e,height:t,url:n}=this.state.gifLoadResult;return l.a.createElement(s.ScrollView,{style:G.container_style},l.a.createElement(s.Text,{style:G.info_style},"Contain:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.contain,defaultSource:W,source:{uri:U},onProgress:e=>{console.log("onProgress",e)},onLoadStart:()=>{console.log("image onloadStart")},onLoad:()=>{console.log("image onLoad")},onError:e=>{console.log("image onError",e)},onLoadEnd:()=>{console.log("image onLoadEnd")}}),l.a.createElement(s.Text,{style:G.info_style},"Cover:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"Center:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"CapInsets:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"TintColor:"),l.a.createElement(s.Image,{style:[G.image_style,{tintColor:"#4c9afa99"}],defaultSource:W,source:{uri:K},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"Cover GIF:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.cover,defaultSource:W,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoad:e=>{console.log("gif onLoad result: "+e);const{width:t,height:n,url:o}=e;this.setState({gifLoadResult:{width:t,height:n,url:o}})}}),l.a.createElement(s.Text,{style:G.img_result},`gifLoadResult: { width: ${e}, height: ${t}, url: ${n} }`))}}const Q=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],Y=s.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function X({index:e}){return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 1 UI"))}function J({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 2 UI"))}function Z({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 5 UI"))}class $ extends l.a.Component{constructor(e){super(e),this.state={dataSource:Q,fetchingDataFlag:!1,horizontal:void 0},this.delText="Delete",this.mockFetchData=this.mockFetchData.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.onDelete=this.onDelete.bind(this),this.onAppear=this.onAppear.bind(this),this.onDisappear=this.onDisappear.bind(this),this.onWillAppear=this.onWillAppear.bind(this),this.onWillDisappear=this.onWillDisappear.bind(this),this.rowShouldSticky=this.rowShouldSticky.bind(this),this.onScroll=this.onScroll.bind(this)}onDelete({index:e}){const{dataSource:t}=this.state,n=t.filter((t,n)=>e!==n);this.setState({dataSource:n})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e.concat(n);this.setState({dataSource:o,fetchingDataFlag:!1})}onAppear(e){console.log("onAppear",e)}onScroll(e){console.log("onScroll",e.contentOffset.y),e.contentOffset.y<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1}onDisappear(e){console.log("onDisappear",e)}onWillAppear(e){console.log("onWillAppear",e)}onWillDisappear(e){console.log("onWillDisappear",e)}rowShouldSticky(e){return 2===e}getRowType(e){return this.state.dataSource[e].style}getRowStyle(){const{horizontal:e}=this.state;return e?{width:100,height:50}:{}}getRowKey(e){return"row-"+e}getRenderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(X,{index:e});break;case 2:n=l.a.createElement(J,{index:e});break;case 5:n=l.a.createElement(Z,{index:e});break;case 100:n=l.a.createElement(s.Text,{style:Y.loading},"Loading now...")}return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.View,{style:Y.itemContainer},n),r?null:l.a.createElement(s.View,{style:Y.separatorLine}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(Q),600)})}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{onTouchDown:e=>{console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:e=>{console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:e=>(console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0),bounces:!0,horizontal:t,style:[{backgroundColor:"#ffffff"},t?{height:50}:{flex:1}],numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e),delText:this.delText,editable:!0,getRowStyle:this.getRowStyle,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear,onScroll:this.onScroll,scrollEventThrottle:1e3}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const ee="#4c9afa",te="#4c9afa",ne="white",oe=s.StyleSheet.create({container:{flex:1,flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},buttonView:{borderColor:ee,borderWidth:2,borderStyle:"solid",borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:ee,textAlign:"center",textAlignVertical:"center"},selectionText:{fontSize:20,textAlign:"center",textAlignVertical:"center",marginLeft:10,marginRight:10,padding:5,borderRadius:5,borderWidth:2}});class re extends l.a.Component{constructor(e){super(e),this.state={visible:!1,press:!1,animationType:"fade",immerseStatusBar:!1,hideStatusBar:!1,hideNavigationBar:!1},this.show=this.show.bind(this),this.hide=this.hide.bind(this)}feedback(e){this.setState({press:"in"===e})}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}render(){const{press:e,visible:t}=this.state;return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:oe.container},l.a.createElement(s.View,{onPressIn:()=>this.feedback("in"),onPressOut:()=>this.feedback("out"),onClick:this.show,style:[oe.buttonView,{borderColor:ee,opacity:e?.5:1}]},l.a.createElement(s.Text,{style:[oe.buttonText,{color:ee}]},"点击弹出浮层"))),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"fade"})},style:[oe.selectionText,{borderColor:"fade"===this.state.animationType?"red":ee},{color:"fade"===this.state.animationType?"red":ee}]},"fade"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide"})},style:[oe.selectionText,{borderColor:"slide"===this.state.animationType?"red":ee},{color:"slide"===this.state.animationType?"red":ee}]},"slide"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide_fade"})},style:[oe.selectionText,{borderColor:"slide_fade"===this.state.animationType?"red":ee},{color:"slide_fade"===this.state.animationType?"red":ee}]},"slide_fade")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideStatusBar:!this.state.hideStatusBar})},style:[oe.selectionText,{borderColor:this.state.hideStatusBar?"red":ee},{color:this.state.hideStatusBar?"red":ee}]},"autoHideStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({immerseStatusBar:!this.state.immerseStatusBar})},style:[oe.selectionText,{borderColor:this.state.immerseStatusBar?"red":ee},{color:this.state.immerseStatusBar?"red":ee}]},"immersionStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideNavigationBar:!this.state.hideNavigationBar})},style:[oe.selectionText,{borderColor:this.state.hideNavigationBar?"red":ee},{color:this.state.hideNavigationBar?"red":ee}]},"autoHideNavigationBar")),l.a.createElement(s.Modal,{transparent:!0,animationType:this.state.animationType,visible:t,requestClose:()=>{},orientationChange:e=>{console.log("orientation changed",e.orientation)},supportedOrientations:["portrait"],immersionStatusBar:this.state.immerseStatusBar,autoHideStatusBar:this.state.hideStatusBar,autoHideNavigationBar:this.state.hideNavigationBar},l.a.createElement(s.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},l.a.createElement(s.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:te,marginTop:300,flexDirection:"row",justifyContent:"center"}},l.a.createElement(s.Text,{style:{color:ne,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}const ie="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ae={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ie,ie,ie],subInfo:["三图评论","11评"]}},le={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},se={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var ce=[se,ae,le,ae,le,ae,le,se,ae],he=n("./node_modules/@babel/runtime/helpers/extends.js"),ue=n.n(he);var de={getScreenWidth(){const e=s.Dimensions.get("screen").width,t=s.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray(e){const t=[];for(let n=0;n=812&&s.PixelRatio.get()>=2&&(e=!0),e}};const me=(de.getScreenWidth()-24-12)/3,ge=Math.floor(me/1.35),fe=s.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:ge,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:me,height:ge},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function ye(e){const{itemBean:{title:t,picList:n}}=e;let{itemBean:{subInfo:o}}=e,r=null;if(o&&o.length){o=de.uniqueArray(o);const e=o.join(" ");r=l.a.createElement(s.Text,{style:fe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:{collapsable:!1}}),l.a.createElement(s.Text,{style:[fe.title],numberOfLines:2,enableScale:!0},t),l.a.createElement(s.View,{style:fe.imageContainer},l.a.createElement(s.Image,{style:fe.image,source:{uri:n[0]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:[fe.image,{marginLeft:6,marginRight:6}],source:{uri:n[1]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:fe.image,source:{uri:n[2]},resizeMode:s.Image.resizeMode.cover})),r?l.a.createElement(s.View,{style:fe.tagLine},r):null)}const pe=de.getScreenWidth()-24,be=Math.floor(pe-12)/3,we=Math.floor(be/1.35),Se=s.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:we},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:be,height:we},image:{width:be,height:we},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function xe(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;let n=null;const{title:o,picUrl:r}=t;let{subInfo:i}=t;if(i&&i.length){i=de.uniqueArray(i);const e=i.join(" ");n=l.a.createElement(s.Text,{style:Se.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:Se.container}),l.a.createElement(s.View,{style:Se.leftContainer},l.a.createElement(s.Text,{style:Se.title,numberOfLines:2,enableScale:!0},o),n?l.a.createElement(s.View,{style:Se.tagLine},n):null),l.a.createElement(s.View,{style:Se.imageContainer},l.a.createElement(s.Image,{resizeMode:s.Image.resizeMode.cover,style:Se.image,source:{uri:r}})))}const Ee=de.getScreenWidth()-24,Te=Math.floor(188*Ee/336),Ce=s.StyleSheet.create({text:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ee,height:Te,alignSelf:"center"},image:{width:Ee,height:Te},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ae(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;const{title:n,picUrl:o}=t;let{subInfo:r}=t,i=null;if(r&&r.length){r=de.uniqueArray(r);const e=r.join(" ");i=l.a.createElement(s.Text,{style:Ce.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,e,l.a.createElement(s.Text,{style:Ce.text,numberOfLines:2,enableScale:!0},n),l.a.createElement(s.View,{style:Ce.playerView},l.a.createElement(s.Image,{style:Ce.image,source:{uri:o},resizeMode:s.Image.resizeMode.cover})),i?l.a.createElement(s.View,{style:Ce.tagLine},i):null)}const ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});class Re extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],loadingState:"正在加载..."},this.fetchTimes=0,this.mockFetchData=this.mockFetchData.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e[e.length-1];o&&100===o.style&&e.pop();const r=e.concat(n);this.setState({dataSource:r})}onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}onClickItem(e){console.log(`item: ${e} is clicked..`)}getRenderRow(e){const{dataSource:t,loadingState:n}=this.state;let o=null;const r=t[e],i=t.length===e+1;switch(r.style){case 1:o=l.a.createElement(ye,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 2:o=l.a.createElement(xe,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 5:o=l.a.createElement(Ae,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 100:o=l.a.createElement(s.Text,{style:ve.loading},n)}return l.a.createElement(s.View,{style:ve.container},l.a.createElement(s.View,{style:ve.itemContainer},o),i?null:l.a.createElement(s.View,{style:ve.spliter}))}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:30}},l.a.createElement(s.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.setState({fetchingDataFlag:!1}),this.fetchTimes+=1,this.fetchTimes>=50?e([]):e(ce)),600)})}render(){const{dataSource:e}=this.state;return l.a.createElement(s.RefreshWrapper,{ref:e=>{this.refresh=e},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},l.a.createElement(s.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}const Ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class ke extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.mockFetchData=this.mockFetchData.bind(this),this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.getFooterStyle=this.getFooterStyle.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e}),this.listView.collapsePullHeader()}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(ce),800)})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData(),e=e.reverse()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ve.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}onClickItem(e,t){console.log(`item: ${e} is clicked..`,t.target.nodeId,t.currentTarget.nodeId)}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:Ve.pullContainer},l.a.createElement(s.Text,{style:Ve.pullContent},e))}getFooterStyle(){const{horizontal:e}=this.state;return e?{width:40}:{}}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:Ve.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}renderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 2:n=l.a.createElement(xe,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)})}return l.a.createElement(s.View,{style:Ve.container},l.a.createElement(s.View,{style:Ve.itemContainer},n),r?null:l.a.createElement(s.View,{style:Ve.splitter}))}getRowStyle(){const{horizontal:e}=this.state;return e?{height:300,justifyContent:"center",alignItems:"center"}:{}}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{horizontal:t,onClick:e=>console.log("ListView",e.target.nodeId,e.currentTarget.nodeId),ref:e=>{this.listView=e},style:[{backgroundColor:"#ffffff"},t?{height:300}:{flex:1}],numberOfRows:e.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:e=>0===e}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const Ie=s.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function Oe(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Horizontal ScrollView")),l.a.createElement(s.View,null,l.a.createElement(s.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:e=>console.log("onScroll",e),onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e)},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A"))),l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Vertical ScrollView")),l.a.createElement(s.ScrollView,{bounces:!0,horizontal:!1,style:Ie.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A")))}const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",Pe="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",Le=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}});let je=0;class Be extends l.a.Component{constructor(e){super(e),this.state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},scrollColor:"gray",numberOfLines:2,ellipsizeMode:void 0},this.incrementFontSize=this.incrementFontSize.bind(this),this.decrementFontSize=this.decrementFontSize.bind(this),this.incrementLine=this.incrementLine.bind(this),this.decrementLine=this.decrementLine.bind(this),this.changeMode=this.changeMode.bind(this),this.changeColor=this.changeColor.bind(this)}incrementFontSize(){const{fontSize:e}=this.state;24!==e&&this.setState({fontSize:e+1})}decrementFontSize(){const{fontSize:e}=this.state;6!==e&&this.setState({fontSize:e-1})}incrementLine(){const{numberOfLines:e}=this.state;e<6&&this.setState({numberOfLines:e+1})}decrementLine(){const{numberOfLines:e}=this.state;e>1&&this.setState({numberOfLines:e-1})}changeMode(e){this.setState({ellipsizeMode:e})}changeColor(){this.setState({scrollColor:"red"})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{fontSize:e,textShadowColor:t,textShadowOffset:n,numberOfLines:o,ellipsizeMode:r,breakStrategy:i,scrollColor:a}=this.state,c=e=>l.a.createElement(s.View,{style:Le.itemTitle},l.a.createElement(s.Text,{style:!0},e));return l.a.createElement(s.ScrollView,{style:{padding:10,color:a,fontFamily:"TTTGB"}},c("shadow"),l.a.createElement(s.View,{style:[Le.itemContent,{height:60}],onClick:()=>{let e="red",t={x:10,y:1};je%2==1&&(e="grey",t={x:1,y:1}),je+=1,this.setState({textShadowColor:e,textShadowOffset:t})}},l.a.createElement(s.Text,{style:[Le.normalText,{color:"#242424",textShadowOffset:n,textShadowRadius:3,textShadowColor:t}]},"Text shadow is grey with radius 3 and offset 1")),c("color"),l.a.createElement(s.View,{style:[Le.itemContent,{height:80}]},l.a.createElement(s.Text,{style:[Le.normalText,{color:"#242424"}]},"Text color is black"),l.a.createElement(s.Text,{style:[Le.normalText,{color:"blue"}]},"Text color is blue"),l.a.createElement(s.Text,{style:[Le.normalText,{color:"rgb(228,61,36)"}]},"This is red")),c("fontSize"),l.a.createElement(s.View,{style:[Le.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},l.a.createElement(s.Text,{style:[Le.normalText,{fontSize:e}]},"Text fontSize is "+e),l.a.createElement(s.View,{style:Le.button,onClick:this.changeColor},l.a.createElement(s.Text,{style:Le.buttonText},"切换字体颜色")),l.a.createElement(s.View,{style:Le.button,onClick:this.incrementFontSize},l.a.createElement(s.Text,{style:Le.buttonText},"放大字体")),l.a.createElement(s.View,{style:Le.button,onClick:this.decrementFontSize},l.a.createElement(s.Text,{style:Le.buttonText},"缩小字体"))),c("fontStyle"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[Le.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),l.a.createElement(s.Text,{style:[Le.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),c("numberOfLines and ellipsizeMode"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[Le.normalText,{marginBottom:10}]},`numberOfLines=${o} | ellipsizeMode=${r}`),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),l.a.createElement(s.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[Le.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),l.a.createElement(s.Text,null,"Text + Attachment")),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:this.incrementLine},l.a.createElement(s.Text,{style:Le.buttonText},"加一行")),l.a.createElement(s.View,{style:Le.button,onClick:this.decrementLine},l.a.createElement(s.Text,{style:Le.buttonText},"减一行"))),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("clip")},l.a.createElement(s.Text,{style:Le.buttonText},"clip")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("head")},l.a.createElement(s.Text,{style:Le.buttonText},"head")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("middle")},l.a.createElement(s.Text,{style:Le.buttonText},"middle")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeMode("tail")},l.a.createElement(s.Text,{style:Le.buttonText},"tail")))),c("textDecoration"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),c("LetterSpacing"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),l.a.createElement(s.Text,{numberOfLines:1,style:[Le.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),c("Nest Text"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:3},l.a.createElement(s.Text,{numberOfLines:3,style:[Le.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),l.a.createElement(s.Text,{numberOfLines:3,style:Le.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),c("Custom font"),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:Le.customFont},"Hippy 跨端框架")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),l.a.createElement(s.View,{style:[Le.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[Le.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),c("Text Nested"),l.a.createElement(s.View,{style:[Le.itemContent,{height:150}]},l.a.createElement(s.Text,{style:{height:100,lineHeight:50}},l.a.createElement(s.Text,{numberOfLines:1,style:Le.normalText},"后面有张图片"),l.a.createElement(s.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),l.a.createElement(s.Text,{numberOfLines:1,style:Le.customFont},"前面有张图片")),l.a.createElement(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},l.a.createElement(s.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:De}}),l.a.createElement(s.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===s.Platform.OS&&c("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(s.View,{style:Le.itemContent},l.a.createElement(s.Text,{style:[Le.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:i},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),l.a.createElement(s.Text,{style:Le.normalText},"breakStrategy: "+i),l.a.createElement(s.View,{style:Le.buttonBar},l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Le.buttonText},"simple")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Le.buttonText},"high_quality")),l.a.createElement(s.View,{style:Le.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Le.buttonText},"balanced")))),c("verticalAlign"),l.a.createElement(s.View,{style:[Le.itemContent,{height:"android"===s.Platform.OS?160:70}]},l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,top:-10},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,top:-5},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,top:3},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字")))),c("tintColor & backgroundColor"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:De}})))),c("margin"),l.a.createElement(s.View,{style:[Le.itemContent]},l.a.createElement(s.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:De}})),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[Le.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:De}})))))}}const Me=s.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}});class ze extends a.Component{constructor(e){super(e),this.state={textContent:""},this.changeInputContent=this.changeInputContent.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this)}changeInputContent(){this.setState({textContent:"当前时间毫秒:"+Date.now()})}focus(){this.input.focus()}blur(){this.input.blur()}async onFocus(){const e=await this.input.isFocused();this.setState({event:"onFocus",isFocused:e})}async onBlur(){const e=await this.input.isFocused();this.setState({event:"onBlur",isFocused:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{textContent:e,event:t,isFocused:n,breakStrategy:o}=this.state,r=e=>l.a.createElement(s.View,{style:Me.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:Me.container_style},r("text"),l.a.createElement(s.TextInput,{ref:e=>{this.input=e},style:Me.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:e,onBlur:()=>this.onBlur(),onFocus:()=>this.onFocus()}),l.a.createElement(s.Text,{style:Me.itemContent},`事件: ${t} | isFocused: ${n}`),l.a.createElement(s.View,{style:Me.button,onClick:this.changeInputContent},l.a.createElement(s.Text,null,"点击改变输入框内容")),l.a.createElement(s.View,{style:Me.button,onClick:this.focus},l.a.createElement(s.Text,null,"Focus")),l.a.createElement(s.View,{style:Me.button,onClick:this.blur},l.a.createElement(s.Text,null,"Blur")),r("numeric"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"numeric",placeholder:"numeric"}),r("phone-pad"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),r("password"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),r("maxLength"),l.a.createElement(s.TextInput,{caretColor:"yellow",style:Me.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===s.Platform.OS&&r("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.TextInput,{style:Me.input_style_block,breakStrategy:o,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),l.a.createElement(s.Text,{style:{}},"breakStrategy: "+o),l.a.createElement(s.View,{style:Me.buttonBar},l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Me.buttonText},"simple")),l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Me.buttonText},"high_quality")),l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Me.buttonText},"balanced")))))}}var Fe=n.p+"assets/defaultSource.jpg";const He=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function _e(){const e=e=>l.a.createElement(s.View,{style:He.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),l.a.createElement(s.View,{style:[He.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:Fe}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},l.a.createElement(s.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},l.a.createElement(s.Text,{style:{color:"white"}},"渐变色")),e("border props"),l.a.createElement(s.View,{style:[He.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),l.a.createElement(s.View,{style:[He.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"yellow"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"blue"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"green"}]})))}const Ne=s.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),We="SquarePagerView",Ke="TrianglePagerView",Ue="CirclePagerView";function Ge(e,t){const n=t=>l.a.createElement(s.View,{style:Ne.pageContainer,key:t},l.a.createElement(s.View,{style:[Ne.shapeBase,e],key:"shape"}),l.a.createElement(s.View,{style:Ne.mainRec,key:"title"},t?l.a.createElement(s.Text,{style:Ne.title},t):null));return n.displayName=t,n}const qe=Ge(Ne.square,We),Qe=Ge(Ne.triangle,Ke),Ye=Ge(Ne.circle,Ue),Xe=s.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}});class Je extends l.a.Component{constructor(e){super(e),_()(this,"state",{selectedIndex:0}),this.onPageSelected=this.onPageSelected.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageSelected(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}onPageScrollStateChanged(e){console.log("onPageScrollStateChanged",e)}onPageScroll({offset:e,position:t}){console.log("onPageScroll",e,t)}render(){const{selectedIndex:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},l.a.createElement(s.View,{style:Xe.buttonContainer},l.a.createElement(s.View,{style:Xe.button,onClick:()=>{this.viewpager.setPage(2)}},l.a.createElement(s.Text,{style:Xe.buttonText},"动效滑到第3页")),l.a.createElement(s.View,{style:Xe.button,onClick:()=>this.viewpager.setPageWithoutAnimation(0)},l.a.createElement(s.Text,{style:Xe.buttonText},"直接滑到第1页"))),l.a.createElement(s.ViewPager,{ref:e=>{this.viewpager=e},style:Xe.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[qe("squarePager"),Qe("TrianglePager"),Ye("CirclePager")]),l.a.createElement(s.View,{style:Xe.dotContainer},new Array(3).fill(0).map((t,n)=>{const o=n===e;return l.a.createElement(s.View,{style:[Xe.dot,o?Xe.selectDot:null],key:"dot_"+n})})))}}const Ze=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function $e(){return l.a.createElement(s.View,{style:{paddingHorizontal:10,flex:1}},l.a.createElement(s.View,{style:Ze.itemTitle},l.a.createElement(s.Text,null,"WebView 示例")),l.a.createElement(s.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Ze.webViewStyle,onLoad:({url:e})=>console.log("webview onload",e),onLoadStart:({url:e})=>console.log("webview onLoadStart",e),onLoadEnd:({url:e,success:t,error:n})=>console.log("webview onLoadEnd",e,t,n)}))}const et=s.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),tt=s.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function nt(){return l.a.createElement(s.View,{style:et.shadowDemo},"android"===s.Platform.OS?l.a.createElement(s.View,{style:et.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:et.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))):l.a.createElement(s.View,{style:et.shadowDemoCubeIos},l.a.createElement(s.View,{style:et.shadowDemoContentIos},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))),"android"===s.Platform.OS?l.a.createElement(s.View,{style:tt.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:tt.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))):l.a.createElement(s.View,{style:tt.shadowDemoCubeIos},l.a.createElement(s.View,{style:tt.shadowDemoContentIos},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))))}const ot=ce.filter(e=>2!==e.style),rt=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class it extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.numberOfColumns=2,this.columnSpacing=6,this.interItemSpacing=6,this.mockFetchData=this.mockFetchData.bind(this),this.renderItem=this.renderItem.bind(this),this.getItemType=this.getItemType.bind(this),this.getItemKey=this.getItemKey.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this),this.renderBanner=this.renderBanner.bind(this),this.getItemStyle=this.getItemStyle.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.onScroll=this.onScroll.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>rt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:rt.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}async onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}onClickItem(e){console.log(`item: ${e} is clicked..`)}getItemType(e){return this.state.dataSource[e].style}getItemKey(e){return"row-"+e}onItemClick(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}onScroll(e){}renderBanner(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}renderItem(e){const{dataSource:t}=this.state;let n=null;const o=t[e];switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean});break;case 2:n=l.a.createElement(xe,{itemBean:o.itemBean});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean})}return l.a.createElement(s.View,{onClick:()=>this.onItemClick(e),style:rt.container},l.a.createElement(s.View,{style:rt.itemContainer},n),l.a.createElement(s.View,{style:rt.splitter}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>{const t=[...ot,...ot];return e(t)},600)})}getWaterfallContentInset(){return{top:0,left:0,bottom:0,right:0}}getItemStyle(){const{numberOfColumns:e,columnSpacing:t}=this,n=s.Dimensions.get("screen").width-32,o=this.getWaterfallContentInset();return{width:(n-o.left-o.right-(e-1)*t)/e}}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:rt.pullContainer},l.a.createElement(s.Text,{style:rt.pullContent},e))}render(){const{dataSource:e}=this.state,{numberOfColumns:t,columnSpacing:n,interItemSpacing:o}=this,r=this.getWaterfallContentInset();return l.a.createElement(s.WaterfallView,{ref:e=>{this.listView=e},numberOfColumns:t,columnSpacing:n,interItemSpacing:o,numberOfItems:e.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:r})}}var at=n.p+"assets/defaultSource.jpg";function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{i.current.setPressed(!1)},{nativeBackgroundAndroid:h,style:u}=e;return l.a.createElement(s.View,{onLayout:()=>{s.UIManagerModule.measureInAppWindow(i.current,e=>{n(e.x),r(e.y)})},style:u,onTouchDown:e=>{i.current.setHotspot(e.page_x-t,e.page_y-o),i.current.setPressed(!0)},onTouchEnd:c,onTouchCancel:c,ref:i,nativeBackgroundAndroid:st(st({},ct),h)},e.children)}const ut=s.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderStyle:"solid",borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,borderStyle:"solid",backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:at,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function dt(){return"ios"===s.Platform.OS?l.a.createElement(s.Text,null,"iOS暂未支持水波纹效果"):l.a.createElement(s.ScrollView,{style:{margin:10,flex:1}},l.a.createElement(s.View,{style:[ut.imgRectangle,{marginTop:20,backgroundImage:at,backgroundSize:"cover"}]},l.a.createElement(ht,{style:[ut.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white",maxWidth:200}},"外层背景图,内层无边框水波纹,受外层影响始终有边框"))),l.a.createElement(ht,{style:[ut.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},l.a.createElement(s.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),l.a.createElement(ht,{style:[ut.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"#fff"}},"带背景色水波纹")),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white"}},"有边框水波纹,带本地底图效果"))),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"black"}},"有边框水波纹,带网络底图效果"))))}const mt="#4c9afa",gt="#f44837",ft=s.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:gt},showArea:{height:150,marginVertical:10},button:{borderColor:mt,borderWidth:2,borderStyle:"solid",justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:mt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}});class yt extends l.a.Component{constructor(e){super(e),this.state={}}componentWillMount(){this.horizonAnimation=new s.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new s.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.rotateAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:180,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:180,toValue:360,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewXAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewYAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new s.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}componentDidMount(){"web"===s.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef),this.rotateAnimationSet.setRef(this.rotateRef),this.skewXAnimationSet.setRef(this.skewRef),this.skewYAnimationSet.setRef(this.skewRef)),this.horizonAnimation.onAnimationStart(()=>{console.log("on animation start!!!")}),this.horizonAnimation.onAnimationEnd(()=>{console.log("on animation end!!!")}),this.horizonAnimation.onAnimationCancel(()=>{console.log("on animation cancel!!!")}),this.horizonAnimation.onAnimationRepeat(()=>{console.log("on animation repeat!!!")})}componentWillUnmount(){this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.bgColorAnimationSet&&this.bgColorAnimationSet.destroy(),this.txtColorAnimationSet&&this.txtColorAnimationSet.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy(),this.rotateAnimationSet&&this.rotateAnimationSet.destroy(),this.skewXAnimationSet&&this.skewXAnimationSet.destroy(),this.skewYAnimationSet&&this.skewYAnimationSet.destroy()}render(){return l.a.createElement(s.ScrollView,{style:ft.container},l.a.createElement(s.Text,{style:ft.title},"水平位移动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.horizonAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},l.a.createElement(s.Text,{style:ft.buttonText},"更新"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.horizonRef=e},style:[ft.square,{transform:[{translateX:this.horizonAnimation}]}]})),l.a.createElement(s.Text,{style:ft.title},"高度形变动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.verticalAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.verticalRef=e},style:[ft.square,{height:this.verticalAnimation}]})),l.a.createElement(s.Text,{style:ft.title},"旋转动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.rotateAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.rotateRef=e},style:[ft.square,{transform:[{rotate:this.rotateAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"倾斜动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.start(),this.skewYAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.skewXAnimationSet.pause(),this.skewYAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.resume(),this.skewYAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.skewRef=e},style:[ft.square,{transform:[{skewX:this.skewXAnimationSet},{skewY:this.skewYAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"缩放动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.scaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.scaleRef=e},style:[ft.square,{transform:[{scale:this.scaleAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"颜色渐变动画(文字渐变仅Android支持)"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.start(),this.txtColorAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.bgColorAnimationSet.pause(),this.txtColorAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.resume(),this.txtColorAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.bgColorRef=e},style:[ft.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},l.a.createElement(s.Text,{ref:e=>{this.textColorRef=e},style:[ft.colorText,{color:"android"===s.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),l.a.createElement(s.Text,{style:ft.title},"贝塞尔曲线动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.cubicBezierScaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.cubicBezierScaleRef=e},style:[ft.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}const pt=s.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}});class bt extends l.a.Component{constructor(e){super(e),this.state={result:""},this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onTextChangeValue=this.onTextChangeValue.bind(this),this.onClickSet=this.onClickSet.bind(this),this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onClickGet=this.onClickGet.bind(this)}onClickSet(){const{key:e,value:t}=this.state;e&&s.AsyncStorage.setItem(e,t)}onClickGet(){const{key:e}=this.state;e&&s.AsyncStorage.getItem(e).then(e=>{this.setState({result:e})})}onTextChangeKey(e){this.setState({key:e})}onTextChangeValue(e){this.setState({value:e})}render(){const{result:e}=this.state;return l.a.createElement(s.ScrollView,{style:pt.containerStyle},l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeValue})),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickSet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Set")),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{marginTop:60}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{display:"none"}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.Text,{style:[pt.infoStyle,{width:200}]},e)),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickGet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Get")))}}const wt=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},wrapper:{borderColor:"#eee",borderWidth:1,borderStyle:"solid",paddingHorizontal:10,paddingVertical:5,marginVertical:10,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},infoContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginTop:5,marginBottom:5,flexWrap:"wrap"},infoText:{collapsable:!1,marginVertical:5}});class St extends l.a.Component{constructor(e){super(e),this.state={netInfoStatusTxt:"",netInfoChangeTxt:"",fetchInfoTxt:"",cookies:""},this.listener=null}async fetchNetInfoStatus(){this.setState({netInfoStatusTxt:await s.NetInfo.fetch()})}fetchUrl(){fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>(this.setState({fetchInfoTxt:"成功状态: "+e.status}),e)).catch(e=>{this.setState({fetchInfoTxt:"收到错误: "+e})})}setCookies(){s.NetworkModule.setCookie("https://hippyjs.org","name=hippy;network=mobile")}getCookies(){s.NetworkModule.getCookies("https://hippyjs.org").then(e=>{this.setState({cookies:e})})}async componentWillMount(){const e=this;this.listener=s.NetInfo.addEventListener("change",t=>{e.setState({netInfoChangeTxt:""+t.network_info})})}componentWillUnmount(){this.listener&&s.NetInfo.removeEventListener("change",this.listener)}componentDidMount(){this.fetchUrl(),this.fetchNetInfoStatus()}render(){const{netInfoStatusTxt:e,fetchInfoTxt:t,netInfoChangeTxt:n,cookies:o}=this.state,r=e=>l.a.createElement(s.View,{style:wt.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},r("Fetch"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchUrl()},l.a.createElement(s.Text,{style:{color:"white"}},"请求 hippy 网址:")),l.a.createElement(s.Text,{style:wt.infoText},t))),r("NetInfo"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchNetInfoStatus()},l.a.createElement(s.Text,{style:{color:"white"}},"获取网络状态:")),l.a.createElement(s.Text,{style:wt.infoText},e)),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10}},l.a.createElement(s.Text,{style:{color:"white"}},"监听网络变化:")),l.a.createElement(s.Text,{style:wt.infoText},n))),r("NetworkModule"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.setCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"设置Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},"name=hippy;network=mobile")),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.getCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"获取Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},o))))}}const xt=s.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),Et="wss://echo.websocket.org",Tt="Rock it with Hippy WebSocket";let Ct;var At=function(){const e=Object(a.useRef)(null),t=Object(a.useRef)(null),[n,o]=Object(a.useState)([]),r=e=>{o(t=>[e,...t])};return l.a.createElement(s.View,{style:xt.fullScreen},l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Url:"),l.a.createElement(s.TextInput,{ref:e,value:Et,style:xt.input}),l.a.createElement(s.View,{style:xt.row},l.a.createElement(s.Text,{onClick:()=>{e.current.getValue().then(e=>{Ct&&1===Ct.readyState&&Ct.close(),Ct=new WebSocket(e),Ct.onopen=()=>r("[Opened] "+Ct.url),Ct.onclose=()=>r("[Closed] "+Ct.url),Ct.onerror=e=>r("[Error] "+e.reason),Ct.onmessage=e=>r("[Received] "+e.data)})},style:xt.button},"Connect"),l.a.createElement(s.Text,{onClick:()=>Ct.close(),style:xt.button},"Disconnect"))),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Message:"),l.a.createElement(s.TextInput,{ref:t,value:Tt,style:xt.input}),l.a.createElement(s.Text,{onClick:()=>t.current.getValue().then(e=>{r("[Sent] "+e),Ct.send(e)}),style:xt.button},"Send")),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:xt.title},"Log:"),l.a.createElement(s.ScrollView,{style:xt.fullScreen},n.map((e,t)=>l.a.createElement(s.Text,{key:t,style:xt.output},e)))))};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t{const e=s.Dimensions.get("screen");({width:t,height:n}=e)});const[o,r]=Object(a.useState)({width:100,height:100,top:10,left:10}),[i,c]=Object(a.useState)({width:0,height:0,x:0,y:0}),h=async(t=!1)=>{try{const n=await s.UIManagerModule.getBoundingClientRect(e.current,{relToContainer:t});c(n)}catch(e){console.error("getBoxPosition error",e)}},u=Rt(Rt({},Vt.box),o);return l.a.createElement(s.View,{style:Vt.full},l.a.createElement(s.View,{style:Vt.demoContent},l.a.createElement(s.View,{ref:e,style:u},l.a.createElement(s.Text,{style:Vt.text,numberOfLines:2},"I am the box"))),l.a.createElement(s.View,{style:Vt.buttonContainer},l.a.createElement(s.View,{onClick:()=>{const e=kt(0,t-100),o=kt(0,n-450),i=kt(80,120);r({left:e,top:o,width:i,height:i})},style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Move position")),l.a.createElement(s.View,{onClick:()=>h(!1),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in App Window")),l.a.createElement(s.View,{onClick:()=>h(!0),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in Container(RootView)"))),l.a.createElement(s.View,{style:Vt.row},l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"Box style:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+u.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+u.height),l.a.createElement(s.Text,{style:Vt.black},"Left: "+u.left),l.a.createElement(s.Text,{style:Vt.black},"Top: "+u.top)),l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"getBoundingClientRect output:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+i.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+i.height),l.a.createElement(s.Text,{style:Vt.black},"X: "+i.x),l.a.createElement(s.Text,{style:Vt.black},"Y: "+i.y))))};const Ot=s.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}});class Dt extends l.a.Component{constructor(e){super(e),this.state={current:e.current||0}}update(e){const{current:t}=this.state;t!==e&&this.setState({current:e})}render(){const{count:e}=this.props,{current:t}=this.state,n=[];for(let o=0;o=r||(this.indicator&&this.indicator.update(o),this.currentIndex=o)}onScrollBeginDrag(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}onScrollEndDrag(){this.doCreateTimer()}onLayout(e){this.width=e.layout.width}doSwitchPage(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}doCreateTimer(){this.doClearTimer(),this.duration<=0||(this.interval=setInterval(()=>{this.doSwitchPage((this.currentIndex+1)%this.itemCount)},this.duration))}doClearTimer(){this.interval&&clearInterval(this.interval),this.interval=null}render(){const{images:e}=this.props,t=[];for(let n=0;n{this.scrollView=e}},t),l.a.createElement(Dt,{ref:e=>{this.indicator=e},count:this.itemCount}))}}_()(Pt,"defaultProps",{duration:0,currentPage:0,images:[]});const Lt=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],jt=s.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Bt(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.Text,{style:jt.infoStyle},"Auto:"),l.a.createElement(Pt,{style:jt.sliderStyle,images:Lt,duration:1e3}),l.a.createElement(s.Text,{style:jt.infoStyle},"Manual:"),l.a.createElement(Pt,{style:jt.sliderStyle,images:Lt,duration:0}))}const Mt=s.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1,borderStyle:"solid"},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}});class zt extends l.a.Component{constructor(e){super(e),this.state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},this.navScrollView=null,this.viewPager=null,this.onViewPagerChange=this.onViewPagerChange.bind(this),this.pressNavItem=this.pressNavItem.bind(this),this.scrollSV=this.scrollSV.bind(this)}static getPage(e,t){switch(t%3){case 0:return qe(e);case 1:return Ye(e);case 2:return Qe(e);default:return null}}componentDidUpdate(){this.scrollSV()}onViewPagerChange({position:e}){this.setState({curIndex:e})}scrollSV(){if(this.navScrollView){const{curIndex:e,navList:t}=this.state,n=t.length,o=de.getScreenWidth(),r=o/2/60,i=60*nn-r?60*n-o:60*e-60*r+30,this.navScrollView.scrollTo({x:a,y:0,animated:!0})}}pressNavItem(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}renderNav(){const{navList:e,curIndex:t}=this.state;return l.a.createElement(s.View,{style:Mt.container},l.a.createElement(s.ScrollView,{style:Mt.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:e=>{this.navScrollView=e}},e.map((e,n)=>l.a.createElement(s.View,{style:Mt.navItem,key:"nav_"+e,activeOpacity:.5,onClick:()=>this.pressNavItem(n)},l.a.createElement(s.Text,{style:[Mt.navItemText,t===n?Mt.navItemTextBlue:Mt.navItemTextNormal],numberOfLines:1},e)))))}render(){const{navList:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),l.a.createElement(s.ViewPager,{ref:e=>{this.viewPager=e},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},e.map((e,t)=>zt.getPage(e,t))))}}const{width:Ft}=s.Dimensions.get("window"),Ht=s.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}});class _t extends l.a.Component{constructor(e){super(e),this.demon1Point=l.a.createRef(),this.demo1PointDom=null,this.state={demo2Left:0},this.isDemon1Layouted=!1,this.idDemon2Layouted=!1,this.onTouchDown1=this.onTouchDown1.bind(this),this.onDemon1Layout=this.onDemon1Layout.bind(this),this.onTouchMove1=this.onTouchMove1.bind(this),this.onTouchDown2=this.onTouchDown2.bind(this),this.onTouchMove2=this.onTouchMove2.bind(this)}componentDidMount(){}onDemon1Layout(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=s.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}onTouchDown1(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchMove1(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchDown2(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.setState({demo2Left:n})}onTouchMove2(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.setState({demo2Left:n})}render(){const{demo2Left:e}=this.state;return l.a.createElement(s.View,{style:Ht.setNativePropsDemo},l.a.createElement(s.Text,null,"setNativeProps实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},l.a.createElement(s.View,{onLayout:this.onDemon1Layout,style:Ht.nativeDemo1Point,ref:this.demon1Point})),l.a.createElement(s.View,{style:Ht.splitter}),l.a.createElement(s.Text,null,"普通渲染实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},l.a.createElement(s.View,{style:[Ht.nativeDemo2Point,{left:e}]})))}}const Nt=s.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Wt extends l.a.Component{constructor(e){super(e),this.state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},this.onAsyncComponentLoad=this.onAsyncComponentLoad.bind(this)}onAsyncComponentLoad(){console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then(e=>{this.setState({AsyncComponentFromLocal:e.default||e})}).catch(e=>console.error("import async local component error",e)),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then(e=>{this.setState({AsyncComponentFromHttp:e.default||e})}).catch(e=>console.error("import async remote component error",e))}render(){const{AsyncComponentFromLocal:e,AsyncComponentFromHttp:t}=this.state;return l.a.createElement(s.View,{style:Nt.dynamicImportDemo},l.a.createElement(s.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),l.a.createElement(s.View,{style:{marginTop:20}},e?l.a.createElement(e,null):null,t?l.a.createElement(t,null):null))}}const Kt=s.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Ut extends l.a.Component{render(){const{country:e,language:t,direction:n}=s.Platform.Localization||{};return l.a.createElement(s.View,{style:Kt.LocalizationDemo},l.a.createElement(s.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},`国际化相关信息:国家 ${e} | 语言 ${t} | 方向 ${1===n?"RTL":"LTR"}`)))}}const Gt=()=>getTurboModule("demoTurbo").getTurboConfig(),qt=s.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}});class Qt extends l.a.Component{constructor(e){super(e),this.state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},this.onTurboFunc=this.onTurboFunc.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.getRowKey=this.getRowKey.bind(this)}async onTurboFunc(e){let t;if("nativeWithPromise"===e)t=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=Gt(),t="获取到config对象";else if("printTurboConfig"===e)n=this.config||Gt(),t=getTurboModule("demoTurbo").printTurboConfig(n);else if("getInfo"===e)t=(this.config||Gt()).getInfo();else if("setInfo"===e)(this.config||Gt()).setInfo("Hello World"),t="设置config信息成功";else{t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[e]()}var n;this.setState({result:t})}renderResultView(){return l.a.createElement(s.View,{style:qt.resultView},l.a.createElement(s.Text,{style:{backgroundColor:"darkseagreen"}},""+this.state.result))}getRenderRow(e){const{funList:t}=this.state;return l.a.createElement(s.View,{style:qt.cellContentView},l.a.createElement(s.View,{style:qt.funcInfo},l.a.createElement(s.Text,{numberofLines:0},"函数名:",t[e])),l.a.createElement(s.Text,{style:qt.actionButton,onClick:()=>this.onTurboFunc(t[e])},"执行"))}getRowKey(e){const{funList:t}=this.state;return t[e]}render(){const{funList:e}=this.state;return l.a.createElement(s.View,{style:qt.container},this.renderResultView(),l.a.createElement(s.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}const Yt=s.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}});class Xt extends l.a.Component{constructor(e){super(e),this.state={layoutHeight:0,currentSlide:0}}selectPage(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}render(){const{layoutHeight:e,currentSlide:t}=this.state;return l.a.createElement(s.ScrollView,{style:Yt.demoWrap,scrollEventThrottle:50,onLayout:e=>this.setState({layoutHeight:e.layout.height})},l.a.createElement(s.View,{style:Yt.banner}),l.a.createElement(s.View,{style:Yt.tabs},l.a.createElement(s.Text,{key:"tab1",style:0===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(0)},"tab 1 (parent first)"),l.a.createElement(s.Text,{key:"tab2",style:1===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(1)},"tab 2 (self first)")),l.a.createElement(s.ViewPager,{ref:e=>this.viewPager=e,initialPage:t,style:{height:e-80},onPageSelected:e=>this.setState({currentSlide:e.position})},l.a.createElement(s.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd}),l.a.createElement(s.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd})))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t 组件",component:$t.View,meta:{type:en.COMPONENT}},{path:"/Text",name:" 组件",component:$t.Text,meta:{type:en.COMPONENT}},{path:"/Image",name:" 组件",component:$t.Image,meta:{type:en.COMPONENT}},{path:"/ListView",name:" 组件",component:$t.ListView,meta:{type:en.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:$t.WaterfallView,meta:{type:en.COMPONENT}},{path:"/PullHeader",name:" 组件",component:$t.PullHeaderFooter,meta:{type:en.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:$t.RefreshWrapper,meta:{type:en.COMPONENT}},{path:"/ScrollView",name:" 组件",component:$t.ScrollView,meta:{type:en.COMPONENT}},{path:"/ViewPager",name:" 组件",component:$t.ViewPager,meta:{type:en.COMPONENT}},{path:"/TextInput",name:" 组件",component:$t.TextInput,meta:{type:en.COMPONENT}},{path:"/Modal",name:" 组件",component:$t.Modal,meta:{type:en.COMPONENT}},{path:"/Slider",name:" 组件",component:$t.Slider,meta:{type:en.COMPONENT}},{path:"/TabHost",name:" 组件",component:$t.TabHost,meta:{type:en.COMPONENT}},{path:"/WebView",name:" 组件",component:$t.WebView,meta:{type:en.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:$t.RippleViewAndroid,meta:{type:en.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:en.TITLE,mapType:en.MODULE}},{path:"/Animation",name:"Animation 模块",component:$t.Animation,meta:{type:en.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:$t.WebSocket,meta:{type:en.MODULE}},{path:"/NetInfo",name:"Network 模块",component:$t.NetInfo,meta:{type:en.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:$t.UIManagerModule,meta:{type:en.MODULE}},{path:"/Others",name:"Others",meta:{type:en.TITLE,mapType:en.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:$t.NestedScroll,meta:{type:en.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:$t.BoxShadow,meta:{type:en.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:$t.SetNativeProps,meta:{type:en.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:$t.DynamicImport,meta:{type:en.OTHER}},{path:"/Localization",name:"Localization 范例",component:$t.Localization,meta:{type:en.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:$t.Turbo,meta:{type:en.OTHER}}],nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC";const on="#1E304A",rn=s.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:on,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:on,lineHeight:16}});var an=F(({history:e,route:t})=>0===e.index?l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,null,l.a.createElement(s.Text,{numberOfLines:1,style:[rn.title]},t.name)),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},"unspecified"!==s.default.version?""+s.default.version:"master"))):l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,{onClick:()=>e.goBack(),style:[rn.headerButton]},l.a.createElement(s.Image,{style:rn.backIcon,source:{uri:nn}})),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},t.name))));function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sn(e){for(var t=1;t{t[en[e]]=!1}),this.state={pressItem:"",dataSource:[...tn],typeVisibleState:t},this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.clickTo=this.clickTo.bind(this),this.clickToggle=this.clickToggle.bind(this)}componentDidMount(){const{history:e}=this.props;"android"===s.Platform.OS&&s.BackAndroid.addListener(()=>(console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)))}getRowType(e){const{dataSource:t}=this.state;return t[e].meta.type}getRowKey(e){const{dataSource:t}=this.state;return t[e].path||""+e}feedback(e){const t=e||"";this.setState({pressItem:t})}clickTo(e){const{history:t}=this.props;t.push(e)}clickToggle(e){this.setState({typeVisibleState:sn(sn({},this.state.typeVisibleState),{},{[e]:!this.state.typeVisibleState[e]})})}renderRow(e){const{dataSource:t,pressItem:n,typeVisibleState:o}=this.state,r=t[e],{type:i}=r.meta;if(i===en.TITLE){const{mapType:e}=r.meta;return l.a.createElement(s.View,{style:[cn.typeContainer,o[e]?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{borderBottomLeftRadius:4,borderBottomRightRadius:4}],onClick:()=>this.clickToggle(e)},l.a.createElement(s.Text,{style:cn.typeText},r.name),l.a.createElement(s.Image,{style:[cn.arrowIcon,o[e]?{transform:[{rotate:"-90deg"}]}:{transform:[{rotate:"180deg"}]}],source:{uri:nn}}))}let a=!1;const c=t[e+1],h=t.length-1;return(c&&c.meta.type===en.TITLE||e===h)&&(a=!0),l.a.createElement(s.View,{style:o[i]?{display:"flex"}:{display:"none"}},l.a.createElement(s.View,{onPressIn:()=>this.feedback(r.path),onPressOut:()=>this.feedback(),onClick:()=>this.clickTo(r.path),style:[cn.buttonView,{opacity:n===r.path?.5:1}]},l.a.createElement(s.Text,{style:cn.buttonText},r.name)),a?null:l.a.createElement(s.View,{style:cn.separatorLine}))}render(){const{dataSource:e}=this.state;return l.a.createElement(s.ListView,{style:{flex:1},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey,paintType:"fcp"})}}const un=[{path:"/Gallery",name:"Hippy React",component:F(hn)},...tn];var dn=()=>l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(k,{initialEntries:["/Gallery"]},un.map(e=>{const t=e.component;return l.a.createElement(P,{key:e.path,exact:!0,path:""+e.path},l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(an,{route:e}),l.a.createElement(t,null)))})));const mn={container:{flex:1,paddingHorizontal:16,backgroundColor:"#E5E5E5"}};class gn extends a.Component{render(){const{children:e}=this.props;return l.a.createElement(s.View,{style:mn.container,onLayout:this.onLayout},e)}}class fn extends a.Component{componentDidMount(){s.ConsoleModule.log("~~~~~~~~~~~~~~~~~ This is a log from ConsoleModule ~~~~~~~~~~~~~~~~~")}render(){return l.a.createElement(gn,null,l.a.createElement(dn,null))}}},"./src/main.js":function(e,t,n){"use strict";n.r(t),function(e){var t=n("../../packages/hippy-react/dist/index.js"),o=n("./src/app.jsx");e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)}),new t.Hippy({appName:"Demo",entryPage:o.a,bubbles:!1,silent:!1}).start()}.call(this,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/react/vendor.android.js b/framework/voltron/example/assets/jsbundle/react/vendor.android.js index aaf2551ffac..773e8edf776 100644 --- a/framework/voltron/example/assets/jsbundle/react/vendor.android.js +++ b/framework/voltron/example/assets/jsbundle/react/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 Cn})),n.d(t,"Animation",(function(){return Qe})),n.d(t,"AnimationSet",(function(){return Xe})),n.d(t,"AppRegistry",(function(){return vn})),n.d(t,"AsyncStorage",(function(){return Jn})),n.d(t,"BackAndroid",(function(){return Zn})),n.d(t,"Clipboard",(function(){return tr})),n.d(t,"ConsoleModule",(function(){return hr})),n.d(t,"Dimensions",(function(){return vr})),n.d(t,"Easing",(function(){return xn})),n.d(t,"EventBus",(function(){return Pe})),n.d(t,"Focusable",(function(){return Qn})),n.d(t,"Hippy",(function(){return yr})),n.d(t,"HippyEventEmitter",(function(){return Se})),n.d(t,"HippyEventListener",(function(){return Ee})),n.d(t,"HippyRegister",(function(){return ir})),n.d(t,"Image",(function(){return Sn})),n.d(t,"ImageBackground",(function(){return gr})),n.d(t,"ImageLoaderModule",(function(){return or})),n.d(t,"ListView",(function(){return _n})),n.d(t,"ListViewItem",(function(){return Nn})),n.d(t,"Modal",(function(){return $n})),n.d(t,"Navigator",(function(){return An})),n.d(t,"NetInfo",(function(){return ar})),n.d(t,"NetworkModule",(function(){return nr})),n.d(t,"PixelRatio",(function(){return br})),n.d(t,"Platform",(function(){return mr})),n.d(t,"PullFooter",(function(){return In})),n.d(t,"PullHeader",(function(){return Pn})),n.d(t,"RefreshWrapper",(function(){return Ln})),n.d(t,"ScrollView",(function(){return Wn})),n.d(t,"StyleSheet",(function(){return Dn})),n.d(t,"Text",(function(){return En})),n.d(t,"TextInput",(function(){return Fn})),n.d(t,"TimerModule",(function(){return pr})),n.d(t,"UIManagerModule",(function(){return lr})),n.d(t,"View",(function(){return bn})),n.d(t,"ViewPager",(function(){return zn})),n.d(t,"WaterfallView",(function(){return Xn})),n.d(t,"WebSocket",(function(){return Kn})),n.d(t,"WebView",(function(){return qn})),n.d(t,"callNative",(function(){return ur})),n.d(t,"callNativeWithCallbackId",(function(){return fr})),n.d(t,"callNativeWithPromise",(function(){return cr})),n.d(t,"colorParse",(function(){return He})),n.d(t,"default",(function(){return gn})),n.d(t,"flushSync",(function(){return sr})),n.d(t,"removeNativeCallback",(function(){return dr}));var i=n("./node_modules/react/index.js"),o=n.n(i),a=n("./node_modules/@hippy/react-reconciler/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"],v=["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 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){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}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 E(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 S(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 C(e){for(var t=1;t=0||(i[n]=e[n]);return i} +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 Nn})),n.d(t,"Animation",(function(){return qe})),n.d(t,"AnimationSet",(function(){return Je})),n.d(t,"AppRegistry",(function(){return wn})),n.d(t,"AsyncStorage",(function(){return er})),n.d(t,"BackAndroid",(function(){return tr})),n.d(t,"Clipboard",(function(){return rr})),n.d(t,"ConsoleModule",(function(){return yr})),n.d(t,"Dimensions",(function(){return wr})),n.d(t,"Easing",(function(){return Pn})),n.d(t,"EventBus",(function(){return Ie})),n.d(t,"Focusable",(function(){return Gn})),n.d(t,"Hippy",(function(){return vr})),n.d(t,"HippyEventEmitter",(function(){return xe})),n.d(t,"HippyEventListener",(function(){return ke})),n.d(t,"HippyRegister",(function(){return ar})),n.d(t,"Image",(function(){return Cn})),n.d(t,"ImageBackground",(function(){return br})),n.d(t,"ImageLoaderModule",(function(){return lr})),n.d(t,"ListView",(function(){return Tn})),n.d(t,"ListViewItem",(function(){return In})),n.d(t,"Modal",(function(){return qn})),n.d(t,"Navigator",(function(){return zn})),n.d(t,"NetInfo",(function(){return sr})),n.d(t,"NetworkModule",(function(){return ir})),n.d(t,"PixelRatio",(function(){return Er})),n.d(t,"Platform",(function(){return gr})),n.d(t,"PullFooter",(function(){return Ln})),n.d(t,"PullHeader",(function(){return _n})),n.d(t,"RefreshWrapper",(function(){return An})),n.d(t,"ScrollView",(function(){return $n})),n.d(t,"StyleSheet",(function(){return Wn})),n.d(t,"Text",(function(){return Sn})),n.d(t,"TextInput",(function(){return Mn})),n.d(t,"TimerModule",(function(){return mr})),n.d(t,"UIManagerModule",(function(){return ur})),n.d(t,"View",(function(){return En})),n.d(t,"ViewPager",(function(){return jn})),n.d(t,"WaterfallView",(function(){return Zn})),n.d(t,"WebSocket",(function(){return Xn})),n.d(t,"WebView",(function(){return Kn})),n.d(t,"callNative",(function(){return fr})),n.d(t,"callNativeWithCallbackId",(function(){return pr})),n.d(t,"callNativeWithPromise",(function(){return dr})),n.d(t,"colorParse",(function(){return Me})),n.d(t,"default",(function(){return bn})),n.d(t,"flushSync",(function(){return cr})),n.d(t,"removeNativeCallback",(function(){return hr}));var i=n("./node_modules/react/index.js"),o=n.n(i),a=n("./node_modules/@hippy/react-reconciler/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"],v=["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 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=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){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}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 E(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 S(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||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:P,bridge:I,device:_,document:L,register:T,on:A,off:R,emit:z}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:A,removeEventListener:R,dispatchEvent:z,AsyncStorage:P,Bridge:I,Device:_,HippyRegister:T,UIManager:L});let j,F;const H=new Map;function M(e,t){F=e,j=t}function B(){if(!F)throw new Error("getRootViewId must execute after setRootContainer");return F}function D(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 U(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=0,G=1,K=-1,Y=1,X={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},J={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Z={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const ee=new RegExp(/^\d+$/);let te=!1,ne=!1;function re(...e){ce()&&console.log(...e)}function ie(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const oe=new RegExp("^on.+Capture$");function ae(e){return oe.test(e)}const le=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function se(e){return"[object Function]"===Object.prototype.toString.call(e)}function ue(e){te=e}function ce(){return!1}function fe(){return ne}function de(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class pe{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 he{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const me=new Map,ye=["%c[event]%c","color: green","color: auto"];function ge(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function ve(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return me.get(e)||null}const be={registerNativeEventHub:function(e){if(re(...ye,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=me.get(e);return t||(t=new pe(e),me.set(e,t)),t},getHippyEventHub:ve,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);me.has(e)&&me.delete(e)},receiveNativeEvent:function(e){if(re(...ye,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=ve(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(re(...ye,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a={}}=e,l=$(r),s=$(n);l&&s&&(Z[i]?function(e,t,n,r,i,o){try{let t=!1;const a=V(r),l=V(n),{eventPhase:s}=o;if(ge(e,n)&&ae(e)&&[J.AT_TARGET,J.CAPTURING_PHASE].indexOf(s)>-1){const t=new he(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(ge(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(s)>-1){const r=new he(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!fe()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=V(r),s=V(n);try{const{eventPhase:t}=o;if(ge(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(t)>-1){const r=new he(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!fe(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=be);class we{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 Ee{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=be.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=>{xe(e,t,n)}):xe(e,t,n),Pe},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=>{Ne(e,t)}):Ne(e,t),Pe},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=Ce[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=be.getHippyEventHub(e);return n?(n.notifyEvent(...t),Pe):Pe}};function Ie(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const _e={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},Le="[-+]?\\d*\\.?\\d+",Te={rgb:new RegExp("rgb"+Ie(Le,Le,Le)),rgba:new RegExp("rgba"+Ie(Le,Le,Le,Le)),hsl:new RegExp("hsl"+Ie(Le,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Ie(Le,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Le)),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 Ae(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Re(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ze(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 Oe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ze(i,r,e+1/3),a=ze(i,r,e),l=ze(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function je(e){return(parseFloat(e)%360+360)%360/360}function Fe(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function He(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Te.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(_e,e)?_e[e]:(t=Te.rgb.exec(e),Array.isArray(t)?(Ae(t[1])<<24|Ae(t[2])<<16|Ae(t[3])<<8|255)>>>0:(t=Te.rgba.exec(e),t?(Ae(t[1])<<24|Ae(t[2])<<16|Ae(t[3])<<8|Re(t[4]))>>>0:(t=Te.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Te.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Te.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Te.hsl.exec(e),t?(255|Oe(je(t[1]),Fe(t[2]),Fe(t[3])))>>>0:(t=Te.hsla.exec(e),t?(Oe(je(t[1]),Fe(t[2]),Fe(t[3]))|Re(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Me(e){return Array.isArray(e)?e.map(e=>He(e)):[0]}function Be(e){return"loop"===e?-1:e}function De(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?He(t):t}const Ue="animationstart",We="animationend",Ve="animationcancel",$e="animationrepeat";class Qe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=De(t.valueType,e)}const i=De(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=Be(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,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.animationId=this.animation.getId(),this.destroy=this.destroy.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(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ue),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(We),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ve),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener($e)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ue,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(We,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ve,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener($e,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");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;if(e.startValue instanceof Qe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=De(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Be(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:De(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 qe="animationstart",Ge="animationend",Ke="animationcancel",Ye="animationrepeat";class Xe{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:Be(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),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(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(qe),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ke),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ye)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(qe,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ge,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Je={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let Ze=!0,et=[];function tt(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!Z[e]}(r)?Z[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===G&&t.removeEventListener(n,l,o),i===q&&t.addEventListener(n,l,o,a)})}})}function nt(e,t){0}function rt(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case Je.createNode:nt(e.printedNodes),r.create(e.nodes),tt(e.eventNodes,r);break;case Je.updateNode:nt(e.printedNodes),r.update(e.nodes),tt(e.eventNodes,r);break;case Je.deleteNode:nt(e.printedNodes),r.delete(e.nodes);break;case Je.moveNode:nt(e.printedNodes),r.move(e.nodes)}}),r.build()}function it(e=!1){if(!Ze)return;if(Ze=!1,0===et.length)return void(Ze=!0);const t=B();e?(rt(t),et=[],Ze=!0):Promise.resolve().then(()=>{rt(t),et=[],Ze=!0})}function ot(e){const t=e.attributes,{children:n}=t;return N(t,s)}function at(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);const i={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:C(C({},ot(t)),{},{style:t.style}),tagName:t.tagName},o=function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t);let a=void 0;return[[i,n],o,a]}function lt(e,t,n,r={}){const i=[],o=[],a=[];return t.traverseChildren((t,r)=>{const[l,s,u]=at(e,t,r);l&&i.push(l),s&&o.push(s),u&&a.push(u),"function"==typeof n&&n(t)},r),[i,o,a]}function st(e){return!!j&&e instanceof j.containerInfo.constructor}function ut(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i=st(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const[e,i,o]=lt(r,t,e=>{e.isMounted||(e.isMounted=!0)},n);et.push({type:Je.createNode,nodes:e,eventNodes:i,printedNodes:o})}}function ct(e){if(!e.isMounted)return;const t=B(),[n,r,i]=at(t,e);n&&et.push({type:Je.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}let ft=0;class dt{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(ft+=1,ft%10==0&&(ft+=1),ft)}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),ut(this,e,{refId:t.nodeId,relativeToRef:K})}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);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];et.push({printedNodes:a,type:Je.moveNode,nodes:o,eventNodes:[]})}(this,e,{refId:t.nodeId,relativeToRef:K})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),ut(this,e,n&&{refId:n.nodeId,relativeToRef:Y})}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),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=B(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];et.push({printedNodes:o,type:Je.deleteNode,nodes:i,eventNodes:[]})}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}const 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",yt="rad",gt="deg";function vt(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=gt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case mt:r=""+(360*n).toFixed(2);break;case yt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==ht[i]&&(r=ht[i]),r}function bt(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:He(n)}:void 0:{color:He(n)}}class wt extends dt{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})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}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,ee.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=C(C({},n),e)}):"object"==typeof e&&e&&(n=C(C({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(pt,e)&&(e=pt[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 Qe||r instanceof Xe?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 Qe||t instanceof Xe)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Me(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=He(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=vt(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=bt(e);t&&r.push(t)}}else{const t=bt(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=de(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})}}),ct(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=B(),[n,r,i]=lt(t,e)||{};n&&et.push({type:Je.updateNode,nodes:n,eventNodes:r,printedNodes:i})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ie(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=function(e){return ae(e)&&(e=e.replace("Capture","")),X[e]?X[e][1]:e}(e);this.events[e]?this.events[e]&&this.events[e].type!==q&&(this.events[e].type=q):this.events[e]={name:t,type:q,isCapture:ae(e),listener:(n=t,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};be.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return this.events[e].type=G,!1;this.attributes[e]=t}var n,r;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&&ct(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ct(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(pt,e)&&(i=pt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Me(r):i.toLowerCase().indexOf("color")>-1?He(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&le.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ct(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)}),ct(this),it(!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=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class Et extends dt{constructor(){super(),this.documentElement=new wt("document")}createElement(e){return new wt(e)}createElementNS(e,t){return new wt(`${e}:${t}`)}}Et.createElement=Et.prototype.createElement,Et.createElementNS=Et.prototype.createElementNS;var kt=Array.isArray,St=Object.keys,Ct=Object.prototype.hasOwnProperty;const xt=setTimeout,Nt=clearTimeout;var Pt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){it(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:xt,cancelTimeout:Nt,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){U(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),U(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ie(e)),i.meta={component:{name:"Text"}},U(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=kt(t),l=kt(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=St(t);if((i=d.length)!==St(n).length)return!1;for(r=i;0!=r--;)if(!Ct.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=C(C({},t),{},{style:C(C({},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 It=l()(C(C({},Pt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var _t=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var Lt=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function Tt(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function At(e){I.callNative("ImageLoaderModule","prefetch",e)}var Rt=Object.freeze({__proto__:null,getSize:Tt,prefetch:At});const zt=new Map,Ot=new Se;class jt{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ft(this.eventName,this.listener),this.listener=void 0)}}function Ft(e,t){if(t instanceof jt)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=zt.get(t);if(!r)return;r.remove(),zt.delete(t);Ot.listenerSize(n)<1&&I.callNative("NetInfo","removeListener",n)}var Ht=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Ot.listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);const r=Ot.addListener(n,e=>{t(e)});return zt.set(t,r),new jt(n,t)},removeEventListener:Ft,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Mt,updateNode:Bt,deleteNode:Dt,flushBatch:Ut,endBatch:Wt,sendRenderError:Vt}=L,$t=["%c[native]%c","color: red","color: auto"],Qt=function(e){return D(t=>t.stateNode&&t.stateNode.nodeId===e)};function qt(e){if(e instanceof wt)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 wt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Gt(e){let t=e;if("string"==typeof e){const n=D(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=qt(t);return e?e.nodeId:0}return t.nodeId}function Kt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=qt(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;se(o)&&(a=o,o=[]);null!==B()&&(re(...$t,"callUIFunction",{nodeId:i,funcName:t,paramList:o}),L.callUIFunction(i,t,o,a))}function Yt(e,t,n){const r=Gt(t);return new Promise((t,i)=>r?(re(...$t,"callUIFunction",{nodeId:r,funcName:e,paramList:[]}),L.callUIFunction(r,e,[],e=>(n&&se(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&se(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Xt=Object.freeze({__proto__:null,createNode:Mt,updateNode:Bt,deleteNode:Dt,flushBatch:Ut,endBatch:Wt,sendRenderError:Vt,getNodeById:Qt,getNodeIdByRef:Gt,getElementFromFiberRef:qt,callUIFunction:Kt,getBoundingClientRect:function(e,t){const n=Gt(e);return new Promise((r,i)=>n?(re(...$t,"callUIFunction",{nodeId:n,funcName:"getBoundingClientRect",params:t}),L.callUIFunction(n,"getBoundingClientRect",[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 Yt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?Yt("measureInWindow",e,t):Yt("measureInAppWindow",e,t)}});const Jt=new Se,Zt=new Set,en={exitApp(){I.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(I.callNative("DeviceEventModule","setListenBackPress",!0),Zt.add(e),{remove(){en.removeListener(e)}}),removeListener(e){Zt.delete(e),0===Zt.size&&I.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Jt.addListener("hardwareBackPress",()=>{let e=!0;[...Zt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&en.exitApp()})}},tn=(en.initEventListener(),en),{flushSync:nn}=It,{addEventListener:rn,removeEventListener:on,dispatchEvent:an,AsyncStorage:ln,Bridge:sn,Device:un,HippyRegister:cn}=O;var fn=Object.freeze({__proto__:null,addEventListener:rn,removeEventListener:on,dispatchEvent:an,AsyncStorage:ln,BackAndroid:tn,Bridge:sn,Clipboard:_t,Cookie:Lt,Device:un,HippyRegister:cn,ImageLoader:Rt,NetworkInfo:Ht,UIManager:Xt,flushSync:nn});const{createContainer:dn,updateContainer:pn,getPublicRootInstance:hn,injectIntoDevTools:mn}=It,yn=['%c[Hippy-React "3.3.0"]%c',"color: #61dafb","color: auto"];class gn{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 Et;this.rootContainer=dn(t,0,!1,null)}static get Native(){return fn}start(){cn.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;re(...yn,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ue(r),i&&function(e=!1){ne=e}(i),M(l,this.rootContainer);const s=o.a.createElement(n,e);return pn(s,this.rootContainer,null,a),hn(this.rootContainer)}}gn.version="3.3.0";const vn={registerComponent(e,t){new gn({appName:e,entryPage:t}).start()}};class bn extends o.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Kt(this.instance,"setPressed",[e])}setHotspot(e,t){Kt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=He(a.color)),o.a.createElement("div",C({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function wn(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=ie(r.children);else if("number"==typeof r.children)r.text=ie(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=ie(e),r.children=r.text)}return o.a.createElement("p",C({ref:t,nativeName:"Text",style:i},r))}wn.displayName="Text";const En=o.a.forwardRef(wn);En.displayName="Text";var kn=Object.freeze({__proto__:null,default:En});class Sn extends o.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=Tt(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:a,sources:l,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=de(p.defaultSource));const m=C({},n);return this.handleTintColor(m,c,d),p.style=m,t?o.a.createElement(bn,{style:n},o.a.createElement("img",C(C({},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):o.a.createElement("img",C(C({},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=>de(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}Sn.prefetch=At;class Cn{constructor(){this.Value=Cn.Value}static Value(e){return e}static timing(e,t){return new Qe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Cn.View=bn,Cn.Text=kn,Cn.Image=Sn;const xn={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 Nn(e){return o.a.createElement("li",C({nativeName:"ListViewItem"},e))}class Pn extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Kt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Kt(this.instance,"collapsePullHeaderWithOptions",[e]):Kt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return o.a.createElement("div",C({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class In extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Kt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Kt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return o.a.createElement("div",C({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class _n extends o.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}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Kt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Kt(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:a,getRowType:l,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:b,onFooterReleased:w,onAppear:E,onDisappear:k,onWillAppear:S,onWillDisappear:x}=e,P=N(e,h),I=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,v,u),N=this.getPullFooter(a,b,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&I.push(o.a.createElement(Nn,C({},t),n))}h&&I.unshift(h),N&&I.push(N),"function"==typeof m&&Object.assign(P,{rowShouldSticky:!0});const _=[E,k,S,x];P.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===un.platform.OS&&(P.numberOfRows=I.length),void 0!==p&&(P.initialListSize=p),P.style=C({overflow:"scroll"},n)}return o.a.createElement("ul",C({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},P),I.length?I:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(Pn,{style:a,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(In,{style:a,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))}}_n.defaultProps={numberOfRows:0};class Ln extends o.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Kt(this.instance,"startRefresh",null)}refreshCompleted(){Kt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return o.a.createElement("div",C({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),o.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 Tn{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 gn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Kt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Kt(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,o.a.createElement("div",C({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Rn(e){return o.a.createElement("div",C(C({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class zn extends o.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&&Kt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Kt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,v);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),o.a.createElement(Rn,C({},t),e)}):i.push(o.a.createElement(Rn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",C({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function On(){const e=_.platform.Localization;return!!e&&1===e.direction}const jn={caretColor:"caret-color"};class Fn extends o.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=>{Kt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Kt(this.instance,"setValue",[e]),e}focus(){Kt(this.instance,"focusTextInput",[])}blur(){Kt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{Kt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){Kt(this.instance,"clear",[])}render(){const e=C({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(jn[t]&&(n=jn[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])}),On()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),o.a.createElement("div",C(C({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;"function"==typeof t&&t(e)}}const Hn=un.window.scale;let Mn=Math.round(.4*Hn)/Hn;function Bn(e){return e}0===Mn&&(Mn=1/Hn);var Dn=Object.freeze({__proto__:null,get hairlineWidth(){return Mn},create:Bn});const Un={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 Wn extends o.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,Kt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Kt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Un.contentContainerHorizontal:Un.contentContainerVertical,t],a=e?Object.assign({},Un.baseHorizontal,r):Object.assign({},Un.baseVertical,r);return e&&(a.flexDirection=On()?"row-reverse":"row"),o.a.createElement("div",C(C({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),o.a.createElement(bn,{style:i},n))}}const Vn={modal:{position:"absolute",collapsable:!1}};class $n extends o.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===un.platform.OS&&(this.eventSubscription=new Ee("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===un.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 a={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),o.a.createElement("div",C({nativeName:"Modal",animationType:i,transparent:n,style:[Vn.modal,a]},this.props),e)}}$n.defaultProps={visible:!0};class Qn extends o.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:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=o.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=a&&Gt(a),v=l&&Gt(l),b=s&&Gt(s),w=u&&Gt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=C(C({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return o.a.createElement(bn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:v,nextFocusLeftId:b,nextFocusRightId:w,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return o.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:E,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 qn(e){return o.a.createElement("iframe",C({title:"hippy",nativeName:"WebView"},e))}let Gn;class Kn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Gn||(Gn=new Ee("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=C({},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=Gn.addCallback(this.onWebSocketEvent),I.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,I.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);I.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,Gn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Yn(e){return o.a.createElement("li",C({nativeName:"WaterfallItem"},e))}class Xn extends o.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}){Kt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Kt(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:a=0,numberOfItems:l=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:v,onFooterPulling:w,onFooterReleased:E,containPullHeader:k=!1,containPullFooter:S=!1,containBannerView:x=!1}=e,P=C(C({},N(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:k,containPullFooter:S,containBannerView:x}),I=[];if("function"==typeof n){const e=n();if(e)if("ios"===un.platform.OS)I.push(o.a.createElement(bn,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0;else if("android"===un.platform.OS){const t={key:"bannerView",fullSpan:!0,style:{}};I.push(o.a.createElement(Yn,C({},t),o.a.cloneElement(e)))}}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,w,E);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},P),I)}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=o.a.createElement(Pn,{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=o.a.createElement(In,{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=Kn;const{AsyncStorage:Jn,BackAndroid:Zn,Bridge:er,Clipboard:tr,Cookie:nr,Device:rr,HippyRegister:ir,ImageLoader:or,NetworkInfo:ar,UIManager:lr,flushSync:sr}=fn,{callNative:ur,callNativeWithPromise:cr,callNativeWithCallbackId:fr,removeNativeCallback:dr}=er,pr=null,hr=e.ConsoleModule||e.console,mr=rr.platform,yr=gn,gr=Sn,vr={get:e=>rr[e]},br={get:()=>rr.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{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=0,G=1,K=-1,Y=1,X={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},J={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Z={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const ee=new RegExp(/^\d+$/);let te=!1,ne=!1;function re(...e){ce()&&console.log(...e)}function ie(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const oe=new RegExp("^on.+Capture$");function ae(e){return oe.test(e)}const le=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function se(e){return"[object Function]"===Object.prototype.toString.call(e)}function ue(e){te=e}function ce(){return!1}function fe(){return ne}function de(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}function pe(e){return"string"==typeof e?""!==e.trim():null!=e}class he{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 me{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const ye=new Map,ge=["%c[event]%c","color: green","color: auto"];function ve(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function be(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return ye.get(e)||null}const we={registerNativeEventHub:function(e){if(re(...ge,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=ye.get(e);return t||(t=new he(e),ye.set(e,t)),t},getHippyEventHub:be,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);ye.has(e)&&ye.delete(e)},receiveNativeEvent:function(e){if(re(...ge,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=be(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(re(...ge,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a={}}=e,l=$(r),s=$(n);l&&s&&(Z[i]?function(e,t,n,r,i,o){try{let t=!1;const a=V(r),l=V(n),{eventPhase:s}=o;if(ve(e,n)&&ae(e)&&[J.AT_TARGET,J.CAPTURING_PHASE].indexOf(s)>-1){const t=new me(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(ve(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(s)>-1){const r=new me(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!fe()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=V(r),s=V(n);try{const{eventPhase:t}=o;if(ve(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(t)>-1){const r=new me(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!fe(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=we);class Ee{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 ke{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=we.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=>{Ne(e,t,n)}):Ne(e,t,n),Ie},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=>{Pe(e,t)}):Pe(e,t),Ie},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=Ce[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=we.getHippyEventHub(e);return n?(n.notifyEvent(...t),Ie):Ie}};function _e(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const Le={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},Te="[-+]?\\d*\\.?\\d+",Ae={rgb:new RegExp("rgb"+_e(Te,Te,Te)),rgba:new RegExp("rgba"+_e(Te,Te,Te,Te)),hsl:new RegExp("hsl"+_e(Te,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+_e(Te,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Te)),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 Re(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ze(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Oe(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 je(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Oe(i,r,e+1/3),a=Oe(i,r,e),l=Oe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Fe(e){return(parseFloat(e)%360+360)%360/360}function He(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Me(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ae.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Le,e)?Le[e]:(t=Ae.rgb.exec(e),Array.isArray(t)?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|255)>>>0:(t=Ae.rgba.exec(e),t?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|ze(t[4]))>>>0:(t=Ae.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ae.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Ae.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ae.hsl.exec(e),t?(255|je(Fe(t[1]),He(t[2]),He(t[3])))>>>0:(t=Ae.hsla.exec(e),t?(je(Fe(t[1]),He(t[2]),He(t[3]))|ze(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Be(e){return Array.isArray(e)?e.map(e=>Me(e)):[0]}function De(e){return"loop"===e?-1:e}function Ue(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Me(t):t}const We="animationstart",Ve="animationend",$e="animationcancel",Qe="animationrepeat";class qe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=Ue(t.valueType,e)}const i=Ue(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=De(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,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.animationId=this.animation.getId(),this.destroy=this.destroy.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(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(We),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ve),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener($e),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(Qe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(We,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ve,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener($e,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Qe,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");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;if(e.startValue instanceof qe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Ue(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=De(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Ue(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 Ge="animationstart",Ke="animationend",Ye="animationcancel",Xe="animationrepeat";class Je{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:De(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),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(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ke),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ye),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Xe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ge,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ye,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Ye,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Ze={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let et=!0,tt=[];function nt(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!Z[e]}(r)?Z[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===G&&t.removeEventListener(n,l,o),i===q&&t.addEventListener(n,l,o,a)})}})}function rt(e,t){0}function it(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case Ze.createNode:rt(e.printedNodes),r.create(e.nodes),nt(e.eventNodes,r);break;case Ze.updateNode:rt(e.printedNodes),r.update(e.nodes),nt(e.eventNodes,r);break;case Ze.deleteNode:rt(e.printedNodes),r.delete(e.nodes);break;case Ze.moveNode:rt(e.printedNodes),r.move(e.nodes)}}),r.build()}function ot(e=!1){if(!et)return;if(et=!1,0===tt.length)return void(et=!0);const t=B();e?(it(t),tt=[],et=!0):Promise.resolve().then(()=>{it(t),tt=[],et=!0})}function at(e){const t=e.attributes,{children:n}=t;return N(t,s)}function lt(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i=t.style;if(t.parentNode instanceof kt){const e=Object.assign({},t.parentNode.inheritStyle,t.parentNode.style),{style:n,inheritStyle:r}=t;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!pe(n[t])&&pe(e[t])&&(r[t]=e[t])}),function(e){return e&&"Text"===e.nativeName||-1!==["p","span"].indexOf(e.tagName)}(t)&&(i=Object.assign({},r,n))}const o={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:x(x({},at(t)),{},{style:i}),tagName:t.tagName},a=function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t);let l=void 0;return[[o,n],a,l]}function st(e,t,n,r={}){const i=[],o=[],a=[];return t.traverseChildren((t,r)=>{const[l,s,u]=lt(e,t,r);l&&i.push(l),s&&o.push(s),u&&a.push(u),"function"==typeof n&&n(t)},r),[i,o,a]}function ut(e){return!!j&&e instanceof j.containerInfo.constructor}function ct(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i=ut(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const[e,i,o]=st(r,t,e=>{e.isMounted||(e.isMounted=!0)},n);tt.push({type:Ze.createNode,nodes:e,eventNodes:i,printedNodes:o})}}function ft(e){if(!e.isMounted)return;const t=B(),[n,r,i]=lt(t,e);n&&tt.push({type:Ze.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}function dt(e){if(!e.isMounted)return;const t=B(),[n,r,i]=st(t,e)||{};n&&tt.push({type:Ze.updateNode,nodes:n,eventNodes:r,printedNodes:i})}let pt=0;class ht{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(pt+=1,pt%10==0&&(pt+=1),pt)}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),ct(this,e,{refId:t.nodeId,relativeToRef:K})}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);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];tt.push({printedNodes:a,type:Ze.moveNode,nodes:o,eventNodes:[]})}(this,e,{refId:t.nodeId,relativeToRef:K})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),ct(this,e,n&&{refId:n.nodeId,relativeToRef:Y})}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),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=B(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];tt.push({printedNodes:o,type:Ze.deleteNode,nodes:i,eventNodes:[]})}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}const mt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},yt={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},gt="turn",vt="rad",bt="deg";function wt(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=bt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case gt:r=""+(360*n).toFixed(2);break;case vt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==yt[i]&&(r=yt[i]),r}function Et(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:Me(n)}:void 0:{color:Me(n)}}class kt extends ht{constructor(e){super(),this.id="",this.style={},this.inheritStyle={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}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,ee.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(mt,e)&&(e=mt[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 qe||r instanceof Je?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 qe||t instanceof Je)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Be(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Me(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=wt(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=Et(e);t&&r.push(t)}}else{const t=Et(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=de(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})}}),ft(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,dt(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ie(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>{if("object"!=typeof t||null==t)return!0;this.setStyleAttribute(t);return["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].some(e=>Object.prototype.hasOwnProperty.call(t,e))&&dt(this),!1}},{match:()=>!0,action:()=>{if("function"==typeof t){const t=function(e){return ae(e)&&(e=e.replace("Capture","")),X[e]?X[e][1]:e}(e);this.events[e]?this.events[e]&&this.events[e].type!==q&&(this.events[e].type=q):this.events[e]={name:t,type:q,isCapture:ae(e),listener:(n=t,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};we.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return this.events[e].type=G,!1;this.attributes[e]=t}var n,r;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&&ft(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ft(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(mt,e)&&(i=mt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Be(r):i.toLowerCase().indexOf("color")>-1?Me(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&le.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ft(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)}),ft(this),ot(!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=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class St extends ht{constructor(){super(),this.documentElement=new kt("document")}createElement(e){return new kt(e)}createElementNS(e,t){return new kt(`${e}:${t}`)}}St.createElement=St.prototype.createElement,St.createElementNS=St.prototype.createElementNS;var xt=Array.isArray,Ct=Object.keys,Nt=Object.prototype.hasOwnProperty;const Pt=setTimeout,It=clearTimeout;var _t=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){ot(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Pt,cancelTimeout:It,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){U(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),U(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ie(e)),i.meta={component:{name:"Text"}},U(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=xt(t),l=xt(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=Ct(t);if((i=d.length)!==Ct(n).length)return!1;for(r=i;0!=r--;)if(!Nt.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 Lt=l()(x(x({},_t),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var Tt=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var At=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function Rt(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function zt(e){I.callNative("ImageLoaderModule","prefetch",e)}var Ot=Object.freeze({__proto__:null,getSize:Rt,prefetch:zt});const jt=new Map,Ft=new xe;class Ht{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Mt(this.eventName,this.listener),this.listener=void 0)}}function Mt(e,t){if(t instanceof Ht)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=jt.get(t);if(!r)return;r.remove(),jt.delete(t);Ft.listenerSize(n)<1&&I.callNative("NetInfo","removeListener",n)}var Bt=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Ft.listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);const r=Ft.addListener(n,e=>{t(e)});return jt.set(t,r),new Ht(n,t)},removeEventListener:Mt,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Dt,updateNode:Ut,deleteNode:Wt,flushBatch:Vt,endBatch:$t,sendRenderError:Qt}=L,qt=["%c[native]%c","color: red","color: auto"],Gt=function(e){return D(t=>t.stateNode&&t.stateNode.nodeId===e)};function Kt(e){if(e instanceof kt)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 kt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Yt(e){let t=e;if("string"==typeof e){const n=D(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=Kt(t);return e?e.nodeId:0}return t.nodeId}function Xt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Kt(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;se(o)&&(a=o,o=[]);null!==B()&&(re(...qt,"callUIFunction",{nodeId:i,funcName:t,paramList:o}),L.callUIFunction(i,t,o,a))}function Jt(e,t,n){const r=Yt(t);return new Promise((t,i)=>r?(re(...qt,"callUIFunction",{nodeId:r,funcName:e,paramList:[]}),L.callUIFunction(r,e,[],e=>(n&&se(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&se(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Zt=Object.freeze({__proto__:null,createNode:Dt,updateNode:Ut,deleteNode:Wt,flushBatch:Vt,endBatch:$t,sendRenderError:Qt,getNodeById:Gt,getNodeIdByRef:Yt,getElementFromFiberRef:Kt,callUIFunction:Xt,getBoundingClientRect:function(e,t){const n=Yt(e);return new Promise((r,i)=>n?(re(...qt,"callUIFunction",{nodeId:n,funcName:"getBoundingClientRect",params:t}),L.callUIFunction(n,"getBoundingClientRect",[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 Jt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?Jt("measureInWindow",e,t):Jt("measureInAppWindow",e,t)}});const en=new xe,tn=new Set,nn={exitApp(){I.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(I.callNative("DeviceEventModule","setListenBackPress",!0),tn.add(e),{remove(){nn.removeListener(e)}}),removeListener(e){tn.delete(e),0===tn.size&&I.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){en.addListener("hardwareBackPress",()=>{let e=!0;[...tn].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&nn.exitApp()})}},rn=(nn.initEventListener(),nn),{flushSync:on}=Lt,{addEventListener:an,removeEventListener:ln,dispatchEvent:sn,AsyncStorage:un,Bridge:cn,Device:fn,HippyRegister:dn}=O;var pn=Object.freeze({__proto__:null,addEventListener:an,removeEventListener:ln,dispatchEvent:sn,AsyncStorage:un,BackAndroid:rn,Bridge:cn,Clipboard:Tt,Cookie:At,Device:fn,HippyRegister:dn,ImageLoader:Ot,NetworkInfo:Bt,UIManager:Zt,flushSync:on});const{createContainer:hn,updateContainer:mn,getPublicRootInstance:yn,injectIntoDevTools:gn}=Lt,vn=['%c[Hippy-React "3.3.1"]%c',"color: #61dafb","color: auto"];class bn{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 St;this.rootContainer=hn(t,0,!1,null)}static get Native(){return pn}start(){dn.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;re(...vn,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ue(r),i&&function(e=!1){ne=e}(i),M(l,this.rootContainer);const s=o.a.createElement(n,e);return mn(s,this.rootContainer,null,a),yn(this.rootContainer)}}bn.version="3.3.1";const wn={registerComponent(e,t){new bn({appName:e,entryPage:t}).start()}};class En extends o.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Xt(this.instance,"setPressed",[e])}setHotspot(e,t){Xt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=Me(a.color)),o.a.createElement("div",x({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function kn(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=ie(r.children);else if("number"==typeof r.children)r.text=ie(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=ie(e),r.children=r.text)}return o.a.createElement("p",x({ref:t,nativeName:"Text",style:i},r))}kn.displayName="Text";const Sn=o.a.forwardRef(kn);Sn.displayName="Text";var xn=Object.freeze({__proto__:null,default:Sn});class Cn extends o.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=Rt(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:a,sources:l,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=de(p.defaultSource));const m=x({},n);return this.handleTintColor(m,c,d),p.style=m,t?o.a.createElement(En,{style:n},o.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):o.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=>de(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}Cn.prefetch=zt;class Nn{constructor(){this.Value=Nn.Value}static Value(e){return e}static timing(e,t){return new qe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Nn.View=En,Nn.Text=xn,Nn.Image=Cn;const Pn={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 In(e){return o.a.createElement("li",x({nativeName:"ListViewItem"},e))}class _n extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Xt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Xt(this.instance,"collapsePullHeaderWithOptions",[e]):Xt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return o.a.createElement("div",x({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class Ln extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Xt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Xt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return o.a.createElement("div",x({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class Tn extends o.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}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Xt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Xt(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:a,getRowType:l,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:b,onFooterReleased:w,onAppear:E,onDisappear:k,onWillAppear:S,onWillDisappear:C}=e,P=N(e,h),I=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,v,u),N=this.getPullFooter(a,b,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&I.push(o.a.createElement(In,x({},t),n))}h&&I.unshift(h),N&&I.push(N),"function"==typeof m&&Object.assign(P,{rowShouldSticky:!0});const _=[E,k,S,C];P.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===fn.platform.OS&&(P.numberOfRows=I.length),void 0!==p&&(P.initialListSize=p),P.style=x({overflow:"scroll"},n)}return o.a.createElement("ul",x({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},P),I.length?I:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(_n,{style:a,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(Ln,{style:a,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))}}Tn.defaultProps={numberOfRows:0};class An extends o.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Xt(this.instance,"startRefresh",null)}refreshCompleted(){Xt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return o.a.createElement("div",x({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),o.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 Rn{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 bn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Xt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Xt(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,o.a.createElement("div",x({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function On(e){return o.a.createElement("div",x(x({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class jn extends o.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&&Xt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Xt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,v);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),o.a.createElement(On,x({},t),e)}):i.push(o.a.createElement(On,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",x({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function Fn(){const e=_.platform.Localization;return!!e&&1===e.direction}const Hn={caretColor:"caret-color"};class Mn extends o.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=>{Xt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Xt(this.instance,"setValue",[e]),e}focus(){Xt(this.instance,"focusTextInput",[])}blur(){Xt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{Xt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){Xt(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]&&(Hn[t]&&(n=Hn[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])}),Fn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),o.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;"function"==typeof t&&t(e)}}const Bn=fn.window.scale;let Dn=Math.round(.4*Bn)/Bn;function Un(e){return e}0===Dn&&(Dn=1/Bn);var Wn=Object.freeze({__proto__:null,get hairlineWidth(){return Dn},create:Un});const Vn={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 $n extends o.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,Xt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Xt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Vn.contentContainerHorizontal:Vn.contentContainerVertical,t],a=e?Object.assign({},Vn.baseHorizontal,r):Object.assign({},Vn.baseVertical,r);return e&&(a.flexDirection=Fn()?"row-reverse":"row"),o.a.createElement("div",x(x({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),o.a.createElement(En,{style:i},n))}}const Qn={modal:{position:"absolute",collapsable:!1}};class qn extends o.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===fn.platform.OS&&(this.eventSubscription=new ke("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===fn.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 a={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),o.a.createElement("div",x({nativeName:"Modal",animationType:i,transparent:n,style:[Qn.modal,a]},this.props),e)}}qn.defaultProps={visible:!0};class Gn extends o.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:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=o.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=a&&Yt(a),v=l&&Yt(l),b=s&&Yt(s),w=u&&Yt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=x(x({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return o.a.createElement(En,{focusable:!0,nextFocusDownId:g,nextFocusUpId:v,nextFocusLeftId:b,nextFocusRightId:w,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return o.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:E,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 Kn(e){return o.a.createElement("iframe",x({title:"hippy",nativeName:"WebView"},e))}let Yn;class Xn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Yn||(Yn=new ke("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=Yn.addCallback(this.onWebSocketEvent),I.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,I.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);I.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,Yn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Jn(e){return o.a.createElement("li",x({nativeName:"WaterfallItem"},e))}class Zn extends o.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}){Xt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Xt(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:a=0,numberOfItems:l=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:v,onFooterPulling:w,onFooterReleased:E,containPullHeader:k=!1,containPullFooter:S=!1,containBannerView:C=!1}=e,P=x(x({},N(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:k,containPullFooter:S,containBannerView:C}),I=[];if("function"==typeof n){const e=n();if(e)if("ios"===fn.platform.OS)I.push(o.a.createElement(En,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0;else if("android"===fn.platform.OS){const t={key:"bannerView",fullSpan:!0,style:{}};I.push(o.a.createElement(Jn,x({},t),o.a.cloneElement(e)))}}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,w,E);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},P),I)}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=o.a.createElement(_n,{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=o.a.createElement(Ln,{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=Xn;const{AsyncStorage:er,BackAndroid:tr,Bridge:nr,Clipboard:rr,Cookie:ir,Device:or,HippyRegister:ar,ImageLoader:lr,NetworkInfo:sr,UIManager:ur,flushSync:cr}=pn,{callNative:fr,callNativeWithPromise:dr,callNativeWithCallbackId:pr,removeNativeCallback:hr}=nr,mr=null,yr=e.ConsoleModule||e.console,gr=or.platform,vr=bn,br=Cn,wr={get:e=>or[e]},Er={get:()=>or.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 * @@ -29,7 +29,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var vt=null,bt=null;(0,a.unstable_now)();var wt=0,Et=8;function kt(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=kt(s),i=Et):0!==(l&=o)&&(r=kt(l),i=Et)}else 0!==(o=n&~a)?(r=kt(o),i=Et):0!==l&&(r=kt(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Tt|0)|0},Lt=Math.log,Tt=Math.LN2;var At=a.unstable_runWithPriority,Rt=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Bt=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Ut=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},Qt=null,qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Bt:return 98;case Dt:return 97;case Ut:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Bt;case 97:return Dt;case 96:return Ut;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),Rt(e,t,n)}function tn(){if(null!==qt){var e=qt;qt=null,zt(e)}nn()}function nn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(i,d,v.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(i,d),c;if(null===d){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,u))&&(a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return c}for(d=r(i,d);!v.done;p++,v=s.next())null!==(v=g(d,i,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===E&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ua(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Da(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return v(r,o,s,d);if(P(s))return b(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Bn=Mn(!0),Dn=Mn(!1),Un={},Wn=it(Un),Vn=it(Un),$n=it(Un);function Qn(e){if(e===Un)throw Error(l(174));return e}function qn(e,t){at($n,t),at(Vn,e),at(Wn,Un),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=Qn($n.current),n=Qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=Qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function Cr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,ko|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ao=r),Li(0,t)},n}function Ri(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ka(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),va(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):xe(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Ce(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(bt&&"function"==typeof bt.onCommitFiberUnmount)try{bt.onCommitFiberUnmount(vt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){ka(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ka(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Te(t),ze(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(ke(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ze(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ai(0,o,t));break e;case 1:o=s;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ro||!Ro.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ri(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=Qr,null===e?Qr:e}function sa(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&ko)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=Eo),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ki(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),vn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,En(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,zn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===b)return 14;if(e===E)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,kn(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{vt=t.inject(e),bt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Cn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; +e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var vt=null,bt=null;(0,a.unstable_now)();var wt=0,Et=8;function kt(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=kt(s),i=Et):0!==(l&=o)&&(r=kt(l),i=Et)}else 0!==(o=n&~a)?(r=kt(o),i=Et):0!==l&&(r=kt(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Tt|0)|0},Lt=Math.log,Tt=Math.LN2;var At=a.unstable_runWithPriority,Rt=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Bt=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Ut=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},Qt=null,qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Bt:return 98;case Dt:return 97;case Ut:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Bt;case 97:return Dt;case 96:return Ut;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),Rt(e,t,n)}function tn(){if(null!==qt){var e=qt;qt=null,zt(e)}nn()}function nn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(i,d,v.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(i,d),c;if(null===d){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,u))&&(a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return c}for(d=r(i,d);!v.done;p++,v=s.next())null!==(v=g(d,i,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===E&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ua(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Da(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return v(r,o,s,d);if(P(s))return b(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Bn=Mn(!0),Dn=Mn(!1),Un={},Wn=it(Un),Vn=it(Un),$n=it(Un);function Qn(e){if(e===Un)throw Error(l(174));return e}function qn(e,t){at($n,t),at(Vn,e),at(Wn,Un),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=Qn($n.current),n=Qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=Qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function xr(e,t){return"function"==typeof t?t(e):t}function Cr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,ko|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ao=r),Li(0,t)},n}function Ri(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ka(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),va(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):Ce(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?xe(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(bt&&"function"==typeof bt.onCommitFiberUnmount)try{bt.onCommitFiberUnmount(vt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){ka(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ka(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Te(t),ze(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(ke(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ze(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~xo,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,Cn(d,Ai(0,o,t));break e;case 1:o=s;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ro||!Ro.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,Cn(d,Ri(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=Qr,null===e?Qr:e}function sa(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&ko)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):xo|=n),Xo(e,t)}function xa(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=Eo),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function Ca(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xa(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),xa(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ki(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),vn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,En(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,zn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===b)return 14;if(e===E)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,kn(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{vt=t.inject(e),bt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),xn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -42,7 +42,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n("./node_modules/object-assign/index.js"),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,T=3,A=!1,R=!1,z=!1;function O(e){for(var t=C(I);null!==t;){if(null===t.callback)x(I);else{if(!(t.startTime<=e))break;x(I),t.sortIndex=t.expirationTime,S(P,t)}t=C(I)}}function j(e){if(z=!1,O(e),!R)if(null!==C(P))R=!0,r(F);else{var t=C(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),A=!0;var r=T;try{for(O(n),L=C(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===C(P)&&x(P),O(n)}else x(P);L=C(P)}if(null!==L)var s=!0;else{var u=C(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,T=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===C(P)&&e===C(I)&&(z?o():z=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),R||A||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,v=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,T=3,A=!1,R=!1,z=!1;function O(e){for(var t=x(I);null!==t;){if(null===t.callback)C(I);else{if(!(t.startTime<=e))break;C(I),t.sortIndex=t.expirationTime,S(P,t)}t=x(I)}}function j(e){if(z=!1,O(e),!R)if(null!==x(P))R=!0,r(F);else{var t=x(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),A=!0;var r=T;try{for(O(n),L=x(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===x(P)&&C(P),O(n)}else C(P);L=x(P)}if(null!==L)var s=!0;else{var u=x(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,T=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===x(P)&&e===x(I)&&(z?o():z=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),R||A||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/vue2/index.android.js b/framework/voltron/example/assets/jsbundle/vue2/index.android.js index febc3531df1..f8b23c754bd 100644 --- a/framework/voltron/example/assets/jsbundle/vue2/index.android.js +++ b/framework/voltron/example/assets/jsbundle/vue2/index.android.js @@ -1,8 +1,8 @@ -!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), +!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), /*! - * @hippy/vue-router v3.3.0 - * (Using Vue v2.6.14 and Hippy-Vue v3.3.0) - * Build at: Thu Jun 20 2024 15:23:49 GMT+0800 (中国标准时间) + * @hippy/vue-router v3.3.1 + * (Using Vue v2.6.14 and Hippy-Vue v3.3.1) + * Build at: Mon Aug 26 2024 14:48:40 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -22,4 +22,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"==t(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function I(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(I(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo"},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},I=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));I.options.__file="src/components/demos/demo-p.vue";var L=I.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};M._withStripped=!0;const F=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:L},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"}]}};var Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Ie={data:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})},Le=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Ie,Ve,[],!1,null,"ca89125a",null));Le.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Le.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;const Me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onOrientationChange(e){console.log("orientation changed",e.nativeParams)},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"==t(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function I(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(I(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo",style:{color:e.topColor}},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextColor}},[e._v("\n 验证属性继承更改效果,点击可改变整体颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({topColor:"grey",Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},changeTextColor(){this.topColor=this.textShadowIndex%2==1?"red":"grey",this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},I=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));I.options.__file="src/components/demos/demo-p.vue";var L=I.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};M._withStripped=!0;const F=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:L},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"}]}};var Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Ie={data:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})},Le=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Ie,Ve,[],!1,null,"ca89125a",null));Le.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Le.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;const Me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onOrientationChange(e){console.log("orientation changed",e.nativeParams)},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js b/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js index 624fe11639b..891124a4b9b 100644 --- a/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js +++ b/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js @@ -1,8 +1,8 @@ -var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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-vue-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return u})),n.d(t,"DialogComponent",(function(){return d})),n.d(t,"ListRefreshComponent",(function(){return h})),n.d(t,"PullsComponents",(function(){return y})),n.d(t,"SwiperComponent",(function(){return m})),n.d(t,"WaterfallComponent",(function(){return g})),n.d(t,"default",(function(){return v}));const o=["mode","valueType","startValue","toValue"],r=["transform"],i=["transform"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||(r[n]=e[n]);return r} +var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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-vue-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return u})),n.d(t,"DialogComponent",(function(){return d})),n.d(t,"ListRefreshComponent",(function(){return h})),n.d(t,"PullsComponents",(function(){return y})),n.d(t,"SwiperComponent",(function(){return m})),n.d(t,"WaterfallComponent",(function(){return g})),n.d(t,"default",(function(){return v}));const o=["mode","valueType","startValue","toValue"],r=["transform"],i=["transform"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function s(e,n){return"color"===e&&["number","string"].indexOf(typeof n)>=0?t.Native.parseColor(n):n}function c(t){const{mode:r="timing",valueType:i,startValue:c,toValue:d}=t,f=l(t,o),p=a(a({},n),f);void 0!==i&&(p.valueType=t.valueType),p.startValue=s(p.valueType,c),p.toValue=s(p.valueType,d),p.repeatCount=u(p.repeatCount),p.mode=r;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function u(e){return"loop"===e?-1:e}function d(t,n={}){const o={};return Object.keys(t).forEach(r=>{if(Array.isArray(t[r])){const i=t[r],{repeatCount:s}=i[i.length-1],a=i.map(e=>{const{animationId:t,animation:o}=c(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:l,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(a,u(s));o[r]={animationId:l},Object.assign(n,{[l]:d})}else{const e=t[r],{animationId:i,animation:s}=c(e);Object.assign(n,{[i]:s}),o[r]={animationId:i}}}),o}function f(e){const{transform:t}=e,n=l(e,r);let o=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:o}=t[n];"number"==typeof o&&o%1==0&&e.push(o)}})),o=[...o,...e]}return o}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{"function"==typeof this.$listeners.actionsDidUpdate&&this.$listeners.actionsDidUpdate()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=l(e.actions,i);this.animationIdsMap={};const o=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);o.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=o},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.destroy()})}},template:'\n \n \n \n '})}function d(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render(e){const t=(n=this.$slots.default)?Array.isArray(n)?n[0]:n||void 0:null;var n;t&&(t.data.attrs?Object.assign(t.data.attrs,{__modalFirstChild__:!0}):t.data.attrs={__modalFirstChild__:!0});const{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}=this;return e("hi-dialog",{on:a({},this.$listeners),attrs:{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}},this.$slots.default)}})}function f(e){return"string"!=typeof e?"":`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function p(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+f(o)]?t[e]=this["on"+f(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+f(e)]?t[e]=this["on"+f(e)]:t[e]=t=>this.$emit(e,t))}),t}function h(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(e){return e("hi-ul-refresh-wrapper",{on:p.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function m(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render(e){return e("hi-swiper",{on:p.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function y(e){const{callUIFunction:t}=e.Native;[["Header","header"],["Footer","footer"]].forEach(([n,o])=>{e.registerElement("hi-pull-"+o,{component:{name:`Pull${n}View`,processEventData(e,t,o){switch(t){case`on${n}Released`:case`on${n}Pulling`:Object.assign(e,o)}return e}}}),e.component("pull-"+o,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(e){const{released:t,pulling:r,idle:i}=this.$listeners,s={layout:this.onLayout};return"function"==typeof t&&(s[o+"Released"]=this[`on${n}Released`]),"function"!=typeof r&&"function"!=typeof i||(s[o+"Pulling"]=this[`on${n}Pulling`]),e("hi-pull-"+o,{on:s,ref:"instance"},this.$slots.default)}})})}function g(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":{const{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s}=n;Object.assign(e,{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){"number"==typeof e&&"boolean"==typeof t&&this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(e){return e("hi-waterfall",{on:p.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render(e){return e("hi-waterfall-item",{on:a({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const v={install(e){u(e),d(e),h(e),m(e),y(e),g(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,o,r){function i(){i=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),a(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},i.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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0?t.Native.parseColor(n):n}function c(t){const{mode:r="timing",valueType:i,startValue:c,toValue:d}=t,f=l(t,o),p=a(a({},n),f);void 0!==i&&(p.valueType=t.valueType),p.startValue=s(p.valueType,c),p.toValue=s(p.valueType,d),p.repeatCount=u(p.repeatCount),p.mode=r;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function u(e){return"loop"===e?-1:e}function d(t,n={}){const o={};return Object.keys(t).forEach(r=>{if(Array.isArray(t[r])){const i=t[r],{repeatCount:s}=i[i.length-1],a=i.map(e=>{const{animationId:t,animation:o}=c(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:l,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(a,u(s));o[r]={animationId:l},Object.assign(n,{[l]:d})}else{const e=t[r],{animationId:i,animation:s}=c(e);Object.assign(n,{[i]:s}),o[r]={animationId:i}}}),o}function f(e){const{transform:t}=e,n=l(e,r);let o=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:o}=t[n];"number"==typeof o&&o%1==0&&e.push(o)}})),o=[...o,...e]}return o}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{"function"==typeof this.$listeners.actionsDidUpdate&&this.$listeners.actionsDidUpdate()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=l(e.actions,i);this.animationIdsMap={};const o=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);o.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=o},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.destroy()})}},template:'\n \n \n \n '})}function d(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render(e){const t=(n=this.$slots.default)?Array.isArray(n)?n[0]:n||void 0:null;var n;t&&(t.data.attrs?Object.assign(t.data.attrs,{__modalFirstChild__:!0}):t.data.attrs={__modalFirstChild__:!0});const{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}=this;return e("hi-dialog",{on:a({},this.$listeners),attrs:{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}},this.$slots.default)}})}function f(e){return"string"!=typeof e?"":`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function p(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+f(o)]?t[e]=this["on"+f(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+f(e)]?t[e]=this["on"+f(e)]:t[e]=t=>this.$emit(e,t))}),t}function h(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(e){return e("hi-ul-refresh-wrapper",{on:p.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function m(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render(e){return e("hi-swiper",{on:p.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function y(e){const{callUIFunction:t}=e.Native;[["Header","header"],["Footer","footer"]].forEach(([n,o])=>{e.registerElement("hi-pull-"+o,{component:{name:`Pull${n}View`,processEventData(e,t,o){switch(t){case`on${n}Released`:case`on${n}Pulling`:Object.assign(e,o)}return e}}}),e.component("pull-"+o,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(e){const{released:t,pulling:r,idle:i}=this.$listeners,s={layout:this.onLayout};return"function"==typeof t&&(s[o+"Released"]=this[`on${n}Released`]),"function"!=typeof r&&"function"!=typeof i||(s[o+"Pulling"]=this[`on${n}Pulling`]),e("hi-pull-"+o,{on:s,ref:"instance"},this.$slots.default)}})})}function g(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":{const{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s}=n;Object.assign(e,{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){"number"==typeof e&&"boolean"==typeof t&&this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(e){return e("hi-waterfall",{on:p.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render(e){return e("hi-waterfall-item",{on:a({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const v={install(e){u(e),d(e),h(e),m(e),y(e),g(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,o,r){function i(){i=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=RegExp(e,o);return t.set(i,r||t.get(e)),a(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},i.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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0&&Math.floor(t)===t&&isFinite(e)}function w(e){return p(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function $(e){return null==e?"":Array.isArray(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e)}function S(e){const t=parseFloat(e);return isNaN(t)?e:t}function x(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const k=x("slot,component",!0),O=x("key,ref,slot,slot-scope,is");function N(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const C=Object.prototype.hasOwnProperty;function E(e,t){return C.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const A=/-(\w)/g,T=I(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=/\B([A-Z])/g,L=I(e=>e.replace(j,"-$1").toLowerCase());const M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function D(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function F(e,t){for(const n in t)e[n]=t[n];return e}function R(e,t,n){}const V=(e,t,n)=>!1,B=e=>e;function U(e,t){if(e===t)return!0;const n=y(e),o=y(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every((e,n)=>U(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>U(e[n],t[n]))}}catch(e){return!1}}function H(e,t){for(let n=0;n!1,ce=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}const ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&le(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let fe=R;let pe=0;class he{constructor(){this.id=pe++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){N(this.subs,e)}depend(){he.target&&he.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new ve;return t.text=e,t.isComment=!0,t};function _e(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){const t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}const $e=Array.prototype,Se=Object.create($e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=$e[e];X(Se,e,(function(...n){const o=t.apply(this,n),r=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&r.observeArray(i),r.dep.notify(),o}))}));const xe=Object.getOwnPropertyNames(Se);let ke=!0;function Oe(e){ke=e}class Ne{constructor(e){this.value=e,this.dep=new he,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(Z?function(e,t){e.__proto__=t}(e,Se):function(e,t,n){for(let o=0,r=n.length;o{Pe[e]=Me}),z.forEach((function(e){Pe[e+"s"]=De})),Pe.watch=function(e,t,n,o){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};F(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!Array.isArray(n)&&(n=[n]),r[e]=n?n.concat(o):Array.isArray(o)?o:[o]}return r},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return F(r,e),t&&F(r,t),r},Pe.provide=Le;const Fe=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,i,s;if(Array.isArray(n))for(r=n.length;r--;)i=n[r],"string"==typeof i&&(s=T(i),o[s]={type:null});else if(v(n))for(const e in n)i=n[e],s=T(e),o[s]=v(i)?i:{type:i};else 0;e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(Array.isArray(n))for(let e=0;e-1)if(i&&!E(r,"default"))s=!1;else if(""===s||s===L(e)){const e=ze(String,r.type);(e<0||aYe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ye(e,o,r)}return i}function Ge(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!Q&&!ee||"undefined"==typeof console)throw e;console.error(e)}const Xe=[];let Je,Ze=!1;function Qe(){Ze=!1;const e=Xe.slice(0);Xe.length=0;for(let t=0;t{e.then(Qe),re&&setTimeout(R)}}else if(oe||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Je=void 0!==o&&le(o)?()=>{o(Qe)}:()=>{setTimeout(Qe,0)};else{let e=1;const t=new MutationObserver(Qe),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Je=()=>{e=(e+1)%2,n.data=String(e)}}function et(e,t){let n;if(Xe.push(()=>{if(e)try{e.call(t)}catch(e){Ye(e,t,"nextTick")}else n&&n(t)}),Ze||(Ze=!0,Je()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const tt=new de;function nt(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!y(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(i)for(o=t.length;o--;)e(t[o],n);else for(r=Object.keys(t),o=r.length;o--;)e(t[r[o]],n)}(e,tt),tt.clear()}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}});function rt(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Ke(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),lt(i[0])&<(a)&&(o[s]=_e(a.text+i[0].text),i.shift()),o.push.apply(o,i)):m(i)?lt(a)?o[s]=_e(a.text+i):""!==i&&o.push(_e(i)):lt(i)&<(a)?o[s]=_e(a.text+i.text):(h(t._isVList)&&p(i.tag)&&f(i.key)&&p(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function lt(e){return p(e)&&p(e.text)&&!1===e.isComment}function ut(e,t){if(e){const n=Object.create(null),o=ue?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,i=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==d&&s===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=mt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=yt(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",i),X(o,"$key",s),X(o,"$hasNormal",r),o}function mt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function yt(e,t){return()=>e[t]}function gt(e,t){let n,o,r,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,r=e.length;o(this.$slots||ht(e.scopedSlots,this.$slots=dt(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ht(e.scopedSlots,this.slots())}}),a&&(this.$options=i,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),i._scopeId?this._c=(e,t,n,r)=>{const a=Rt(s,e,t,n,r,c);return a&&!Array.isArray(a)&&(a.fnScopeId=i._scopeId,a.fnContext=o),a}:this._c=(e,t,n,o)=>Rt(s,e,t,n,o,c)}function Pt(e,t,n,o,r){const i=we(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function jt(e,t){for(const n in t)e[T(n)]=t[n]}At(Tt.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;p(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const i=o.data.scopedSlots,s=e.$scopedSlots,a=!!(i&&!i.$stable||s!==d&&!s.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(r||e.$options._renderChildren||a);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||d,e.$listeners=n||d,t&&e.$options.props){Oe(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;rN(o,n));const a=e=>{for(let e=0,t=o.length;e{e.resolved=Ut(n,t),r?o.length=0:a(!0)}),l=W(t=>{p(e.errorComp)&&(e.error=!0,a(!0))}),u=e(c,l);return y(u)&&(w(u)?f(e.resolved)&&u.then(c,l):w(u.component)&&(u.component.then(c,l),p(u.error)&&(e.errorComp=Ut(u.error,t)),p(u.loading)&&(e.loadingComp=Ut(u.loading,t),0===u.delay?e.loading=!0:i=setTimeout(()=>{i=null,f(e.resolved)&&f(e.error)&&(e.loading=!0,a(!1))},u.delay||200)),p(u.timeout)&&(s=setTimeout(()=>{s=null,f(e.resolved)&&l(null)},u.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(s,i))))return function(e,t,n,o,r){const i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(s,t,n,o,r);t=t||{},yn(e),p(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),i=r[o],s=t.model.callback;p(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const a=function(e,t,n){const o=t.options.props;if(f(o))return;const r={},{attrs:i,props:s}=e;if(p(i)||p(s))for(const e in o){const t=L(e);0,at(r,s,e,t,!0)||at(r,i,e,t,!1)}return r}(t,e);if(h(e.options.functional))return function(e,t,n,o,r){const i=e.options,s={},a=i.props;if(p(a))for(const e in a)s[e]=Be(e,a,t||d);else p(n.attrs)&&jt(s,n.attrs),p(n.props)&&jt(s,n.props);const c=new Tt(n,s,r,o,e),l=i.render.call(null,c._c,c);if(l instanceof ve)return Pt(l,n,c.parent,i,c);if(Array.isArray(l)){const e=ct(l)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Rt(e,t,n,o,r,i){return(Array.isArray(n)||m(n))&&(r=o,o=n,n=void 0),h(i)&&(r=2),function(e,t,n,o,r){if(p(n)&&p(n.__ob__))return be();p(n)&&p(n.is)&&(t=n.is);if(!t)return be();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=ct(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(on=()=>e.now())}function rn(){let e,t;for(on(),tn=!0,Jt.sort((e,t)=>e.id-t.id),nn=0;nnnn&&Jt[t].id>e.id;)t--;Jt.splice(t+1,0,e)}else Jt.push(e);en||(en=!0,et(rn))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||y(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.active){this.vm._isBeingDestroyed||N(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const cn={enumerable:!0,configurable:!0,get:R,set:R};function ln(e,t,n){cn.get=function(){return this[t][n]},cn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,cn)}function un(e){e._watchers=[];const t=e.$options;t.props&&function(e,t){const n=e.$options.propsData||{},o=e._props={},r=e.$options._propKeys=[];e.$parent&&Oe(!1);for(const i in t){r.push(i);const s=Be(i,t,n,e);Ee(o,i,s),i in e||ln(e,"_props",i)}Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ye();try{return e.call(t,t)}catch(e){return Ye(e,t,"data()"),{}}finally{ge()}}(t,e):t||{},v(t)||(t={});const n=Object.keys(t),o=e.$options.props;e.$options.methods;let r=n.length;for(;r--;){const t=n[r];0,o&&E(o,t)||q(t)||ln(e,"_data",t)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null);for(const o in t){const r=t[o],i="function"==typeof r?r:r.get;0,n[o]=new an(e,i||R,R,dn),o in e||fn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==ie&&function(e,t){for(const n in t){const o=t[n];if(Array.isArray(o))for(let t=0;t-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!b(e)&&e.test(t)}function wn(e,t){const{cache:n,keys:o,_vnode:r}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&$n(n,e,o,r)}}}function $n(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,N(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mn++,t._isVue=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(yn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=d,e._c=(t,n,o,r)=>Rt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Rt(e,t,n,o,r,!0);const r=n&&n.data;Ee(e,"$attrs",r&&r.attrs||d,null,!0),Ee(e,"$listeners",t._parentListeners||d,null,!0)}(t),Xt(t,"beforeCreate"),function(e){const t=ut(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Ee(e,n,t[n])}),Oe(!0))}(t),un(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(gn),function(e){const t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){const o=this;if(v(t))return hn(o,e,t,n);(n=n||{}).user=!0;const r=new an(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ye(),Ke(t,o,[r.value],o,e),ge()}return function(){r.teardown()}}}(gn),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const o=this;if(Array.isArray(e))for(let t=0,r=e.length;t1?D(n):n;const o=D(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Kt=t}}(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){const e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||N(t.$children,e),e._watcher&&e._watcher.teardown();let n=e._watchers.length;for(;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(gn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ht(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Bt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ye(t,e,"render"),o=e._vnode}finally{Bt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof ve||(o=be()),o.parent=n,o}}(gn);const Sn=[String,RegExp,Array];var xn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:i,componentOptions:s}=n;e[o]={name:bn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)$n(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{wn(this,t=>_n(e,t))}),this.$watch("exclude",e=>{wn(this,t=>!_n(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tK};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:F,mergeOptions:Re,defineReactive:Ee},e.set=Ie,e.delete=Ae,e.nextTick=et,e.observable=e=>(Ce(e),e),e.options=Object.create(null),z.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,F(e.options.components,xn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=D(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){z.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&v(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(gn),Object.defineProperty(gn.prototype,"$isServer",{get:ae}),Object.defineProperty(gn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.14",x("style,class");const kn=x("input,textarea,option,select,progress");function On(e){let t=e.data,n=e,o=e;for(;p(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=Nn(o.data,t));for(;p(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(p(e)||p(t))return Cn(e,En(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:Cn(e.staticClass,t.staticClass),class:p(e.class)?[e.class,t.class]:t.class}}function Cn(e,t){return e?t?e+" "+t:e:t||""}function En(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,r=e.length;o=0&&(t=e.charAt(n)," "===t);n--);t&&Pn.test(t)||(l=!0)}}else void 0===r?(p=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(p,o).trim()),p=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==p&&h(),i)for(o=0;o{const t=e[0].replace(Dn,"\\$&"),n=e[1].replace(Dn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Rn(e,t){console.error("[Vue compiler]: "+e)}function Vn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Bn(e,t,n,o,r){(e.props||(e.props=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Un(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Hn(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Xn({name:t,value:n},o))}function Wn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Xn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function zn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Yn(e,t,n,o,r,i,s,a){let c;(o=o||d).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=zn("!",t,a)),o.once&&(delete o.once,t=zn("~",t,a)),o.passive&&(delete o.passive,t=zn("&",t,a)),o.native?(delete o.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});const l=Xn({value:n.trim(),dynamic:a},s);o!==d&&(l.modifiers=o);const u=c[t];Array.isArray(u)?r?u.unshift(l):u.push(l):c[t]=u?r?[l,u]:[u,l]:l,e.plain=!1}function Kn(e,t,n){const o=Gn(e,":"+t)||Gn(e,"v-bind:"+t);if(null!=o)return jn(o);if(!1!==n){const n=Gn(e,t);if(null!=n)return JSON.stringify(n)}}function Gn(e,t,n){let o;if(null!=(o=e.attrsMap[t])){const n=e.attrsList;for(let e=0,o=n.length;e1&&(t[o[0].trim()]=o[1].trim())}})),t}));var Qn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Gn(e,"style");n&&(e.staticStyle=JSON.stringify(Zn(n)));const o=Kn(e,"style",!1);o&&(e.styleBinding=o)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};var eo=function(e){return e};const to=x("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=x("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),oo=x("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ro=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,so=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${G.source}]*`,ao=`((?:${so}\\:)?${so})`,co=new RegExp("^<"+ao),lo=/^\s*(\/?)>/,uo=new RegExp(`^<\\/${ao}[^>]*>`),fo=/^]+>/i,po=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},vo=/&(?:lt|gt|quot|amp|#39);/g,bo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_o=x("pre,textarea",!0),wo=(e,t)=>e&&_o(e)&&"\n"===t[0];function $o(e,t){const n=t?bo:vo;return e.replace(n,e=>go[e])}function So(e,t,n){const{number:o,trim:r}=n||{};let i="$$v";r&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(i=`_n(${i})`);const s=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),ko=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Co),key:'"'+e.slice(Co+1)+'"'}:{exp:e,key:null};Oo=e,Co=Eo=Io=0;for(;!To();)No=Ao(),Po(No)?Lo(No):91===No&&jo(No);return{exp:e.slice(0,Eo),key:e.slice(Eo+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ko,Oo,No,Co,Eo,Io;function Ao(){return Oo.charCodeAt(++Co)}function To(){return Co>=ko}function Po(e){return 34===e||39===e}function jo(e){let t=1;for(Eo=Co;!To();)if(Po(e=Ao()))Lo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Co;break}}function Lo(e){const t=e;for(;!To()&&(e=Ao())!==t;);}const Mo=/^@|^v-on:/,Do=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vo=/^\(|\)$/g,Bo=/^\[.*\]$/,Uo=/:(.*)$/,Ho=/^:|^\.|^v-bind:/,Wo=/^\./,zo=/\.[^.\]]+(?=[^\]]*$)/g,Yo=/^v-slot(:|$)|^#/,Ko=/[\r\n]/,Go=/[ \f\t\r\n]+/g,qo=I(eo);let Xo,Jo,Zo,Qo,er,tr,nr,or,rr;function ir(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fr(t),rawAttrsMap:{},parent:n,children:[]}}function sr(e,t){Xo=t.warn||Rn,tr=t.isPreTag||V,nr=t.mustUseProp||V,or=t.getTagNamespace||V;const n=t.isReservedTag||V;rr=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Zo=Vn(t.modules,"transformNode"),Qo=Vn(t.modules,"preTransformNode"),er=Vn(t.modules,"postTransformNode"),Jo=t.delimiters;const o=[],r=!1!==t.preserveWhitespace,i=t.whitespace;let s,a,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=ar(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&lr(s,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&lr(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter(e=>!e.slotScope),d(e),e.pre&&(c=!1),tr(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,mo(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),wo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,f(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(po.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment(e.substring(4,n),c,c+n+3),l(n+3);continue}}if(ho.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(fo);if(n){l(n[0].length);continue}const o=e.match(uo);if(o){const e=c;l(o[0].length),f(o[1],e,c);continue}const r=u();if(r){d(r),wo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(uo.test(o)||co.test(o)||po.test(o)||ho.test(o)||(r=o.indexOf("<",1),r<0));)i+=r,o=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===s){t.chars&&t.chars(e);break}}function l(t){c+=t,e=e.substring(t)}function u(){const t=e.match(co);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(lo))&&(r=e.match(io)||e.match(ro));)r.start=c,l(r[0].length),r.end=c,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=c,n}}function d(e){const s=e.tagName,c=e.unarySlash;o&&("p"===a&&oo(s)&&f(a),i(s)&&a===s&&f(s));const l=r(s)||!!c,u=e.attrs.length,d=new Array(u);for(let n=0;n=0&&n[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,o,r);n.length=i,a=i&&n[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,o,r):"p"===s&&(t.start&&t.start(e,[],!1,o,r),t.end&&t.end(e,o,r))}f()}(e,{warn:Xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,n,r,i,d){const f=a&&a.ns||or(e);oe&&"svg"===f&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=jn(i[1].trim());o.push(`_s(${t})`),r.push({"@binding":t}),c=s+i[0].length}return c{if(!e.slotScope)return e.parent=i,!0}),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Kn(n,"name")),function(e){let t;(t=Kn(e,"is"))&&(e.component=t);null!=Gn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function fr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Yn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${s});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Kn(e,"value")||"null";r=o?`_n(${r})`:r,Bn(e,"checked",`_q(${t},${r})`),Yn(e,"change",xo(t,r),null,!0)}(e,o,r);else if("input"===i||"textarea"===i)!function(e,t,n){const o=e.attrsMap.type;0;const{lazy:r,number:i,trim:s}=n||{},a=!r&&"range"!==o,c=r?"change":"range"===o?"__r":"input";let l="$event.target.value";s&&(l="$event.target.value.trim()");i&&(l=`_n(${l})`);let u=xo(t,l);a&&(u="if($event.target.composing)return;"+u);Bn(e,"value",`(${t})`),Yn(e,c,u,null,!0),(s||i)&&Yn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!K.isReservedTag(i))return So(e,o,r),!1}return!0},text:function(e,t){t.value&&Bn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Bn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:to,mustUseProp:(e,t,n)=>"value"===n&&kn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:no,isReservedTag:e=>In(e)||An(e),getTagNamespace:function(e){return An(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(yr)};let br,_r;const wr=I((function(e){return x("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function $r(e,t){e&&(br=wr(t.staticKeys||""),_r=t.isReservedTag||V,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||k(e.tag)||!_r(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(br)))}(t),1===t.type){if(!_r(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,xr=/\([^)]*?\);*$/,kr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Or={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Nr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Cr=e=>`if(${e})return null;`,Er={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Cr("$event.target !== $event.currentTarget"),ctrl:Cr("!$event.ctrlKey"),shift:Cr("!$event.shiftKey"),alt:Cr("!$event.altKey"),meta:Cr("!$event.metaKey"),left:Cr("'button' in $event && $event.button !== 0"),middle:Cr("'button' in $event && $event.button !== 1"),right:Cr("'button' in $event && $event.button !== 2")};function Ir(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=Ar(e[t]);e[t]&&e[t].dynamic?r+=`${t},${n},`:o+=`"${t}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function Ar(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>Ar(e)).join(",")}]`;const t=kr.test(e.value),n=Sr.test(e.value),o=kr.test(e.value.replace(xr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Er[t])i+=Er[t],Or[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=Cr(["ctrl","shift","alt","meta"].filter(e=>!t[e]).map(e=>`$event.${e}Key`).join("||"))}else s.push(t);s.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Tr).join("&&")+")return null;"}(s)),i&&(r+=i);return`function($event){${r}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:o?"return "+e.value:e.value}}`}return t||n?e.value:`function($event){${o?"return "+e.value:e.value}}`}function Tr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=Or[e],o=Nr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Pr={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:R};class jr{constructor(e){this.options=e,this.warn=e.warn||Rn,this.transforms=Vn(e.modules,"transformCode"),this.dataGenFns=Vn(e.modules,"genData"),this.directives=F(F({},Pr),e.directives);const t=e.isReservedTag||V;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Lr(e,t){const n=new jr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Mr(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Mr(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Dr(e,t);if(e.once&&!e.onceProcessed)return Fr(e,t);if(e.for&&!e.forProcessed)return Vr(e,t);if(e.if&&!e.ifProcessed)return Rr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Wr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Kr((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:T(e.name),value:e.value,dynamic:e.dynamic}))):null,s=e.attrsMap["v-bind"];!i&&!s||o||(r+=",null");i&&(r+=","+i);s&&(r+=`${i?"":",null"},${s}`);return r+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const o=t.inlineTemplate?null:Wr(t,n,!0);return`_c(${e},${Br(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Br(e,t));const r=e.inlineTemplate?null:Wr(e,t,!0);n=`_c('${e.tag}'${o?","+o:""}${r?","+r:""})`}for(let o=0;o{const n=t[e];return n.slotTargetDynamic||n.if||n.for||Ur(n)}),r=!!e.if;if(!o){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){o=!0;break}t.if&&(r=!0),t=t.parent}}const i=Object.keys(t).map(e=>Hr(t[e],n)).join(",");return`scopedSlots:_u([${i}]${o?",null,true":""}${!o&&r?",null,false,"+function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i):""})`}(e,e.scopedSlots,t)+","),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const o=function(e,t){const n=e.children[0];0;if(n&&1===n.type){const e=Lr(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map(e=>`function(){${e}}`).join(",")}]}`}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Kr(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ur(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ur))}function Hr(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Rr(e,t,Hr,"null");if(e.for&&!e.forProcessed)return Vr(e,t,Hr);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Wr(e,t)||"undefined"}:undefined`:Wr(e,t)||"undefined":Mr(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Wr(e,t,n,o,r){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const r=n?t.maybeComponent(e)?",1":",0":"";return`${(o||Mr)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;ozr(e.block))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(e=>t(e.block)))&&(n=1)}}return n}(i,t.maybeComponent):0,a=r||Yr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function zr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Yr(e,t){return 1===e.type?Mr(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Gr(JSON.stringify(e.text))})`}(e)}function Kr(e){let t="",n="";for(let o=0;oqr(e,c)),t[i]=a}}const Jr=(Zr=function(e,t){const n=sr(e.trim(),t);!1!==t.optimize&&$r(n,t);const o=Lr(n,t);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(e){function t(t,n){const o=Object.create(e),r=[],i=[];if(n){n.modules&&(o.modules=(e.modules||[]).concat(n.modules)),n.directives&&(o.directives=F(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(o[e]=n[e])}o.warn=(e,t,n)=>{(n?i:r).push(e)};const s=Zr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Xr(t)}});var Zr;const{compile:Qr,compileToFunctions:ei}=Jr(vr),ti=`http://127.0.0.1:${r.env.PORT}/`;let ni,oi,ri=e=>e,ii=()=>{};function si(e){ni=e}function ai(){return ni}function ci(){return ri}const li=W(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ui(...e){(null==oi?void 0:oi.config.silent)&&li()}function di(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fi=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pi(e){return"[object Function]"===Object.prototype.toString.call(e)}function hi(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function mi(e){return null==e}function yi(e){return"string"==typeof e?""!==e.trim():null!=e}const gi=Symbol.for("View"),vi=Symbol.for("Image"),bi=Symbol.for("ListView"),_i=Symbol.for("ListViewItem"),wi=Symbol.for("Text"),$i=Symbol.for("TextInput"),Si=Symbol.for("WebView"),xi=Symbol.for("VideoPlayer"),ki={[gi]:"View",[vi]:"Image",[bi]:"ListView",[_i]:"ListViewItem",[wi]:"Text",[$i]:"TextInput",[Si]:"WebView",[xi]:"VideoPlayer"};function Oi(...e){const t={};if(Array.isArray(e[0]))e[0].forEach(([e,n])=>{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const Ni={number:"numeric",text:"default",search:"web-search"},Ci={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},Ei={symbol:gi,component:{name:ki[gi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},Ci),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus}return e}}},Ii={symbol:gi,component:l(l({},Ei.component),{},{name:ki[gi],defaultNativeStyle:{}})},Ai={symbol:gi,component:{name:ki[gi]}},Ti={symbol:vi,component:l(l({},Ei.component),{},{name:ki[vi],defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=hi(e);return t&&t.indexOf(ti)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>hi(e)},Ci),processEventData(e,t,n){switch(t){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus;break;case"onLoad":{const{width:t,height:o,url:r}=n;e.width=t,e.height=o,e.url=r;break}}return e}})},Pi={symbol:bi,component:{name:ki[bi],defaultNativeStyle:{flex:1},attributeMaps:l({},Ci),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":e.index=n.index}return e}}},ji={symbol:_i,component:{name:ki[_i],attributeMaps:l({},Ci),eventNamesMap:Oi([["disappear","onDisappear"]])}},Li={symbol:gi,component:l(l({},Ei.component),{},{name:ki[wi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},Mi=Li,Di=Li,Fi={component:l(l({},Li.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Ri={symbol:$i,component:{name:ki[$i],attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=Ni[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Ci),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Oi([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t,n){switch(t){case"onChangeText":case"onEndEditing":e.value=n.text;break;case"onSelectionChange":e.start=n.selection.start,e.end=n.selection.end;break;case"onKeyboardWillShow":e.keyboardHeight=n.keyboardHeight;break;case"onContentSizeChange":e.width=n.contentSize.width,e.height=n.contentSize.height}return e}}},Vi={symbol:$i,component:{name:ki[$i],defaultNativeProps:l(l({},Ri.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},Ri.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Ri.component.defaultNativeStyle,eventNamesMap:Ri.component.eventNamesMap,processEventData:Ri.component.processEventData}},Bi={symbol:Si,component:{name:ki[Si],defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t,n){switch(t){case"onLoad":case"onLoadStart":e.url=n.url;break;case"onLoadEnd":e.url=n.url,e.success=n.success,e.error=n.error}return e}}};var Ui=Object.freeze({__proto__:null,button:Ii,div:Ei,form:Ai,img:Ti,input:Ri,label:Mi,li:ji,p:Di,span:Li,a:Fi,textarea:Vi,ul:Pi,iframe:Bi});const Hi=x("template,script,style,element,content,slot,button,div,form,img,input,label,li,p,span,textarea,ul",!0),Wi=new Map,zi={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,mustUseProp:!1,model:null,component:null};function Yi(e){return e.toLowerCase()}function Ki(e,t){if(!e)throw new Error("RegisterElement cannot set empty name");const n=Yi(e),o=l(l({},zi),t);if(Wi.has(n))throw new Error(`Element for ${e} already registered.`);o.component=l(l({},function(e,t,n){return{name:e,functional:!0,model:t.model,render:(e,{data:t,children:o})=>e(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===di(T(e))&&o.component.name;const r={meta:o};return Wi.set(n,r),r}function Gi(e){const t=Yi(e);let n=zi;const o=Wi.get(t);return(null==o?void 0:o.meta)&&(n=o.meta),n}class qi{constructor(e){this.value="",this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){this.cancelable&&(this.isCanceled=!0)}initEvent(e,t=!0,n=!0){return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}class Xi{constructor(e){this.element=e,this.observers={}}getEventListeners(){return this.observers}addEventListener(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!pi(t))throw new TypeError("callback must be function.");const o=e.split(",");for(let e=0,r=o.length;e=0&&e.splice(o,1),0===e.length&&(this.observers[r]=void 0)}}else this.observers[r]=void 0}return this.observers}emit(e){var t,n;const{type:o}=e,r=this.observers[o];if(r)for(let o=r.length-1;o>=0;o-=1){const i=r[o];(null===(t=i.options)||void 0===t?void 0:t.once)&&r.splice(o,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventList(e,t){let n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&U(e.options,n):e.callback===t)}}const Ji=new Map;function Zi(e){return Ji.get(e)||null}function Qi(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){var n;o=t.nodeId,Ji.delete(o),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t));var o}(t)},{timeout:50})}function es(e=[],t=0){let n=e[t];for(let o=t;o-1){const e=new cs(i);if(Object.assign(e,{eventPhase:a,nativeParams:s||{}}),"onLayout"===r){const{layout:{x:t,y:n,height:o,width:r}}=s;e.top=n,e.left=t,e.bottom=n+o,e.right=t+r,e.width=r,e.height=o}else{const{processEventData:t}=c._meta.component;t&&t(e,r,s)}c.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(r,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=us);const ds={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},fs=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,ps="[-+]?\\d*\\.?\\d+",hs={rgb:new RegExp("rgb"+fs(ps,ps,ps)),rgba:new RegExp("rgba"+fs(ps,ps,ps,ps)),hsl:new RegExp("hsl"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ps)),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})$/},ms=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ys=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},gs=(e,t,n)=>{let o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},vs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=gs(r,o,e+1/3),s=gs(r,o,e),a=gs(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},bs=e=>(parseFloat(e)%360+360)%360/360,_s=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function ws(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hs.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ds,e)?ds[e]:(t=hs.rgb.exec(e),Array.isArray(t)?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|255)>>>0:(t=hs.rgba.exec(e),t?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|ys(t[4]))>>>0:(t=hs.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hs.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=hs.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hs.hsl.exec(e),t?(255|vs(bs(t[1]),_s(t[2]),_s(t[3])))>>>0:(t=hs.hsla.exec(e),t?(vs(bs(t[1]),_s(t[2]),_s(t[3]))|ys(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const $s={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};var Ss;function xs(){const e=za.Localization;return!!e&&e.direction===Ss.RTL}!function(e){e[e.RTL=1]="RTL"}(Ss||(Ss={}));const ks=new Map;function Os(e){return ks.get(e)||{}}class Ns{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}trackChanges(e,t){this.dynamic&&t.addAttribute(e,"")}}class Cs extends Ns{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}match(e){return!1}}function Es(e){return e?` ${e} `:""}const Is=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class As extends Cs{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Cs&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Es(this.combinator||"")}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof Cs&&this.head.lookupSort(e,t||this)}removeSort(e,t){this.head&&this.head instanceof Cs&&this.head.removeSort(e,t||this)}}const Ts=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ps={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},js={};function Ls(e,t,n){let o="";Ts&&(o="gy"),js[e]||(js[e]=new RegExp(Ps[e],o));const r=js[e];let i;if(Ts)r.lastIndex=n||0,i=r.exec(t);else{if(t=t.slice(n,t.length),i=r.exec(t),!i)return{result:null,regexp:r};r.lastIndex=n||0+i[0].length}return{result:i,regexp:r}}function Ms(e,t){return function(e,t){const{result:n,regexp:o}=Ls("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:r}}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("attributeSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:r}}return{value:{type:"[]",property:i},start:t,end:r}}(e,t)}function Ds(e,t){let n=Ms(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=Ms(e,o);return{start:t,end:o,value:r}}function Fs(e,t){const{result:n,regexp:o}=Ls("combinatorRegEx",e,t);if(!n)return null;let r;r=Ts?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}class Rs{constructor(e,t,n){e.forEach(e=>(e.ruleSet=this,null)),this.hash=n,this.selectors=e,this.declarations=t}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}class Vs extends Cs{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n}match(e){if(!this.test)return!(!e||!e.attributes)&&!mi(Is(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;const t=""+Is(e,this.attribute);if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){const e=t.split(" ");return e&&-1!==e.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith(this.value+"-"))}toString(){return`[${this.attribute}${Es(this.test)}${this.test&&this.value||""}]${Es(this.combinator||"")}`}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Bs extends Cs{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Es(this.combinator||"")}`}match(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,t||this)}removeSort(e,t){e.removeByClass(this.className,t||this)}}class Us extends Cs{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Es(this.combinator||"")}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class Hs extends Cs{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}}class Ws extends Cs{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Es(this.combinator||"")}`}match(e){return!!e}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}class zs{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)})}}class Ys{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)})}}class Ks extends Ns{constructor(e){super();const t=[void 0," ",">","+"];let n=[],o=[];const r=[];this.selectors=e,this.selectors.reverse().forEach(e=>{if(-1===t.indexOf(e.combinator))throw new Error(`Unsupported combinator "${e.combinator}".`);void 0!==e.combinator&&" "!==e.combinator||r.push(o=[n=[]]),">"===e.combinator&&o.push(n=[]),n.push(e)}),this.groups=r.map(e=>new zs(e.map(e=>new Ys(e))));const[i]=e;this.last=i,this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.dynamic=e.some(e=>e.dynamic)}toString(){return this.selectors.join("")}match(e){let t=e;return this.groups.every((n,o)=>{if(0===o)return t=n.match(e),!!t;let r=t;for(;r=null==r?void 0:r.parentNode;)if(t=n.match(r))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){let n=e;if(!this.dynamic)return this.match(n);const o=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return o.push({left:e,right:e}),n=r,!!n}let i=e;for(;i=i.parentNode;){const e=t.mayMatch(i);if(e)return o.push({left:i,right:void 0}),n=e,!0}return!1});if(!r)return!1;if(!t)return r;for(let e=0;e{if(!Ts){if(""===e)return;n=0}do{const t=Ds(e,n);if(!t){if(c)return null;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=Fs(e,n),s&&({end:n}=s),c=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e);return t?function(e){if(0===e.length)return new Hs(new Error("Empty selector."));if(1===e.length)return Zs(e[0][0]);const t=[];for(let n=0;ne.lookupSort(this))}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e){const{tagName:t,id:n,classList:o}=e,r=[this.universal,this.id[n],this.type[t]];o.size&&o.forEach(e=>r.push(this.class[e]));const i=r.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new ea;return s.selectors=i.filter(t=>t.sel.accumulateChanges(e,s)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),s}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeById(e,t){this.removeFromMap(this.id,e,t)}removeByClass(e,t){this.removeFromMap(this.class,e,t)}removeByType(e,t){this.removeFromMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,o;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(o=e.ruleSet)||void 0===o?void 0:o.hash)});-1!==t&&this.universal.splice(t)}addToMap(e,t,n){const o=e;this.position+=1;const r=o[t];r?r.push(this.makeDocSelector(n)):o[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>{var t,o;return(null===(t=e.sel.ruleSet)||void 0===t?void 0:t.hash)===(null===(o=n.ruleSet)||void 0===o?void 0:o.hash)});-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}const na={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode"),updateEvent:Symbol("updateEvent")};let oa,ra=!0,ia=[];function sa(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:o}=e;o.forEach(e=>{const{name:o,type:r,listener:i}=e;let s;s=function(e){return!!rs[e]}(o)?rs[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===os&&t.removeEventListener(n,s,i),r===ns&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function aa(e,t){0}function ca(t){if(!ra)return;if(ra=!1,0===ia.length)return void(ra=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case na.createNode:aa(e.printedNodes),n.create(e.nodes),sa(e.eventNodes,n);break;case na.updateNode:aa(e.printedNodes),n.update(e.nodes),sa(e.eventNodes,n);break;case na.deleteNode:aa(e.printedNodes),n.delete(e.nodes);break;case na.moveNode:aa(e.printedNodes),n.move(e.nodes);break;case na.updateEvent:sa(e.eventNodes,n)}}),n.build(),ra=!0,ia=[]})}function la(){if(!oa||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ci();return e.map(e=>{const n=e.declarations.filter(Xs).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Qs);return new Rs(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);oa?oa.append(t):oa=new ta(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{oa.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),oa}function ua(e){const t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach(n=>{if(void 0!==e.getAttribute(n))return;const o=e.meta.component.defaultNativeProps[n];pi(o)?t[n]=o(e):t[n]=o}),Object.keys(e.attributes).forEach(n=>{let o=e.getAttribute(n);if(!e.meta.component.attributeMaps||!e.meta.component.attributeMaps[n])return void(t[n]=o);const r=e.meta.component.attributeMaps[n];if("string"==typeof r)return void(t[r]=o);if(pi(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;pi(s)&&(o=s(o)),a?(t[a]=t[a]||{},Object.assign(t[a],{[i]:o})):t[i]=o}),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function da(e){const t=Object.create(null);try{la().query(e).selectors.forEach(n=>{(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){console.error("getDomCss Error:",e)}return t}function fa(e){let t=void 0;const n=e.events;if(n){const o=[];Object.keys(n).forEach(e=>{const{name:t,type:r,isCapture:i,listener:s}=n[e];o.push({name:t,type:r,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:o}}return t}function pa(e,t,n={},o=!1){var r;if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i;if(o)i=Os(t.nodeId);else{if(i=da(t),i=l(l({},i),t.style),ii(),t.parentNode){const e=Os(t.parentNode.nodeId);["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!yi(i[t])&&yi(e[t])&&(i[t]=e[t])})}t.meta.component.defaultNativeStyle&&(i=l(l({},t.meta.component.defaultNativeStyle),i)),function(e,t){ks.set(e,t)}(t.nodeId,i)}const s={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.meta.component.name,props:l(l({},ua(t)),{},{style:i}),tagName:t.tagName};!function(e){if(e.props.__modalFirstChild__){const t=e.props.style;Object.keys(t).some(e=>"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach(e=>delete t[e]),!0))}}(s),function(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=xs()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=hi(n.backgroundImage)))}(t,s,i),function(e,t){"TextInput"===e.meta.component.name&&xs()&&(t.textAlign||(t.textAlign="right"))}(t,i);const a=fa(t);let c=void 0;return[[s,n],a,c]}function ha(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=pa(e,t,o);a&&r.push(a),c&&i.push(c),l&&s.push(l),"function"==typeof n&&n(t)},o),[r,i,s]}function ma(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ai();if(!o)return;const{$options:{rootViewId:r,rootView:i}}=o,s=function(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}(e,i)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(s||a){const[i,a,c]=ha(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,Ji.set(n,t)},n);ia.push({type:na.createNode,nodes:i,eventNodes:a,printedNodes:c}),ca(o)}}function ya(e){if(!e.isMounted)return;const t=ai(),n=fa(e);ia.push({type:na.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),ca(t)}function ga(e,t=!1){if(!e.isMounted)return;const n=ai(),{$options:{rootViewId:o}}=n,[r,i,s]=pa(o,e,{},t);r&&(ia.push({type:na.updateNode,nodes:r?[r]:[],eventNodes:i?[i]:[],printedNodes:[]}),ca(n))}function va(e){if(!e.isMounted)return;const t=ai(),{$options:{rootViewId:n}}=t,[o,r,i]=ha(n,e);ia.push({type:na.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ca(t)}const ba=new Set;let _a,wa=!1;const $a={exitApp(){za.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(wa||(wa=!0,$a.initEventListener()),za.callNative("DeviceEventModule","setListenBackPress",!0),ba.add(e),{remove(){$a.removeListener(e)}}),removeListener(e){ba.delete(e),0===ba.size&&za.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){_a||(_a=ai()),_a.$on("hardwareBackPress",()=>{let e=!0;Array.from(ba).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$a.exitApp()})}},Sa={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},xa="android"===Hippy.device.platform.OS?$a:Sa;let ka;const Oa=new Map;class Na{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ca(this.eventName,this.listener),this.listener=void 0)}}function Ca(e,t){if(t instanceof Na)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=Oa.get(t);o&&(ka||(ka=ai()),ka.$off(n,o),Oa.delete(t),Oa.size<1&&za.callNative("NetInfo","removeListener",n))}var Ea=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===Oa.size&&za.callNative("NetInfo","addListener",n),ka||(ka=ai()),ka.$on(n,t),Oa.set(t,t),new Na(n,t)},removeEventListener:Ca,fetch:function(){return za.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:Na});const{on:Ia,off:Aa,emit:Ta,bridge:{callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La},device:{platform:{OS:Ma,Localization:Da={}},screen:{scale:Fa}},device:Ra,document:Va,register:Ba}=Hippy,Ua={},Ha=["%c[native]%c","color: red","color: auto"],Wa=function(e,t){const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:o}=e;return ui(...Ha,"callUIFunction",{nodeId:o,funcName:t,params:[]}),new Promise(e=>Va.callUIFunction(o,t,[],t=>{if(!t||"object"!=typeof t||void 0===o)return e(n);const{x:r,y:i,height:s,width:a}=t;return e({top:i,left:r,width:a,height:s,bottom:i+s,right:r+a})}))},za={callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La,UIManagerModule:Va,ConsoleModule:e.ConsoleModule||e.console,on:Ia,off:Aa,emit:Ta,PixelRatio:Fa,Platform:Ma,Localization:Da,version:"3.3.0",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return ja.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");let o="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");o=n.toUTCString()}Pa.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return ja.call(this,"ClipboardModule","getString")},setString(e){Pa.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!p(Ua.isIPhoneX)){let e=!1;"ios"===za.Platform&&(e=20!==za.Dimensions.screen.statusBarHeight),Ua.isIPhoneX=e}return Ua.isIPhoneX},get screenIsVertical(){return za.Dimensions.window.widthWa(e,"measureInWindow"),measureInAppWindow:e=>"android"===za.Platform?Wa(e,"measureInWindow"):Wa(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((o,r)=>{if(!e.isMounted||!n)return r(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));ui(...Ha,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Va.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=0,c=0;return"number"==typeof n&&"number"==typeof s&&(a=n+s),"number"==typeof t&&"number"==typeof i&&(c=t+i),o({x:t,y:n,width:i,height:s,bottom:a,right:c,left:t,top:n})})})},parseColor(e,t={platform:za.Platform}){if(Number.isInteger(e))return e;const n=Ua.COLOR_PARSER||(Ua.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=ws(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:xa,ImageLoader:{getSize(e){return ja.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Pa.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Ea,getElemCss:da};let Ya=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ya=e.__GLOBAL__.nodeId);class Ka{constructor(){this._ownerDocument=null,this._isMounted=!1,this.nodeId=(Ya+=1,Ya%10==0&&(Ya+=1),Ya%10==0&&(Ya+=1),Ya),this.index=0,this.childNodes=[]}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get meta(){return this._meta?this._meta:{}}get ownerDocument(){if(this._ownerDocument)return this._ownerDocument;let e=this;for(;"DocumentNode"!==e.constructor.name&&(e=e.parentNode,e););return this._ownerDocument=e,e}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");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);let o=t;return t.meta.skipAddToDom&&(o=es(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),o.meta.skipAddToDom?ma(this,e):ma(this,e,{refId:o.nodeId,relativeToRef:ts})}moveChild(e,t){if(!e)throw new Error("Can't move child.");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),o=this.childNodes.indexOf(t);let r=t;if(t.meta.skipAddToDom&&(r=es(this.childNodes,o)),o===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=e),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),r.meta.skipAddToDom?ma(this,e):function(e,t,n={}){if((null==e?void 0:e.meta)&&pi(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;const o=ai(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];ia.push({printedNodes:a,type:na.moveNode,nodes:s,eventNodes:[]}),ca(o)}(this,e,{refId:r.nodeId,relativeToRef:ts})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ma(this,e))}removeChild(e){if(!e)throw new Error("Can't remove child.");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.");if(e.meta.skipAddToDom)return;e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=ai(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];ia.push({printedNodes:s,type:na.deleteNode,nodes:i,eventNodes:[]}),ca(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}class Ga extends Ka{constructor(e){super(),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}const qa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Xa="turn",Ja="rad",Za="deg",Qa="beforeLoadStyleDisabled",ec="class",tc="id",nc="text",oc="value",rc="defaultValue",ic="placeholder",sc="numberOfRows",ac="caretColor",cc="caret-color",lc="break-strategy",uc="placeholderTextColor",dc="placeholder-text-color",fc="underlineColorAndroid",pc="underline-color-android",hc="nativeBackgroundAndroid",mc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function yc(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=i(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,s,a]=n;return s&&a?o=function(e,t=Za){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Xa:o=""+(360*n).toFixed(2);break;case Ja:o=""+(180/Math.PI*n).toFixed(2)}return o}(s,a):r&&void 0!==qa[r]&&(o=qa[r]),o}function gc(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,o]=t.split(/\s+(?![^(]*?\))/),r=/^([+-]?\d+\.?\d*)%$/g;return!n||r.exec(n)||o?n&&r.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:za.parseColor(n)}:void 0:{color:za.parseColor(n)}}function vc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function bc(e,t,n){void 0===t&&(delete n[e],vc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[mc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function _c(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,o=n.length;ee.trim()));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let o=n.next().value;for(;o;){if(!t.has(o))return!1;o=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&va(this))}case tc:if(r===this.id)return;return this.id=r,void(!n.notToNative&&va(this));case nc:case oc:case rc:case ic:if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!oi||void 0===oi.config.trimWhitespace||oi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}(r)),r=function(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}(r);break;case sc:if("ios"!==za.Platform)return;break;case ac:case cc:o="caret-color",r=za.parseColor(r);break;case lc:o="breakStrategy";break;case uc:case dc:o="placeholderTextColor",r=za.parseColor(r);break;case fc:case pc:o="underlineColorAndroid",r=za.parseColor(r);break;case hc:{const e=r;void 0!==e.color&&(e.color=za.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&ga(this,n.notUpdateStyle)}catch(e){0}}removeAttribute(e){delete this.attributes[e]}setStyles(e){e&&"object"==typeof e&&0!==Object.keys(e).length&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),ga(this))}setStyle(e,t,n=!1){let o=e,r=t;if(this.getAttribute(Qa)||({value:r,property:o}=this.beforeLoadStyle({property:e,value:t})),void 0===t)return bc(o,r,this.style),void(n||ga(this));switch(o){case"fontWeight":"string"!=typeof r&&(r=r.toString());break;case"backgroundImage":[o,r]=function(e,t,n){delete n[e],vc(e,t,n);let o=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),n=[];o={},e.forEach((e,t)=>{if(0===t){const t=yc(e);if(t)o.angle=t;else{o.angle="180";const t=gc(e);t&&n.push(t)}}else{const t=gc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(o,r,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[o,r]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[mc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(o,r,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:o=0}=r||{};r={width:e||t,height:n||o};break}default:Object.prototype.hasOwnProperty.call($s,o)&&(o=$s[o]),"string"==typeof r&&(r=r.trim(),r=o.toLowerCase().indexOf("color")>=0?za.parseColor(r):function(e,t,n){if(e.endsWith)return e.endsWith(t,n);let o=n;return(void 0===o||o>e.length)&&(o=e.length),e.slice(o-t.length,o)===t}(r,"px")?parseFloat(r.slice(0,r.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&fi.test(e))try{return parseFloat(e)}catch(e){}return e}(r))}null!=r&&this.style[o]!==r&&(this.style[o]=r,n||ga(this))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){va(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}isTextNode(e){return(null==e?void 0:e.meta.symbol)===wi}appendChild(e){(null==e?void 0:e.meta.symbol)===wi&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){this.isTextNode(e)&&e instanceof Ga&&this.setText("",{notToNative:!0}),super.removeChild(e)}setText(e,t={}){return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+di(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;(null==n?void 0:n[e])&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Xi(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){const e=200;this.attributes.scrollEventThrottle=e}"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(ss,e,t,n)),this._emitter.addEventListener(e,t,n),_c(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ns&&(this.events[t].type=ns):this.events[t]={name:t,type:ns,listener:(n=t,o=e,e=>{const{id:t,currentId:r,params:i,eventPhase:s}=e,a={id:t,nativeName:n,originalName:o,currentId:r,params:i,eventPhase:s};us.receiveComponentEvent(a,e)}),isCapture:!1}}),ya(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(as,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return _c(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=os)}),ya(this),o}dispatchEvent(e,t,n){if(!(e instanceof qi))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return za.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let o=n;!1===o&&(o=0),za.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:o}])}scrollTo(e,t,n){let o=n;if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto"}=e;({duration:o}=e),this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setPressed(e){za.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){za.callUIFunction(this,"setHotspot",[e,t])}}class $c extends wc{constructor(e){super("comment"),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}}class Sc extends wc{getValue(){return new Promise(e=>za.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){za.callUIFunction(this,"setValue",[e])}focus(){za.callUIFunction(this,"focusTextInput",[])}blur(){za.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>za.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){za.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class xc extends wc{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class kc extends Ka{constructor(){super(),this.documentElement=new wc("document")}static createComment(e){return new $c(e)}static createElement(e){switch(e){case"input":case"textarea":return new Sc(e);case"ul":return new xc(e);default:return new wc(e)}}static createElementNS(e,t){return new wc(`${e}:${t}`)}static createTextNode(e){return new Ga(e)}static createEvent(e){return new qi(e)}}var Oc={create(e,t){Nc(t)},update(e,t){e.data.ref!==t.data.ref&&(Nc(e,!0),Nc(t))},destroy(e){Nc(e,!0)}};function Nc(e,t){const n=e.data.ref;if(!p(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[n])?N(i[n],r):i[n]===r&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(r)<0&&i[n].push(r):i[n]=[r]:i[n]=r}const Cc=new ve("",{},[]),Ec=["create","activate","update","remove","destroy"];function Ic(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&p(e.data)===p(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=p(n=e.data)&&p(n=n.attrs)&&n.type,r=p(n=t.data)&&p(n=n.attrs)&&n.type;return o===r||Tn(o)&&Tn(r)}(e,t)||h(e.isAsyncPlaceholder)&&f(t.asyncFactory.error))}function Ac(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,p(r)&&(i[r]=o);return i}var Tc={create:Pc,update:Pc,destroy:function(e){Pc(e,Cc)}};function Pc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Cc,o=t===Cc,r=Lc(e.data.directives,e.context),i=Lc(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=r[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,Dc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Dc(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const o=()=>{for(let n=0;n{for(let n=0;n{const t=r[e],o=i[e];null!=t&&null==o&&(n[e]=void 0)}),Object.keys(i).forEach(e=>{const t=r[e],o=i[e];t!==o&&(n[e]=o)}),Object.keys(n).forEach(e=>{o.setAttribute(e,n[e])})}var Vc={create:Rc,update:Rc};function Bc(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=On(t);const s=n._transitionClasses;s&&(i=Cn(i,En(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Uc={create:Bc,update:Bc};let Hc;function Wc(e,t,n,o){(o||Hc).removeEventListener(e)}function zc(e,t,n,o,r){n||Hc.addEventListener(e,t)}function Yc(e,t,n){const o=Hc;return function(){const n=t(...arguments);null!==n&&Wc(e,0,0,o)}}function Kc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Hc=t.elm,it(n,o,zc,Wc,Yc,t.context)}var Gc={create:Kc,update:Kc};const qc=I(T);function Xc(e){const t={};for(let n=0;n{const r=e[o],i=t[o];!mi(r)&&mi(i)&&(n[qc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];mi(i)||i===r||(n[qc(o)]=i)}),n}function Zc(e,t){if(!t.elm||!function(e,t){return!(!e.data&&!t.data)&&!!(e.data.style||t.data.style||e.data.staticStyle||t.data.staticStyle)}(e,t))return;const n=Jc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Xc(r),t.data.style=r),i&&(r=F({},r),t.data.style=r);const s=Jc(o,r);t.elm.setStyles(l(l({},n),s))}var Qc=[Vc,Uc,Gc,{create:Zc,update:Zc}];function el(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){var o;if(!e||!e.data)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=(null===(o=e.data)||void 0===o?void 0:o.attrs)||{};i.__ob__&&(i=F({},i),e.data.attrs=i),Object.keys(i).forEach(e=>{r.setAttribute(e,i[e],{notToNative:!!n.notToNative})})}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;const{staticStyle:r}=e.data;r&&Object.keys(r).forEach(e=>{const t=r[e];t&&o.setStyle(qc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Xc(i),e.data.style=i),t&&(i=F({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(qc(e),i[e],!!n.notToNative)})}}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;const{data:o}=e;if(!o.staticClass&&!o.class)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=On(e);const s=r._transitionClasses;s&&(i=Cn(i,En(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const tl=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(u=f(n[b+1])?null:n[b+1].elm,v(e,u,n,h,b,o)):h>b&&_(t,d,m)}(l,y,g,n,c):p(g)?(p(e.text)&&i.setTextContent(l,""),v(l,null,g,0,g.length-1,n)):p(y)?_(y,0,y.length-1):p(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),p(m)&&p(u=m.hook)&&p(u=u.postpatch)&&u(e,t)}function k(e,t,n){if(h(n)&&p(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Qi(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:Qc.concat(Fc)});function nl(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let ol=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const rl={inserted(e,t){"ios"===za.Platform&&ol!==nl&&(ol=nl),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",({value:t})=>{const n=new qi("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,ol(e,t,n)}};function il(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const sl={bind(e,{value:t},n){void 0===e.style.display&&(e.style.display="block");const o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,il(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&il(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var al=Object.freeze({__proto__:null,model:rl,show:sl});const cl=['%c[Hippy-Vue "3.3.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],ll=new kc;gn.$document=ll,gn.prototype.$document=ll,gn.$Document=kc,gn.$Event=qi,gn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},gn.config.isReservedTag=Hi,gn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},gn.compile=ei,gn.registerElement=Ki,F(gn.options.directives,al),gn.prototype.__patch__=tl,gn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return fe("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=ei(e,{delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return function(e,t,n){let o;return e.$el=t,e.$options.render||(e.$options.render=be),Xt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new an(e,o,R,{before(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e,t)},gn.prototype.$start=function(e,t){var n;si(this),pi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ri=n),Wi.forEach(e=>{gn.component(e.meta.component.name,e.meta.component)}),Ba.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ui(...cl,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();si(new(gn.extend(this.$options))(this.$options))}if(pi(t)&&t(this,n),this.$mount(),"ios"===za.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;const o=new wc("div"),{statusBarHeight:r}=za.Dimensions.screen;za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0);let i=4282431619;if("number"==typeof n.backgroundColor&&({backgroundColor:i}=n),o.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){const t=new wc("img");t.setStyle("width",za.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0)}),o}(this.$options);e&&(this.$el.childNodes.length?this.$el.insertBefore(e,this.$el.childNodes[0]):this.$el.appendChild(e))}pi(e)&&e(this,n)})};let ul=1;gn.component=function(e,t){return t?(v(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},gn.extend=function(e){e=e||{};const t=this,n=t.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];const r=e.name||t.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(t.prototype)).constructor=i,ul+=1,i.cid=ul,i.options=Re(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>ln(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>fn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,z.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=F({},i.options),o[n]=i,i},gn.Native=za,gn.getApp=ai,gn.use((function(){Object.keys(Ui).forEach(e=>{Ki(e,Ui[e])})})),K.devtools&&ce&&ce.emit("init",gn);gn.config._setBeforeRenderToNative=(e,t)=>{pi(e)&&(1===t?ii=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const dl=new Proxy(gn,{construct(e,t){const n=new e(...t);return n}});let fl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,fl=ai(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=l({},n);if(fl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};za.callNativeWithPromise("websocket","connect",r).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,za.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);za.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 t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,fl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];pi(n)&&n(e.data)}},dl.config.silent=!1,dl.config.trimWhitespace=!0,function(e){oi=e}(dl)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",(function(){return fl}));const d=Object.freeze({});function f(e){return null==e}function p(e){return null!=e}function h(e){return!0===e}function m(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function y(e){return null!==e&&"object"==typeof e}const g=Object.prototype.toString;function v(e){return"[object Object]"===g.call(e)}function b(e){return"[object RegExp]"===g.call(e)}function _(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function w(e){return p(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function $(e){return null==e?"":Array.isArray(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e)}function S(e){const t=parseFloat(e);return isNaN(t)?e:t}function x(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const k=x("slot,component",!0),O=x("key,ref,slot,slot-scope,is");function N(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const C=Object.prototype.hasOwnProperty;function E(e,t){return C.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const A=/-(\w)/g,T=I(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=/\B([A-Z])/g,L=I(e=>e.replace(j,"-$1").toLowerCase());const M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function D(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function F(e,t){for(const n in t)e[n]=t[n];return e}function R(e,t,n){}const V=(e,t,n)=>!1,B=e=>e;function H(e,t){if(e===t)return!0;const n=y(e),o=y(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every((e,n)=>H(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>H(e[n],t[n]))}}catch(e){return!1}}function U(e,t){for(let n=0;n!1,ce=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}const ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&le(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let fe=R;let pe=0;class he{constructor(){this.id=pe++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){N(this.subs,e)}depend(){he.target&&he.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new ve;return t.text=e,t.isComment=!0,t};function _e(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){const t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}const $e=Array.prototype,Se=Object.create($e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=$e[e];X(Se,e,(function(...n){const o=t.apply(this,n),r=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&r.observeArray(i),r.dep.notify(),o}))}));const xe=Object.getOwnPropertyNames(Se);let ke=!0;function Oe(e){ke=e}class Ne{constructor(e){this.value=e,this.dep=new he,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(Z?function(e,t){e.__proto__=t}(e,Se):function(e,t,n){for(let o=0,r=n.length;o{Pe[e]=Me}),z.forEach((function(e){Pe[e+"s"]=De})),Pe.watch=function(e,t,n,o){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};F(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!Array.isArray(n)&&(n=[n]),r[e]=n?n.concat(o):Array.isArray(o)?o:[o]}return r},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return F(r,e),t&&F(r,t),r},Pe.provide=Le;const Fe=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,i,s;if(Array.isArray(n))for(r=n.length;r--;)i=n[r],"string"==typeof i&&(s=T(i),o[s]={type:null});else if(v(n))for(const e in n)i=n[e],s=T(e),o[s]=v(i)?i:{type:i};else 0;e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(Array.isArray(n))for(let e=0;e-1)if(i&&!E(r,"default"))s=!1;else if(""===s||s===L(e)){const e=ze(String,r.type);(e<0||aYe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ye(e,o,r)}return i}function Ge(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!Q&&!ee||"undefined"==typeof console)throw e;console.error(e)}const Xe=[];let Je,Ze=!1;function Qe(){Ze=!1;const e=Xe.slice(0);Xe.length=0;for(let t=0;t{e.then(Qe),re&&setTimeout(R)}}else if(oe||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Je=void 0!==o&&le(o)?()=>{o(Qe)}:()=>{setTimeout(Qe,0)};else{let e=1;const t=new MutationObserver(Qe),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Je=()=>{e=(e+1)%2,n.data=String(e)}}function et(e,t){let n;if(Xe.push(()=>{if(e)try{e.call(t)}catch(e){Ye(e,t,"nextTick")}else n&&n(t)}),Ze||(Ze=!0,Je()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const tt=new de;function nt(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!y(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(i)for(o=t.length;o--;)e(t[o],n);else for(r=Object.keys(t),o=r.length;o--;)e(t[r[o]],n)}(e,tt),tt.clear()}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}});function rt(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Ke(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),lt(i[0])&<(a)&&(o[s]=_e(a.text+i[0].text),i.shift()),o.push.apply(o,i)):m(i)?lt(a)?o[s]=_e(a.text+i):""!==i&&o.push(_e(i)):lt(i)&<(a)?o[s]=_e(a.text+i.text):(h(t._isVList)&&p(i.tag)&&f(i.key)&&p(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function lt(e){return p(e)&&p(e.text)&&!1===e.isComment}function ut(e,t){if(e){const n=Object.create(null),o=ue?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,i=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==d&&s===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=mt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=yt(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",i),X(o,"$key",s),X(o,"$hasNormal",r),o}function mt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function yt(e,t){return()=>e[t]}function gt(e,t){let n,o,r,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,r=e.length;o(this.$slots||ht(e.scopedSlots,this.$slots=dt(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ht(e.scopedSlots,this.slots())}}),a&&(this.$options=i,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),i._scopeId?this._c=(e,t,n,r)=>{const a=Rt(s,e,t,n,r,c);return a&&!Array.isArray(a)&&(a.fnScopeId=i._scopeId,a.fnContext=o),a}:this._c=(e,t,n,o)=>Rt(s,e,t,n,o,c)}function Pt(e,t,n,o,r){const i=we(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function jt(e,t){for(const n in t)e[T(n)]=t[n]}At(Tt.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;p(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const i=o.data.scopedSlots,s=e.$scopedSlots,a=!!(i&&!i.$stable||s!==d&&!s.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(r||e.$options._renderChildren||a);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||d,e.$listeners=n||d,t&&e.$options.props){Oe(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;rN(o,n));const a=e=>{for(let e=0,t=o.length;e{e.resolved=Ht(n,t),r?o.length=0:a(!0)}),l=W(t=>{p(e.errorComp)&&(e.error=!0,a(!0))}),u=e(c,l);return y(u)&&(w(u)?f(e.resolved)&&u.then(c,l):w(u.component)&&(u.component.then(c,l),p(u.error)&&(e.errorComp=Ht(u.error,t)),p(u.loading)&&(e.loadingComp=Ht(u.loading,t),0===u.delay?e.loading=!0:i=setTimeout(()=>{i=null,f(e.resolved)&&f(e.error)&&(e.loading=!0,a(!1))},u.delay||200)),p(u.timeout)&&(s=setTimeout(()=>{s=null,f(e.resolved)&&l(null)},u.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(s,i))))return function(e,t,n,o,r){const i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(s,t,n,o,r);t=t||{},yn(e),p(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),i=r[o],s=t.model.callback;p(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const a=function(e,t,n){const o=t.options.props;if(f(o))return;const r={},{attrs:i,props:s}=e;if(p(i)||p(s))for(const e in o){const t=L(e);0,at(r,s,e,t,!0)||at(r,i,e,t,!1)}return r}(t,e);if(h(e.options.functional))return function(e,t,n,o,r){const i=e.options,s={},a=i.props;if(p(a))for(const e in a)s[e]=Be(e,a,t||d);else p(n.attrs)&&jt(s,n.attrs),p(n.props)&&jt(s,n.props);const c=new Tt(n,s,r,o,e),l=i.render.call(null,c._c,c);if(l instanceof ve)return Pt(l,n,c.parent,i,c);if(Array.isArray(l)){const e=ct(l)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Rt(e,t,n,o,r,i){return(Array.isArray(n)||m(n))&&(r=o,o=n,n=void 0),h(i)&&(r=2),function(e,t,n,o,r){if(p(n)&&p(n.__ob__))return be();p(n)&&p(n.is)&&(t=n.is);if(!t)return be();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=ct(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(on=()=>e.now())}function rn(){let e,t;for(on(),tn=!0,Jt.sort((e,t)=>e.id-t.id),nn=0;nnnn&&Jt[t].id>e.id;)t--;Jt.splice(t+1,0,e)}else Jt.push(e);en||(en=!0,et(rn))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||y(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.active){this.vm._isBeingDestroyed||N(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const cn={enumerable:!0,configurable:!0,get:R,set:R};function ln(e,t,n){cn.get=function(){return this[t][n]},cn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,cn)}function un(e){e._watchers=[];const t=e.$options;t.props&&function(e,t){const n=e.$options.propsData||{},o=e._props={},r=e.$options._propKeys=[];e.$parent&&Oe(!1);for(const i in t){r.push(i);const s=Be(i,t,n,e);Ee(o,i,s),i in e||ln(e,"_props",i)}Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ye();try{return e.call(t,t)}catch(e){return Ye(e,t,"data()"),{}}finally{ge()}}(t,e):t||{},v(t)||(t={});const n=Object.keys(t),o=e.$options.props;e.$options.methods;let r=n.length;for(;r--;){const t=n[r];0,o&&E(o,t)||q(t)||ln(e,"_data",t)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null);for(const o in t){const r=t[o],i="function"==typeof r?r:r.get;0,n[o]=new an(e,i||R,R,dn),o in e||fn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==ie&&function(e,t){for(const n in t){const o=t[n];if(Array.isArray(o))for(let t=0;t-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!b(e)&&e.test(t)}function wn(e,t){const{cache:n,keys:o,_vnode:r}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&$n(n,e,o,r)}}}function $n(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,N(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mn++,t._isVue=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(yn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=d,e._c=(t,n,o,r)=>Rt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Rt(e,t,n,o,r,!0);const r=n&&n.data;Ee(e,"$attrs",r&&r.attrs||d,null,!0),Ee(e,"$listeners",t._parentListeners||d,null,!0)}(t),Xt(t,"beforeCreate"),function(e){const t=ut(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Ee(e,n,t[n])}),Oe(!0))}(t),un(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(gn),function(e){const t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){const o=this;if(v(t))return hn(o,e,t,n);(n=n||{}).user=!0;const r=new an(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ye(),Ke(t,o,[r.value],o,e),ge()}return function(){r.teardown()}}}(gn),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const o=this;if(Array.isArray(e))for(let t=0,r=e.length;t1?D(n):n;const o=D(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Kt=t}}(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){const e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||N(t.$children,e),e._watcher&&e._watcher.teardown();let n=e._watchers.length;for(;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(gn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ht(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Bt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ye(t,e,"render"),o=e._vnode}finally{Bt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof ve||(o=be()),o.parent=n,o}}(gn);const Sn=[String,RegExp,Array];var xn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:i,componentOptions:s}=n;e[o]={name:bn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)$n(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{wn(this,t=>_n(e,t))}),this.$watch("exclude",e=>{wn(this,t=>!_n(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tK};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:F,mergeOptions:Re,defineReactive:Ee},e.set=Ie,e.delete=Ae,e.nextTick=et,e.observable=e=>(Ce(e),e),e.options=Object.create(null),z.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,F(e.options.components,xn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=D(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){z.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&v(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(gn),Object.defineProperty(gn.prototype,"$isServer",{get:ae}),Object.defineProperty(gn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.14",x("style,class");const kn=x("input,textarea,option,select,progress");function On(e){let t=e.data,n=e,o=e;for(;p(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=Nn(o.data,t));for(;p(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(p(e)||p(t))return Cn(e,En(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:Cn(e.staticClass,t.staticClass),class:p(e.class)?[e.class,t.class]:t.class}}function Cn(e,t){return e?t?e+" "+t:e:t||""}function En(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,r=e.length;o=0&&(t=e.charAt(n)," "===t);n--);t&&Pn.test(t)||(l=!0)}}else void 0===r?(p=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(p,o).trim()),p=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==p&&h(),i)for(o=0;o{const t=e[0].replace(Dn,"\\$&"),n=e[1].replace(Dn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Rn(e,t){console.error("[Vue compiler]: "+e)}function Vn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Bn(e,t,n,o,r){(e.props||(e.props=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Hn(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Un(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Xn({name:t,value:n},o))}function Wn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Xn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function zn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Yn(e,t,n,o,r,i,s,a){let c;(o=o||d).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=zn("!",t,a)),o.once&&(delete o.once,t=zn("~",t,a)),o.passive&&(delete o.passive,t=zn("&",t,a)),o.native?(delete o.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});const l=Xn({value:n.trim(),dynamic:a},s);o!==d&&(l.modifiers=o);const u=c[t];Array.isArray(u)?r?u.unshift(l):u.push(l):c[t]=u?r?[l,u]:[u,l]:l,e.plain=!1}function Kn(e,t,n){const o=Gn(e,":"+t)||Gn(e,"v-bind:"+t);if(null!=o)return jn(o);if(!1!==n){const n=Gn(e,t);if(null!=n)return JSON.stringify(n)}}function Gn(e,t,n){let o;if(null!=(o=e.attrsMap[t])){const n=e.attrsList;for(let e=0,o=n.length;e1&&(t[o[0].trim()]=o[1].trim())}})),t}));var Qn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Gn(e,"style");n&&(e.staticStyle=JSON.stringify(Zn(n)));const o=Kn(e,"style",!1);o&&(e.styleBinding=o)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};var eo=function(e){return e};const to=x("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=x("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),oo=x("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ro=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,so=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${G.source}]*`,ao=`((?:${so}\\:)?${so})`,co=new RegExp("^<"+ao),lo=/^\s*(\/?)>/,uo=new RegExp(`^<\\/${ao}[^>]*>`),fo=/^]+>/i,po=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},vo=/&(?:lt|gt|quot|amp|#39);/g,bo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_o=x("pre,textarea",!0),wo=(e,t)=>e&&_o(e)&&"\n"===t[0];function $o(e,t){const n=t?bo:vo;return e.replace(n,e=>go[e])}function So(e,t,n){const{number:o,trim:r}=n||{};let i="$$v";r&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(i=`_n(${i})`);const s=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),ko=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Co),key:'"'+e.slice(Co+1)+'"'}:{exp:e,key:null};Oo=e,Co=Eo=Io=0;for(;!To();)No=Ao(),Po(No)?Lo(No):91===No&&jo(No);return{exp:e.slice(0,Eo),key:e.slice(Eo+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ko,Oo,No,Co,Eo,Io;function Ao(){return Oo.charCodeAt(++Co)}function To(){return Co>=ko}function Po(e){return 34===e||39===e}function jo(e){let t=1;for(Eo=Co;!To();)if(Po(e=Ao()))Lo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Co;break}}function Lo(e){const t=e;for(;!To()&&(e=Ao())!==t;);}const Mo=/^@|^v-on:/,Do=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vo=/^\(|\)$/g,Bo=/^\[.*\]$/,Ho=/:(.*)$/,Uo=/^:|^\.|^v-bind:/,Wo=/^\./,zo=/\.[^.\]]+(?=[^\]]*$)/g,Yo=/^v-slot(:|$)|^#/,Ko=/[\r\n]/,Go=/[ \f\t\r\n]+/g,qo=I(eo);let Xo,Jo,Zo,Qo,er,tr,nr,or,rr;function ir(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fr(t),rawAttrsMap:{},parent:n,children:[]}}function sr(e,t){Xo=t.warn||Rn,tr=t.isPreTag||V,nr=t.mustUseProp||V,or=t.getTagNamespace||V;const n=t.isReservedTag||V;rr=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Zo=Vn(t.modules,"transformNode"),Qo=Vn(t.modules,"preTransformNode"),er=Vn(t.modules,"postTransformNode"),Jo=t.delimiters;const o=[],r=!1!==t.preserveWhitespace,i=t.whitespace;let s,a,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=ar(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&lr(s,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&lr(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter(e=>!e.slotScope),d(e),e.pre&&(c=!1),tr(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,mo(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),wo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,f(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(po.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment(e.substring(4,n),c,c+n+3),l(n+3);continue}}if(ho.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(fo);if(n){l(n[0].length);continue}const o=e.match(uo);if(o){const e=c;l(o[0].length),f(o[1],e,c);continue}const r=u();if(r){d(r),wo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(uo.test(o)||co.test(o)||po.test(o)||ho.test(o)||(r=o.indexOf("<",1),r<0));)i+=r,o=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===s){t.chars&&t.chars(e);break}}function l(t){c+=t,e=e.substring(t)}function u(){const t=e.match(co);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(lo))&&(r=e.match(io)||e.match(ro));)r.start=c,l(r[0].length),r.end=c,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=c,n}}function d(e){const s=e.tagName,c=e.unarySlash;o&&("p"===a&&oo(s)&&f(a),i(s)&&a===s&&f(s));const l=r(s)||!!c,u=e.attrs.length,d=new Array(u);for(let n=0;n=0&&n[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,o,r);n.length=i,a=i&&n[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,o,r):"p"===s&&(t.start&&t.start(e,[],!1,o,r),t.end&&t.end(e,o,r))}f()}(e,{warn:Xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,n,r,i,d){const f=a&&a.ns||or(e);oe&&"svg"===f&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=jn(i[1].trim());o.push(`_s(${t})`),r.push({"@binding":t}),c=s+i[0].length}return c{if(!e.slotScope)return e.parent=i,!0}),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Kn(n,"name")),function(e){let t;(t=Kn(e,"is"))&&(e.component=t);null!=Gn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function fr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Yn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${s});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Kn(e,"value")||"null";r=o?`_n(${r})`:r,Bn(e,"checked",`_q(${t},${r})`),Yn(e,"change",xo(t,r),null,!0)}(e,o,r);else if("input"===i||"textarea"===i)!function(e,t,n){const o=e.attrsMap.type;0;const{lazy:r,number:i,trim:s}=n||{},a=!r&&"range"!==o,c=r?"change":"range"===o?"__r":"input";let l="$event.target.value";s&&(l="$event.target.value.trim()");i&&(l=`_n(${l})`);let u=xo(t,l);a&&(u="if($event.target.composing)return;"+u);Bn(e,"value",`(${t})`),Yn(e,c,u,null,!0),(s||i)&&Yn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!K.isReservedTag(i))return So(e,o,r),!1}return!0},text:function(e,t){t.value&&Bn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Bn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:to,mustUseProp:(e,t,n)=>"value"===n&&kn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:no,isReservedTag:e=>In(e)||An(e),getTagNamespace:function(e){return An(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(yr)};let br,_r;const wr=I((function(e){return x("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function $r(e,t){e&&(br=wr(t.staticKeys||""),_r=t.isReservedTag||V,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||k(e.tag)||!_r(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(br)))}(t),1===t.type){if(!_r(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,xr=/\([^)]*?\);*$/,kr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Or={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Nr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Cr=e=>`if(${e})return null;`,Er={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Cr("$event.target !== $event.currentTarget"),ctrl:Cr("!$event.ctrlKey"),shift:Cr("!$event.shiftKey"),alt:Cr("!$event.altKey"),meta:Cr("!$event.metaKey"),left:Cr("'button' in $event && $event.button !== 0"),middle:Cr("'button' in $event && $event.button !== 1"),right:Cr("'button' in $event && $event.button !== 2")};function Ir(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=Ar(e[t]);e[t]&&e[t].dynamic?r+=`${t},${n},`:o+=`"${t}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function Ar(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>Ar(e)).join(",")}]`;const t=kr.test(e.value),n=Sr.test(e.value),o=kr.test(e.value.replace(xr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Er[t])i+=Er[t],Or[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=Cr(["ctrl","shift","alt","meta"].filter(e=>!t[e]).map(e=>`$event.${e}Key`).join("||"))}else s.push(t);s.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Tr).join("&&")+")return null;"}(s)),i&&(r+=i);return`function($event){${r}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:o?"return "+e.value:e.value}}`}return t||n?e.value:`function($event){${o?"return "+e.value:e.value}}`}function Tr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=Or[e],o=Nr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Pr={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:R};class jr{constructor(e){this.options=e,this.warn=e.warn||Rn,this.transforms=Vn(e.modules,"transformCode"),this.dataGenFns=Vn(e.modules,"genData"),this.directives=F(F({},Pr),e.directives);const t=e.isReservedTag||V;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Lr(e,t){const n=new jr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Mr(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Mr(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Dr(e,t);if(e.once&&!e.onceProcessed)return Fr(e,t);if(e.for&&!e.forProcessed)return Vr(e,t);if(e.if&&!e.ifProcessed)return Rr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Wr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Kr((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:T(e.name),value:e.value,dynamic:e.dynamic}))):null,s=e.attrsMap["v-bind"];!i&&!s||o||(r+=",null");i&&(r+=","+i);s&&(r+=`${i?"":",null"},${s}`);return r+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const o=t.inlineTemplate?null:Wr(t,n,!0);return`_c(${e},${Br(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Br(e,t));const r=e.inlineTemplate?null:Wr(e,t,!0);n=`_c('${e.tag}'${o?","+o:""}${r?","+r:""})`}for(let o=0;o{const n=t[e];return n.slotTargetDynamic||n.if||n.for||Hr(n)}),r=!!e.if;if(!o){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){o=!0;break}t.if&&(r=!0),t=t.parent}}const i=Object.keys(t).map(e=>Ur(t[e],n)).join(",");return`scopedSlots:_u([${i}]${o?",null,true":""}${!o&&r?",null,false,"+function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i):""})`}(e,e.scopedSlots,t)+","),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const o=function(e,t){const n=e.children[0];0;if(n&&1===n.type){const e=Lr(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map(e=>`function(){${e}}`).join(",")}]}`}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Kr(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Hr(e){return 1===e.type&&("slot"===e.tag||e.children.some(Hr))}function Ur(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Rr(e,t,Ur,"null");if(e.for&&!e.forProcessed)return Vr(e,t,Ur);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Wr(e,t)||"undefined"}:undefined`:Wr(e,t)||"undefined":Mr(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Wr(e,t,n,o,r){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const r=n?t.maybeComponent(e)?",1":",0":"";return`${(o||Mr)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;ozr(e.block))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(e=>t(e.block)))&&(n=1)}}return n}(i,t.maybeComponent):0,a=r||Yr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function zr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Yr(e,t){return 1===e.type?Mr(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Gr(JSON.stringify(e.text))})`}(e)}function Kr(e){let t="",n="";for(let o=0;oqr(e,c)),t[i]=a}}const Jr=(Zr=function(e,t){const n=sr(e.trim(),t);!1!==t.optimize&&$r(n,t);const o=Lr(n,t);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(e){function t(t,n){const o=Object.create(e),r=[],i=[];if(n){n.modules&&(o.modules=(e.modules||[]).concat(n.modules)),n.directives&&(o.directives=F(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(o[e]=n[e])}o.warn=(e,t,n)=>{(n?i:r).push(e)};const s=Zr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Xr(t)}});var Zr;const{compile:Qr,compileToFunctions:ei}=Jr(vr),ti=`http://127.0.0.1:${r.env.PORT}/`;let ni,oi,ri=e=>e,ii=()=>{};function si(e){ni=e}function ai(){return ni}function ci(){return ri}const li=W(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ui(...e){(null==oi?void 0:oi.config.silent)&&li()}function di(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fi=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pi(e){return"[object Function]"===Object.prototype.toString.call(e)}function hi(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function mi(e){return null==e}function yi(e){return"string"==typeof e?""!==e.trim():null!=e}const gi=Symbol.for("View"),vi=Symbol.for("Image"),bi=Symbol.for("ListView"),_i=Symbol.for("ListViewItem"),wi=Symbol.for("Text"),$i=Symbol.for("TextInput"),Si=Symbol.for("WebView"),xi=Symbol.for("VideoPlayer"),ki={[gi]:"View",[vi]:"Image",[bi]:"ListView",[_i]:"ListViewItem",[wi]:"Text",[$i]:"TextInput",[Si]:"WebView",[xi]:"VideoPlayer"};function Oi(...e){const t={};if(Array.isArray(e[0]))e[0].forEach(([e,n])=>{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const Ni={number:"numeric",text:"default",search:"web-search"},Ci={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},Ei={symbol:gi,component:{name:ki[gi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},Ci),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus}return e}}},Ii={symbol:gi,component:l(l({},Ei.component),{},{name:ki[gi],defaultNativeStyle:{}})},Ai={symbol:gi,component:{name:ki[gi]}},Ti={symbol:vi,component:l(l({},Ei.component),{},{name:ki[vi],defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=hi(e);return t&&t.indexOf(ti)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>hi(e)},Ci),processEventData(e,t,n){switch(t){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus;break;case"onLoad":{const{width:t,height:o,url:r}=n;e.width=t,e.height=o,e.url=r;break}}return e}})},Pi={symbol:bi,component:{name:ki[bi],defaultNativeStyle:{flex:1},attributeMaps:l({},Ci),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":e.index=n.index}return e}}},ji={symbol:_i,component:{name:ki[_i],attributeMaps:l({},Ci),eventNamesMap:Oi([["disappear","onDisappear"]])}},Li={symbol:gi,component:l(l({},Ei.component),{},{name:ki[wi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},Mi=Li,Di=Li,Fi={component:l(l({},Li.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Ri={symbol:$i,component:{name:ki[$i],attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=Ni[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Ci),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Oi([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t,n){switch(t){case"onChangeText":case"onEndEditing":e.value=n.text;break;case"onSelectionChange":e.start=n.selection.start,e.end=n.selection.end;break;case"onKeyboardWillShow":e.keyboardHeight=n.keyboardHeight;break;case"onContentSizeChange":e.width=n.contentSize.width,e.height=n.contentSize.height}return e}}},Vi={symbol:$i,component:{name:ki[$i],defaultNativeProps:l(l({},Ri.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},Ri.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Ri.component.defaultNativeStyle,eventNamesMap:Ri.component.eventNamesMap,processEventData:Ri.component.processEventData}},Bi={symbol:Si,component:{name:ki[Si],defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t,n){switch(t){case"onLoad":case"onLoadStart":e.url=n.url;break;case"onLoadEnd":e.url=n.url,e.success=n.success,e.error=n.error}return e}}};var Hi=Object.freeze({__proto__:null,button:Ii,div:Ei,form:Ai,img:Ti,input:Ri,label:Mi,li:ji,p:Di,span:Li,a:Fi,textarea:Vi,ul:Pi,iframe:Bi});const Ui=x("template,script,style,element,content,slot,button,div,form,img,input,label,li,p,span,textarea,ul",!0),Wi=new Map,zi={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,mustUseProp:!1,model:null,component:null};function Yi(e){return e.toLowerCase()}function Ki(e,t){if(!e)throw new Error("RegisterElement cannot set empty name");const n=Yi(e),o=l(l({},zi),t);if(Wi.has(n))throw new Error(`Element for ${e} already registered.`);o.component=l(l({},function(e,t,n){return{name:e,functional:!0,model:t.model,render:(e,{data:t,children:o})=>e(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===di(T(e))&&o.component.name;const r={meta:o};return Wi.set(n,r),r}function Gi(e){const t=Yi(e);let n=zi;const o=Wi.get(t);return(null==o?void 0:o.meta)&&(n=o.meta),n}class qi{constructor(e){this.value="",this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){this.cancelable&&(this.isCanceled=!0)}initEvent(e,t=!0,n=!0){return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}class Xi{constructor(e){this.element=e,this.observers={}}getEventListeners(){return this.observers}addEventListener(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!pi(t))throw new TypeError("callback must be function.");const o=e.split(",");for(let e=0,r=o.length;e=0&&e.splice(o,1),0===e.length&&(this.observers[r]=void 0)}}else this.observers[r]=void 0}return this.observers}emit(e){var t,n;const{type:o}=e,r=this.observers[o];if(r)for(let o=r.length-1;o>=0;o-=1){const i=r[o];(null===(t=i.options)||void 0===t?void 0:t.once)&&r.splice(o,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventList(e,t){let n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&H(e.options,n):e.callback===t)}}const Ji=new Map;function Zi(e){return Ji.get(e)||null}function Qi(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){var n;o=t.nodeId,Ji.delete(o),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t));var o}(t)},{timeout:50})}function es(e=[],t=0){let n=e[t];for(let o=t;o-1){const e=new cs(i);if(Object.assign(e,{eventPhase:a,nativeParams:s||{}}),"onLayout"===r){const{layout:{x:t,y:n,height:o,width:r}}=s;e.top=n,e.left=t,e.bottom=n+o,e.right=t+r,e.width=r,e.height=o}else{const{processEventData:t}=c._meta.component;t&&t(e,r,s)}c.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(r,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=us);const ds={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},fs=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,ps="[-+]?\\d*\\.?\\d+",hs={rgb:new RegExp("rgb"+fs(ps,ps,ps)),rgba:new RegExp("rgba"+fs(ps,ps,ps,ps)),hsl:new RegExp("hsl"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ps)),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})$/},ms=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ys=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},gs=(e,t,n)=>{let o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},vs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=gs(r,o,e+1/3),s=gs(r,o,e),a=gs(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},bs=e=>(parseFloat(e)%360+360)%360/360,_s=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function ws(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hs.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ds,e)?ds[e]:(t=hs.rgb.exec(e),Array.isArray(t)?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|255)>>>0:(t=hs.rgba.exec(e),t?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|ys(t[4]))>>>0:(t=hs.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hs.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=hs.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hs.hsl.exec(e),t?(255|vs(bs(t[1]),_s(t[2]),_s(t[3])))>>>0:(t=hs.hsla.exec(e),t?(vs(bs(t[1]),_s(t[2]),_s(t[3]))|ys(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const $s={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};var Ss;function xs(){const e=za.Localization;return!!e&&e.direction===Ss.RTL}!function(e){e[e.RTL=1]="RTL"}(Ss||(Ss={}));const ks=new Map;function Os(e){return ks.get(e)||{}}class Ns{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}trackChanges(e,t){this.dynamic&&t.addAttribute(e,"")}}class Cs extends Ns{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}match(e){return!1}}function Es(e){return e?` ${e} `:""}const Is=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class As extends Cs{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Cs&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Es(this.combinator||"")}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof Cs&&this.head.lookupSort(e,t||this)}removeSort(e,t){this.head&&this.head instanceof Cs&&this.head.removeSort(e,t||this)}}const Ts=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ps={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},js={};function Ls(e,t,n){let o="";Ts&&(o="gy"),js[e]||(js[e]=new RegExp(Ps[e],o));const r=js[e];let i;if(Ts)r.lastIndex=n||0,i=r.exec(t);else{if(t=t.slice(n,t.length),i=r.exec(t),!i)return{result:null,regexp:r};r.lastIndex=n||0+i[0].length}return{result:i,regexp:r}}function Ms(e,t){return function(e,t){const{result:n,regexp:o}=Ls("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:r}}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("attributeSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:r}}return{value:{type:"[]",property:i},start:t,end:r}}(e,t)}function Ds(e,t){let n=Ms(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=Ms(e,o);return{start:t,end:o,value:r}}function Fs(e,t){const{result:n,regexp:o}=Ls("combinatorRegEx",e,t);if(!n)return null;let r;r=Ts?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}class Rs{constructor(e,t,n){e.forEach(e=>(e.ruleSet=this,null)),this.hash=n,this.selectors=e,this.declarations=t}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}class Vs extends Cs{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n}match(e){if(!this.test)return!(!e||!e.attributes)&&!mi(Is(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;const t=""+Is(e,this.attribute);if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){const e=t.split(" ");return e&&-1!==e.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith(this.value+"-"))}toString(){return`[${this.attribute}${Es(this.test)}${this.test&&this.value||""}]${Es(this.combinator||"")}`}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Bs extends Cs{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Es(this.combinator||"")}`}match(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,t||this)}removeSort(e,t){e.removeByClass(this.className,t||this)}}class Hs extends Cs{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Es(this.combinator||"")}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class Us extends Cs{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}}class Ws extends Cs{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Es(this.combinator||"")}`}match(e){return!!e}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}class zs{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)})}}class Ys{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)})}}class Ks extends Ns{constructor(e){super();const t=[void 0," ",">","+"];let n=[],o=[];const r=[];this.selectors=e,this.selectors.reverse().forEach(e=>{if(-1===t.indexOf(e.combinator))throw new Error(`Unsupported combinator "${e.combinator}".`);void 0!==e.combinator&&" "!==e.combinator||r.push(o=[n=[]]),">"===e.combinator&&o.push(n=[]),n.push(e)}),this.groups=r.map(e=>new zs(e.map(e=>new Ys(e))));const[i]=e;this.last=i,this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.dynamic=e.some(e=>e.dynamic)}toString(){return this.selectors.join("")}match(e){let t=e;return this.groups.every((n,o)=>{if(0===o)return t=n.match(e),!!t;let r=t;for(;r=null==r?void 0:r.parentNode;)if(t=n.match(r))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){let n=e;if(!this.dynamic)return this.match(n);const o=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return o.push({left:e,right:e}),n=r,!!n}let i=e;for(;i=i.parentNode;){const e=t.mayMatch(i);if(e)return o.push({left:i,right:void 0}),n=e,!0}return!1});if(!r)return!1;if(!t)return r;for(let e=0;e{if(!Ts){if(""===e)return;n=0}do{const t=Ds(e,n);if(!t){if(c)return null;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=Fs(e,n),s&&({end:n}=s),c=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e);return t?function(e){if(0===e.length)return new Us(new Error("Empty selector."));if(1===e.length)return Zs(e[0][0]);const t=[];for(let n=0;ne.lookupSort(this))}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e){const{tagName:t,id:n,classList:o}=e,r=[this.universal,this.id[n],this.type[t]];o.size&&o.forEach(e=>r.push(this.class[e]));const i=r.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new ea;return s.selectors=i.filter(t=>t.sel.accumulateChanges(e,s)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),s}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeById(e,t){this.removeFromMap(this.id,e,t)}removeByClass(e,t){this.removeFromMap(this.class,e,t)}removeByType(e,t){this.removeFromMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,o;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(o=e.ruleSet)||void 0===o?void 0:o.hash)});-1!==t&&this.universal.splice(t)}addToMap(e,t,n){const o=e;this.position+=1;const r=o[t];r?r.push(this.makeDocSelector(n)):o[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>{var t,o;return(null===(t=e.sel.ruleSet)||void 0===t?void 0:t.hash)===(null===(o=n.ruleSet)||void 0===o?void 0:o.hash)});-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}const na={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode"),updateEvent:Symbol("updateEvent")};let oa,ra=!0,ia=[];function sa(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:o}=e;o.forEach(e=>{const{name:o,type:r,listener:i}=e;let s;s=function(e){return!!rs[e]}(o)?rs[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===os&&t.removeEventListener(n,s,i),r===ns&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function aa(e,t){0}function ca(t){if(!ra)return;if(ra=!1,0===ia.length)return void(ra=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case na.createNode:aa(e.printedNodes),n.create(e.nodes),sa(e.eventNodes,n);break;case na.updateNode:aa(e.printedNodes),n.update(e.nodes),sa(e.eventNodes,n);break;case na.deleteNode:aa(e.printedNodes),n.delete(e.nodes);break;case na.moveNode:aa(e.printedNodes),n.move(e.nodes);break;case na.updateEvent:sa(e.eventNodes,n)}}),n.build(),ra=!0,ia=[]})}function la(){if(!oa||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ci();return e.map(e=>{const n=e.declarations.filter(Xs).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Qs);return new Rs(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);oa?oa.append(t):oa=new ta(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{oa.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),oa}function ua(e){const t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach(n=>{if(void 0!==e.getAttribute(n))return;const o=e.meta.component.defaultNativeProps[n];pi(o)?t[n]=o(e):t[n]=o}),Object.keys(e.attributes).forEach(n=>{let o=e.getAttribute(n);if(!e.meta.component.attributeMaps||!e.meta.component.attributeMaps[n])return void(t[n]=o);const r=e.meta.component.attributeMaps[n];if("string"==typeof r)return void(t[r]=o);if(pi(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;pi(s)&&(o=s(o)),a?(t[a]=t[a]||{},Object.assign(t[a],{[i]:o})):t[i]=o}),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function da(e){const t=Object.create(null);try{la().query(e).selectors.forEach(n=>{(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){console.error("getDomCss Error:",e)}return t}function fa(e){let t=void 0;const n=e.events;if(n){const o=[];Object.keys(n).forEach(e=>{const{name:t,type:r,isCapture:i,listener:s}=n[e];o.push({name:t,type:r,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:o}}return t}function pa(e,t,n={},o=!1){var r;if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i,s;if(o)i=Os(t.nodeId),s=i;else{i=da(t),i=l(l({},i),t.style),ii();const e=Object.assign({},i);if(t.parentNode){const e=Os(t.parentNode.nodeId);["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!yi(i[t])&&yi(e[t])&&(i[t]=e[t])})}!function(e,t){ks.set(e,t)}(t.nodeId,i),s=function(e){var t;return(null===(t=e.meta)||void 0===t?void 0:t.component)&&"Text"===e.meta.component.name}(t)?i:e,t.meta.component.defaultNativeStyle&&(s=l(l({},t.meta.component.defaultNativeStyle),s))}const a={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.meta.component.name,props:l(l({},ua(t)),{},{style:s}),tagName:t.tagName};!function(e){if(e.props.__modalFirstChild__){const t=e.props.style;Object.keys(t).some(e=>"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach(e=>delete t[e]),!0))}}(a),function(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=xs()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=hi(n.backgroundImage)))}(t,a,s),function(e,t){"TextInput"===e.meta.component.name&&xs()&&(t.textAlign||(t.textAlign="right"))}(t,s);const c=fa(t);let u=void 0;return[[a,n],c,u]}function ha(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=pa(e,t,o);a&&r.push(a),c&&i.push(c),l&&s.push(l),"function"==typeof n&&n(t)},o),[r,i,s]}function ma(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ai();if(!o)return;const{$options:{rootViewId:r,rootView:i}}=o,s=function(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}(e,i)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(s||a){const[i,a,c]=ha(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,Ji.set(n,t)},n);ia.push({type:na.createNode,nodes:i,eventNodes:a,printedNodes:c}),ca(o)}}function ya(e){if(!e.isMounted)return;const t=ai(),n=fa(e);ia.push({type:na.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),ca(t)}function ga(e,t=!1){if(!e.isMounted)return;const n=ai(),{$options:{rootViewId:o}}=n,[r,i,s]=pa(o,e,{},t);r&&(ia.push({type:na.updateNode,nodes:r?[r]:[],eventNodes:i?[i]:[],printedNodes:[]}),ca(n))}function va(e){if(!e.isMounted)return;const t=ai(),{$options:{rootViewId:n}}=t,[o,r,i]=ha(n,e);ia.push({type:na.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ca(t)}const ba=new Set;let _a,wa=!1;const $a={exitApp(){za.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(wa||(wa=!0,$a.initEventListener()),za.callNative("DeviceEventModule","setListenBackPress",!0),ba.add(e),{remove(){$a.removeListener(e)}}),removeListener(e){ba.delete(e),0===ba.size&&za.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){_a||(_a=ai()),_a.$on("hardwareBackPress",()=>{let e=!0;Array.from(ba).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$a.exitApp()})}},Sa={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},xa="android"===Hippy.device.platform.OS?$a:Sa;let ka;const Oa=new Map;class Na{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ca(this.eventName,this.listener),this.listener=void 0)}}function Ca(e,t){if(t instanceof Na)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=Oa.get(t);o&&(ka||(ka=ai()),ka.$off(n,o),Oa.delete(t),Oa.size<1&&za.callNative("NetInfo","removeListener",n))}var Ea=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===Oa.size&&za.callNative("NetInfo","addListener",n),ka||(ka=ai()),ka.$on(n,t),Oa.set(t,t),new Na(n,t)},removeEventListener:Ca,fetch:function(){return za.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:Na});const{on:Ia,off:Aa,emit:Ta,bridge:{callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La},device:{platform:{OS:Ma,Localization:Da={}},screen:{scale:Fa}},device:Ra,document:Va,register:Ba}=Hippy,Ha={},Ua=["%c[native]%c","color: red","color: auto"],Wa=function(e,t){const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:o}=e;return ui(...Ua,"callUIFunction",{nodeId:o,funcName:t,params:[]}),new Promise(e=>Va.callUIFunction(o,t,[],t=>{if(!t||"object"!=typeof t||void 0===o)return e(n);const{x:r,y:i,height:s,width:a}=t;return e({top:i,left:r,width:a,height:s,bottom:i+s,right:r+a})}))},za={callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La,UIManagerModule:Va,ConsoleModule:e.ConsoleModule||e.console,on:Ia,off:Aa,emit:Ta,PixelRatio:Fa,Platform:Ma,Localization:Da,version:"3.3.1",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return ja.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");let o="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");o=n.toUTCString()}Pa.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return ja.call(this,"ClipboardModule","getString")},setString(e){Pa.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!p(Ha.isIPhoneX)){let e=!1;"ios"===za.Platform&&(e=20!==za.Dimensions.screen.statusBarHeight),Ha.isIPhoneX=e}return Ha.isIPhoneX},get screenIsVertical(){return za.Dimensions.window.widthWa(e,"measureInWindow"),measureInAppWindow:e=>"android"===za.Platform?Wa(e,"measureInWindow"):Wa(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((o,r)=>{if(!e.isMounted||!n)return r(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));ui(...Ua,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Va.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=0,c=0;return"number"==typeof n&&"number"==typeof s&&(a=n+s),"number"==typeof t&&"number"==typeof i&&(c=t+i),o({x:t,y:n,width:i,height:s,bottom:a,right:c,left:t,top:n})})})},parseColor(e,t={platform:za.Platform}){if(Number.isInteger(e))return e;const n=Ha.COLOR_PARSER||(Ha.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=ws(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:xa,ImageLoader:{getSize(e){return ja.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Pa.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Ea,getElemCss:da};let Ya=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ya=e.__GLOBAL__.nodeId);class Ka{constructor(){this._ownerDocument=null,this._isMounted=!1,this.nodeId=(Ya+=1,Ya%10==0&&(Ya+=1),Ya%10==0&&(Ya+=1),Ya),this.index=0,this.childNodes=[]}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get meta(){return this._meta?this._meta:{}}get ownerDocument(){if(this._ownerDocument)return this._ownerDocument;let e=this;for(;"DocumentNode"!==e.constructor.name&&(e=e.parentNode,e););return this._ownerDocument=e,e}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");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);let o=t;return t.meta.skipAddToDom&&(o=es(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),o.meta.skipAddToDom?ma(this,e):ma(this,e,{refId:o.nodeId,relativeToRef:ts})}moveChild(e,t){if(!e)throw new Error("Can't move child.");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),o=this.childNodes.indexOf(t);let r=t;if(t.meta.skipAddToDom&&(r=es(this.childNodes,o)),o===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=e),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),r.meta.skipAddToDom?ma(this,e):function(e,t,n={}){if((null==e?void 0:e.meta)&&pi(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;const o=ai(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];ia.push({printedNodes:a,type:na.moveNode,nodes:s,eventNodes:[]}),ca(o)}(this,e,{refId:r.nodeId,relativeToRef:ts})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ma(this,e))}removeChild(e){if(!e)throw new Error("Can't remove child.");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.");if(e.meta.skipAddToDom)return;e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=ai(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];ia.push({printedNodes:s,type:na.deleteNode,nodes:i,eventNodes:[]}),ca(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}class Ga extends Ka{constructor(e){super(),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}const qa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Xa="turn",Ja="rad",Za="deg",Qa="beforeLoadStyleDisabled",ec="class",tc="id",nc="text",oc="value",rc="defaultValue",ic="placeholder",sc="numberOfRows",ac="caretColor",cc="caret-color",lc="break-strategy",uc="placeholderTextColor",dc="placeholder-text-color",fc="underlineColorAndroid",pc="underline-color-android",hc="nativeBackgroundAndroid",mc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function yc(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=i(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,s,a]=n;return s&&a?o=function(e,t=Za){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Xa:o=""+(360*n).toFixed(2);break;case Ja:o=""+(180/Math.PI*n).toFixed(2)}return o}(s,a):r&&void 0!==qa[r]&&(o=qa[r]),o}function gc(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,o]=t.split(/\s+(?![^(]*?\))/),r=/^([+-]?\d+\.?\d*)%$/g;return!n||r.exec(n)||o?n&&r.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:za.parseColor(n)}:void 0:{color:za.parseColor(n)}}function vc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function bc(e,t,n){void 0===t&&(delete n[e],vc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[mc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function _c(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,o=n.length;ee.trim()));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let o=n.next().value;for(;o;){if(!t.has(o))return!1;o=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&va(this))}case tc:if(r===this.id)return;return this.id=r,void(!n.notToNative&&va(this));case nc:case oc:case rc:case ic:if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!oi||void 0===oi.config.trimWhitespace||oi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}(r)),r=function(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}(r);break;case sc:if("ios"!==za.Platform)return;break;case ac:case cc:o="caret-color",r=za.parseColor(r);break;case lc:o="breakStrategy";break;case uc:case dc:o="placeholderTextColor",r=za.parseColor(r);break;case fc:case pc:o="underlineColorAndroid",r=za.parseColor(r);break;case hc:{const e=r;void 0!==e.color&&(e.color=za.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&ga(this,n.notUpdateStyle)}catch(e){0}}removeAttribute(e){delete this.attributes[e]}setStyles(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)return;Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)});wc.some(t=>Object.prototype.hasOwnProperty.call(e,t))?va(this):ga(this)}setStyle(e,t,n=!1){let o=e,r=t;if(this.getAttribute(Qa)||({value:r,property:o}=this.beforeLoadStyle({property:e,value:t})),void 0===t)return bc(o,r,this.style),void(n||ga(this));switch(o){case"fontWeight":"string"!=typeof r&&(r=r.toString());break;case"backgroundImage":[o,r]=function(e,t,n){delete n[e],vc(e,t,n);let o=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),n=[];o={},e.forEach((e,t)=>{if(0===t){const t=yc(e);if(t)o.angle=t;else{o.angle="180";const t=gc(e);t&&n.push(t)}}else{const t=gc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(o,r,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[o,r]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[mc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(o,r,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:o=0}=r||{};r={width:e||t,height:n||o};break}default:Object.prototype.hasOwnProperty.call($s,o)&&(o=$s[o]),"string"==typeof r&&(r=r.trim(),r=o.toLowerCase().indexOf("color")>=0?za.parseColor(r):function(e,t,n){if(e.endsWith)return e.endsWith(t,n);let o=n;return(void 0===o||o>e.length)&&(o=e.length),e.slice(o-t.length,o)===t}(r,"px")?parseFloat(r.slice(0,r.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&fi.test(e))try{return parseFloat(e)}catch(e){}return e}(r))}null!=r&&this.style[o]!==r&&(this.style[o]=r,n||(wc.indexOf(o)>=0?va(this):ga(this)))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){va(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}isTextNode(e){return(null==e?void 0:e.meta.symbol)===wi}appendChild(e){(null==e?void 0:e.meta.symbol)===wi&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){this.isTextNode(e)&&e instanceof Ga&&this.setText("",{notToNative:!0}),super.removeChild(e)}setText(e,t={}){return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+di(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;(null==n?void 0:n[e])&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Xi(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){const e=200;this.attributes.scrollEventThrottle=e}"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(ss,e,t,n)),this._emitter.addEventListener(e,t,n),_c(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ns&&(this.events[t].type=ns):this.events[t]={name:t,type:ns,listener:(n=t,o=e,e=>{const{id:t,currentId:r,params:i,eventPhase:s}=e,a={id:t,nativeName:n,originalName:o,currentId:r,params:i,eventPhase:s};us.receiveComponentEvent(a,e)}),isCapture:!1}}),ya(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(as,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return _c(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=os)}),ya(this),o}dispatchEvent(e,t,n){if(!(e instanceof qi))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return za.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let o=n;!1===o&&(o=0),za.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:o}])}scrollTo(e,t,n){let o=n;if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto"}=e;({duration:o}=e),this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setPressed(e){za.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){za.callUIFunction(this,"setHotspot",[e,t])}}class Sc extends $c{constructor(e){super("comment"),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}}class xc extends $c{getValue(){return new Promise(e=>za.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){za.callUIFunction(this,"setValue",[e])}focus(){za.callUIFunction(this,"focusTextInput",[])}blur(){za.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>za.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){za.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class kc extends $c{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class Oc extends Ka{constructor(){super(),this.documentElement=new $c("document")}static createComment(e){return new Sc(e)}static createElement(e){switch(e){case"input":case"textarea":return new xc(e);case"ul":return new kc(e);default:return new $c(e)}}static createElementNS(e,t){return new $c(`${e}:${t}`)}static createTextNode(e){return new Ga(e)}static createEvent(e){return new qi(e)}}var Nc={create(e,t){Cc(t)},update(e,t){e.data.ref!==t.data.ref&&(Cc(e,!0),Cc(t))},destroy(e){Cc(e,!0)}};function Cc(e,t){const n=e.data.ref;if(!p(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[n])?N(i[n],r):i[n]===r&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(r)<0&&i[n].push(r):i[n]=[r]:i[n]=r}const Ec=new ve("",{},[]),Ic=["create","activate","update","remove","destroy"];function Ac(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&p(e.data)===p(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=p(n=e.data)&&p(n=n.attrs)&&n.type,r=p(n=t.data)&&p(n=n.attrs)&&n.type;return o===r||Tn(o)&&Tn(r)}(e,t)||h(e.isAsyncPlaceholder)&&f(t.asyncFactory.error))}function Tc(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,p(r)&&(i[r]=o);return i}var Pc={create:jc,update:jc,destroy:function(e){jc(e,Ec)}};function jc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Ec,o=t===Ec,r=Mc(e.data.directives,e.context),i=Mc(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=r[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,Fc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Fc(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const o=()=>{for(let n=0;n{for(let n=0;n{const t=r[e],o=i[e];null!=t&&null==o&&(n[e]=void 0)}),Object.keys(i).forEach(e=>{const t=r[e],o=i[e];t!==o&&(n[e]=o)}),Object.keys(n).forEach(e=>{o.setAttribute(e,n[e])})}var Bc={create:Vc,update:Vc};function Hc(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=On(t);const s=n._transitionClasses;s&&(i=Cn(i,En(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Uc={create:Hc,update:Hc};let Wc;function zc(e,t,n,o){(o||Wc).removeEventListener(e)}function Yc(e,t,n,o,r){n||Wc.addEventListener(e,t)}function Kc(e,t,n){const o=Wc;return function(){const n=t(...arguments);null!==n&&zc(e,0,0,o)}}function Gc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Wc=t.elm,it(n,o,Yc,zc,Kc,t.context)}var qc={create:Gc,update:Gc};const Xc=I(T);function Jc(e){const t={};for(let n=0;n{const r=e[o],i=t[o];!mi(r)&&mi(i)&&(n[Xc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];mi(i)||i===r||(n[Xc(o)]=i)}),n}function Qc(e,t){if(!t.elm||!function(e,t){return!(!e.data&&!t.data)&&!!(e.data.style||t.data.style||e.data.staticStyle||t.data.staticStyle)}(e,t))return;const n=Zc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Jc(r),t.data.style=r),i&&(r=F({},r),t.data.style=r);const s=Zc(o,r);t.elm.setStyles(l(l({},n),s))}var el=[Bc,Uc,qc,{create:Qc,update:Qc}];function tl(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){var o;if(!e||!e.data)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=(null===(o=e.data)||void 0===o?void 0:o.attrs)||{};i.__ob__&&(i=F({},i),e.data.attrs=i),Object.keys(i).forEach(e=>{r.setAttribute(e,i[e],{notToNative:!!n.notToNative})})}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;const{staticStyle:r}=e.data;r&&Object.keys(r).forEach(e=>{const t=r[e];t&&o.setStyle(Xc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Jc(i),e.data.style=i),t&&(i=F({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Xc(e),i[e],!!n.notToNative)})}}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;const{data:o}=e;if(!o.staticClass&&!o.class)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=On(e);const s=r._transitionClasses;s&&(i=Cn(i,En(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const nl=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(u=f(n[b+1])?null:n[b+1].elm,v(e,u,n,h,b,o)):h>b&&_(t,d,m)}(l,y,g,n,c):p(g)?(p(e.text)&&i.setTextContent(l,""),v(l,null,g,0,g.length-1,n)):p(y)?_(y,0,y.length-1):p(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),p(m)&&p(u=m.hook)&&p(u=u.postpatch)&&u(e,t)}function k(e,t,n){if(h(n)&&p(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Qi(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:el.concat(Rc)});function ol(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let rl=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const il={inserted(e,t){"ios"===za.Platform&&rl!==ol&&(rl=ol),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",({value:t})=>{const n=new qi("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,rl(e,t,n)}};function sl(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const al={bind(e,{value:t},n){void 0===e.style.display&&(e.style.display="block");const o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,sl(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&sl(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var cl=Object.freeze({__proto__:null,model:il,show:al});const ll=['%c[Hippy-Vue "3.3.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],ul=new Oc;gn.$document=ul,gn.prototype.$document=ul,gn.$Document=Oc,gn.$Event=qi,gn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},gn.config.isReservedTag=Ui,gn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},gn.compile=ei,gn.registerElement=Ki,F(gn.options.directives,cl),gn.prototype.__patch__=nl,gn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return fe("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=ei(e,{delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return function(e,t,n){let o;return e.$el=t,e.$options.render||(e.$options.render=be),Xt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new an(e,o,R,{before(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e,t)},gn.prototype.$start=function(e,t){var n;si(this),pi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ri=n),Wi.forEach(e=>{gn.component(e.meta.component.name,e.meta.component)}),Ba.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ui(...ll,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();si(new(gn.extend(this.$options))(this.$options))}if(pi(t)&&t(this,n),this.$mount(),"ios"===za.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;const o=new $c("div"),{statusBarHeight:r}=za.Dimensions.screen;za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0);let i=4282431619;if("number"==typeof n.backgroundColor&&({backgroundColor:i}=n),o.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){const t=new $c("img");t.setStyle("width",za.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0)}),o}(this.$options);e&&(this.$el.childNodes.length?this.$el.insertBefore(e,this.$el.childNodes[0]):this.$el.appendChild(e))}pi(e)&&e(this,n)})};let dl=1;gn.component=function(e,t){return t?(v(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},gn.extend=function(e){e=e||{};const t=this,n=t.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];const r=e.name||t.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(t.prototype)).constructor=i,dl+=1,i.cid=dl,i.options=Re(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>ln(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>fn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,z.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=F({},i.options),o[n]=i,i},gn.Native=za,gn.getApp=ai,gn.use((function(){Object.keys(Hi).forEach(e=>{Ki(e,Hi[e])})})),K.devtools&&ce&&ce.emit("init",gn);gn.config._setBeforeRenderToNative=(e,t)=>{pi(e)&&(1===t?ii=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const fl=new Proxy(gn,{construct(e,t){const n=new e(...t);return n}});let pl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,pl=ai(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=l({},n);if(pl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};za.callNativeWithPromise("websocket","connect",r).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,za.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);za.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 t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,pl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];pi(n)&&n(e.data)}},fl.config.silent=!1,fl.config.trimWhitespace=!0,function(e){oi=e}(fl)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/vue3/index.android.js b/framework/voltron/example/assets/jsbundle/vue3/index.android.js index 2717e3d411a..d4b2e90940e 100644 --- a/framework/voltron/example/assets/jsbundle/vue3/index.android.js +++ b/framework/voltron/example/assets/jsbundle/vue3/index.android.js @@ -1,7 +1,22 @@ -!function(e){function t(t){for(var o,n,r=t[0],l=t[1],c=0,s=[];c0===c.indexOf(e))){var i=c.split("/"),s=i[i.length-1],d=s.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+s)}else{var p;d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=a[e];0!==o&&o&&o[1](t),a[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},n.m=e,n.c=o,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},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.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;c(r.push(e),()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)}),destroy(){r=[],t=[""],o=0},go(e,l=!0){const c=this.location,i=e<0?n.back:n.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:n}){const l={direction:o,delta:n,type:a.pop};for(const o of r)o(e,t,l)}(this.location,c,{direction:i,delta:e})},get position(){return o}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t[o]}),i}t.createHippyHistory=p,t.createHippyRouter=function(e){var t;const o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:p(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){function a(e,t){const o=Object.create(null),a=e.split(",");for(let e=0;e!!o[e.toLowerCase()]:e=>!!o[e]}o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return j})),o.d(t,"c",(function(){return x})),o.d(t,"d",(function(){return i})),o.d(t,"e",(function(){return _})),o.d(t,"f",(function(){return T})),o.d(t,"g",(function(){return w})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return u})),o.d(t,"j",(function(){return A})),o.d(t,"k",(function(){return c})),o.d(t,"l",(function(){return v})),o.d(t,"m",(function(){return l})),o.d(t,"n",(function(){return k})),o.d(t,"o",(function(){return d})),o.d(t,"p",(function(){return E})),o.d(t,"q",(function(){return b})),o.d(t,"r",(function(){return I})),o.d(t,"s",(function(){return L})),o.d(t,"t",(function(){return S})),o.d(t,"u",(function(){return C}));const n={},r=/^on[^a-z]/,l=e=>r.test(e),c=e=>e.startsWith("onUpdate:"),i=Object.assign,s=(Object.prototype.hasOwnProperty,Array.isArray),d=e=>"[object Set]"===g(e),p=e=>"[object Date]"===g(e),u=e=>"function"==typeof e,b=e=>"string"==typeof e,y=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,g=e=>f.call(e),m=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},h=/-(\w)/g,j=m(e=>e.replace(h,(e,t)=>t?t.toUpperCase():"")),O=/\B([A-Z])/g,_=m(e=>e.replace(O,"-$1").toLowerCase()),x=m(e=>e.charAt(0).toUpperCase()+e.slice(1)),w=(m(e=>e?"on"+x(e):""),(e,t)=>{for(let o=0;o{const t=parseFloat(e);return isNaN(t)?e:t},C=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};const A=a("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),k=a("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),P="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",E=a(P);function T(e){return!!e||""===e}function I(e,t){if(e===t)return!0;let o=p(e),a=p(t);if(o||a)return!(!o||!a)&&e.getTime()===t.getTime();if(o=y(e),a=y(t),o||a)return e===t;if(o=s(e),a=s(t),o||a)return!(!o||!a)&&function(e,t){if(e.length!==t.length)return!1;let o=!0;for(let a=0;o&&aI(e,t))}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-loader/dist/exportHelper.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,a]of t)o[e]=a;return o}},"./node_modules/vue-router/dist/vue-router.mjs":function(e,t,o){"use strict";o.r(t),o.d(t,"NavigationFailureType",(function(){return Y})),o.d(t,"RouterLink",(function(){return Le})),o.d(t,"RouterView",(function(){return Be})),o.d(t,"START_LOCATION",(function(){return L})),o.d(t,"createMemoryHistory",(function(){return E})),o.d(t,"createRouter",(function(){return He})),o.d(t,"createRouterMatcher",(function(){return W})),o.d(t,"createWebHashHistory",(function(){return T})),o.d(t,"createWebHistory",(function(){return P})),o.d(t,"isNavigationFailure",(function(){return B})),o.d(t,"loadRouteLocation",(function(){return Te})),o.d(t,"matchedRouteKey",(function(){return je})),o.d(t,"onBeforeRouteLeave",(function(){return Ae})),o.d(t,"onBeforeRouteUpdate",(function(){return ke})),o.d(t,"parseQuery",(function(){return ge})),o.d(t,"routeLocationKey",(function(){return xe})),o.d(t,"routerKey",(function(){return _e})),o.d(t,"routerViewLocationKey",(function(){return we})),o.d(t,"stringifyQuery",(function(){return me})),o.d(t,"useLink",(function(){return Ie})),o.d(t,"useRoute",(function(){return Ue})),o.d(t,"useRouter",(function(){return Re})),o.d(t,"viewDepthKey",(function(){return Oe}));var a=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js"); +!function(e){function t(t){for(var o,n,r=t[0],l=t[1],c=0,i=[];c0===c.indexOf(e))){var s=c.split("/"),i=s[s.length-1],d=i.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+i)}else{var p;d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=a[e];0!==o&&o&&o[1](t),a[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},n.m=e,n.c=o,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},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.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;c(r.push(e),()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)}),destroy(){r=[],t=[""],o=0},go(e,l=!0){const c=this.location,s=e<0?n.back:n.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:n}){const l={direction:o,delta:n,type:a.pop};for(const o of r)o(e,t,l)}(this.location,c,{direction:s,delta:e})},get position(){return o}};return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t[o]}),s}t.createHippyHistory=p,t.createHippyRouter=function(e){var t;const o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:p(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){ +/** +* @vue/shared v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +/*! #__NO_SIDE_EFFECTS__ */ +function a(e,t){const o=new Set(e.split(","));return t?e=>o.has(e.toLowerCase()):e=>o.has(e)}o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return r})),o.d(t,"c",(function(){return j})),o.d(t,"d",(function(){return w})),o.d(t,"e",(function(){return s})),o.d(t,"f",(function(){return _})),o.d(t,"g",(function(){return L})),o.d(t,"h",(function(){return x})),o.d(t,"i",(function(){return i})),o.d(t,"j",(function(){return u})),o.d(t,"k",(function(){return C})),o.d(t,"l",(function(){return P})),o.d(t,"m",(function(){return c})),o.d(t,"n",(function(){return v})),o.d(t,"o",(function(){return l})),o.d(t,"p",(function(){return k})),o.d(t,"q",(function(){return d})),o.d(t,"r",(function(){return T})),o.d(t,"s",(function(){return b})),o.d(t,"t",(function(){return y})),o.d(t,"u",(function(){return I})),o.d(t,"v",(function(){return D})),o.d(t,"w",(function(){return S})),o.d(t,"x",(function(){return A}));const n={},r=()=>{},l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),s=Object.assign,i=(Object.prototype.hasOwnProperty,Array.isArray),d=e=>"[object Set]"===m(e),p=e=>"[object Date]"===m(e),u=e=>"function"==typeof e,b=e=>"string"==typeof e,y=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,m=e=>f.call(e),g=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},h=/-(\w)/g,j=g(e=>e.replace(h,(e,t)=>t?t.toUpperCase():"")),O=/\B([A-Z])/g,_=g(e=>e.replace(O,"-$1").toLowerCase()),w=g(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(g(e=>e?"on"+w(e):""),(e,...t)=>{for(let o=0;o{const t=parseFloat(e);return isNaN(t)?e:t},A=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};const C=a("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),k=a("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),P=a("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),E="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",T=a(E);function L(e){return!!e||""===e}function I(e,t){if(e===t)return!0;let o=p(e),a=p(t);if(o||a)return!(!o||!a)&&e.getTime()===t.getTime();if(o=y(e),a=y(t),o||a)return e===t;if(o=i(e),a=i(t),o||a)return!(!o||!a)&&function(e,t){if(e.length!==t.length)return!1;let o=!0;for(let a=0;o&&aI(e,t))}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-loader/dist/exportHelper.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,a]of t)o[e]=a;return o}},"./node_modules/vue-router/dist/vue-router.mjs":function(e,t,o){"use strict";o.r(t),o.d(t,"NavigationFailureType",(function(){return $})),o.d(t,"RouterLink",(function(){return Ie})),o.d(t,"RouterView",(function(){return He})),o.d(t,"START_LOCATION",(function(){return V})),o.d(t,"createMemoryHistory",(function(){return q})),o.d(t,"createRouter",(function(){return Be})),o.d(t,"createRouterMatcher",(function(){return de})),o.d(t,"createWebHashHistory",(function(){return Q})),o.d(t,"createWebHistory",(function(){return J})),o.d(t,"isNavigationFailure",(function(){return te})),o.d(t,"loadRouteLocation",(function(){return Te})),o.d(t,"matchedRouteKey",(function(){return je})),o.d(t,"onBeforeRouteLeave",(function(){return Ce})),o.d(t,"onBeforeRouteUpdate",(function(){return ke})),o.d(t,"parseQuery",(function(){return me})),o.d(t,"routeLocationKey",(function(){return we})),o.d(t,"routerKey",(function(){return _e})),o.d(t,"routerViewLocationKey",(function(){return xe})),o.d(t,"stringifyQuery",(function(){return ge})),o.d(t,"useLink",(function(){return Le})),o.d(t,"useRoute",(function(){return Ne})),o.d(t,"useRouter",(function(){return Re})),o.d(t,"viewDepthKey",(function(){return Oe}));var a=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js"); /*! - * vue-router v4.2.2 - * (c) 2023 Eduardo San Martin Morote + * vue-router v4.4.3 + * (c) 2024 Eduardo San Martin Morote * @license MIT */ -const n="undefined"!=typeof window;function r(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const l=Object.assign;function c(e,t){const o={};for(const a in t){const n=t[a];o[a]=s(n)?n.map(e):e(n)}return o}const i=()=>{},s=Array.isArray;const d=/\/$/;function p(e,t,o="/"){let a,n={},r="",l="";const c=t.indexOf("#");let i=t.indexOf("?");return c=0&&(i=-1),i>-1&&(a=t.slice(0,i),r=t.slice(i+1,c>-1?c:t.length),n=e(r)),c>-1&&(a=a||t.slice(0,c),l=t.slice(c,t.length)),a=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),a=e.split("/"),n=a[a.length-1];".."!==n&&"."!==n||a.push("");let r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+a.slice(r-(r===a.length?1:0)).join("/")}(null!=a?a:t,o),{fullPath:a+(r&&"?")+r+l,path:a,query:n,hash:l}}function u(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function b(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!v(e[o],t[o]))return!1;return!0}function v(e,t){return s(e)?f(e,t):s(t)?f(t,e):e===t}function f(e,t){return s(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}var g,m;!function(e){e.pop="pop",e.push="push"}(g||(g={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(m||(m={}));function h(e){if(!e)if(n){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(d,"")}const j=/^[^#]+#/;function O(e,t){return e.replace(j,"#")+t}const _=()=>({left:window.pageXOffset,top:window.pageYOffset});function x(e){let t;if("el"in e){const o=e.el,a="string"==typeof o&&o.startsWith("#");0;const n="string"==typeof o?a?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=function(e,t){const o=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-o.left-(t.left||0),top:a.top-o.top-(t.top||0)}}(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function w(e,t){return(history.state?history.state.position-t:-1)+e}const S=new Map;let C=()=>location.protocol+"//"+location.host;function A(e,t){const{pathname:o,search:a,hash:n}=t,r=e.indexOf("#");if(r>-1){let t=n.includes(e.slice(r))?e.slice(r).length:1,o=n.slice(t);return"/"!==o[0]&&(o="/"+o),u(o,"")}return u(o,e)+a+n}function k(e,t,o,a=!1,n=!1){return{back:e,current:t,forward:o,replaced:a,position:window.history.length,scroll:n?_():null}}function P(e){const t=function(e){const{history:t,location:o}=window,a={value:A(e,o)},n={value:t.state};function r(a,r,l){const c=e.indexOf("#"),i=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+a:C()+e+a;try{t[l?"replaceState":"pushState"](r,"",i),n.value=r}catch(e){console.error(e),o[l?"replace":"assign"](i)}}return n.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:n,push:function(e,o){const c=l({},n.value,t.state,{forward:e,scroll:_()});r(c.current,c,!0),r(e,l({},k(a.value,e,null),{position:c.position+1},o),!1),a.value=e},replace:function(e,o){r(e,l({},t.state,k(n.value.back,e,n.value.forward,!0),o,{position:n.value.position}),!0),a.value=e}}}(e=h(e)),o=function(e,t,o,a){let n=[],r=[],c=null;const i=({state:r})=>{const l=A(e,location),i=o.value,s=t.value;let d=0;if(r){if(o.value=l,t.value=r,c&&c===i)return void(c=null);d=s?r.position-s.position:0}else a(l);n.forEach(e=>{e(o.value,i,{delta:d,type:g.pop,direction:d?d>0?m.forward:m.back:m.unknown})})};function s(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:_()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){n.push(e);const t=()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);const a=l({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:O.bind(null,e)},t,o);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function E(e=""){let t=[],o=[""],a=0;function n(e){a++,a===o.length||o.splice(a),o.push(e)}const r={location:"",state:{},base:e=h(e),createHref:O.bind(null,e),replace(e){o.splice(a--,1),n(e)},push(e,t){n(e)},listen:e=>(t.push(e),()=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],a=0},go(e,n=!0){const r=this.location,l=e<0?m.back:m.forward;a=Math.max(0,Math.min(a+e,o.length-1)),n&&function(e,o,{direction:a,delta:n}){const r={direction:a,delta:n,type:g.pop};for(const a of t)a(e,o,r)}(this.location,r,{direction:l,delta:e})}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>o[a]}),r}function T(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),P(e)}function I(e){return"string"==typeof e||"symbol"==typeof e}const L={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},V=Symbol("");var Y;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Y||(Y={}));function D(e,t){return l(new Error,{type:e,[V]:!0},t)}function B(e,t){return e instanceof Error&&V in e&&(null==t||!!(e.type&t))}const H={sensitive:!1,strict:!1,start:!0,end:!0},R=/[.+*?^${}()[\]/\\]/g;function U(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function N(e,t){let o=0;const a=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const z={type:0,value:""},F=/[a-zA-Z0-9_]/;function G(e,t,o){const a=function(e,t){const o=l({},H,t),a=[];let n=o.start?"^":"";const r=[];for(const t of e){const e=t.length?[]:[90];o.strict&&!t.length&&(n+="/");for(let a=0;a1&&("*"===c||"+"===c)&&t(`A repeatable param (${s}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:s,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),s="")}function u(){s+=c}for(;i{r(y)}:i}function r(e){if(I(e)){const t=a.get(e);t&&(a.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){let t=0;for(;t=0&&(e.record.path!==o[t].record.path||!J(e,o[t]));)t++;o.splice(t,0,e),e.record.name&&!Q(e)&&a.set(e.record.name,e)}return t=Z({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>n(e)),{addRoute:n,resolve:function(e,t){let n,r,c,i={};if("name"in e&&e.name){if(n=a.get(e.name),!n)throw D(1,{location:e});0,c=n.record.name,i=l(K(t.params,n.keys.filter(e=>!e.optional).map(e=>e.name)),e.params&&K(e.params,n.keys.map(e=>e.name))),r=n.stringify(i)}else if("path"in e)r=e.path,n=o.find(e=>e.re.test(r)),n&&(i=n.parse(r),c=n.record.name);else{if(n=t.name?a.get(t.name):o.find(e=>e.re.test(t.path)),!n)throw D(1,{location:e,currentLocation:t});c=n.record.name,i=l({},t.params,e.params),r=n.stringify(i)}const s=[];let d=n;for(;d;)s.unshift(d.record),d=d.parent;return{name:c,path:r,params:i,matched:s,meta:X(s)}},removeRoute:r,getRoutes:function(){return o},getRecordMatcher:function(e){return a.get(e)}}}function K(e,t){const o={};for(const a of t)a in e&&(o[a]=e[a]);return o}function q(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const a in e.components)t[a]="boolean"==typeof o?o:o[a];return t}function Q(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function X(e){return e.reduce((e,t)=>l(e,t.meta),{})}function Z(e,t){const o={};for(const a in e)o[a]=a in t?t[a]:e[a];return o}function J(e,t){return t.children.some(t=>t===e||J(e,t))}const $=/#/g,ee=/&/g,te=/\//g,oe=/=/g,ae=/\?/g,ne=/\+/g,re=/%5B/g,le=/%5D/g,ce=/%5E/g,ie=/%60/g,se=/%7B/g,de=/%7C/g,pe=/%7D/g,ue=/%20/g;function be(e){return encodeURI(""+e).replace(de,"|").replace(re,"[").replace(le,"]")}function ye(e){return be(e).replace(ne,"%2B").replace(ue,"+").replace($,"%23").replace(ee,"%26").replace(ie,"`").replace(se,"{").replace(pe,"}").replace(ce,"^")}function ve(e){return null==e?"":function(e){return be(e).replace($,"%23").replace(ae,"%3F")}(e).replace(te,"%2F")}function fe(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}function ge(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&ye(e)):[a&&ye(a)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))})}return t}function he(e){const t={};for(const o in e){const a=e[o];void 0!==a&&(t[o]=s(a)?a.map(e=>null==e?null:""+e):null==a?a:""+a)}return t}const je=Symbol(""),Oe=Symbol(""),_e=Symbol(""),xe=Symbol(""),we=Symbol("");function Se(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e,reset:function(){e=[]}}}function Ce(e,t,o){const n=()=>{e[t].delete(o)};Object(a.s)(n),Object(a.r)(n),Object(a.q)(()=>{e[t].add(o)}),e[t].add(o)}function Ae(e){const t=Object(a.m)(je,{}).value;t&&Ce(t,"leaveGuards",e)}function ke(e){const t=Object(a.m)(je,{}).value;t&&Ce(t,"updateGuards",e)}function Pe(e,t,o,a,n){const r=a&&(a.enterCallbacks[n]=a.enterCallbacks[n]||[]);return()=>new Promise((l,c)=>{const i=e=>{var i;!1===e?c(D(4,{from:o,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(D(2,{from:t,to:e})):(r&&a.enterCallbacks[n]===r&&"function"==typeof e&&r.push(e),l())},s=e.call(a&&a.instances[n],t,o,i);let d=Promise.resolve(s);e.length<3&&(d=d.then(i)),d.catch(e=>c(e))})}function Ee(e,t,o,a){const n=[];for(const c of e){0;for(const e in c.components){let i=c.components[e];if("beforeRouteEnter"===t||c.instances[e])if("object"==typeof(l=i)||"displayName"in l||"props"in l||"__vccOpts"in l){const r=(i.__vccOpts||i)[t];r&&n.push(Pe(r,o,a,c,e))}else{let l=i();0,n.push(()=>l.then(n=>{if(!n)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${c.path}"`));const l=r(n)?n.default:n;c.components[e]=l;const i=(l.__vccOpts||l)[t];return i&&Pe(i,o,a,c,e)()}))}}}var l;return n}function Te(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,o)=>{const a=e.components[o];return"function"!=typeof a||"displayName"in a||t.push(a().then(t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${e.path}". Ensure you passed a function that returns a promise.`));const a=r(t)?t.default:t;e.components[o]=a})),t},[])))).then(()=>e)}function Ie(e){const t=Object(a.m)(_e),o=Object(a.m)(xe),n=Object(a.c)(()=>t.resolve(Object(a.D)(e.to))),r=Object(a.c)(()=>{const{matched:e}=n.value,{length:t}=e,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;const l=r.findIndex(b.bind(null,a));if(l>-1)return l;const c=Ve(e[t-2]);return t>1&&Ve(a)===c&&r[r.length-1].path!==c?r.findIndex(b.bind(null,e[t-2])):l}),l=Object(a.c)(()=>r.value>-1&&function(e,t){for(const o in t){const a=t[o],n=e[o];if("string"==typeof a){if(a!==n)return!1}else if(!s(n)||n.length!==a.length||a.some((e,t)=>e!==n[t]))return!1}return!0}(o.params,n.value.params)),c=Object(a.c)(()=>r.value>-1&&r.value===o.matched.length-1&&y(o.params,n.value.params));return{route:n,href:Object(a.c)(()=>n.value.href),isActive:l,isExactActive:c,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Object(a.D)(e.replace)?"replace":"push"](Object(a.D)(e.to)).catch(i):Promise.resolve()}}}const Le=Object(a.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ie,setup(e,{slots:t}){const o=Object(a.v)(Ie(e)),{options:n}=Object(a.m)(_e),r=Object(a.c)(()=>({[Ye(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Ye(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const n=t.default&&t.default(o);return e.custom?n:Object(a.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},n)}}});function Ve(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ye=(e,t,o)=>null!=e?e:null!=t?t:o;function De(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const Be=Object(a.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Object(a.m)(we),r=Object(a.c)(()=>e.route||n.value),c=Object(a.m)(Oe,0),i=Object(a.c)(()=>{let e=Object(a.D)(c);const{matched:t}=r.value;let o;for(;(o=t[e])&&!o.components;)e++;return e}),s=Object(a.c)(()=>r.value.matched[i.value]);Object(a.u)(Oe,Object(a.c)(()=>i.value+1)),Object(a.u)(je,s),Object(a.u)(we,r);const d=Object(a.w)();return Object(a.F)(()=>[d.value,s.value,e.name],([e,t,o],[a,n,r])=>{t&&(t.instances[o]=e,n&&n!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=n.leaveGuards),t.updateGuards.size||(t.updateGuards=n.updateGuards))),!e||!t||n&&b(t,n)&&a||(t.enterCallbacks[o]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const n=r.value,c=e.name,i=s.value,p=i&&i.components[c];if(!p)return De(o.default,{Component:p,route:n});const u=i.props[c],b=u?!0===u?n.params:"function"==typeof u?u(n):u:null,y=Object(a.l)(p,l({},b,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(i.instances[c]=null)},ref:d}));return De(o.default,{Component:y,route:n})||y}}});function He(e){const t=W(e.routes,e),o=e.parseQuery||ge,r=e.stringifyQuery||me,d=e.history;const u=Se(),v=Se(),f=Se(),m=Object(a.B)(L);let h=L;n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const j=c.bind(null,e=>""+e),O=c.bind(null,ve),C=c.bind(null,fe);function A(e,a){if(a=l({},a||m.value),"string"==typeof e){const n=p(o,e,a.path),r=t.resolve({path:n.path},a),c=d.createHref(n.fullPath);return l(n,r,{params:C(r.params),hash:fe(n.hash),redirectedFrom:void 0,href:c})}let n;if("path"in e)n=l({},e,{path:p(o,e.path,a.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];n=l({},e,{params:O(t)}),a.params=O(a.params)}const c=t.resolve(n,a),i=e.hash||"";c.params=j(C(c.params));const s=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(r,l({},e,{hash:(u=i,be(u).replace(se,"{").replace(pe,"}").replace(ce,"^")),path:c.path}));var u;const b=d.createHref(s);return l({fullPath:s,hash:i,query:r===me?he(e.query):e.query||{}},c,{redirectedFrom:void 0,href:b})}function k(e){return"string"==typeof e?p(o,e,m.value.path):l({},e)}function P(e,t){if(h!==e)return D(8,{from:t,to:e})}function E(e){return V(e)}function T(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let a="function"==typeof o?o(e):o;return"string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=k(a):{path:a},a.params={}),l({query:e.query,hash:e.hash,params:"path"in a?{}:e.params},a)}}function V(e,t){const o=h=A(e),a=m.value,n=e.state,c=e.force,i=!0===e.replace,s=T(o);if(s)return V(l(k(s),{state:"object"==typeof s?l({},n,s.state):n,force:c,replace:i}),t||o);const d=o;let p;return d.redirectedFrom=t,!c&&function(e,t,o){const a=t.matched.length-1,n=o.matched.length-1;return a>-1&&a===n&&b(t.matched[a],o.matched[n])&&y(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(r,a,o)&&(p=D(16,{to:d,from:a}),X(a,a,!0,!1)),(p?Promise.resolve(p):R(d,a)).catch(e=>B(e)?B(e,2)?e:Q(e):q(e,d,a)).then(e=>{if(e){if(B(e,2))return V(l({replace:i},k(e.to),{state:"object"==typeof e.to?l({},n,e.to.state):n,force:c}),t||d)}else e=N(d,a,!0,i,n);return U(d,a,e),e})}function Y(e,t){const o=P(e,t);return o?Promise.reject(o):Promise.resolve()}function H(e){const t=$.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function R(e,t){let o;const[a,n,r]=function(e,t){const o=[],a=[],n=[],r=Math.max(t.matched.length,e.matched.length);for(let l=0;lb(e,r))?a.push(r):o.push(r));const c=e.matched[l];c&&(t.matched.find(e=>b(e,c))||n.push(c))}return[o,a,n]}(e,t);o=Ee(a.reverse(),"beforeRouteLeave",e,t);for(const n of a)n.leaveGuards.forEach(a=>{o.push(Pe(a,e,t))});const l=Y.bind(null,e,t);return o.push(l),te(o).then(()=>{o=[];for(const a of u.list())o.push(Pe(a,e,t));return o.push(l),te(o)}).then(()=>{o=Ee(n,"beforeRouteUpdate",e,t);for(const a of n)a.updateGuards.forEach(a=>{o.push(Pe(a,e,t))});return o.push(l),te(o)}).then(()=>{o=[];for(const a of e.matched)if(a.beforeEnter&&!t.matched.includes(a))if(s(a.beforeEnter))for(const n of a.beforeEnter)o.push(Pe(n,e,t));else o.push(Pe(a.beforeEnter,e,t));return o.push(l),te(o)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),o=Ee(r,"beforeRouteEnter",e,t),o.push(l),te(o))).then(()=>{o=[];for(const a of v.list())o.push(Pe(a,e,t));return o.push(l),te(o)}).catch(e=>B(e,8)?e:Promise.reject(e))}function U(e,t,o){for(const a of f.list())H(()=>a(e,t,o))}function N(e,t,o,a,r){const c=P(e,t);if(c)return c;const i=t===L,s=n?history.state:{};o&&(a||i?d.replace(e.fullPath,l({scroll:i&&s&&s.scroll},r)):d.push(e.fullPath,r)),m.value=e,X(e,t,o,i),Q()}let M;function z(){M||(M=d.listen((e,t,o)=>{if(!ee.listening)return;const a=A(e),r=T(a);if(r)return void V(l(r,{replace:!0}),a).catch(i);h=a;const c=m.value;var s,p;n&&(s=w(c.fullPath,o.delta),p=_(),S.set(s,p)),R(a,c).catch(e=>B(e,12)?e:B(e,2)?(V(e.to,a).then(e=>{B(e,20)&&!o.delta&&o.type===g.pop&&d.go(-1,!1)}).catch(i),Promise.reject()):(o.delta&&d.go(-o.delta,!1),q(e,a,c))).then(e=>{(e=e||N(a,c,!1))&&(o.delta&&!B(e,8)?d.go(-o.delta,!1):o.type===g.pop&&B(e,20)&&d.go(-1,!1)),U(a,c,e)}).catch(i)}))}let F,G=Se(),K=Se();function q(e,t,o){Q(e);const a=K.list();return a.length?a.forEach(a=>a(e,t,o)):console.error(e),Promise.reject(e)}function Q(e){return F||(F=!e,z(),G.list().forEach(([t,o])=>e?o(e):t()),G.reset()),e}function X(t,o,r,l){const{scrollBehavior:c}=e;if(!n||!c)return Promise.resolve();const i=!r&&function(e){const t=S.get(e);return S.delete(e),t}(w(t.fullPath,0))||(l||!r)&&history.state&&history.state.scroll||null;return Object(a.n)().then(()=>c(t,o,i)).then(e=>e&&x(e)).catch(e=>q(e,t,o))}const Z=e=>d.go(e);let J;const $=new Set,ee={currentRoute:m,listening:!0,addRoute:function(e,o){let a,n;return I(e)?(a=t.getRecordMatcher(e),n=o):n=e,t.addRoute(n,a)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:A,options:e,push:E,replace:function(e){return E(l(k(e),{replace:!0}))},go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:u.add,beforeResolve:v.add,afterEach:f.add,onError:K.add,isReady:function(){return F&&m.value!==L?Promise.resolve():new Promise((e,t)=>{G.add([e,t])})},install(e){e.component("RouterLink",Le),e.component("RouterView",Be),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(a.D)(m)}),n&&!J&&m.value===L&&(J=!0,E(d.location).catch(e=>{0}));const t={};for(const e in L)t[e]=Object(a.c)(()=>m.value[e]);e.provide(_e,this),e.provide(xe,Object(a.v)(t)),e.provide(we,m);const o=e.unmount;$.add(e),e.unmount=function(){$.delete(e),$.size<1&&(h=L,M&&M(),M=null,m.value=L,J=!1,F=!1),o()}}};function te(e){return e.reduce((e,t)=>e.then(()=>H(t)),Promise.resolve())}return ee}function Re(){return Object(a.m)(_e)}function Ue(){return Object(a.m)(xe)}},"./node_modules/vue/dist/vue.runtime.esm-bundler.js":function(e,t,o){"use strict";o.d(t,"v",(function(){return a.reactive})),o.d(t,"w",(function(){return a.ref})),o.d(t,"B",(function(){return a.shallowRef})),o.d(t,"D",(function(){return a.unref})),o.d(t,"o",(function(){return a.normalizeClass})),o.d(t,"p",(function(){return a.normalizeStyle})),o.d(t,"C",(function(){return a.toDisplayString})),o.d(t,"a",(function(){return a.Fragment})),o.d(t,"b",(function(){return a.KeepAlive})),o.d(t,"c",(function(){return a.computed})),o.d(t,"d",(function(){return a.createBlock})),o.d(t,"e",(function(){return a.createCommentVNode})),o.d(t,"f",(function(){return a.createElementBlock})),o.d(t,"g",(function(){return a.createElementVNode})),o.d(t,"h",(function(){return a.createTextVNode})),o.d(t,"i",(function(){return a.createVNode})),o.d(t,"j",(function(){return a.defineComponent})),o.d(t,"k",(function(){return a.getCurrentInstance})),o.d(t,"l",(function(){return a.h})),o.d(t,"m",(function(){return a.inject})),o.d(t,"n",(function(){return a.nextTick})),o.d(t,"q",(function(){return a.onActivated})),o.d(t,"r",(function(){return a.onDeactivated})),o.d(t,"s",(function(){return a.onUnmounted})),o.d(t,"t",(function(){return a.openBlock})),o.d(t,"u",(function(){return a.provide})),o.d(t,"x",(function(){return a.renderList})),o.d(t,"y",(function(){return a.renderSlot})),o.d(t,"z",(function(){return a.resolveComponent})),o.d(t,"A",(function(){return a.resolveDynamicComponent})),o.d(t,"F",(function(){return a.watch})),o.d(t,"G",(function(){return a.withCtx})),o.d(t,"H",(function(){return a.withDirectives})),o.d(t,"E",(function(){return x})),o.d(t,"I",(function(){return _}));var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),n=o("./node_modules/@vue/shared/dist/shared.esm-bundler.js");"undefined"!=typeof document&&document;"undefined"!=typeof HTMLElement&&HTMLElement;const r=(e,{slots:t})=>Object(a.h)(a.BaseTransition,s(e),t);r.displayName="Transition";const l={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},c=(r.props=Object(n.d)({},a.BaseTransitionPropsValidators,l),(e,t=[])=>{Object(n.h)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),i=e=>!!e&&(Object(n.h)(e)?e.some(e=>e.length>1):e.length>1);function s(e){const t={};for(const o in e)o in l||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:a,duration:r,enterFromClass:s=o+"-enter-from",enterActiveClass:y=o+"-enter-active",enterToClass:f=o+"-enter-to",appearFromClass:g=s,appearActiveClass:m=y,appearToClass:j=f,leaveFromClass:O=o+"-leave-from",leaveActiveClass:_=o+"-leave-active",leaveToClass:x=o+"-leave-to"}=e,w=function(e){if(null==e)return null;if(Object(n.l)(e))return[d(e.enter),d(e.leave)];{const t=d(e);return[t,t]}}(r),S=w&&w[0],C=w&&w[1],{onBeforeEnter:A,onEnter:k,onEnterCancelled:P,onLeave:E,onLeaveCancelled:T,onBeforeAppear:I=A,onAppear:L=k,onAppearCancelled:V=P}=t,Y=(e,t,o)=>{u(e,t?j:f),u(e,t?m:y),o&&o()},D=(e,t)=>{e._isLeaving=!1,u(e,O),u(e,x),u(e,_),t&&t()},B=e=>(t,o)=>{const n=e?L:k,r=()=>Y(t,e,o);c(n,[t,r]),b(()=>{u(t,e?g:s),p(t,e?j:f),i(n)||v(t,a,S,r)})};return Object(n.d)(t,{onBeforeEnter(e){c(A,[e]),p(e,s),p(e,y)},onBeforeAppear(e){c(I,[e]),p(e,g),p(e,m)},onEnter:B(!1),onAppear:B(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>D(e,t);p(e,O),h(),p(e,_),b(()=>{e._isLeaving&&(u(e,O),p(e,x),i(E)||v(e,a,C,o))}),c(E,[e,o])},onEnterCancelled(e){Y(e,!1),c(P,[e])},onAppearCancelled(e){Y(e,!0),c(V,[e])},onLeaveCancelled(e){D(e),c(T,[e])}})}function d(e){return Object(n.u)(e)}function p(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e._vtc||(e._vtc=new Set)).add(t)}function u(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const{_vtc:o}=e;o&&(o.delete(t),o.size||(e._vtc=void 0))}function b(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let y=0;function v(e,t,o,a){const n=e._endId=++y,r=()=>{n===e._endId&&a()};if(o)return setTimeout(r,o);const{type:l,timeout:c,propCount:i}=f(e,t);if(!l)return a();const s=l+"end";let d=0;const p=()=>{e.removeEventListener(s,u),r()},u=t=>{t.target===e&&++d>=i&&p()};setTimeout(()=>{d(o[e]||"").split(", "),n=a("transitionDelay"),r=a("transitionDuration"),l=g(n,r),c=a("animationDelay"),i=a("animationDuration"),s=g(c,i);let d=null,p=0,u=0;"transition"===t?l>0&&(d="transition",p=l,u=r.length):"animation"===t?s>0&&(d="animation",p=s,u=i.length):(p=Math.max(l,s),d=p>0?l>s?"transition":"animation":null,u=d?"transition"===d?r.length:i.length:0);return{type:d,timeout:p,propCount:u,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(a("transitionProperty").toString())}}function g(e,t){for(;e.lengthm(t)+m(e[o])))}function m(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function h(){return document.body.offsetHeight}const j=["ctrl","shift","alt","meta"],O={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>j.some(o=>e[o+"Key"]&&!t.includes(o))},_=(e,t)=>(o,...a)=>{for(let e=0;e{w(e,!1)}):w(e,t))},beforeUnmount(e,{value:t}){w(e,t)}};function w(e,t){e.style.display=t?e._vod:"none"}},"./node_modules/webpack/buildin/global.js":function(e,t,o){e.exports=o("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,o){"use strict";var a=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var n=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=Object(n.defineComponent)({name:"App",setup(){const e=Object(r.useRouter)(),t=Object(r.useRoute)(),o=Object(n.ref)(""),a=Object(n.ref)(0),l=Object(n.ref)([{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]);return{activatedTab:a,backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC",currentRoute:t,subTitle:o,tabs:l,goBack:()=>{e.back()},navigateTo:(t,o)=>{o!==a.value&&(a.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const i=o.n(c)()(l,[["render",function(e,t,o,n,r,l){const c=Object(a.z)("router-view");return Object(a.t)(),Object(a.f)("div",{id:"root"},[Object(a.g)("div",{id:"header"},[Object(a.g)("div",{class:"left-title"},[Object(a.H)(Object(a.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},null,8,["src"]),[[a.E,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(a.t)(),Object(a.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(a.e)("v-if",!0)]),Object(a.g)("label",{class:"title"},Object(a.C)(e.subTitle),1)]),Object(a.g)("div",{class:"body-container",onClick:Object(a.I)(()=>{},["stop"])},[Object(a.e)(" if you don't need keep-alive, just use '' "),Object(a.i)(c,null,{default:Object(a.G)(({Component:e,route:t})=>[(Object(a.t)(),Object(a.d)(a.b,null,[(Object(a.t)(),Object(a.d)(Object(a.A)(e),{key:t.path}))],1024))]),_:1})],8,["onClick"]),Object(a.g)("div",{class:"bottom-tabs"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tabs,(t,o)=>(Object(a.t)(),Object(a.f)("div",{key:"tab-"+o,class:Object(a.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(a.I)(a=>e.navigateTo(t,o),["stop"])},[Object(a.g)("span",{class:"bottom-tab-text"},Object(a.C)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=i},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return i})),o.d(t,"b",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"f",(function(){return a})),o.d(t,"g",(function(){return d})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return p}));const a=t=>e.getTurboModule("demoTurbo").getString(t),n=t=>e.getTurboModule("demoTurbo").getNum(t),r=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),c=t=>e.getTurboModule("demoTurbo").getObject(t),i=t=>e.getTurboModule("demoTurbo").getArray(t),s=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),d=()=>e.getTurboModule("demoTurbo").getTurboConfig(),p=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("../../packages/hippy-vue-next/dist/index.js"),a=o("./src/app.vue"),n=o("./src/routes.ts"),r=o("./src/util.ts");e.Hippy.on("uncaughtException",e=>{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const l=Object(t.createApp)(a.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0}),c=Object(n.a)();l.use(c),t.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(t.setScreenSize)({width:e.width,height:e.height})});l.$start().then(({superProps:e,rootViewId:o})=>{Object(r.b)({superProps:e,rootViewId:o}),c.push("/"),t.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),l.mount("#root")})}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return ht}));var a=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var r=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),l=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)(!1);Object(r.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-button-Deactivated")});return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:()=>{e.value=!e.value},onTouchBtnStart:e=>{console.log("onBtnTouchDown",e)},onTouchBtnMove:e=>{console.log("onBtnTouchMove",e)},onTouchBtnEnd:e=>{console.log("onBtnTouchEnd",e)},onClickViewOnce:()=>{o.value=!o.value}}}}),c=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),i=o.n(c);var s=i()(l,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"button-demo"},[Object(n.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(n.g)("button",{class:Object(n.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(n.I)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.I)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.I)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(n.t)(),Object(n.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(n.t)(),Object(n.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(n.H)(Object(n.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[n.E,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),d=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=o.n(d);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function b(e){for(var t=1;th},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(r.toRefs)(e),o=Object(r.ref)(null),a=Object(r.ref)(t.value);let n=0,l=0;Object(r.watch)(t,e=>{a.value=e});return{scrollOffsetY:e.positionY,demo1Style:h,ripple1:o,onLayout:()=>{o.value&&y.Native.measureInAppWindow(o.value).then(e=>{n=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-n,t.clientY+a.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var O=i()(j,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"ripple1",style:Object(n.p)(e.wrapperStyle),nativeBackgroundAndroid:m({},e.nativeBackgroundAndroid),onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),onTouchcancel:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[Object(n.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const _=e=>{console.log("onScroll",e)},x=e=>{console.log("onMomentumScrollBegin",e)},w=e=>{console.log("onMomentumScrollEnd",e)},S=e=>{console.log("onScrollBeginDrag",e)},C=e=>{console.log("onScrollEndDrag",e)};var A=Object(r.defineComponent)({components:{DemoRippleDiv:O},setup(){const e=Object(r.ref)(0),t=Object(r.ref)(null);return Object(r.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(r.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+f.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+f.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"},Native:y.Native,offsetY:e,onScroll:_,onMomentumScrollBegin:x,onMomentumScrollEnd:w,onScrollBeginDrag:S,onScrollEndDrag:C,onOuterScroll:t=>{e.value=t.offsetY}}}});o("./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css");var k=i()(A,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("demo-ripple-div");return Object(n.t)(),Object(n.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(n.g)("div",null,["ios"!==e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0},[Object(n.g)("label",null,"水波纹效果: "),Object(n.g)("div",{style:Object(n.p)(b(b({},e.imgRectangle),e.imgRectangleExtra))},[Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(n.G)(()=>[Object(n.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(n.G)(()=>[Object(n.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(n.G)(()=>[Object(n.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"背景图效果:"),Object(n.g)("div",{style:Object(n.p)(e.demo1Style),accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(n.g)("label",null,"渐变色效果:"),Object(n.g)("div",{class:"div-demo-1-1"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(n.g)("label",null,"Transform"),Object(n.g)("div",{class:"div-demo-transform"},[Object(n.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(n.g)("label",null,"水平滚动:"),Object(n.g)("div",{ref:"demo2",class:"div-demo-2",bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1,onScroll:t[0]||(t[0]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[1]||(t[1]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[2]||(t[2]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[3]||(t[3]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[4]||(t[4]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[Object(n.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(n.g)("div",{class:"display-flex flex-row"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])],544),Object(n.g)("label",null,"垂直滚动:"),Object(n.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(n.g)("div",{class:"display-flex flex-column"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var P=Object(r.defineComponent)({components:{AsyncComponentFromLocal:Object(r.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-local.vue"))),AsyncComponentFromHttp:Object(r.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-http.vue")))},setup(){const e=Object(r.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o("./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css");var E=i()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),i=Object(n.z)("AsyncComponentFromHttp");return Object(n.t)(),Object(n.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(n.I)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(n.g)("div",{class:"import-btn"},[Object(n.g)("p",null,"点我异步加载")]),e.loaded?(Object(n.t)(),Object(n.f)("div",{key:0,class:"async-com-wrapper"},[Object(n.i)(c,{class:"async-component-outer-local"}),Object(n.i)(i)])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var T=Object(r.defineComponent)({setup(){const e=Object(r.ref)("https://hippyjs.org"),t=Object(r.ref)("https://hippyjs.org"),o=Object(r.ref)(null),a=Object(r.ref)(null),n=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":y.Native?100:"100vh"},input:o,iframe:a,onLoad:o=>{let{url:n}=o;void 0===n&&a.value&&(n=a.value.src),n&&n!==e.value&&(t.value=n)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&n(o.value))},goToUrl:n,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:a}=e;console.log("onLoadEnd",t,o,a)}}}});o("./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css");var I=i()(T,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"iframe-demo",style:Object(n.p)(e.iframeStyle)},[Object(n.g)("label",null,"地址栏:"),Object(n.g)("input",{id:"address",ref:"input",name:"targetUrl",returnKeyType:"go",value:e.displayUrl,"on:endEditing":t[0]||(t[0]=(...t)=>e.goToUrl&&e.goToUrl(...t)),onKeyup:t[1]||(t[1]=(...t)=>e.onKeyUp&&e.onKeyUp(...t))},null,40,["value"]),Object(n.g)("iframe",{id:"iframe",ref:e.iframe,src:e.targetUrl,method:"get",onLoad:t[2]||(t[2]=(...t)=>e.onLoad&&e.onLoad(...t)),"on:loadStart":t[3]||(t[3]=(...t)=>e.onLoadStart&&e.onLoadStart(...t)),"on:loadEnd":t[4]||(t[4]=(...t)=>e.onLoadEnd&&e.onLoadEnd(...t))},null,40,["src"])],4)}]]);var L=o("./src/assets/hippyLogoWhite.png"),V=o.n(L),Y=Object(r.defineComponent)({setup(){const e=Object(r.ref)({});return{defaultImage:f.a,hippyLogoImage:V.a,gifLoadResult:e,onTouchEnd:e=>{console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onTouchMove:e=>{console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchStart:e=>{console.log("onTouchDown",e),e.stopPropagation()},onLoad:t=>{console.log("onLoad",t);const{width:o,height:a,url:n}=t;e.value={width:o,height:a,url:n}}}}});o("./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css");var D=i()(Y,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-img"},[Object(n.g)("div",{id:"demo-img-container"},[Object(n.g)("label",null,"Contain:"),Object(n.g)("img",{alt:"",src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage,class:"image contain",onTouchstart:t[0]||(t[0]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[1]||(t[1]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},null,40,["placeholder"]),Object(n.g)("label",null,"Cover:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover"},null,8,["placeholder"]),Object(n.g)("label",null,"Center:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image center"},null,8,["placeholder"]),Object(n.g)("label",null,"CapInsets:"),Object(n.g)("img",{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover",capInsets:{top:50,left:50,bottom:50,right:50}},null,8,["placeholder"]),Object(n.g)("label",null,"TintColor:"),Object(n.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(n.g)("label",null,"Gif:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",class:"image cover",onLoad:t[3]||(t[3]=(...t)=>e.onLoad&&e.onLoad(...t))},null,40,["placeholder"]),Object(n.g)("div",{class:"img-result"},[Object(n.g)("p",null,"Load Result: "+Object(n.C)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const B=e=>{e.stopPropagation()},H=e=>{console.log(e.value)},R=e=>{console.log("onKeyboardWillShow",e)},U=()=>{console.log("onKeyboardWillHide")};var N=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(""),a=Object(r.ref)(""),n=Object(r.ref)(!1),l=()=>{if(e.value){const t=e.value;if(t.childNodes.length){let e=t.childNodes;return e=e.filter(e=>"input"===e.tagName),e}}return[]};Object(r.onMounted)(()=>{Object(r.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:a,isFocused:n,blur:e=>{e.stopPropagation(),t.value&&t.value.blur()},clearTextContent:()=>{o.value=""},focus:e=>{e.stopPropagation(),t.value&&t.value.focus()},blurAllInput:()=>{const e=l();e.length&&e.map(e=>(e.blur(),!0))},onKeyboardWillShow:R,onKeyboardWillHide:U,stopPropagation:B,textChange:H,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onBlur")},onFocus:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onFocus")}}}});o("./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css");var M=i()(N,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(n.I)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(n.g)("label",null,"文本:"),Object(n.g)("input",{ref:"input",placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0,class:"input",value:e.text,onChange:t[0]||(t[0]=t=>e.text=t.value),onClick:t[1]||(t[1]=(...t)=>e.stopPropagation&&e.stopPropagation(...t)),"on:keyboardWillShow":t[2]||(t[2]=(...t)=>e.onKeyboardWillShow&&e.onKeyboardWillShow(...t)),"on:keyboardWillHide":t[3]||(t[3]=(...t)=>e.onKeyboardWillHide&&e.onKeyboardWillHide(...t)),onBlur:t[4]||(t[4]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[5]||(t[5]=(...t)=>e.onFocus&&e.onFocus(...t))},null,40,["value"]),Object(n.g)("div",null,[Object(n.g)("span",null,"文本内容为:"),Object(n.g)("span",null,Object(n.C)(e.text),1)]),Object(n.g)("div",null,[Object(n.g)("span",null,Object(n.C)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(n.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(n.I)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(n.g)("span",null,"清空文本内容")]),Object(n.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(n.I)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(n.g)("span",null,"Focus")]),Object(n.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(n.I)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(n.g)("span",null,"Blur")]),Object(n.g)("label",null,"数字:"),Object(n.g)("input",{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number",class:"input",onChange:t[9]||(t[9]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[10]||(t[10]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"密码:"),Object(n.g)("input",{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password",class:"input",onChange:t[11]||(t[11]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[12]||(t[12]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"文本(限制5个字符):"),Object(n.g)("input",{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符",class:"input",onChange:t[13]||(t[13]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[14]||(t[14]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32)],512)}],["__scopeId","data-v-ebfef7c0"]]);const z=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],F=e=>{console.log("onAppear",e)},G=e=>{console.log("onDisappear",e)},W=e=>{console.log("onWillAppear",e)},K=e=>{console.log("onWillDisappear",e)},q=e=>{console.log("momentumScrollBegin",e)},Q=e=>{console.log("momentumScrollEnd",e)},X=e=>{console.log("onScrollBeginDrag",e)},Z=e=>{console.log("onScrollEndDrag",e)};var J=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)([]),o=Object(r.ref)(null),a=Object(r.ref)(!1);let n=!1;let l=!1;return Object(r.onMounted)(()=>{n=!1,t.value=[...z]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:a,Platform:y.Native.Platform,onAppear:F,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:G,onEndReached:async o=>{if(console.log("endReached",o),n)return;const a=t.value;n=!0,e.value="Loading now...",t.value=[...a,[{style:100}]];const r=await(async()=>new Promise(e=>{setTimeout(()=>e(z),600)}))();t.value=[...a,...r],n=!1},onWillAppear:W,onWillDisappear:K,changeDirection:()=>{a.value=!a.value},onScroll:e=>{console.log("onScroll",e.offsetY),e.offsetY<=0?l||(l=!0,console.log("onTopReached")):l=!1},onMomentumScrollBegin:q,onMomentumScrollEnd:Q,onScrollBeginDrag:X,onScrollEndDrag:Z}}});o("./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css");var $=i()(J,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-list"},[Object(n.g)("ul",{id:"list",ref:"list",style:Object(n.p)(e.horizontal&&{height:50,flex:0}),horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3,"on:endReached":t[0]||(t[0]=(...t)=>e.onEndReached&&e.onEndReached(...t)),onDelete:t[1]||(t[1]=(...t)=>e.onDelete&&e.onDelete(...t)),onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[3]||(t[3]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[4]||(t[4]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[5]||(t[5]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[6]||(t[6]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.f)("li",{key:o,class:Object(n.o)(e.horizontal&&"item-horizontal-style"),type:t.style,sticky:1===o,onAppear:t=>e.onAppear(o),onDisappear:t=>e.onDisappear(o),"on:willAppear":t=>e.onWillAppear(o),"on:willDisappear":t=>e.onWillDisappear(o)},[1===t.style?(Object(n.t)(),Object(n.f)("div",{key:0,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.C)(o+": Style 1 UI"),1)])])):2===t.style?(Object(n.t)(),Object(n.f)("div",{key:1,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.C)(o+": Style 2 UI"),1)])])):5===t.style?(Object(n.t)(),Object(n.f)("div",{key:2,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.C)(o+": Style 5 UI"),1)])])):(Object(n.t)(),Object(n.f)("div",{key:3,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{id:"loading"},Object(n.C)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(n.t)(),Object(n.f)("div",{key:4,class:"separator-line"})):Object(n.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},onClick:t[7]||(t[7]=(...t)=>e.changeDirection&&e.changeDirection(...t))},[Object(n.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(n.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)(0),o=Object(r.ref)({numberOfLines:2,ellipsizeMode:"tail"}),a=Object(r.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),n=Object(r.ref)("simple");return{img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",labelTouchStatus:e,textMode:o,textShadow:a,textShadowIndex:t,Platform:y.Native.Platform,breakStrategy:n,onTouchTextEnd:t=>{e.value="touch end",console.log("onTextTouchEnd",t),console.log(t)},onTouchTextMove:t=>{e.value="touch move",console.log("onTextTouchMove",t),console.log(t)},onTouchTextStart:t=>{e.value="touch start",console.log("onTextTouchDown",t)},decrementLine:()=>{o.value.numberOfLines>1&&(o.value.numberOfLines-=1)},incrementLine:()=>{o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:e=>{o.value.ellipsizeMode=e},changeTextShadow:()=>{a.value.textShadowOffsetX=t.value%2==1?10:1,a.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{n.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var te=i()(ee,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"p-demo"},[Object(n.g)("div",null,[Object(n.g)("label",null,"不带样式:"),Object(n.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(n.I)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.I)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.I)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(n.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(n.C)(e.labelTouchStatus),1),Object(n.g)("label",null,"颜色:"),Object(n.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(n.g)("label",null,"尺寸:"),Object(n.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(n.g)("label",null,"粗体:"),Object(n.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(n.g)("label",null,"下划线:"),Object(n.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(n.g)("label",null,"删除线:"),Object(n.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(n.g)("label",null,"自定义字体:"),Object(n.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(n.g)("label",null,"文字阴影:"),Object(n.g)("p",{class:"p-demo-7 p-demo-content",style:Object(n.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(n.g)("label",null,"文本字符间距"),Object(n.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(n.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(n.g)("label",null,"字体 style:"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(n.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(n.g)("p",null,"font-style: [not set]")]),Object(n.g)("label",null,"numberOfLines="+Object(n.C)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(n.C)(e.textMode.ellipsizeMode),1),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(n.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(n.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(n.C)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(n.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(n.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(n.g)("span",null,"加一行")]),Object(n.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(n.g)("span",null,"减一行")])]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(n.g)("span",null,"clip")]),Object(n.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(n.g)("span",null,"head")]),Object(n.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(n.g)("span",null,"middle")]),Object(n.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(n.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.C)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"p-demo-content"},[Object(n.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(n.C)(e.longText),9,["break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(n.I)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(n.I)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(n.I)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"vertical-align"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字")])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"tint-color & background-color"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"margin"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(r.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var ae=i()(oe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"offset-shadow-demo-content-android"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(r.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:e=>{console.log(e)},changeBreakStrategy:e=>{t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var re=i()(ne,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-textarea"},[Object(n.g)("label",null,"多行文本:"),Object(n.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=t=>e.content=t.value),"on:contentSizeChange":t[1]||(t[1]=(...t)=>e.contentSizeChange&&e.contentSizeChange(...t))},null,40,["value"]),Object(n.g)("div",{class:"output-container"},[Object(n.g)("p",{class:"output"}," 输入的文本为:"+Object(n.C)(e.content),1)]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.C)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1},[Object(n.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o("./src/components/demo/demoTurbo.ts"),ce=Object(r.defineComponent)({setup(){let e=null;const t=Object(r.ref)("");return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:async o=>{if("nativeWithPromise"===o)t.value=await Object(le.h)("aaa");else if("getTurboConfig"===o)e=Object(le.g)(),t.value="获取到config对象";else if("printTurboConfig"===o){var a;t.value=Object(le.i)(null!==(a=e)&&void 0!==a?a:Object(le.g)())}else if("getInfo"===o){var n;t.value=(null!==(n=e)&&void 0!==n?n:Object(le.g)()).getInfo()}else if("setInfo"===o){var r;(null!==(r=e)&&void 0!==r?r:Object(le.g)()).setInfo("Hello World"),t.value="设置config信息成功"}else{const e={getString:()=>Object(le.f)("123"),getNum:()=>Object(le.d)(1024),getBoolean:()=>Object(le.b)(!0),getMap:()=>Object(le.c)(new Map([["a","1"],["b","2"]])),getObject:()=>Object(le.e)({c:"3",d:"4"}),getArray:()=>Object(le.a)(["a","b","c"])};t.value=e[o]()}}}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var ie=i()(ce,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"demo-turbo"},[Object(n.g)("span",{class:"result"},Object(n.C)(e.result),1),Object(n.g)("ul",{style:{flex:"1"}},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.funList,t=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"cell"},[Object(n.g)("div",{class:"contentView"},[Object(n.g)("div",{class:"func-info"},[Object(n.g)("span",{numberOfLines:0},"函数名:"+Object(n.C)(t),1)]),Object(n.g)("span",{class:"action-button",onClick:Object(n.I)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let se=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{se&&1===se.readyState&&se.close()};var be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null);return{output:de,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{ue(),se=new WebSocket(e),se.onopen=()=>{var e;return pe("[Opened] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onclose=()=>{var e;return pe("[Closed] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onerror=e=>{pe("[Error] "+e.reason)},se.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),se&&se.send(e)})(e)})}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var ye={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:ae},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:s},demoImg:{name:"img 组件",component:D},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:I},demoWebSocket:{name:"WebSocket",component:i()(be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"websocket-demo"},[Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Url: "),Object(n.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(n.g)("div",{class:"row"},[Object(n.g)("button",{onClick:t[0]||(t[0]=Object(n.I)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(n.g)("span",null,"Connect")]),Object(n.g)("button",{onClick:t[1]||(t[1]=Object(n.I)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(n.g)("span",null,"Disconnect")])])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Message: "),Object(n.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(n.g)("button",{onClick:t[2]||(t[2]=Object(n.I)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(n.g)("span",null,"Send")])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Log: "),Object(n.g)("div",{class:"output fullscreen"},[Object(n.g)("div",null,[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.output,(e,t)=>(Object(n.t)(),Object(n.f)("p",{key:t},Object(n.C)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:E},demoTurbo:{name:"Turbo",component:ie}};var ve=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(0),o=Object(r.ref)(0);Object(r.onMounted)(()=>{o.value=y.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const a=t.touches[0].clientX-40;console.log("touchdown x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const a=t.touches[0].clientX-40;console.log("touchmove x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var fe=i()(ve,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"set-native-props-demo"},[Object(n.g)("label",null,"setNativeProps实现拖动效果"),Object(n.g)("div",{class:"native-demo-1-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(n.I)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.I)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(n.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(n.g)("div",{class:"splitter"}),Object(n.g)("label",null,"普通渲染实现拖动效果"),Object(n.g)("div",{class:"native-demo-2-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(n.I)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(n.I)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(n.g)("div",{class:"native-demo-2-point",style:Object(n.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const ge={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var me=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:ge})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var he=i()(me,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(n.G)(()=>[Object(n.g)("div",{class:"color-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);const je={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}};var Oe=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(r.ref)(null);return Object(r.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var _e=i()(Oe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(n.G)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const xe={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},we={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se=Object(r.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(r.toRefs)(e),o=Object(r.ref)(""),a=Object(r.ref)(null);return Object(r.watch)(t,e=>{switch(e){case"horizon":o.value=xe;break;case"vertical":o.value=we;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(r.onMounted)(()=>{e.onRef&&e.onRef(a.value)}),{loopActions:o,animationLoop:a}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Ce=i()(Se,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(n.G)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const Ae={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ke={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Pe=Object(r.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(r.ref)(null),o=Object(r.ref)({face:Ae,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),{isChanged:a}=Object(r.toRefs)(e);return Object(r.watch)(a,(e,a)=>{!a&&e?(console.log("changed to face2"),o.value.face=ke):a&&!e&&(console.log("changed to face1"),o.value.face=Ae),setTimeout(()=>{t.value&&t.value.start()},10)}),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:()=>{console.log("animation-start callback")},animationEnd:()=>{console.log("animation-end callback")},animationRepeat:()=>{console.log("animation-repeat callback")},animationCancel:()=>{console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ee=i()(Pe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(n.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Te=Object(r.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Ie=i()(Te,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Le=Object(r.defineComponent)({components:{Loop:Ce,colorComponent:he,CubicBezier:_e},setup(){const e=Object(r.ref)(!0),t=Object(r.ref)(!0),o=Object(r.ref)(!0),a=Object(r.ref)("horizon"),n=Object(r.ref)(!0),l=Object(r.ref)(null),c=Object(r.shallowRef)(Ie);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:a,voteComponent:c,colorComponent:he,isChanged:n,animationRef:l,voteUp:()=>{c.value=Ie},voteDown:()=>{c.value=Ee,n.value=!n.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{a.value="horizon"===a.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(r.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var Ve=i()(Le,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),i=Object(n.z)("color-component"),s=Object(n.z)("cubic-bezier");return Object(n.t)(),Object(n.f)("ul",{id:"animation-demo"},[Object(n.g)("li",null,[Object(n.g)("label",null,"控制动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(n.t)(),Object(n.f)("span",{key:0},"切换为纵向")):(Object(n.t)(),Object(n.f)("span",{key:1},"切换为横向"))])]),Object(n.g)("div",{style:{height:"150px"}},[Object(n.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(n.G)(()=>[Object(n.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"点赞笑脸动画:"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(n.g)("span",null,"点赞 👍")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(n.g)("span",null,"踩 👎")])]),Object(n.g)("div",{class:"vote-face-container center"},[(Object(n.t)(),Object(n.d)(Object(n.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"渐变色动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(i,{playing:e.colorPlaying},{default:Object(n.G)(()=>[Object(n.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"贝塞尔曲线动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(s,{playing:e.cubicPlaying},{default:Object(n.G)(()=>[Object(n.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ye=o("./node_modules/vue-router/dist/vue-router.mjs");const De=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var Be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)("fade"),a=Object(r.ref)(!1),n=Object(r.ref)(!1),l=Object(r.ref)(!1);return Object(Ye.onBeforeRouteLeave)((t,o,a)=>{e.value||a()}),{supportedOrientations:De,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:a,autoHideStatusBar:n,autoHideNavigationBar:l,stopPropagation:e=>{e.stopPropagation()},onClose:o=>{o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:()=>{console.log("Dialog is opening")},onClickView:(t="")=>{e.value=!e.value,o.value=t},onClickOpenSecond:e=>{e.stopPropagation(),t.value=!t.value},onClickDialogConfig:e=>{switch(e){case"hideStatusBar":n.value=!n.value;break;case"immerseStatusBar":a.value=!a.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var He=i()(Be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"dialog-demo"},[Object(n.g)("label",null,"显示或者隐藏对话框:"),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(n.I)(()=>e.onClickView("slide"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(n.I)(()=>e.onClickView("fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(n.I)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(n.I)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(n.I)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(n.I)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(n.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=(...t)=>e.onShow&&e.onShow(...t)),"on:requestClose":t[13]||(t[13]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[14]||(t[14]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.e)(" dialog on iOS platform can only have one child node "),Object(n.g)("div",{class:"dialog-demo-wrapper"},[Object(n.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(n.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(n.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[10]||(t[10]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(n.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Re=o("./src/util.ts");let Ue;var Ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("ready to set"),t=Object(r.ref)(""),o=Object(r.ref)(""),a=Object(r.ref)("正在获取..."),n=Object(r.ref)(""),l=Object(r.ref)(""),c=Object(r.ref)(""),i=Object(r.ref)(null),s=Object(r.ref)("请求网址中..."),d=Object(r.ref)("ready to set"),p=Object(r.ref)(""),u=Object(r.ref)(0);return Object(r.onMounted)(()=>{c.value=JSON.stringify(Object(Re.a)()),y.Native.NetInfo.fetch().then(e=>{a.value=e}),Ue=y.Native.NetInfo.addEventListener("change",e=>{a.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{s.value="成功状态: "+e.status}).catch(e=>{s.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:i,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:s,cookieString:d,cookiesValue:p,getSize:async()=>{const e=await y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),o.value=`${e.width}x${e.height}`},setItem:()=>{y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await y.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:()=>{y.Native.Cookie.getAll("https://hippyjs.org").then(e=>{p.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await y.Native.getBoundingClientRect(i.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):n.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{y.EventBus.$emit("testEvent")},eventTriggeredTimes:u}},beforeDestroy(){Ue&&y.Native.NetInfo.removeEventListener("change",Ue),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Me=i()(Ne,[["render",function(e,t,o,a,r,l){var c,i;return Object(n.t)(),Object(n.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(n.g)("div",null,[Object(n.e)(" platform "),e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(n.g)("p",null,Object(n.C)(e.Native.Platform),1)])):Object(n.e)("v-if",!0),Object(n.e)(" device name "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Device"),Object(n.g)("p",null,Object(n.C)(e.Native.Device),1)]),Object(n.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:1,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(n.g)("p",null,Object(n.C)(e.Native.isIPhoneX),1)])):Object(n.e)("v-if",!0),Object(n.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:2,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(n.g)("p",null,Object(n.C)(e.Native.OSVersion||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Internationalization related information "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(n.g)("p",null,Object(n.C)("国际化相关信息")),Object(n.g)("p",null,Object(n.C)("国家 "+(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(n.g)("p",null,Object(n.C)("语言 "+(null===(i=e.Native.Localization)||void 0===i?void 0:i.language)),1),Object(n.g)("p",null,Object(n.C)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(n.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:3,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(n.g)("p",null,Object(n.C)(e.Native.APILevel||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Whether the screen is vertically displayed "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(n.g)("p",null,Object(n.C)(e.Native.screenIsVertical),1)]),Object(n.e)(" width of window "),e.Native.Dimensions.window.width?(Object(n.t)(),Object(n.f)("div",{key:4,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.window.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(n.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(n.t)(),Object(n.f)("div",{key:5,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.window.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(n.t)(),Object(n.f)("div",{key:6,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(n.t)(),Object(n.f)("div",{key:7,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" the pt value of a pixel "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(n.g)("p",null,Object(n.C)(e.Native.OnePixel),1)]),Object(n.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:8,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(n.t)(),Object(n.f)("div",{key:9,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:10,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(n.g)("p",null,Object(n.C)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The startup parameters passed from the native "),e.superProps?(Object(n.t)(),Object(n.f)("div",{key:11,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(n.g)("p",null,Object(n.C)(e.superProps),1)])):Object(n.e)("v-if",!0),Object(n.e)(" A demo of Native Event,Just show how to use "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"App event"),Object(n.g)("div",null,[Object(n.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(n.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(n.g)("div",{class:"event-btn-result"},[Object(n.g)("p",null,"Event triggered times: "+Object(n.C)(e.eventTriggeredTimes),1)])])]),Object(n.e)(" example of measuring the size of an element "),Object(n.g)("div",{ref:"measure-block",class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(n.g)("span",null,"relative to App")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.C)(e.rect1),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(n.g)("span",null,"relative to Container")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.C)(e.rect2),1)])],512),Object(n.e)(" local storage "),e.Native.AsyncStorage?(Object(n.t)(),Object(n.f)("div",{key:12,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(n.g)("span",null,"setItem")]),Object(n.g)("span",null,Object(n.C)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(n.g)("span",null,"removeItem")]),Object(n.g)("span",null,Object(n.C)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(n.g)("span",null,"getItem")]),Object(n.g)("span",null,Object(n.C)(e.storageValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" ImageLoader "),e.Native.ImageLoader?(Object(n.t)(),Object(n.f)("div",{key:13,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(n.g)("span",null,"getSize")]),Object(n.g)("span",null,Object(n.C)(e.imageSize),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Fetch "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.C)(e.fetchText),1)])]),Object(n.e)(" network info "),e.Native.NetInfo?(Object(n.t)(),Object(n.f)("div",{key:14,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.C)(e.netInfoText),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Cookie "),e.Native.Cookie?(Object(n.t)(),Object(n.f)("div",{key:15,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(n.g)("span",null,"setCookie")]),Object(n.g)("span",null,Object(n.C)(e.cookieString),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(n.g)("span",null,"getCookie")]),Object(n.g)("span",null,Object(n.C)(e.cookiesValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" iOS platform "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:16,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(n.g)("p",null,Object(n.C)(e.Native.isIOS()),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Android platform "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:17,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(n.g)("p",null,Object(n.C)(e.Native.isAndroid()),1)])):Object(n.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const ze="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Fe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ze,ze,ze],subInfo:["三图评论","11评"]}},Ge={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},We={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ke=[We,Fe,Ge,Fe,Ge,Fe,Ge,We,Fe];var qe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Qe=i()(qe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-one"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.C)(e.itemBean.title),1),Object(n.g)("div",{class:"style-one-image-container"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.itemBean.picList,(e,t)=>(Object(n.t)(),Object(n.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.C)(e.itemBean.subInfo.join("")),1)])])}]]);var Xe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Ze=i()(Xe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-two"},[Object(n.g)("div",{class:"style-two-left-container"},[Object(n.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(n.C)(e.itemBean.title),1),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.C)(e.itemBean.subInfo.join("")),1)])]),Object(n.g)("div",{class:"style-two-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Je=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=i()(Je,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-five"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.C)(e.itemBean.title),1),Object(n.g)("div",{class:"style-five-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.C)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(r.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ke),800)});var at=Object(r.defineComponent)({components:{StyleOne:Qe,StyleTwo:Ze,StyleFive:$e},setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.ref)([...Ke]);let n=!1,l=!1;const c=Object(r.ref)(""),i=Object(r.ref)("继续下拉触发刷新"),s=Object(r.ref)("正在加载...");return Object(r.onMounted)(()=>{n=!1,l=!1,a.value=[...Ke],et=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:c,dataSource:a,headerRefreshText:i,footerRefreshText:s,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,s.value="加载更多...";const t=await ot();0===t.length&&(s.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),i.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,i.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?i.value="松手,即可触发刷新":i.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(y.Native){if(e.value){const t=e.value;console.log("scroll to next page",e,tt.value,et);const o=tt.value.top+et-200;t.scrollTo({left:tt.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:()=>{if(y.Native){if(e.value){const t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var nt=i()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),i=Object(n.z)("style-one"),s=Object(n.z)("style-two"),d=Object(n.z)("style-five"),p=Object(n.z)("pull-footer");return Object(n.t)(),Object(n.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(n.g)("span",null,"翻动到底部")]),Object(n.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(n.C)(e.dataSource.length),1)]),Object(n.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(n.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.G)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.C)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(e,t)=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(n.t)(),Object(n.d)(i,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===e.style?(Object(n.t)(),Object(n.d)(s,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===e.style?(Object(n.t)(),Object(n.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(n.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.G)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.C)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var rt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("idle"),t=Object(r.ref)(2),o=Object(r.ref)(2);return{dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:()=>{console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:()=>{console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:e=>{console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:e=>{console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:t=>{console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var lt=i()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),i=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-swiper"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(n.g)("span",null,"翻到上一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("p",{class:"toolbar-text"}," 当前第 "+Object(n.C)(e.currentSlideNum+1)+" 页 ",1)]),Object(n.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(n.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(n.G)(()=>[Object(n.e)(" slides "),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,e=>(Object(n.t)(),Object(n.d)(c,{key:e,style:Object(n.p)({backgroundColor:4278222848+100*e})},{default:Object(n.G)(()=>[Object(n.g)("p",null,"I'm Slide "+Object(n.C)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(n.e)(" A Demo of dots "),Object(n.g)("div",{id:"swiper-dots"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,t=>(Object(n.t)(),Object(n.f)("div",{key:t,class:Object(n.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let ct=0;const it={top:0,left:5,bottom:0,right:5},st="ios"===y.Native.Platform,dt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ke,...Ke])),600)});var pt=Object(r.defineComponent)({components:{StyleOne:Qe,StyleTwo:Ze,StyleFive:$e},setup(){const e=Object(r.ref)([...Ke,...Ke,...Ke,...Ke]);let t=!1,o=!1;const a=Object(r.ref)(!1),n=Object(r.ref)("正在加载..."),l=Object(r.ref)(null),c=Object(r.ref)(null);let i="继续下拉触发刷新",s="正在加载...";const d=Object(r.computed)(()=>a.value?"正在刷新":"下拉刷新"),p=Object(r.ref)(null),u=Object(r.ref)(null),b=Object(r.computed)(()=>(y.Native.Dimensions.screen.width-it.left-it.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:it,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await dt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,s="加载更多...";const o=await dt();0===o.length&&(s="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:st,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),i=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),i="刷新数据中,请稍等",o=!1,i="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:i,footerRefreshText:s,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ut=i()(pt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),i=Object(n.z)("waterfall-item"),s=Object(n.z)("style-one"),d=Object(n.z)("style-two"),p=Object(n.z)("style-five"),u=Object(n.z)("pull-footer"),b=Object(n.z)("waterfall");return Object(n.t)(),Object(n.f)("div",{id:"demo-waterfall"},[Object(n.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(n.G)(()=>[Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.G)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.C)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])):(Object(n.t)(),Object(n.d)(i,{key:1,"full-span":!0,class:"banner-view"},{default:Object(n.G)(()=>[Object(n.g)("span",null,"BannerView")]),_:1})),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(i,{key:o,style:Object(n.p)({width:e.itemWidth}),type:t.style,onClick:Object(n.I)(()=>e.onClickItem(o),["stop"])},{default:Object(n.G)(()=>[1===t.style?(Object(n.t)(),Object(n.d)(s,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===t.style?(Object(n.t)(),Object(n.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===t.style?(Object(n.t)(),Object(n.d)(p,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(n.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.G)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.C)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var bt=Object(r.defineComponent)({setup(){const e=Object(r.ref)(0),t=Object(r.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:t=>{e.value=t.height},onTabClick:e=>{t.value=e-1},onDropped:e=>{t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var yt={demoNative:{name:"Native 能力",component:Me},demoAnimation:{name:"animation 组件",component:Ve},demoDialog:{name:"dialog 组件",component:He},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:nt},demoWaterfall:{name:"waterfall 组件",component:ut},demoNestedScroll:{name:"nested scroll 示例",component:i()(bt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),i=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(n.g)("div",{id:"demo-content"},[Object(n.g)("div",{id:"banner"}),Object(n.g)("div",{id:"tabs"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(2,t=>Object(n.g)("p",{key:"tab"+t,class:Object(n.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(n.C)(t)+" "+Object(n.C)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(n.i)(i,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(n.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(n.G)(()=>[Object(n.i)(c,{key:"slide1"},{default:Object(n.G)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.C)(e),1)],2)),64))])]),_:1}),Object(n.i)(c,{key:"slide2"},{default:Object(n.G)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"self"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.C)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:fe}};var vt=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(yt).map(e=>({id:e,name:yt[e].name}));return Object(r.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:r.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var ft=i()(vt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("router-link");return Object(n.t)(),Object(n.f)("ul",{class:"feature-list"},[Object(n.g)("li",null,[Object(n.g)("div",{id:"version-info"},[Object(n.g)("p",{class:"feature-title"}," Vue: "+Object(n.C)(e.version),1),e.Native?(Object(n.t)(),Object(n.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(n.C)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(n.e)("v-if",!0)])]),Object(n.g)("li",null,[Object(n.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.featureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.G)(()=>[Object(n.h)(Object(n.C)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(n.t)(),Object(n.f)("li",{key:0},[Object(n.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(n.e)("v-if",!0),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.nativeFeatureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.G)(()=>[Object(n.h)(Object(n.C)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var gt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(r.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Re.a)();y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");const mt=[{path:"/",component:ft},{path:"/remote-debug",component:i()(gt,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(n.I)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(n.g)("div",{class:"tips-wrap"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tips,(t,o)=>(Object(n.t)(),Object(n.f)("p",{key:o,class:"tips-item",style:Object(n.p)(e.styles.tipText)},Object(n.C)(o+1)+". "+Object(n.C)(t),5))),128))]),Object(n.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(n.I)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value","onClick"]),Object(n.g)("div",{class:"buttonContainer",style:Object(n.p)(e.styles.buttonContainer)},[Object(n.g)("button",{style:Object(n.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(n.I)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(n.g)("span",{style:Object(n.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(ye).map(e=>({path:"/demo/"+e,name:ye[e].name,component:ye[e].component})),...Object.keys(yt).map(e=>({path:"/demo/"+e,name:yt[e].name,component:yt[e].component}))];function ht(){return Object(a.createHippyRouter)({routes:mt})}},"./src/util.ts":function(e,t,o){"use strict";let a;function n(e){a=e}function r(){return a}o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +const n="undefined"!=typeof document;function r(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const l=Object.assign;function c(e,t){const o={};for(const a in t){const n=t[a];o[a]=i(n)?n.map(e):e(n)}return o}const s=()=>{},i=Array.isArray;const d=/#/g,p=/&/g,u=/\//g,b=/=/g,y=/\?/g,v=/\+/g,f=/%5B/g,m=/%5D/g,g=/%5E/g,h=/%60/g,j=/%7B/g,O=/%7C/g,_=/%7D/g,w=/%20/g;function x(e){return encodeURI(""+e).replace(O,"|").replace(f,"[").replace(m,"]")}function S(e){return x(e).replace(v,"%2B").replace(w,"+").replace(d,"%23").replace(p,"%26").replace(h,"`").replace(j,"{").replace(_,"}").replace(g,"^")}function A(e){return null==e?"":function(e){return x(e).replace(d,"%23").replace(y,"%3F")}(e).replace(u,"%2F")}function C(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const k=/\/$/;function P(e,t,o="/"){let a,n={},r="",l="";const c=t.indexOf("#");let s=t.indexOf("?");return c=0&&(s=-1),s>-1&&(a=t.slice(0,s),r=t.slice(s+1,c>-1?c:t.length),n=e(r)),c>-1&&(a=a||t.slice(0,c),l=t.slice(c,t.length)),a=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),a=e.split("/"),n=a[a.length-1];".."!==n&&"."!==n||a.push("");let r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+a.slice(r).join("/")}(null!=a?a:t,o),{fullPath:a+(r&&"?")+r+l,path:a,query:n,hash:C(l)}}function E(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function T(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!I(e[o],t[o]))return!1;return!0}function I(e,t){return i(e)?D(e,t):i(t)?D(t,e):e===t}function D(e,t){return i(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}const V={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Y,H;!function(e){e.pop="pop",e.push="push"}(Y||(Y={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(H||(H={}));function B(e){if(!e)if(n){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(k,"")}const R=/^[^#]+#/;function N(e,t){return e.replace(R,"#")+t}const U=()=>({left:window.scrollX,top:window.scrollY});function M(e){let t;if("el"in e){const o=e.el,a="string"==typeof o&&o.startsWith("#");0;const n="string"==typeof o?a?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=function(e,t){const o=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-o.left-(t.left||0),top:a.top-o.top-(t.top||0)}}(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function z(e,t){return(history.state?history.state.position-t:-1)+e}const F=new Map;let W=()=>location.protocol+"//"+location.host;function K(e,t){const{pathname:o,search:a,hash:n}=t,r=e.indexOf("#");if(r>-1){let t=n.includes(e.slice(r))?e.slice(r).length:1,o=n.slice(t);return"/"!==o[0]&&(o="/"+o),E(o,"")}return E(o,e)+a+n}function G(e,t,o,a=!1,n=!1){return{back:e,current:t,forward:o,replaced:a,position:window.history.length,scroll:n?U():null}}function J(e){const t=function(e){const{history:t,location:o}=window,a={value:K(e,o)},n={value:t.state};function r(a,r,l){const c=e.indexOf("#"),s=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+a:W()+e+a;try{t[l?"replaceState":"pushState"](r,"",s),n.value=r}catch(e){console.error(e),o[l?"replace":"assign"](s)}}return n.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:n,push:function(e,o){const c=l({},n.value,t.state,{forward:e,scroll:U()});r(c.current,c,!0),r(e,l({},G(a.value,e,null),{position:c.position+1},o),!1),a.value=e},replace:function(e,o){r(e,l({},t.state,G(n.value.back,e,n.value.forward,!0),o,{position:n.value.position}),!0),a.value=e}}}(e=B(e)),o=function(e,t,o,a){let n=[],r=[],c=null;const s=({state:r})=>{const l=K(e,location),s=o.value,i=t.value;let d=0;if(r){if(o.value=l,t.value=r,c&&c===s)return void(c=null);d=i?r.position-i.position:0}else a(l);n.forEach(e=>{e(o.value,s,{delta:d,type:Y.pop,direction:d?d>0?H.forward:H.back:H.unknown})})};function i(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:U()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){n.push(e);const t=()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",i)}}}(e,t.state,t.location,t.replace);const a=l({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:N.bind(null,e)},t,o);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function q(e=""){let t=[],o=[""],a=0;function n(e){a++,a!==o.length&&o.splice(a),o.push(e)}const r={location:"",state:{},base:e=B(e),createHref:N.bind(null,e),replace(e){o.splice(a--,1),n(e)},push(e,t){n(e)},listen:e=>(t.push(e),()=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],a=0},go(e,n=!0){const r=this.location,l=e<0?H.back:H.forward;a=Math.max(0,Math.min(a+e,o.length-1)),n&&function(e,o,{direction:a,delta:n}){const r={direction:a,delta:n,type:Y.pop};for(const a of t)a(e,o,r)}(this.location,r,{direction:l,delta:e})}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>o[a]}),r}function Q(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),J(e)}function X(e){return"string"==typeof e||"symbol"==typeof e}const Z=Symbol("");var $;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}($||($={}));function ee(e,t){return l(new Error,{type:e,[Z]:!0},t)}function te(e,t){return e instanceof Error&&Z in e&&(null==t||!!(e.type&t))}const oe={sensitive:!1,strict:!1,start:!0,end:!0},ae=/[.+*?^${}()[\]/\\]/g;function ne(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function re(e,t){let o=0;const a=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const ce={type:0,value:""},se=/[a-zA-Z0-9_]/;function ie(e,t,o){const a=function(e,t){const o=l({},oe,t),a=[];let n=o.start?"^":"";const r=[];for(const t of e){const e=t.length?[]:[90];o.strict&&!t.length&&(n+="/");for(let a=0;a1&&("*"===c||"+"===c)&&t(`A repeatable param (${i}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:i,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),i="")}function u(){i+=c}for(;s{r(y)}:s}function r(e){if(X(e)){const t=a.get(e);t&&(a.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){const t=function(e,t){let o=0,a=t.length;for(;o!==a;){const n=o+a>>1;re(e,t[n])<0?a=n:o=n+1}const n=function(e){let t=e;for(;t=t.parent;)if(fe(t)&&0===re(e,t))return t;return}(e);n&&(a=t.lastIndexOf(n,a-1));return a}(e,o);o.splice(t,0,e),e.record.name&&!be(e)&&a.set(e.record.name,e)}return t=ve({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>n(e)),{addRoute:n,resolve:function(e,t){let n,r,c,s={};if("name"in e&&e.name){if(n=a.get(e.name),!n)throw ee(1,{location:e});0,c=n.record.name,s=l(pe(t.params,n.keys.filter(e=>!e.optional).concat(n.parent?n.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&pe(e.params,n.keys.map(e=>e.name))),r=n.stringify(s)}else if(null!=e.path)r=e.path,n=o.find(e=>e.re.test(r)),n&&(s=n.parse(r),c=n.record.name);else{if(n=t.name?a.get(t.name):o.find(e=>e.re.test(t.path)),!n)throw ee(1,{location:e,currentLocation:t});c=n.record.name,s=l({},t.params,e.params),r=n.stringify(s)}const i=[];let d=n;for(;d;)i.unshift(d.record),d=d.parent;return{name:c,path:r,params:s,matched:i,meta:ye(i)}},removeRoute:r,clearRoutes:function(){o.length=0,a.clear()},getRoutes:function(){return o},getRecordMatcher:function(e){return a.get(e)}}}function pe(e,t){const o={};for(const a of t)a in e&&(o[a]=e[a]);return o}function ue(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const a in e.components)t[a]="object"==typeof o?o[a]:o;return t}function be(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ye(e){return e.reduce((e,t)=>l(e,t.meta),{})}function ve(e,t){const o={};for(const a in e)o[a]=a in t?t[a]:e[a];return o}function fe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function me(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&S(e)):[a&&S(a)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))})}return t}function he(e){const t={};for(const o in e){const a=e[o];void 0!==a&&(t[o]=i(a)?a.map(e=>null==e?null:""+e):null==a?a:""+a)}return t}const je=Symbol(""),Oe=Symbol(""),_e=Symbol(""),we=Symbol(""),xe=Symbol("");function Se(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ae(e,t,o){const n=()=>{e[t].delete(o)};Object(a.s)(n),Object(a.r)(n),Object(a.q)(()=>{e[t].add(o)}),e[t].add(o)}function Ce(e){const t=Object(a.m)(je,{}).value;t&&Ae(t,"leaveGuards",e)}function ke(e){const t=Object(a.m)(je,{}).value;t&&Ae(t,"updateGuards",e)}function Pe(e,t,o,a,n,r=(e=>e())){const l=a&&(a.enterCallbacks[n]=a.enterCallbacks[n]||[]);return()=>new Promise((c,s)=>{const i=e=>{var r;!1===e?s(ee(4,{from:o,to:t})):e instanceof Error?s(e):"string"==typeof(r=e)||r&&"object"==typeof r?s(ee(2,{from:t,to:e})):(l&&a.enterCallbacks[n]===l&&"function"==typeof e&&l.push(e),c())},d=r(()=>e.call(a&&a.instances[n],t,o,i));let p=Promise.resolve(d);e.length<3&&(p=p.then(i)),p.catch(e=>s(e))})}function Ee(e,t,o,a,n=(e=>e())){const l=[];for(const s of e){0;for(const e in s.components){let i=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(c=i)||"displayName"in c||"props"in c||"__vccOpts"in c){const r=(i.__vccOpts||i)[t];r&&l.push(Pe(r,o,a,s,e,n))}else{let c=i();0,l.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const c=r(l)?l.default:l;s.components[e]=c;const i=(c.__vccOpts||c)[t];return i&&Pe(i,o,a,s,e,n)()}))}}}var c;return l}function Te(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,o)=>{const a=e.components[o];return"function"!=typeof a||"displayName"in a||t.push(a().then(t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${e.path}". Ensure you passed a function that returns a promise.`));const a=r(t)?t.default:t;e.components[o]=a})),t},[])))).then(()=>e)}function Le(e){const t=Object(a.m)(_e),o=Object(a.m)(we);const n=Object(a.c)(()=>{const o=Object(a.E)(e.to);return t.resolve(o)}),r=Object(a.c)(()=>{const{matched:e}=n.value,{length:t}=e,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;const l=r.findIndex(T.bind(null,a));if(l>-1)return l;const c=De(e[t-2]);return t>1&&De(a)===c&&r[r.length-1].path!==c?r.findIndex(T.bind(null,e[t-2])):l}),l=Object(a.c)(()=>r.value>-1&&function(e,t){for(const o in t){const a=t[o],n=e[o];if("string"==typeof a){if(a!==n)return!1}else if(!i(n)||n.length!==a.length||a.some((e,t)=>e!==n[t]))return!1}return!0}(o.params,n.value.params)),c=Object(a.c)(()=>r.value>-1&&r.value===o.matched.length-1&&L(o.params,n.value.params));return{route:n,href:Object(a.c)(()=>n.value.href),isActive:l,isExactActive:c,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Object(a.E)(e.replace)?"replace":"push"](Object(a.E)(e.to)).catch(s):Promise.resolve()}}}const Ie=Object(a.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Le,setup(e,{slots:t}){const o=Object(a.v)(Le(e)),{options:n}=Object(a.m)(_e),r=Object(a.c)(()=>({[Ve(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Ve(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const n=t.default&&t.default(o);return e.custom?n:Object(a.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},n)}}});function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ve=(e,t,o)=>null!=e?e:null!=t?t:o;function Ye(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const He=Object(a.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Object(a.m)(xe),r=Object(a.c)(()=>e.route||n.value),c=Object(a.m)(Oe,0),s=Object(a.c)(()=>{let e=Object(a.E)(c);const{matched:t}=r.value;let o;for(;(o=t[e])&&!o.components;)e++;return e}),i=Object(a.c)(()=>r.value.matched[s.value]);Object(a.u)(Oe,Object(a.c)(()=>s.value+1)),Object(a.u)(je,i),Object(a.u)(xe,r);const d=Object(a.w)();return Object(a.G)(()=>[d.value,i.value,e.name],([e,t,o],[a,n,r])=>{t&&(t.instances[o]=e,n&&n!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=n.leaveGuards),t.updateGuards.size||(t.updateGuards=n.updateGuards))),!e||!t||n&&T(t,n)&&a||(t.enterCallbacks[o]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const n=r.value,c=e.name,s=i.value,p=s&&s.components[c];if(!p)return Ye(o.default,{Component:p,route:n});const u=s.props[c],b=u?!0===u?n.params:"function"==typeof u?u(n):u:null,y=Object(a.l)(p,l({},b,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[c]=null)},ref:d}));return Ye(o.default,{Component:y,route:n})||y}}});function Be(e){const t=de(e.routes,e),o=e.parseQuery||me,r=e.stringifyQuery||ge,d=e.history;const p=Se(),u=Se(),b=Se(),y=Object(a.C)(V);let v=V;n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=c.bind(null,e=>""+e),m=c.bind(null,A),h=c.bind(null,C);function O(e,a){if(a=l({},a||y.value),"string"==typeof e){const n=P(o,e,a.path),r=t.resolve({path:n.path},a),c=d.createHref(n.fullPath);return l(n,r,{params:h(r.params),hash:C(n.hash),redirectedFrom:void 0,href:c})}let n;if(null!=e.path)n=l({},e,{path:P(o,e.path,a.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];n=l({},e,{params:m(t)}),a.params=m(a.params)}const c=t.resolve(n,a),s=e.hash||"";c.params=f(h(c.params));const i=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(r,l({},e,{hash:(p=s,x(p).replace(j,"{").replace(_,"}").replace(g,"^")),path:c.path}));var p;const u=d.createHref(i);return l({fullPath:i,hash:s,query:r===ge?he(e.query):e.query||{}},c,{redirectedFrom:void 0,href:u})}function w(e){return"string"==typeof e?P(o,e,y.value.path):l({},e)}function S(e,t){if(v!==e)return ee(8,{from:t,to:e})}function k(e){return I(e)}function E(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let a="function"==typeof o?o(e):o;return"string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=w(a):{path:a},a.params={}),l({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function I(e,t){const o=v=O(e),a=y.value,n=e.state,c=e.force,s=!0===e.replace,i=E(o);if(i)return I(l(w(i),{state:"object"==typeof i?l({},n,i.state):n,force:c,replace:s}),t||o);const d=o;let p;return d.redirectedFrom=t,!c&&function(e,t,o){const a=t.matched.length-1,n=o.matched.length-1;return a>-1&&a===n&&T(t.matched[a],o.matched[n])&&L(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(r,a,o)&&(p=ee(16,{to:d,from:a}),$(a,a,!0,!1)),(p?Promise.resolve(p):B(d,a)).catch(e=>te(e)?te(e,2)?e:Z(e):Q(e,d,a)).then(e=>{if(e){if(te(e,2))return I(l({replace:s},w(e.to),{state:"object"==typeof e.to?l({},n,e.to.state):n,force:c}),t||d)}else e=N(d,a,!0,s,n);return R(d,a,e),e})}function D(e,t){const o=S(e,t);return o?Promise.reject(o):Promise.resolve()}function H(e){const t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function B(e,t){let o;const[a,n,r]=function(e,t){const o=[],a=[],n=[],r=Math.max(t.matched.length,e.matched.length);for(let l=0;lT(e,r))?a.push(r):o.push(r));const c=e.matched[l];c&&(t.matched.find(e=>T(e,c))||n.push(c))}return[o,a,n]}(e,t);o=Ee(a.reverse(),"beforeRouteLeave",e,t);for(const n of a)n.leaveGuards.forEach(a=>{o.push(Pe(a,e,t))});const l=D.bind(null,e,t);return o.push(l),le(o).then(()=>{o=[];for(const a of p.list())o.push(Pe(a,e,t));return o.push(l),le(o)}).then(()=>{o=Ee(n,"beforeRouteUpdate",e,t);for(const a of n)a.updateGuards.forEach(a=>{o.push(Pe(a,e,t))});return o.push(l),le(o)}).then(()=>{o=[];for(const a of r)if(a.beforeEnter)if(i(a.beforeEnter))for(const n of a.beforeEnter)o.push(Pe(n,e,t));else o.push(Pe(a.beforeEnter,e,t));return o.push(l),le(o)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),o=Ee(r,"beforeRouteEnter",e,t,H),o.push(l),le(o))).then(()=>{o=[];for(const a of u.list())o.push(Pe(a,e,t));return o.push(l),le(o)}).catch(e=>te(e,8)?e:Promise.reject(e))}function R(e,t,o){b.list().forEach(a=>H(()=>a(e,t,o)))}function N(e,t,o,a,r){const c=S(e,t);if(c)return c;const s=t===V,i=n?history.state:{};o&&(a||s?d.replace(e.fullPath,l({scroll:s&&i&&i.scroll},r)):d.push(e.fullPath,r)),y.value=e,$(e,t,o,s),Z()}let W;function K(){W||(W=d.listen((e,t,o)=>{if(!re.listening)return;const a=O(e),r=E(a);if(r)return void I(l(r,{replace:!0}),a).catch(s);v=a;const c=y.value;var i,p;n&&(i=z(c.fullPath,o.delta),p=U(),F.set(i,p)),B(a,c).catch(e=>te(e,12)?e:te(e,2)?(I(e.to,a).then(e=>{te(e,20)&&!o.delta&&o.type===Y.pop&&d.go(-1,!1)}).catch(s),Promise.reject()):(o.delta&&d.go(-o.delta,!1),Q(e,a,c))).then(e=>{(e=e||N(a,c,!1))&&(o.delta&&!te(e,8)?d.go(-o.delta,!1):o.type===Y.pop&&te(e,20)&&d.go(-1,!1)),R(a,c,e)}).catch(s)}))}let G,J=Se(),q=Se();function Q(e,t,o){Z(e);const a=q.list();return a.length?a.forEach(a=>a(e,t,o)):console.error(e),Promise.reject(e)}function Z(e){return G||(G=!e,K(),J.list().forEach(([t,o])=>e?o(e):t()),J.reset()),e}function $(t,o,r,l){const{scrollBehavior:c}=e;if(!n||!c)return Promise.resolve();const s=!r&&function(e){const t=F.get(e);return F.delete(e),t}(z(t.fullPath,0))||(l||!r)&&history.state&&history.state.scroll||null;return Object(a.n)().then(()=>c(t,o,s)).then(e=>e&&M(e)).catch(e=>Q(e,t,o))}const oe=e=>d.go(e);let ae;const ne=new Set,re={currentRoute:y,listening:!0,addRoute:function(e,o){let a,n;return X(e)?(a=t.getRecordMatcher(e),n=o):n=e,t.addRoute(n,a)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:O,options:e,push:k,replace:function(e){return k(l(w(e),{replace:!0}))},go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:p.add,beforeResolve:u.add,afterEach:b.add,onError:q.add,isReady:function(){return G&&y.value!==V?Promise.resolve():new Promise((e,t)=>{J.add([e,t])})},install(e){e.component("RouterLink",Ie),e.component("RouterView",He),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(a.E)(y)}),n&&!ae&&y.value===V&&(ae=!0,k(d.location).catch(e=>{0}));const t={};for(const e in V)Object.defineProperty(t,e,{get:()=>y.value[e],enumerable:!0});e.provide(_e,this),e.provide(we,Object(a.B)(t)),e.provide(xe,y);const o=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(v=V,W&&W(),W=null,y.value=V,ae=!1,G=!1),o()}}};function le(e){return e.reduce((e,t)=>e.then(()=>H(t)),Promise.resolve())}return re}function Re(){return Object(a.m)(_e)}function Ne(e){return Object(a.m)(we)}},"./node_modules/vue/dist/vue.runtime.esm-bundler.js":function(e,t,o){"use strict";o.d(t,"v",(function(){return a.reactive})),o.d(t,"w",(function(){return a.ref})),o.d(t,"B",(function(){return a.shallowReactive})),o.d(t,"C",(function(){return a.shallowRef})),o.d(t,"E",(function(){return a.unref})),o.d(t,"o",(function(){return a.normalizeClass})),o.d(t,"p",(function(){return a.normalizeStyle})),o.d(t,"D",(function(){return a.toDisplayString})),o.d(t,"a",(function(){return a.Fragment})),o.d(t,"b",(function(){return a.KeepAlive})),o.d(t,"c",(function(){return a.computed})),o.d(t,"d",(function(){return a.createBlock})),o.d(t,"e",(function(){return a.createCommentVNode})),o.d(t,"f",(function(){return a.createElementBlock})),o.d(t,"g",(function(){return a.createElementVNode})),o.d(t,"h",(function(){return a.createTextVNode})),o.d(t,"i",(function(){return a.createVNode})),o.d(t,"j",(function(){return a.defineComponent})),o.d(t,"k",(function(){return a.getCurrentInstance})),o.d(t,"l",(function(){return a.h})),o.d(t,"m",(function(){return a.inject})),o.d(t,"n",(function(){return a.nextTick})),o.d(t,"q",(function(){return a.onActivated})),o.d(t,"r",(function(){return a.onDeactivated})),o.d(t,"s",(function(){return a.onUnmounted})),o.d(t,"t",(function(){return a.openBlock})),o.d(t,"u",(function(){return a.provide})),o.d(t,"x",(function(){return a.renderList})),o.d(t,"y",(function(){return a.renderSlot})),o.d(t,"z",(function(){return a.resolveComponent})),o.d(t,"A",(function(){return a.resolveDynamicComponent})),o.d(t,"G",(function(){return a.watch})),o.d(t,"H",(function(){return a.withCtx})),o.d(t,"I",(function(){return a.withDirectives})),o.d(t,"F",(function(){return w})),o.d(t,"J",(function(){return C}));var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),n=o("./node_modules/@vue/shared/dist/shared.esm-bundler.js"); +/** +* @vue/runtime-dom v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +"undefined"!=typeof document&&document;const r=Symbol("_vtc"),l=(e,{slots:t})=>Object(a.h)(a.BaseTransition,d(e),t);l.displayName="Transition";const c={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},s=(l.props=Object(n.e)({},a.BaseTransitionPropsValidators,c),(e,t=[])=>{Object(n.i)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),i=e=>!!e&&(Object(n.i)(e)?e.some(e=>e.length>1):e.length>1);function d(e){const t={};for(const o in e)o in c||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:a,duration:r,enterFromClass:l=o+"-enter-from",enterActiveClass:d=o+"-enter-active",enterToClass:v=o+"-enter-to",appearFromClass:m=l,appearActiveClass:g=d,appearToClass:h=v,leaveFromClass:O=o+"-leave-from",leaveActiveClass:_=o+"-leave-active",leaveToClass:w=o+"-leave-to"}=e,x=function(e){if(null==e)return null;if(Object(n.n)(e))return[p(e.enter),p(e.leave)];{const t=p(e);return[t,t]}}(r),S=x&&x[0],A=x&&x[1],{onBeforeEnter:C,onEnter:k,onEnterCancelled:P,onLeave:E,onLeaveCancelled:T,onBeforeAppear:L=C,onAppear:I=k,onAppearCancelled:D=P}=t,V=(e,t,o)=>{b(e,t?h:v),b(e,t?g:d),o&&o()},Y=(e,t)=>{e._isLeaving=!1,b(e,O),b(e,w),b(e,_),t&&t()},H=e=>(t,o)=>{const n=e?I:k,r=()=>V(t,e,o);s(n,[t,r]),y(()=>{b(t,e?m:l),u(t,e?h:v),i(n)||f(t,a,S,r)})};return Object(n.e)(t,{onBeforeEnter(e){s(C,[e]),u(e,l),u(e,d)},onBeforeAppear(e){s(L,[e]),u(e,m),u(e,g)},onEnter:H(!1),onAppear:H(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>Y(e,t);u(e,O),u(e,_),j(),y(()=>{e._isLeaving&&(b(e,O),u(e,w),i(E)||f(e,a,A,o))}),s(E,[e,o])},onEnterCancelled(e){V(e,!1),s(P,[e])},onAppearCancelled(e){V(e,!0),s(D,[e])},onLeaveCancelled(e){Y(e),s(T,[e])}})}function p(e){return Object(n.x)(e)}function u(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[r]||(e[r]=new Set)).add(t)}function b(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const o=e[r];o&&(o.delete(t),o.size||(e[r]=void 0))}function y(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let v=0;function f(e,t,o,a){const n=e._endId=++v,r=()=>{n===e._endId&&a()};if(o)return setTimeout(r,o);const{type:l,timeout:c,propCount:s}=m(e,t);if(!l)return a();const i=l+"end";let d=0;const p=()=>{e.removeEventListener(i,u),r()},u=t=>{t.target===e&&++d>=s&&p()};setTimeout(()=>{d(o[e]||"").split(", "),n=a("transitionDelay"),r=a("transitionDuration"),l=g(n,r),c=a("animationDelay"),s=a("animationDuration"),i=g(c,s);let d=null,p=0,u=0;"transition"===t?l>0&&(d="transition",p=l,u=r.length):"animation"===t?i>0&&(d="animation",p=i,u=s.length):(p=Math.max(l,i),d=p>0?l>i?"transition":"animation":null,u=d?"transition"===d?r.length:s.length:0);return{type:d,timeout:p,propCount:u,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(a("transitionProperty").toString())}}function g(e,t){for(;e.lengthh(t)+h(e[o])))}function h(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function j(){return document.body.offsetHeight}const O=Symbol("_vod"),_=Symbol("_vsh"),w={beforeMount(e,{value:t},{transition:o}){e[O]="none"===e.style.display?"":e.style.display,o&&t?o.beforeEnter(e):x(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:a}){!t!=!o&&(a?t?(a.beforeEnter(e),x(e,!0),a.enter(e)):a.leave(e,()=>{x(e,!1)}):x(e,t))},beforeUnmount(e,{value:t}){x(e,t)}};function x(e,t){e.style.display=t?e[O]:"none",e[_]=!t}Symbol("");Symbol("_vei"); +/*! #__NO_SIDE_EFFECTS__ */ +"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");const S=["ctrl","shift","alt","meta"],A={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>S.some(o=>e[o+"Key"]&&!t.includes(o))},C=(e,t)=>{const o=e._withMods||(e._withMods={}),a=t.join(".");return o[a]||(o[a]=(o,...a)=>{for(let e=0;e{e.back()},navigateTo:(t,o)=>{o!==a.value&&(a.value=o,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(o("./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const s=o.n(c)()(l,[["render",function(e,t,o,n,r,l){const c=Object(a.z)("router-view");return Object(a.t)(),Object(a.f)("div",{id:"root"},[Object(a.g)("div",{id:"header"},[Object(a.g)("div",{class:"left-title"},[Object(a.I)(Object(a.g)("img",{id:"back-btn",src:e.backButtonImg,onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},null,8,["src"]),[[a.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(a.t)(),Object(a.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(a.e)("v-if",!0)]),Object(a.g)("label",{class:"title"},Object(a.D)(e.subTitle),1)]),Object(a.g)("div",{class:"body-container",onClick:Object(a.J)(()=>{},["stop"])},[Object(a.e)(" if you don't need keep-alive, just use '' "),Object(a.i)(c,null,{default:Object(a.H)(({Component:e,route:t})=>[(Object(a.t)(),Object(a.d)(a.b,null,[(Object(a.t)(),Object(a.d)(Object(a.A)(e),{key:t.path}))],1024))]),_:1})]),Object(a.g)("div",{class:"bottom-tabs"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tabs,(t,o)=>(Object(a.t)(),Object(a.f)("div",{key:"tab-"+o,class:Object(a.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(a.J)(a=>e.navigateTo(t,o),["stop"])},[Object(a.g)("span",{class:"bottom-tab-text"},Object(a.D)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=s},"./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/app.vue?vue&type=style&index=0&id=392e9162&lang=css")},"./src/assets/defaultSource.jpg":function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},"./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css")},"./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css")},"./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css")},"./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css")},"./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css")},"./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css")},"./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css")},"./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css")},"./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css")},"./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css")},"./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css")},"./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css")},"./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css")},"./src/components/demo/demoTurbo.ts":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return s})),o.d(t,"b",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"f",(function(){return a})),o.d(t,"g",(function(){return d})),o.d(t,"h",(function(){return i})),o.d(t,"i",(function(){return p}));const a=t=>e.getTurboModule("demoTurbo").getString(t),n=t=>e.getTurboModule("demoTurbo").getNum(t),r=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),c=t=>e.getTurboModule("demoTurbo").getObject(t),s=t=>e.getTurboModule("demoTurbo").getArray(t),i=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),d=()=>e.getTurboModule("demoTurbo").getTurboConfig(),p=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css")},"./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css")},"./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css")},"./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css")},"./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css")},"./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css")},"./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css")},"./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css")},"./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css")},"./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css")},"./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css")},"./src/main-native.ts":function(e,t,o){"use strict";o.r(t),function(e){var t=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),a=o.n(t),n=o("../../packages/hippy-vue-next/dist/index.js"),r=o("./src/app.vue"),l=o("./src/routes.ts"),c=o("./src/util.ts");function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function i(e){for(var t=1;t{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const d=Object(n.createApp)(r.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0,styleOptions:{beforeLoadStyle:e=>{let{value:t}=e;if("string"==typeof t&&/rem$/.test(t)){const{screen:e}=n.Native.Dimensions;if("string"==typeof t&&/rem$/.test(t)){const{width:o,height:a}=e;t=Number(parseFloat(""+100*(o>a?o:a)*Number(t.replace("rem",""))/844).toFixed(2))}}return i(i({},e),{},{value:t})}}}),p=Object(l.a)();d.use(p),n.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(n.setScreenSize)({width:e.width,height:e.height})});d.$start().then(({superProps:e,rootViewId:t})=>{Object(c.b)({superProps:e,rootViewId:t}),p.push("/"),n.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),d.mount("#root")})}.call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css")},"./src/routes.ts":function(e,t,o){"use strict";o.d(t,"a",(function(){return ht}));var a=o("./node_modules/@hippy/vue-router-next-history/dist/index.js"),n=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var r=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),l=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)(!1);Object(r.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-button-Deactivated")});return{isClicked:e,isPressing:t,isOnceClicked:o,onClickView:()=>{e.value=!e.value},onTouchBtnStart:e=>{console.log("onBtnTouchDown",e)},onTouchBtnMove:e=>{console.log("onBtnTouchMove",e)},onTouchBtnEnd:e=>{console.log("onBtnTouchEnd",e)},onClickViewOnce:()=>{o.value=!o.value}}}}),c=(o("./src/components/demo/demo-button.vue?vue&type=style&index=0&id=05797918&scoped=true&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js")),s=o.n(c);var i=s()(l,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"button-demo"},[Object(n.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(n.g)("button",{class:Object(n.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(n.t)(),Object(n.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(n.t)(),Object(n.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(n.I)(Object(n.g)("img",{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png",class:"button-demo-1-image"},null,512),[[n.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),d=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=o.n(d);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}function b(e){for(var t=1;th},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(r.toRefs)(e),o=Object(r.ref)(null),a=Object(r.ref)(t.value);let n=0,l=0;Object(r.watch)(t,e=>{a.value=e});return{scrollOffsetY:e.positionY,demo1Style:h,ripple1:o,onLayout:()=>{o.value&&y.Native.measureInAppWindow(o.value).then(e=>{n=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-n,t.clientY+a.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var O=s()(j,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"ripple1",style:Object(n.p)(e.wrapperStyle),nativeBackgroundAndroid:g({},e.nativeBackgroundAndroid),onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),onTouchcancel:t[3]||(t[3]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},[Object(n.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const _=e=>{console.log("onScroll",e)},w=e=>{console.log("onMomentumScrollBegin",e)},x=e=>{console.log("onMomentumScrollEnd",e)},S=e=>{console.log("onScrollBeginDrag",e)},A=e=>{console.log("onScrollEndDrag",e)};var C=Object(r.defineComponent)({components:{DemoRippleDiv:O},setup(){const e=Object(r.ref)(0),t=Object(r.ref)(null);return Object(r.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(r.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(r.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+f.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+f.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"},Native:y.Native,offsetY:e,onScroll:_,onMomentumScrollBegin:w,onMomentumScrollEnd:x,onScrollBeginDrag:S,onScrollEndDrag:A,onOuterScroll:t=>{e.value=t.offsetY}}}});o("./src/components/demo/demo-div.vue?vue&type=style&index=0&id=fe0428e4&scoped=true&lang=css");var k=s()(C,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("demo-ripple-div");return Object(n.t)(),Object(n.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(n.g)("div",null,["ios"!==e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0},[Object(n.g)("label",null,"水波纹效果: "),Object(n.g)("div",{style:Object(n.p)(b(b({},e.imgRectangle),e.imgRectangleExtra))},[Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(n.i)(c,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(n.H)(()=>[Object(n.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"背景图效果:"),Object(n.g)("div",{style:Object(n.p)(e.demo1Style),accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(n.g)("label",null,"渐变色效果:"),Object(n.g)("div",{class:"div-demo-1-1"},[Object(n.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(n.g)("label",null,"Transform"),Object(n.g)("div",{class:"div-demo-transform"},[Object(n.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(n.g)("label",null,"水平滚动:"),Object(n.g)("div",{ref:"demo2",class:"div-demo-2",bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1,onScroll:t[0]||(t[0]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[1]||(t[1]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[2]||(t[2]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[3]||(t[3]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[4]||(t[4]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[Object(n.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(n.g)("div",{class:"display-flex flex-row"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])],544),Object(n.g)("label",null,"垂直滚动:"),Object(n.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(n.g)("div",{class:"display-flex flex-column"},[Object(n.g)("p",{class:"text-block"}," A "),Object(n.g)("p",{class:"text-block"}," B "),Object(n.g)("p",{class:"text-block"}," C "),Object(n.g)("p",{class:"text-block"}," D "),Object(n.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var P=Object(r.defineComponent)({components:{AsyncComponentFromLocal:Object(r.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-local.vue"))),AsyncComponentFromHttp:Object(r.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,"./src/components/demo/dynamicImport/async-component-http.vue")))},setup(){const e=Object(r.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o("./src/components/demo/demo-dynamicimport.vue?vue&type=style&index=0&id=0fa9b63f&scoped=true&lang=css");var E=s()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),s=Object(n.z)("AsyncComponentFromHttp");return Object(n.t)(),Object(n.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(n.g)("div",{class:"import-btn"},[Object(n.g)("p",null,"点我异步加载")]),e.loaded?(Object(n.t)(),Object(n.f)("div",{key:0,class:"async-com-wrapper"},[Object(n.i)(c,{class:"async-component-outer-local"}),Object(n.i)(s)])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var T=Object(r.defineComponent)({setup(){const e=Object(r.ref)("https://hippyjs.org"),t=Object(r.ref)("https://hippyjs.org"),o=Object(r.ref)(null),a=Object(r.ref)(null),n=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":y.Native?100:"100vh"},input:o,iframe:a,onLoad:o=>{let{url:n}=o;void 0===n&&a.value&&(n=a.value.src),n&&n!==e.value&&(t.value=n)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&n(o.value))},goToUrl:n,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:a}=e;console.log("onLoadEnd",t,o,a)}}}});o("./src/components/demo/demo-iframe.vue?vue&type=style&index=0&id=1f9159b4&lang=css");var L=s()(T,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"iframe-demo",style:Object(n.p)(e.iframeStyle)},[Object(n.g)("label",null,"地址栏:"),Object(n.g)("input",{id:"address",ref:"input",name:"targetUrl",returnKeyType:"go",value:e.displayUrl,"on:endEditing":t[0]||(t[0]=(...t)=>e.goToUrl&&e.goToUrl(...t)),onKeyup:t[1]||(t[1]=(...t)=>e.onKeyUp&&e.onKeyUp(...t))},null,40,["value"]),Object(n.g)("iframe",{id:"iframe",ref:e.iframe,src:e.targetUrl,method:"get",onLoad:t[2]||(t[2]=(...t)=>e.onLoad&&e.onLoad(...t)),"on:loadStart":t[3]||(t[3]=(...t)=>e.onLoadStart&&e.onLoadStart(...t)),"on:loadEnd":t[4]||(t[4]=(...t)=>e.onLoadEnd&&e.onLoadEnd(...t))},null,40,["src"])],4)}]]);var I=o("./src/assets/hippyLogoWhite.png"),D=o.n(I),V=Object(r.defineComponent)({setup(){const e=Object(r.ref)({});return{defaultImage:f.a,hippyLogoImage:D.a,gifLoadResult:e,onTouchEnd:e=>{console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onTouchMove:e=>{console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchStart:e=>{console.log("onTouchDown",e),e.stopPropagation()},onLoad:t=>{console.log("onLoad",t);const{width:o,height:a,url:n}=t;e.value={width:o,height:a,url:n}}}}});o("./src/components/demo/demo-img.vue?vue&type=style&index=0&id=25c66a4a&scoped=true&lang=css");var Y=s()(V,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-img"},[Object(n.g)("div",{id:"demo-img-container"},[Object(n.g)("label",null,"Contain:"),Object(n.g)("img",{alt:"",src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage,class:"image contain",onTouchstart:t[0]||(t[0]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:t[1]||(t[1]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:t[2]||(t[2]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t))},null,40,["placeholder"]),Object(n.g)("label",null,"Cover:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover"},null,8,["placeholder"]),Object(n.g)("label",null,"Center:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image center"},null,8,["placeholder"]),Object(n.g)("label",null,"CapInsets:"),Object(n.g)("img",{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",class:"image cover",capInsets:{top:50,left:50,bottom:50,right:50}},null,8,["placeholder"]),Object(n.g)("label",null,"TintColor:"),Object(n.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(n.g)("label",null,"Gif:"),Object(n.g)("img",{alt:"",placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",class:"image cover",onLoad:t[3]||(t[3]=(...t)=>e.onLoad&&e.onLoad(...t))},null,40,["placeholder"]),Object(n.g)("div",{class:"img-result"},[Object(n.g)("p",null,"Load Result: "+Object(n.D)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const H=e=>{e.stopPropagation()},B=e=>{console.log(e.value)},R=e=>{console.log("onKeyboardWillShow",e)},N=()=>{console.log("onKeyboardWillHide")};var U=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(""),a=Object(r.ref)(""),n=Object(r.ref)(!1),l=()=>{if(e.value){const t=e.value;if(t.childNodes.length){let e=t.childNodes;return e=e.filter(e=>"input"===e.tagName),e}}return[]};Object(r.onMounted)(()=>{Object(r.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:a,isFocused:n,blur:e=>{e.stopPropagation(),t.value&&t.value.blur()},clearTextContent:()=>{o.value=""},focus:e=>{e.stopPropagation(),t.value&&t.value.focus()},blurAllInput:()=>{const e=l();e.length&&e.map(e=>(e.blur(),!0))},onKeyboardWillShow:R,onKeyboardWillHide:N,stopPropagation:H,textChange:B,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onBlur")},onFocus:async()=>{t.value&&(n.value=await t.value.isFocused(),a.value="onFocus")}}}});o("./src/components/demo/demo-input.vue?vue&type=style&index=0&id=ebfef7c0&scoped=true&lang=css");var M=s()(U,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(n.J)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(n.g)("label",null,"文本:"),Object(n.g)("input",{ref:"input",placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0,class:"input",value:e.text,onChange:t[0]||(t[0]=t=>e.text=t.value),onClick:t[1]||(t[1]=(...t)=>e.stopPropagation&&e.stopPropagation(...t)),"on:keyboardWillShow":t[2]||(t[2]=(...t)=>e.onKeyboardWillShow&&e.onKeyboardWillShow(...t)),"on:keyboardWillHide":t[3]||(t[3]=(...t)=>e.onKeyboardWillHide&&e.onKeyboardWillHide(...t)),onBlur:t[4]||(t[4]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[5]||(t[5]=(...t)=>e.onFocus&&e.onFocus(...t))},null,40,["value"]),Object(n.g)("div",null,[Object(n.g)("span",null,"文本内容为:"),Object(n.g)("span",null,Object(n.D)(e.text),1)]),Object(n.g)("div",null,[Object(n.g)("span",null,Object(n.D)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(n.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(n.J)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(n.g)("span",null,"清空文本内容")]),Object(n.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(n.J)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(n.g)("span",null,"Focus")]),Object(n.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(n.J)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(n.g)("span",null,"Blur")]),Object(n.g)("label",null,"数字:"),Object(n.g)("input",{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number",class:"input",onChange:t[9]||(t[9]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[10]||(t[10]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"密码:"),Object(n.g)("input",{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password",class:"input",onChange:t[11]||(t[11]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[12]||(t[12]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32),Object(n.g)("label",null,"文本(限制5个字符):"),Object(n.g)("input",{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符",class:"input",onChange:t[13]||(t[13]=(...t)=>e.textChange&&e.textChange(...t)),onClick:t[14]||(t[14]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},null,32)],512)}],["__scopeId","data-v-ebfef7c0"]]);const z=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],F=e=>{console.log("onAppear",e)},W=e=>{console.log("onDisappear",e)},K=e=>{console.log("onWillAppear",e)},G=e=>{console.log("onWillDisappear",e)},J=e=>{console.log("momentumScrollBegin",e)},q=e=>{console.log("momentumScrollEnd",e)},Q=e=>{console.log("onScrollBeginDrag",e)},X=e=>{console.log("onScrollEndDrag",e)};var Z=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)([]),o=Object(r.ref)(null),a=Object(r.ref)(!1);let n=!1;let l=!1;return Object(r.onMounted)(()=>{n=!1,t.value=[...z]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:a,Platform:y.Native.Platform,onAppear:F,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:W,onEndReached:async o=>{if(console.log("endReached",o),n)return;const a=t.value;n=!0,e.value="Loading now...",t.value=[...a,[{style:100}]];const r=await(async()=>new Promise(e=>{setTimeout(()=>e(z),600)}))();t.value=[...a,...r],n=!1},onWillAppear:K,onWillDisappear:G,changeDirection:()=>{a.value=!a.value},onScroll:e=>{console.log("onScroll",e.offsetY),e.offsetY<=0?l||(l=!0,console.log("onTopReached")):l=!1},onMomentumScrollBegin:J,onMomentumScrollEnd:q,onScrollBeginDrag:Q,onScrollEndDrag:X}}});o("./src/components/demo/demo-list.vue?vue&type=style&index=0&id=75193fb0&scoped=true&lang=css");var $=s()(Z,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-list"},[Object(n.g)("ul",{id:"list",ref:"list",style:Object(n.p)(e.horizontal&&{height:50,flex:0}),horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3,"on:endReached":t[0]||(t[0]=(...t)=>e.onEndReached&&e.onEndReached(...t)),onDelete:t[1]||(t[1]=(...t)=>e.onDelete&&e.onDelete(...t)),onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t)),"on:momentumScrollBegin":t[3]||(t[3]=(...t)=>e.onMomentumScrollBegin&&e.onMomentumScrollBegin(...t)),"on:momentumScrollEnd":t[4]||(t[4]=(...t)=>e.onMomentumScrollEnd&&e.onMomentumScrollEnd(...t)),"on:scrollBeginDrag":t[5]||(t[5]=(...t)=>e.onScrollBeginDrag&&e.onScrollBeginDrag(...t)),"on:scrollEndDrag":t[6]||(t[6]=(...t)=>e.onScrollEndDrag&&e.onScrollEndDrag(...t))},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.f)("li",{key:o,class:Object(n.o)(e.horizontal&&"item-horizontal-style"),type:t.style,sticky:1===o,onAppear:t=>e.onAppear(o),onDisappear:t=>e.onDisappear(o),"on:willAppear":t=>e.onWillAppear(o),"on:willDisappear":t=>e.onWillDisappear(o)},[1===t.style?(Object(n.t)(),Object(n.f)("div",{key:0,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 1 UI"),1)])])):2===t.style?(Object(n.t)(),Object(n.f)("div",{key:1,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 2 UI"),1)])])):5===t.style?(Object(n.t)(),Object(n.f)("div",{key:2,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{numberOfLines:1},Object(n.D)(o+": Style 5 UI"),1)])])):(Object(n.t)(),Object(n.f)("div",{key:3,class:"container"},[Object(n.g)("div",{class:"item-container"},[Object(n.g)("p",{id:"loading"},Object(n.D)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(n.t)(),Object(n.f)("div",{key:4,class:"separator-line"})):Object(n.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},onClick:t[7]||(t[7]=(...t)=>e.changeDirection&&e.changeDirection(...t))},[Object(n.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(n.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(r.defineComponent)({setup(){const e=Object(r.ref)(""),t=Object(r.ref)(0),o=Object(r.ref)({numberOfLines:2,ellipsizeMode:"tail"}),a=Object(r.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),n=Object(r.ref)("simple");return{img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",labelTouchStatus:e,textMode:o,textShadow:a,textShadowIndex:t,Platform:y.Native.Platform,breakStrategy:n,onTouchTextEnd:t=>{e.value="touch end",console.log("onTextTouchEnd",t),console.log(t)},onTouchTextMove:t=>{e.value="touch move",console.log("onTextTouchMove",t),console.log(t)},onTouchTextStart:t=>{e.value="touch start",console.log("onTextTouchDown",t)},decrementLine:()=>{o.value.numberOfLines>1&&(o.value.numberOfLines-=1)},incrementLine:()=>{o.value.numberOfLines<6&&(o.value.numberOfLines+=1)},changeMode:e=>{o.value.ellipsizeMode=e},changeTextShadow:()=>{a.value.textShadowOffsetX=t.value%2==1?10:1,a.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{n.value=e}}}});o("./src/components/demo/demo-p.vue?vue&type=style&index=0&id=34e2123c&scoped=true&lang=css");var te=s()(ee,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"p-demo"},[Object(n.g)("div",null,[Object(n.g)("label",null,"不带样式:"),Object(n.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(n.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(n.D)(e.labelTouchStatus),1),Object(n.g)("label",null,"颜色:"),Object(n.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(n.g)("label",null,"尺寸:"),Object(n.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(n.g)("label",null,"粗体:"),Object(n.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(n.g)("label",null,"下划线:"),Object(n.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(n.g)("label",null,"删除线:"),Object(n.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(n.g)("label",null,"自定义字体:"),Object(n.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(n.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(n.g)("label",null,"文字阴影:"),Object(n.g)("p",{class:"p-demo-7 p-demo-content",style:Object(n.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(n.g)("label",null,"文本字符间距"),Object(n.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(n.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(n.g)("label",null,"字体 style:"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(n.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(n.g)("p",null,"font-style: [not set]")]),Object(n.g)("label",null,"numberOfLines="+Object(n.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(n.D)(e.textMode.ellipsizeMode),1),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(n.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(n.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(n.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(n.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(n.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(n.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(n.g)("span",null,"加一行")]),Object(n.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(n.g)("span",null,"减一行")])]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(n.g)("span",null,"clip")]),Object(n.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(n.g)("span",null,"head")]),Object(n.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(n.g)("span",null,"middle")]),Object(n.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(n.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"p-demo-content"},[Object(n.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(n.D)(e.longText),9,["break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(n.J)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(n.J)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(n.J)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0),Object(n.g)("label",null,"vertical-align"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(n.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(n.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字"),Object(n.g)("span",{style:{"font-size":"16"}},"字")])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"tint-color & background-color"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)]),Object(n.g)("label",null,"margin"),Object(n.g)("div",{class:"p-demo-content"},[Object(n.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:0}," legacy mode: ")):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(n.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(n.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(r.defineComponent)({setup:()=>({Platform:y.Native.Platform})});o("./src/components/demo/demo-shadow.vue?vue&type=style&index=0&id=19ab3f2d&scoped=true&lang=css");var ae=s()(oe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"没有偏移阴影样式")])])):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(n.g)("div",{class:"offset-shadow-demo-content-android"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0),"ios"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(n.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(n.g)("p",null,"偏移阴影样式")])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ne=Object(r.defineComponent)({setup(){const e=Object(r.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(r.ref)("simple");return{content:e,breakStrategy:t,Platform:y.Native.Platform,longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",contentSizeChange:e=>{console.log(e)},changeBreakStrategy:e=>{t.value=e}}}});o("./src/components/demo/demo-textarea.vue?vue&type=style&index=0&id=6d6167b3&scoped=true&lang=css");var re=s()(ne,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"demo-textarea"},[Object(n.g)("label",null,"多行文本:"),Object(n.g)("textarea",{value:e.content,rows:10,placeholder:"多行文本编辑器",class:"textarea",onChange:t[0]||(t[0]=t=>e.content=t.value),"on:contentSizeChange":t[1]||(t[1]=(...t)=>e.contentSizeChange&&e.contentSizeChange(...t))},null,40,["value"]),Object(n.g)("div",{class:"output-container"},[Object(n.g)("p",{class:"output"}," 输入的文本为:"+Object(n.D)(e.content),1)]),"android"===e.Platform?(Object(n.t)(),Object(n.f)("label",{key:0},"break-strategy="+Object(n.D)(e.breakStrategy),1)):Object(n.e)("v-if",!0),"android"===e.Platform?(Object(n.t)(),Object(n.f)("div",{key:1},[Object(n.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(n.g)("div",{class:"button-bar"},[Object(n.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(n.g)("span",null,"simple")]),Object(n.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(n.g)("span",null,"high_quality")]),Object(n.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(n.g)("span",null,"balanced")])])])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o("./src/components/demo/demoTurbo.ts"),ce=Object(r.defineComponent)({setup(){let e=null;const t=Object(r.ref)("");return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:async o=>{if("nativeWithPromise"===o)t.value=await Object(le.h)("aaa");else if("getTurboConfig"===o)e=Object(le.g)(),t.value="获取到config对象";else if("printTurboConfig"===o){var a;t.value=Object(le.i)(null!==(a=e)&&void 0!==a?a:Object(le.g)())}else if("getInfo"===o){var n;t.value=(null!==(n=e)&&void 0!==n?n:Object(le.g)()).getInfo()}else if("setInfo"===o){var r;(null!==(r=e)&&void 0!==r?r:Object(le.g)()).setInfo("Hello World"),t.value="设置config信息成功"}else{const e={getString:()=>Object(le.f)("123"),getNum:()=>Object(le.d)(1024),getBoolean:()=>Object(le.b)(!0),getMap:()=>Object(le.c)(new Map([["a","1"],["b","2"]])),getObject:()=>Object(le.e)({c:"3",d:"4"}),getArray:()=>Object(le.a)(["a","b","c"])};t.value=e[o]()}}}}});o("./src/components/demo/demo-turbo.vue?vue&type=style&index=0&id=3b8c7a7f&lang=css");var se=s()(ce,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"demo-turbo"},[Object(n.g)("span",{class:"result"},Object(n.D)(e.result),1),Object(n.g)("ul",{style:{flex:"1"}},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.funList,t=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"cell"},[Object(n.g)("div",{class:"contentView"},[Object(n.g)("div",{class:"func-info"},[Object(n.g)("span",{numberOfLines:0},"函数名:"+Object(n.D)(t),1)]),Object(n.g)("span",{class:"action-button",onClick:Object(n.J)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let ie=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{ie&&1===ie.readyState&&ie.close()};var be=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null);return{output:de,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{ue(),ie=new WebSocket(e),ie.onopen=()=>{var e;return pe("[Opened] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onclose=()=>{var e;return pe("[Closed] "+(null===(e=ie)||void 0===e?void 0:e.url))},ie.onerror=e=>{pe("[Error] "+e.reason)},ie.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),ie&&ie.send(e)})(e)})}}}});o("./src/components/demo/demo-websocket.vue?vue&type=style&index=0&id=99a0fc74&scoped=true&lang=css");var ye={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:ae},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:i},demoImg:{name:"img 组件",component:Y},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:L},demoWebSocket:{name:"WebSocket",component:s()(be,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"websocket-demo"},[Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Url: "),Object(n.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(n.g)("div",{class:"row"},[Object(n.g)("button",{onClick:t[0]||(t[0]=Object(n.J)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(n.g)("span",null,"Connect")]),Object(n.g)("button",{onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(n.g)("span",null,"Disconnect")])])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Message: "),Object(n.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(n.g)("button",{onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(n.g)("span",null,"Send")])]),Object(n.g)("div",null,[Object(n.g)("p",{class:"demo-title"}," Log: "),Object(n.g)("div",{class:"output fullscreen"},[Object(n.g)("div",null,[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.output,(e,t)=>(Object(n.t)(),Object(n.f)("p",{key:t},Object(n.D)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:E},demoTurbo:{name:"Turbo",component:se}};var ve=Object(r.defineComponent)({setup(){const e=Object(r.ref)(null),t=Object(r.ref)(0),o=Object(r.ref)(0);Object(r.onMounted)(()=>{o.value=y.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const a=t.touches[0].clientX-40;console.log("touchdown x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const a=t.touches[0].clientX-40;console.log("touchmove x",a,o.value),e.value&&e.value.setNativeProps({style:{left:a}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o("./src/components/demo/demo-set-native-props.vue?vue&type=style&index=0&id=4521f010&scoped=true&lang=css");var fe=s()(ve,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"set-native-props-demo"},[Object(n.g)("label",null,"setNativeProps实现拖动效果"),Object(n.g)("div",{class:"native-demo-1-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(n.J)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(n.J)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(n.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(n.g)("div",{class:"splitter"}),Object(n.g)("label",null,"普通渲染实现拖动效果"),Object(n.g)("div",{class:"native-demo-2-drag",style:Object(n.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(n.J)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(n.J)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(n.g)("div",{class:"native-demo-2-point",style:Object(n.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var ge=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:me})});o("./src/components/native-demo/animations/color-change.vue?vue&type=style&index=0&id=35b77823&scoped=true&lang=css");var he=s()(ge,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"color-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-35b77823"]]);const je={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier( 0.45,2.84, 000.38,.5)"}]}};var Oe=Object(r.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(r.ref)(null);return Object(r.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o("./src/components/native-demo/animations/cubic-bezier.vue?vue&type=style&index=0&id=0ffc52dc&scoped=true&lang=css");var _e=s()(Oe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const we={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se=Object(r.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(r.toRefs)(e),o=Object(r.ref)(""),a=Object(r.ref)(null);return Object(r.watch)(t,e=>{switch(e){case"horizon":o.value=we;break;case"vertical":o.value=xe;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(r.onMounted)(()=>{e.onRef&&e.onRef(a.value)}),{loopActions:o,animationLoop:a}}});o("./src/components/native-demo/animations/loop.vue?vue&type=style&index=0&id=54047ca5&scoped=true&lang=css");var Ae=s()(Se,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(n.H)(()=>[Object(n.g)("div",{class:"loop-white"},[Object(n.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const Ce={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ke={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Pe=Object(r.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(r.ref)(null),o=Object(r.ref)({face:Ce,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}),{isChanged:a}=Object(r.toRefs)(e);return Object(r.watch)(a,(e,a)=>{!a&&e?(console.log("changed to face2"),o.value.face=ke):a&&!e&&(console.log("changed to face1"),o.value.face=Ce),setTimeout(()=>{t.value&&t.value.start()},10)}),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:o,animationStart:()=>{console.log("animation-start callback")},animationEnd:()=>{console.log("animation-end callback")},animationRepeat:()=>{console.log("animation-repeat callback")},animationCancel:()=>{console.log("animation-cancel callback")}}}});o("./src/components/native-demo/animations/vote-down.vue?vue&type=style&index=0&id=7020ef76&scoped=true&lang=css");var Ee=s()(Pe,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{ref:"animationRef",actions:e.animations.face,class:"vote-face",playing:"",onStart:e.animationStart,onEnd:e.animationEnd,onRepeat:e.animationRepeat,onCancel:e.animationCancel},null,8,["actions","onStart","onEnd","onRepeat","onCancel"]),Object(n.i)(c,{tag:"img",class:"vote-down-face",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace},null,8,["props","actions"])])}],["__scopeId","data-v-7020ef76"]]);var Te=Object(r.defineComponent)({setup:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})});o("./src/components/native-demo/animations/vote-up.vue?vue&type=style&index=0&id=0dd85e5f&scoped=true&lang=css");var Le=s()(Te,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("animation");return Object(n.t)(),Object(n.f)("div",null,[Object(n.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(n.i)(c,{tag:"img",class:"vote-up-mouth",playing:"",props:{src:e.imgs.upVoteMouth},actions:e.animations.upVoteMouth},null,8,["props","actions"])])}],["__scopeId","data-v-0dd85e5f"]]),Ie=Object(r.defineComponent)({components:{Loop:Ae,colorComponent:he,CubicBezier:_e},setup(){const e=Object(r.ref)(!0),t=Object(r.ref)(!0),o=Object(r.ref)(!0),a=Object(r.ref)("horizon"),n=Object(r.ref)(!0),l=Object(r.ref)(null),c=Object(r.shallowRef)(Le);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:a,voteComponent:c,colorComponent:he,isChanged:n,animationRef:l,voteUp:()=>{c.value=Le},voteDown:()=>{c.value=Ee,n.value=!n.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{a.value="horizon"===a.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(r.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o("./src/components/native-demo/demo-animation.vue?vue&type=style&index=0&id=4fa3f0c0&scoped=true&lang=css");var De=s()(Ie,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),s=Object(n.z)("color-component"),i=Object(n.z)("cubic-bezier");return Object(n.t)(),Object(n.f)("ul",{id:"animation-demo"},[Object(n.g)("li",null,[Object(n.g)("label",null,"控制动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(n.t)(),Object(n.f)("span",{key:0},"切换为纵向")):(Object(n.t)(),Object(n.f)("span",{key:1},"切换为横向"))])]),Object(n.g)("div",{style:{height:"150px"}},[Object(n.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"点赞笑脸动画:"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(n.g)("span",null,"点赞 👍")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(n.g)("span",null,"踩 👎")])]),Object(n.g)("div",{class:"vote-face-container center"},[(Object(n.t)(),Object(n.d)(Object(n.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"渐变色动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(s,{playing:e.colorPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(n.g)("li",null,[Object(n.g)("div",{style:{"margin-top":"10px"}}),Object(n.g)("label",null,"贝塞尔曲线动画"),Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(n.t)(),Object(n.f)("span",{key:0},"暂停")):(Object(n.t)(),Object(n.f)("span",{key:1},"播放"))])]),Object(n.g)("div",null,[Object(n.i)(i,{playing:e.cubicPlaying},{default:Object(n.H)(()=>[Object(n.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Ve=o("./node_modules/vue-router/dist/vue-router.mjs");const Ye=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var He=Object(r.defineComponent)({setup(){const e=Object(r.ref)(!1),t=Object(r.ref)(!1),o=Object(r.ref)("fade"),a=Object(r.ref)(!1),n=Object(r.ref)(!1),l=Object(r.ref)(!1);return Object(Ve.onBeforeRouteLeave)((t,o,a)=>{e.value||a()}),{supportedOrientations:Ye,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:a,autoHideStatusBar:n,autoHideNavigationBar:l,stopPropagation:e=>{e.stopPropagation()},onClose:o=>{o.stopPropagation(),t.value?t.value=!1:e.value=!1,console.log("Dialog is closing")},onShow:()=>{console.log("Dialog is opening")},onClickView:(t="")=>{e.value=!e.value,o.value=t},onClickOpenSecond:e=>{e.stopPropagation(),t.value=!t.value},onClickDialogConfig:e=>{switch(e){case"hideStatusBar":n.value=!n.value;break;case"immerseStatusBar":a.value=!a.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o("./src/components/native-demo/demo-dialog.vue?vue&type=style&index=0&id=58c0fb99&scoped=true&lang=css");var Be=s()(He,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{id:"dialog-demo"},[Object(n.g)("label",null,"显示或者隐藏对话框:"),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(n.J)(()=>e.onClickView("slide"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(n.J)(()=>e.onClickView("fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(n.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(n.J)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(n.J)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(n.J)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(n.g)("button",{style:Object(n.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(n.J)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(n.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(n.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar,onShow:t[12]||(t[12]=(...t)=>e.onShow&&e.onShow(...t)),"on:requestClose":t[13]||(t[13]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[14]||(t[14]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.e)(" dialog on iOS platform can only have one child node "),Object(n.g)("div",{class:"dialog-demo-wrapper"},[Object(n.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(n.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(n.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(n.t)(),Object(n.f)("dialog",{key:0,animationType:e.dialogAnimationType,transparent:!0,"on:requestClose":t[9]||(t[9]=(...t)=>e.onClose&&e.onClose(...t)),"on:orientationChange":t[10]||(t[10]=(...t)=>e.onOrientationChange&&e.onOrientationChange(...t))},[Object(n.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(n.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(n.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(n.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Re=o("./src/util.ts");let Ne;var Ue=Object(r.defineComponent)({setup(){const e=Object(r.ref)("ready to set"),t=Object(r.ref)(""),o=Object(r.ref)(""),a=Object(r.ref)("正在获取..."),n=Object(r.ref)(""),l=Object(r.ref)(""),c=Object(r.ref)(""),s=Object(r.ref)(null),i=Object(r.ref)("请求网址中..."),d=Object(r.ref)("ready to set"),p=Object(r.ref)(""),u=Object(r.ref)(0);return Object(r.onMounted)(()=>{c.value=JSON.stringify(Object(Re.a)()),y.Native.NetInfo.fetch().then(e=>{a.value=e}),Ne=y.Native.NetInfo.addEventListener("change",e=>{a.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{i.value="成功状态: "+e.status}).catch(e=>{i.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:s,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:i,cookieString:d,cookiesValue:p,getSize:async()=>{const e=await y.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),o.value=`${e.width}x${e.height}`},setItem:()=>{y.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await y.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{y.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{y.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),d.value="'name=hippy;network=mobile' is set"},getCookie:()=>{y.Native.Cookie.getAll("https://hippyjs.org").then(e=>{p.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await y.Native.getBoundingClientRect(s.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):n.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{y.EventBus.$emit("testEvent")},eventTriggeredTimes:u}},beforeDestroy(){Ne&&y.Native.NetInfo.removeEventListener("change",Ne),y.EventBus.$off("testEvent")}});o("./src/components/native-demo/demo-vue-native.vue?vue&type=style&index=0&id=2aae558d&scoped=true&lang=css");var Me=s()(Ue,[["render",function(e,t,o,a,r,l){var c,s;return Object(n.t)(),Object(n.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(n.g)("div",null,[Object(n.e)(" platform "),e.Native.Platform?(Object(n.t)(),Object(n.f)("div",{key:0,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(n.g)("p",null,Object(n.D)(e.Native.Platform),1)])):Object(n.e)("v-if",!0),Object(n.e)(" device name "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Device"),Object(n.g)("p",null,Object(n.D)(e.Native.Device),1)]),Object(n.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:1,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(n.g)("p",null,Object(n.D)(e.Native.isIPhoneX),1)])):Object(n.e)("v-if",!0),Object(n.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:2,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(n.g)("p",null,Object(n.D)(e.Native.OSVersion||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Internationalization related information "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(n.g)("p",null,Object(n.D)("国际化相关信息")),Object(n.g)("p",null,Object(n.D)("国家 "+(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(n.g)("p",null,Object(n.D)("语言 "+(null===(s=e.Native.Localization)||void 0===s?void 0:s.language)),1),Object(n.g)("p",null,Object(n.D)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(n.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:3,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(n.g)("p",null,Object(n.D)(e.Native.APILevel||"null"),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Whether the screen is vertically displayed "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(n.g)("p",null,Object(n.D)(e.Native.screenIsVertical),1)]),Object(n.e)(" width of window "),e.Native.Dimensions.window.width?(Object(n.t)(),Object(n.f)("div",{key:4,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(n.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(n.t)(),Object(n.f)("div",{key:5,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.window.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(n.t)(),Object(n.f)("div",{key:6,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.width),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(n.t)(),Object(n.f)("div",{key:7,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.height),1)])):Object(n.e)("v-if",!0),Object(n.e)(" the pt value of a pixel "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(n.g)("p",null,Object(n.D)(e.Native.OnePixel),1)]),Object(n.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:8,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(n.t)(),Object(n.f)("div",{key:9,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(n.t)(),Object(n.f)("div",{key:10,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(n.g)("p",null,Object(n.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(n.e)("v-if",!0),Object(n.e)(" The startup parameters passed from the native "),e.superProps?(Object(n.t)(),Object(n.f)("div",{key:11,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(n.g)("p",null,Object(n.D)(e.superProps),1)])):Object(n.e)("v-if",!0),Object(n.e)(" A demo of Native Event,Just show how to use "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"App event"),Object(n.g)("div",null,[Object(n.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(n.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(n.g)("div",{class:"event-btn-result"},[Object(n.g)("p",null,"Event triggered times: "+Object(n.D)(e.eventTriggeredTimes),1)])])]),Object(n.e)(" example of measuring the size of an element "),Object(n.g)("div",{ref:"measure-block",class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(n.g)("span",null,"relative to App")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect1),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(n.g)("span",null,"relative to Container")]),Object(n.g)("span",{style:{"max-width":"200px"}},Object(n.D)(e.rect2),1)])],512),Object(n.e)(" local storage "),e.Native.AsyncStorage?(Object(n.t)(),Object(n.f)("div",{key:12,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(n.g)("span",null,"setItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(n.g)("span",null,"removeItem")]),Object(n.g)("span",null,Object(n.D)(e.storageSetStatus),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(n.g)("span",null,"getItem")]),Object(n.g)("span",null,Object(n.D)(e.storageValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" ImageLoader "),e.Native.ImageLoader?(Object(n.t)(),Object(n.f)("div",{key:13,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(n.g)("span",null,"getSize")]),Object(n.g)("span",null,Object(n.D)(e.imageSize),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Fetch "),Object(n.g)("div",{class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.fetchText),1)])]),Object(n.e)(" network info "),e.Native.NetInfo?(Object(n.t)(),Object(n.f)("div",{key:14,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("span",null,Object(n.D)(e.netInfoText),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" Cookie "),e.Native.Cookie?(Object(n.t)(),Object(n.f)("div",{key:15,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(n.g)("span",null,"setCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookieString),1)]),Object(n.g)("div",{class:"item-wrapper"},[Object(n.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(n.g)("span",null,"getCookie")]),Object(n.g)("span",null,Object(n.D)(e.cookiesValue),1)])])):Object(n.e)("v-if",!0),Object(n.e)(" iOS platform "),e.Native.isIOS()?(Object(n.t)(),Object(n.f)("div",{key:16,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(n.g)("p",null,Object(n.D)(e.Native.isIOS()),1)])):Object(n.e)("v-if",!0),Object(n.e)(" Android platform "),e.Native.isAndroid()?(Object(n.t)(),Object(n.f)("div",{key:17,class:"native-block"},[Object(n.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(n.g)("p",null,Object(n.D)(e.Native.isAndroid()),1)])):Object(n.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const ze="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Fe={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ze,ze,ze],subInfo:["三图评论","11评"]}},We={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ke={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ge=[Ke,Fe,We,Fe,We,Fe,We,Ke,Fe];var Je=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var qe=s()(Je,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-one"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-one-image-container"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.itemBean.picList,(e,t)=>(Object(n.t)(),Object(n.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])])}]]);var Qe=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Xe=s()(Qe,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-two"},[Object(n.g)("div",{class:"style-two-left-container"},[Object(n.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join("")),1)])]),Object(n.g)("div",{class:"style-two-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Ze=Object(r.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=s()(Ze,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{class:"list-view-item style-five"},[Object(n.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(n.D)(e.itemBean.title),1),Object(n.g)("div",{class:"style-five-image-container"},[Object(n.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(n.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(n.g)("p",{class:"normal-text"},Object(n.D)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(r.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ge),800)});var at=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)(null),t=Object(r.ref)(null),o=Object(r.ref)(null),a=Object(r.ref)([...Ge]);let n=!1,l=!1;const c=Object(r.ref)(""),s=Object(r.ref)("继续下拉触发刷新"),i=Object(r.ref)("正在加载...");return Object(r.onMounted)(()=>{n=!1,l=!1,a.value=[...Ge],et=null!==y.Native&&void 0!==y.Native&&y.Native.Dimensions?y.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:c,dataSource:a,headerRefreshText:s,footerRefreshText:i,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,i.value="加载更多...";const t=await ot();0===t.length&&(i.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),s.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,s.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?s.value="松手,即可触发刷新":s.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(y.Native){if(e.value){const t=e.value;console.log("scroll to next page",e,tt.value,et);const o=tt.value.top+et-200;t.scrollTo({left:tt.value.left,top:o,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:()=>{if(y.Native){if(e.value){const t=e.value;t.scrollToIndex(0,t.childNodes.length-1)}}else alert("This method is only supported in Native environment.")}}}});o("./src/components/native-demo/demo-pull-header-footer.vue?vue&type=style&index=0&id=52ecb6dc&scoped=true&lang=css");var nt=s()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("style-one"),i=Object(n.z)("style-two"),d=Object(n.z)("style-five"),p=Object(n.z)("pull-footer");return Object(n.t)(),Object(n.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(n.g)("span",null,"翻动到底部")]),Object(n.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(n.D)(e.dataSource.length),1)]),Object(n.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(n.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(e,t)=>(Object(n.t)(),Object(n.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(n.t)(),Object(n.d)(s,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===e.style?(Object(n.t)(),Object(n.d)(i,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===e.style?(Object(n.t)(),Object(n.d)(d,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(n.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(n.i)(p,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var rt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("idle"),t=Object(r.ref)(2),o=Object(r.ref)(2);return{dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:t,currentSlideNum:o,state:e,scrollToNextPage:()=>{console.log("scroll next",t.value,o.value),t.value<7?t.value=o.value+1:t.value=0},scrollToPrevPage:()=>{console.log("scroll prev",t.value,o.value),0===t.value?t.value=6:t.value=o.value-1},onDragging:e=>{console.log("Current offset is",e.offset,"and will into slide",e.nextSlide+1)},onDropped:e=>{console.log("onDropped",e),o.value=e.currentSlide},onStateChanged:t=>{console.log("onStateChanged",t),e.value=t.state}}}});o("./src/components/native-demo/demo-swiper.vue?vue&type=style&index=0&id=0621dcf0&lang=css");var lt=s()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-swiper"},[Object(n.g)("div",{class:"toolbar"},[Object(n.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(n.g)("span",null,"翻到上一页")]),Object(n.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(n.g)("span",null,"翻到下一页")]),Object(n.g)("p",{class:"toolbar-text"}," 当前第 "+Object(n.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(n.e)('\n swiper 组件参数\n @param {Number} currentSlide 当前页面,也可以直接修改它改变当前页码,默认 0\n @param {Boolean} needAnimation 是否需要动画,如果切换时不要动画可以设置为 :needAnimation="false",默认为 true\n @param {Function} dragging 当拖拽时执行回调,参数是个 Event,包含 offset 拖拽偏移值和 nextSlide 将进入的页码\n @param {Function} dropped 结束拖拽时回调,参数是个 Event,包含 currentSlide 最后选择的页码\n '),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(n.H)(()=>[Object(n.e)(" slides "),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,e=>(Object(n.t)(),Object(n.d)(c,{key:e,style:Object(n.p)({backgroundColor:4278222848+100*e})},{default:Object(n.H)(()=>[Object(n.g)("p",null,"I'm Slide "+Object(n.D)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(n.e)(" A Demo of dots "),Object(n.g)("div",{id:"swiper-dots"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,t=>(Object(n.t)(),Object(n.f)("div",{key:t,class:Object(n.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let ct=0;const st={top:0,left:5,bottom:0,right:5},it="ios"===y.Native.Platform,dt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ge,...Ge])),600)});var pt=Object(r.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(r.ref)([...Ge,...Ge,...Ge,...Ge]);let t=!1,o=!1;const a=Object(r.ref)(!1),n=Object(r.ref)("正在加载..."),l=Object(r.ref)(null),c=Object(r.ref)(null);let s="继续下拉触发刷新",i="正在加载...";const d=Object(r.computed)(()=>a.value?"正在刷新":"下拉刷新"),p=Object(r.ref)(null),u=Object(r.ref)(null),b=Object(r.computed)(()=>(y.Native.Dimensions.screen.width-st.left-st.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:st,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await dt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,i="加载更多...";const o=await dt();0===o.length&&(i="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isIos:it,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),s=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),s="刷新数据中,请稍等",o=!1,s="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:s,footerRefreshText:i,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=8b6764ca&scoped=true&lang=css");var ut=s()(pt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),s=Object(n.z)("waterfall-item"),i=Object(n.z)("style-one"),d=Object(n.z)("style-two"),p=Object(n.z)("style-five"),u=Object(n.z)("pull-footer"),b=Object(n.z)("waterfall");return Object(n.t)(),Object(n.f)("div",{id:"demo-waterfall"},[Object(n.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!0,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4,style:{flex:1},onEndReached:e.onEndReached,onScroll:e.onScroll},{default:Object(n.H)(()=>[Object(n.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"ul-refresh-text"},Object(n.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isIos?(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])):(Object(n.t)(),Object(n.d)(s,{key:1,"full-span":!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"BannerView")]),_:1})),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(s,{key:o,style:Object(n.p)({width:e.itemWidth}),type:t.style,onClick:Object(n.J)(()=>e.onClickItem(o),["stop"])},{default:Object(n.H)(()=>[1===t.style?(Object(n.t)(),Object(n.d)(i,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),2===t.style?(Object(n.t)(),Object(n.d)(d,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0),5===t.style?(Object(n.t)(),Object(n.d)(p,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(n.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(n.i)(u,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(n.H)(()=>[Object(n.g)("p",{class:"pull-footer-text"},Object(n.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-8b6764ca"]]);var bt=Object(r.defineComponent)({setup(){const e=Object(r.ref)(0),t=Object(r.ref)(0);return{layoutHeight:e,currentSlide:t,onLayout:t=>{e.value=t.height},onTabClick:e=>{t.value=e-1},onDropped:e=>{t.value=e.currentSlide}}}});o("./src/components/native-demo/demo-nested-scroll.vue?vue&type=style&index=0&id=72406cea&scoped=true&lang=css");var yt={demoNative:{name:"Native 能力",component:Me},demoAnimation:{name:"animation 组件",component:De},demoDialog:{name:"dialog 组件",component:Be},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:nt},demoWaterfall:{name:"waterfall 组件",component:ut},demoNestedScroll:{name:"nested scroll 示例",component:s()(bt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),s=Object(n.z)("swiper");return Object(n.t)(),Object(n.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(n.g)("div",{id:"demo-content"},[Object(n.g)("div",{id:"banner"}),Object(n.g)("div",{id:"tabs"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(2,t=>Object(n.g)("p",{key:"tab"+t,class:Object(n.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(n.D)(t)+" "+Object(n.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(n.i)(s,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(n.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(n.H)(()=>[Object(n.i)(c,{key:"slide1"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1}),Object(n.i)(c,{key:"slide2"},{default:Object(n.H)(()=>[Object(n.g)("ul",{nestedScrollTopPriority:"self"},[(Object(n.t)(),Object(n.f)(n.a,null,Object(n.x)(30,e=>Object(n.g)("li",{key:"item"+e,class:Object(n.o)(e%2?"item-even":"item-odd")},[Object(n.g)("p",null,"Item "+Object(n.D)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:fe}};var vt=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(yt).map(e=>({id:e,name:yt[e].name}));return Object(r.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:r.version,Native:y.Native}}});o("./src/pages/menu.vue?vue&type=style&index=0&id=63300fa4&scoped=true&lang=css");var ft=s()(vt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("router-link");return Object(n.t)(),Object(n.f)("ul",{class:"feature-list"},[Object(n.g)("li",null,[Object(n.g)("div",{id:"version-info"},[Object(n.g)("p",{class:"feature-title"}," Vue: "+Object(n.D)(e.version),1),e.Native?(Object(n.t)(),Object(n.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(n.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(n.e)("v-if",!0)])]),Object(n.g)("li",null,[Object(n.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.featureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(n.t)(),Object(n.f)("li",{key:0},[Object(n.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(n.e)("v-if",!0),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.nativeFeatureList,e=>(Object(n.t)(),Object(n.f)("li",{key:e.id,class:"feature-item"},[Object(n.i)(c,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(n.H)(()=>[Object(n.h)(Object(n.D)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var mt=Object(r.defineComponent)({setup(){const e=Object(r.ref)("http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy"),t=Object(r.ref)(null);return{bundleUrl:e,styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}},tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],inputRef:t,blurInput:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Re.a)();y.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o("./src/pages/remote-debug.vue?vue&type=style&index=0&id=c92250fe&scoped=true&lang=css");const gt=[{path:"/",component:ft},{path:"/remote-debug",component:s()(mt,[["render",function(e,t,o,a,r,l){return Object(n.t)(),Object(n.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(n.J)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(n.g)("div",{class:"tips-wrap"},[(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.tips,(t,o)=>(Object(n.t)(),Object(n.f)("p",{key:o,class:"tips-item",style:Object(n.p)(e.styles.tipText)},Object(n.D)(o+1)+". "+Object(n.D)(t),5))),128))]),Object(n.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(n.J)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value"]),Object(n.g)("div",{class:"buttonContainer",style:Object(n.p)(e.styles.buttonContainer)},[Object(n.g)("button",{style:Object(n.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(n.J)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(n.g)("span",{style:Object(n.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(ye).map(e=>({path:"/demo/"+e,name:ye[e].name,component:ye[e].component})),...Object.keys(yt).map(e=>({path:"/demo/"+e,name:yt[e].name,component:yt[e].component}))];function ht(){return Object(a.createHippyRouter)({routes:gt})}},"./src/util.ts":function(e,t,o){"use strict";let a;function n(e){a=e}function r(){return a}o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}))},0:function(e,t,o){e.exports=o("./src/main-native.ts")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js b/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js index 1ef0f1ad6db..a1493bdc41b 100644 --- a/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js +++ b/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js @@ -1,8 +1,8 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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-vue-next/dist/index.js":function(e,t,n){"use strict";(function(e,r){ /*! - * @hippy/vue-next v3.3.0 - * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.0) - * Build at: Thu Jun 20 2024 15:23:50 GMT+0800 (中国标准时间) + * @hippy/vue-next v3.3.1 + * (Using Vue v3.4.15 and Hippy-Vue-Next v3.3.1) + * Build at: Mon Aug 26 2024 14:48:41 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -22,7 +22,7 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports; * See the License for the specific language governing permissions and * limitations under the License. */ -const o=["mode","valueType","startValue","toValue"],i=["transform"],s=["transform"];function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(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 l(e){for(var t=1;t]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=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,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},d.apply(this,arguments)}function p(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var h=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"),m=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");const v={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},g=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,y="[-+]?\\d*\\.?\\d+",b={rgb:new RegExp("rgb"+g(y,y,y)),rgba:new RegExp("rgba"+g(y,y,y,y)),hsl:new RegExp("hsl"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",y)),hex3:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex4:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},O=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},_=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},E=(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},S=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=E(o,r,e+1/3),s=E(o,r,e),c=E(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},w=e=>(parseFloat(e)%360+360)%360/360,N=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function x(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=b.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(v,e)?v[e]:(t=b.rgb.exec(e),Array.isArray(t)?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|255)>>>0:(t=b.rgba.exec(e),t?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|_(t[4]))>>>0:(t=b.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=b.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=b.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=b.hsl.exec(e),t?(255|S(w(t[1]),N(t[2]),N(t[3])))>>>0:(t=b.hsla.exec(e),t?(S(w(t[1]),N(t[2]),N(t[3]))|_(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const T={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},j={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},k="turn",C="rad",A="deg",I=/\/\*[\s\S]{0,1000}?\*\//gm;const P=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function M(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=d(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";let r="180";const[o,i,s]=n;return i&&s?r=function(e,t=A){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case k:r=""+(360*n).toFixed(2);break;case C:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==j[o]&&(r=j[o]),r}function L(e=""){const t=e.replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:x(n)}:null:{color:x(n)}}function F(e,t){let n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},e.forEach((e,t)=>{if(0===t){const t=M(e);if(t)n.angle=t;else{n.angle="180";const t=L(e);t&&o.push(t)}}else{const t=L(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}class D{constructor(){this.changeMap=new Map}addAttribute(e,t){const n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}addPseudoClass(e,t){const n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}properties(e){let t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}class V{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.lookupSort(this))}static removeFromMap(e,t,n){const r=e[t],o=r.findIndex(e=>{var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)});-1!==o&&r.splice(o,1)}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e,t){const{tagName:n,id:r,classList:o,props:i}=e;let s=r,c=o;if(null==i?void 0:i.attributes){const{attributes:e}=i;c=new Set(((null==e?void 0:e.class)||"").split(" ").filter(e=>e.trim())),s=e.id}const a=[this.universal,this.id[s],this.type[n]];(null==c?void 0:c.size)&&c.forEach(e=>a.push(this.class[e]));const l=a.filter(e=>!!e).reduce((e,t)=>e.concat(t),[]),u=new D;return u.selectors=l.filter(n=>n.sel.accumulateChanges(e,u,t)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),u}removeById(e,t){V.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){V.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){V.removeFromMap(this.type,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)});-1!==t&&this.universal.splice(t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,n){this.position+=1;const r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function B(e){return e?" "+e:""}function $(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}class U{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class H extends U{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}match(e){return!!e}mayMatch(e){return this.match(e)}trackChanges(e,t){}}class Y extends H{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof H&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${B(this.combinator)}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof H&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof H&&this.head.removeSort(e,null!=t?t:this)}}class W extends H{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+B(this.combinator)}match(){return!0}}class z extends H{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${B(this.combinator)}`}match(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class K extends H{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${B(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,null!=t?t:this)}removeSort(e,t){e.removeByType(this.cssType,null!=t?t:this)}}class G extends H{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${B(this.combinator)}`}match(e){var t,n,r;if(!e)return!1;const o=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter(e=>e.trim()));return!(!o.size||!o.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,null!=t?t:this)}removeSort(e,t){e.removeByClass(this.className,null!=t?t:this)}}class q extends H{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${B(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const J=(e,t)=>{var n,r,o;const i=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==i?i:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(o=null==e?void 0:e.styleScopeId)||void 0===o?void 0:o.includes(t))?t:void 0};class X extends H{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?r=>{if(!r||!(null==r?void 0:r.attributes)&&!(null==r?void 0:r.props[e]))return!1;const o=""+J(r,e);if("="===t)return o===n;if("^="===t)return o.startsWith(n);if("$="===t)return o.endsWith(n);if("*="===t)return-1!==o.indexOf(n);if("~="===t){const e=o.split(" ");return-1!==(null==e?void 0:e.indexOf(n))}return"|="===t&&(o===n||o.startsWith(n+"-"))}:()=>!1:t=>!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!function(e){return null==e}(J(t,e))}toString(){return`[${this.attribute}${B(this.test)}${this.test&&this.value||""}]${B(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Z extends H{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.error=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Q{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class ee{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class te extends U{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],r=[];const o=[],i=[...e],s=i.length-1;this.specificity=0,this.dynamic=!1;for(let e=s;e>=0;e--){const s=i[e];if(-1===t.indexOf(s.combinator))throw console.error(`Unsupported combinator "${s.combinator}".`),new Error(`Unsupported combinator "${s.combinator}".`);void 0!==s.combinator&&" "!==s.combinator||o.push(r=[n=[]]),">"===s.combinator&&r.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=o.map(e=>new Q(e.map(e=>new ee(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e,t){return!!e&&this.groups.every((n,r)=>{if(0===r)return!!(e=n.match(e));let o=$(e,t);for(;o;){if(e=n.match(o))return!0;o=$(o,t)}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t,n){if(!this.dynamic)return this.match(e,n);const r=[],o=this.groups.every((t,o)=>{if(0===o){const n=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=n)}let i=$(e,n);for(;i;){const o=t.mayMatch(i);if(o)return r.push({left:i,right:null}),e=o,!0;i=$(i,n)}return!1});if(!o)return!1;if(!t)return o;for(let e=0;e(e.ruleSet=this,null)),this.selectors=e,this.declarations=t,this.hash=n}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}const re=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),oe={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ie={};function se(e,t,n){let r="";re&&(r="gy"),ie[e]||(ie[e]=new RegExp(oe[e],r));const o=ie[e];let i;if(re)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),i=o.exec(t),!i)return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function ce(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=se("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:r.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){const{result:n,regexp:r}=se("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){const{result:n,regexp:r}=se("attributeSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:o}}return{value:{type:"[]",property:i},start:t,end:o}}(e,t)}function ae(e,t){let n=ce(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=ce(e,r);return{start:t,end:r,value:o}}function le(e,t){const{result:n,regexp:r}=se("combinatorRegEx",e,t);if(!n)return null;let o;o=re?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}const ue=e=>e;function de(e){return"declaration"===e.type}function pe(e){return t=>e(t)}function fe(e){switch(e.type){case"*":return new W;case"#":return new z(e.identifier);case"":return new K(e.identifier.replace(/-/,"").toLowerCase());case".":return new G(e.identifier);case":":return new q(e.identifier);case"[]":return e.test?new X(e.property,e.test,e.value):new X(e.property);default:return null}}function he(e){return 0===e.length?new Z(new Error("Empty simple selector sequence.")):1===e.length?fe(e[0]):new Y(e.map(fe))}function me(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=se("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=re?[e]:e.split(" "),c.forEach(e=>{if(!re){if(""===e)return;n=0}do{const t=ae(e,n);if(!t){if(a)return;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=le(e,n),s&&({end:n}=s),a=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e,0);return t?function(e){if(0===e.length)return new Z(new Error("Empty selector."));if(1===e.length)return he(e[0][0]);const t=[];for(const n of e){const e=he(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new te(t)}(t.value):new Z(new Error("Empty selector"))}catch(e){return new Z(e)}}let ve;function ge(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function ye(t,n){if(t){if(!ge(ve))return ve;const e=function(e=[],t){return e.map(e=>{let n=e[0],r=e[1];return r=r.map(e=>{const[t,n]=e;return{type:"declaration",property:t,value:n}}).map(pe(null!=t?t:ue)),n=n.map(me),new ne(n,r,"")})}(t,n);return ve=new V(e),ve}const r=e[be];if(ge(ve)||r){const t=function(e=[],t){return e.map(e=>{const n=e.declarations.filter(de).map(pe(null!=t?t:ue)),r=e.selectors.map(me);return new ne(r,n,e.hash)})}(r);ve?ve.append(t):ve=new V(t),e[be]=void 0}return e[Oe]&&(e[Oe].forEach(e=>{ve.delete(e)}),e[Oe]=void 0),ve}const be="__HIPPY_VUE_STYLES__",Oe="__HIPPY_VUE_DISPOSE_STYLES__";let _e=Object.create(null);const Ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{Ee.$on(e,t,n)}):(_e[e]||(_e[e]=[]),_e[e].push({fn:t,ctx:n})),Ee),$once(e,t,n){function r(...o){Ee.$off(e,r),t.apply(n,o)}return r._=t,Ee.$on(e,r),Ee},$emit(e,...t){const n=(_e[e]||[]).slice(),r=n.length;for(let e=0;e{Ee.$off(e,t)}),Ee;const n=_e[e];if(!n)return Ee;if(!t)return _e[e]=null,Ee;let r;const o=n.length;for(let e=0;ee;function Pe(){return Ie}let Re=(e,t)=>{};function Me(e,t){const n=new Map;return Array.isArray(e)?e.forEach(([e,t])=>{n.set(e,t),n.set(t,e)}):(n.set(e,t),n.set(t,e)),n}function Le(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function Fe(e){return"on"+h.capitalize(e)}function De(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=Fe(e[0]),r=Fe(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Ve(e,t){return!(!t||!e)&&e.match(t)}function Be(e){return e.split(" ").filter(e=>e.trim())}var $e;const Ue=["%c[native]%c","color: red","color: auto"],He={},{bridge:{callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze},device:{platform:{OS:Ke,Localization:Ge={}},screen:{scale:qe}},device:Je,document:Xe,register:Ze,asyncStorage:Qe}=null!==($e=e.Hippy)&&void 0!==$e?$e:{device:{platform:{Localization:{}},window:{},screen:{}},bridge:{},register:{},document:{},asyncStorage:{}},et=async(e,t)=>{const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:r}=e;return Te(...Ue,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>Xe.callUIFunction(r,t,[],t=>{if(!t||"object"!=typeof t||void 0===r)return e(n);const{x:o,y:i,height:s,width:c}=t;return e({top:i,left:o,width:c,height:s,bottom:i+s,right:o+c})}))},tt=new Map,nt={Localization:Ge,hippyNativeDocument:Xe,hippyNativeRegister:Ze,Platform:Ke,PixelRatio:qe,ConsoleModule:e.ConsoleModule||e.console,callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze,AsyncStorage:Qe,callUIFunction(...e){const[t,n,...r]=e;if(!(null==t?void 0:t.nodeId))return;const{nodeId:o}=t;let[i=[],s]=r;"function"==typeof i&&(s=i,i=[]),Te(...Ue,"callUIFunction",{nodeId:o,funcName:n,params:i}),Xe.callUIFunction(o,n,i,s)},Clipboard:{getString(){return nt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){nt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return nt.callNativeWithPromise.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Native.Cookie.set() must have url argument");let r="";n&&(r=n.toUTCString()),nt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return nt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){nt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=Je,{statusBarHeight:t}=e;return{window:Je.window,screen:l(l({},e),{},{statusBarHeight:t})}},get Device(){var t;return void 0===He.Device&&(nt.isIOS()?(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Device)?He.Device=e.__HIPPYNATIVEGLOBAL__.Device:He.Device="iPhone":nt.isAndroid()?He.Device="Android device":He.Device="Unknown device"),He.Device},get screenIsVertical(){return nt.Dimensions.window.width"android"===nt.Platform,isIOS:()=>"ios"===nt.Platform,measureInWindow:e=>et(e,"measureInWindow"),measureInAppWindow:e=>nt.isAndroid()?et(e,"measureInWindow"):et(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((r,o)=>{if(!e.isMounted||!n)return o(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));Te(...Ue,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Xe.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return o(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let c=void 0,a=void 0;return"number"==typeof n&&"number"==typeof s&&(c=n+s),"number"==typeof t&&"number"==typeof i&&(a=t+i),r({x:t,y:n,width:i,height:s,bottom:c,right:a,left:t,top:n})})})},NetInfo:{fetch:()=>nt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===tt.size&&nt.callNative("NetInfo","addListener",n),Ee.$on(n,t),tt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(nt.NetInfo.removeEventListener(this.eventName,this.listener),this.listener=void 0)}}},removeEventListener(e,t){if(null==t?void 0:t.remove)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange"),tt.size<=1&&nt.callNative("NetInfo","removeListener",n);const r=tt.get(t);r&&(Ee.$off(n,r),tt.delete(t),tt.size<1&&nt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===He.isIPhoneX){let e=!1;nt.isIOS()&&(e=20!==nt.Dimensions.screen.statusBarHeight),He.isIPhoneX=e}return He.isIPhoneX},get OnePixel(){if(void 0===He.OnePixel){const e=nt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),He.OnePixel=t}return He.OnePixel},get APILevel(){var t,n;return nt.isAndroid()&&(null===(n=null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Platform)||void 0===n?void 0:n.APILevel)?e.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(je(),null)},get OSVersion(){var t;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?e.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var t,n;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?null===(n=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===n?void 0:n.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=He.COLOR_PARSER)&&void 0!==t?t:He.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=x(e)),n[e]},getElemCss(e){const t=Object.create(null);try{ye(void 0,Pe()).query(e).selectors.forEach(n=>{Ve(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){je()}return t},version:"3.3.0"},rt=new Set;let ot=!1;const it={exitApp(){nt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ot||(ot=!0,it.initEventListener()),nt.callNative("DeviceEventModule","setListenBackPress",!0),rt.add(e),{remove(){it.removeListener(e)}}),removeListener(e){rt.delete(e),0===rt.size&&nt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(rt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&it.exitApp()})}},st={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ct=nt.isAndroid()?it:st,at=new Map;function lt(e,t){if(!e)throw new Error("tagName can not be empty");const n=ke(e);at.has(n)||at.set(n,t.component)}function ut(e){const t=ke(e),n=h.camelize(e).toLowerCase();return at.get(t)||at.get(n)}const dt=new Map,pt={number:"numeric",text:"default",search:"web-search"},ft={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},ht={component:{name:we.View,eventNamesMap:Me([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},ft),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y,(null==t?void 0:t.contentSize)&&(o.scrollHeight=t.contentSize.height,o.scrollWidth=t.contentSize.width);break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":o.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":o.isFocused=t.focus}return o}}},mt={component:{name:we.View,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData}},vt={component:{name:we.View}},gt={component:{name:we.Image,eventNamesMap:ht.component.eventNamesMap,processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":n.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":n.isFocused=t.focus;break;case"onLoad":{const{width:e,height:r,url:o}=t;n.width=e,n.height=r,n.url=o;break}}return n},defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=Le(e);return(null==t?void 0:t.indexOf(Se))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&je(),t}},src:e=>Le(e)},ft)}},yt={component:{name:we.ListView,defaultNativeStyle:{flex:1},attributeMaps:l({},ft),eventNamesMap:Me("listReady","initialListReady"),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":o.index=t.index}return o}}},bt={component:{name:we.ListViewItem,attributeMaps:l({},ft),eventNamesMap:Me([["disappear","onDisappear"]])}},Ot={component:{name:we.Text,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},_t=Ot,Et=Ot,St={component:l(l({},Ot.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(je(),""):e}}})},wt={component:{name:we.TextInput,attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=pt[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ft),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Me([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onChangeText":case"onEndEditing":n.value=t.text;break;case"onSelectionChange":n.start=t.selection.start,n.end=t.selection.end;break;case"onKeyboardWillShow":n.keyboardHeight=t.keyboardHeight;break;case"onContentSizeChange":n.width=t.contentSize.width,n.height=t.contentSize.height}return n}}},Nt={component:{name:we.TextInput,defaultNativeProps:l(l({},wt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},wt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:wt.component.defaultNativeStyle,eventNamesMap:wt.component.eventNamesMap,processEventData:wt.component.processEventData}},xt={component:{name:we.WebView,defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onLoad":case"onLoadStart":n.url=t.url;break;case"onLoadEnd":n.url=t.url,n.success=t.success,n.error=t.error}return n}}};dt.set("div",ht),dt.set("button",mt),dt.set("form",vt),dt.set("img",gt),dt.set("ul",yt),dt.set("li",bt),dt.set("span",Ot),dt.set("label",_t),dt.set("p",Et),dt.set("a",St),dt.set("input",wt),dt.set("textarea",Nt),dt.set("iframe",xt);var Tt={install(){dt.forEach((e,t)=>{lt(t,e)})}};function jt(){const{Localization:e}=nt;return!!e&&1===e.direction}const kt=0,Ct=1,At={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},It={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Pt="addEventListener",Rt="removeEventListener";let Mt;function Lt(){return Mt}function Ft(e,t){Mt[e]=t}class Dt{constructor(e){this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.timeStamp=Date.now()}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){if(this.cancelable){if(this.isCanceled)return;this.isCanceled=!0}}}class Vt extends Dt{}function Bt(e){return"string"==typeof e.value}const $t=new Map;function Ut(e,t){$t.set(t,e)}function Ht(e){$t.delete(e)}function Yt(e){return $t.get(e)||null}function Wt(t){var n,r;n=e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Ht(t):t&&(Ht(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout(()=>{n({didTimeout:!1,timeRemaining:()=>1/0})},1)}function zt(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new Vt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{layout:{x:t,y:n,height:r,width:o}}=s;e.top=n,e.left=t,e.bottom=n+r,e.right=t+o,e.width=o,e.height=r}else{e=new Dt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{processEventData:t}=l.component;t&&t({__evt:o,handler:e},s)}a.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else je(...Gt,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=qt);class Jt{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&h.looseEqual(e.options,n):e.callback===t)}addEventListener(e,t,n){const r=e.split(","),o=r.length;for(let e=0;e=0&&e.splice(r,1),e.length||(this.listeners[o]=void 0)}}}else this.listeners[o]=void 0}}emitEvent(e){var t,n;const{type:r}=e,o=this.listeners[r];if(o)for(let r=o.length-1;r>=0;r-=1){const i=o[r];(null===(t=i.options)||void 0===t?void 0:t.once)&&o.splice(r,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventListenerList(){return this.listeners}}var Xt;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Xt||(Xt={}));let Zt=!1,Qt=[];function en(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:o,listener:i}=e;let s;s=function(e){return!!At[e]}(r)?At[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ct&&t.removeEventListener(n,s,i),o===kt&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function tn(e,t){0}function nn(){Zt||(Zt=!0,0!==Qt.length?m.nextTick().then(()=>{const t=function(e){const t=[];for(const n of e){const{type:e,nodes:r,eventNodes:o,printedNodes:i}=n,s=t[t.length-1];s&&s.type===e?(s.nodes=s.nodes.concat(r),s.eventNodes=s.eventNodes.concat(o),s.printedNodes=s.printedNodes.concat(i)):t.push({type:e,nodes:r,eventNodes:o,printedNodes:i})}return t}(Qt),{rootViewId:n}=Lt(),r=new e.Hippy.SceneBuilder(n);t.forEach(e=>{switch(e.type){case Xt.CREATE:tn(e.printedNodes),r.create(e.nodes,!0),en(e.eventNodes,r);break;case Xt.UPDATE:tn(e.printedNodes),r.update(e.nodes),en(e.eventNodes,r);break;case Xt.DELETE:tn(e.printedNodes),r.delete(e.nodes);break;case Xt.MOVE:tn(e.printedNodes),r.move(e.nodes);break;case Xt.UPDATE_EVENT:en(e.eventNodes,r)}}),r.build(),Zt=!1,Qt=[]}):Zt=!1)}var rn;function on(e){let t;const n=e.events;if(n){const r=[];Object.keys(n).forEach(e=>{const{name:t,type:o,isCapture:i,listener:s}=n[e];r.push({name:t,type:o,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rn||(rn={}));class sn extends Jt{constructor(e,t){var n;super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:sn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===rn.ElementNode}(e),(null==t?void 0:t.id)&&(this.isMounted=!0)}static getUniqueNodeId(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get component(){return this.tagComponent}get index(){let e=0;if(this.parentNode){e=this.parentNode.childNodes.filter(e=>e.isNeedInsertToNative).indexOf(this)}return e}isRootNode(){return 1===this.nodeId}hasChildNodes(){return!!this.childNodes.length}insertBefore(e,t){const n=e,r=t;if(!n)throw new Error("No child to insert");if(!r)return void this.appendChild(n);if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");let o=this;r.parentNode!==this&&(o=r.parentNode);const i=o.childNodes.indexOf(r);let s=r;r.isNeedInsertToNative||(s=zt(this.childNodes,i)),n.parentNode=o,n.nextSibling=r,n.prevSibling=o.childNodes[i-1],o.childNodes[i-1]&&(o.childNodes[i-1].nextSibling=n),r.prevSibling=n,o.childNodes.splice(i,0,n),s.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}moveChild(e,t){const n=e,r=t;if(!n)throw new Error("No child to move");if(!r)return void this.appendChild(n);if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");const o=this.childNodes.indexOf(n),i=this.childNodes.indexOf(r);let s=r;if(r.isNeedInsertToNative||(s=zt(this.childNodes,i)),i===o)return;n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=n),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=n),this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=this.childNodes[o+1]),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=this.childNodes[o-1]),this.childNodes.splice(o,1);const c=this.childNodes.indexOf(r);this.childNodes.splice(c,0,n),s.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}appendChild(e,t=!1){const n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?Ut(n,n.nodeId):this.insertChildNativeNode(n)))}removeChild(e){const t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode!==this)return void t.parentNode.removeChild(t);if(!t.isNeedInsertToNative)return;t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;const n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(const t of this.childNodes){const n=this.findChild.call(t,e);if(n)return n}return null}eachNode(e){e&&e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.eachNode.call(t,e)})}insertChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;const n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){const r=n?this:e;!function([e,t,n]){Qt.push({type:Xt.CREATE,nodes:e,eventNodes:t,printedNodes:n}),nn()}(r.convertToNativeNodes(!0,t)),r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Ut(t,t.nodeId)})}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Qt.push({type:Xt.MOVE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(Qt.push({type:Xt.DELETE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Qt.push({type:Xt.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),nn())}(this.convertToNativeNodes(e,{}))}updateNativeEvent(){if(!this.isMounted)return;!function(e){Qt.push({type:Xt.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),nn()}(on(this))}convertToNativeNodes(e,t={},n){var r,o;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){const e=[],n=[],r=[];return this.eachNode(o=>{const[i,s,c]=o.convertToNativeNodes(!1,t);Array.isArray(i)&&i.length&&e.push(...i),Array.isArray(s)&&s.length&&n.push(...s),Array.isArray(c)&&c.length&&r.push(...c)}),[e,n,r]}if(!this.component)throw new Error("tagName is not supported yet");const{rootViewId:i}=Lt(),s=null!=n?n:{},c=l({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=on(this);let u=void 0;return[[[c,t]],[a],[u]]}}class cn extends sn{constructor(e,t){super(rn.TextNode,t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}setText(e){this.text=e,this.parentNode&&this.parentNode.nodeType===rn.ElementNode&&this.parentNode.setText(e)}}function an(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;e{t[n]=function(e){let t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;const{ratioBaseWidth:n}=Lt(),{width:r}=nt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=ut(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Lt();return super.isRootNode()||this.id===e}appendChild(e,t=!1){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e,t)}insertBefore(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof cn&&this.setText("",{notToNative:!0}),super.removeChild(e)}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}removeAttribute(e){delete this.attributes[e]}setAttribute(e,t,n={}){let r=t,o=e;try{if("boolean"==typeof this.attributes[o]&&""===r&&(r=!0),void 0===o)return void(!n.notToNative&&this.updateNativeNode());switch(o){case"class":{const e=new Set(Be(r));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let r=n.next().value;for(;r;){if(!t.has(r))return!1;r=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&this.updateNativeNode(!0))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){je(e.message)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===xe||xe?i.trim():i),r=r.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)));break;case"numberOfRows":if(!nt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=nt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=nt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=nt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=nt.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}var i}setText(e,t={}){return this.setAttribute("text",e,{notToNative:!!t.notToNative})}removeStyle(e=!1){this.style={},e||this.updateNativeNode()}setStyles(e){e&&"object"==typeof e&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),this.updateNativeNode())}setStyle(e,t,n=!1){if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());let{property:r,value:o}=this.beforeLoadStyle({property:e,value:t});switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=F(r,o);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){var r;const o=n;return o.textShadowOffset=null!==(r=o.textShadowOffset)&&void 0!==r?r:{},Object.assign(o.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t}),["textShadowOffset",o.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=null!=o?o:{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(T,r)&&(r=T[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?nt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(Ae.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||this.updateNativeNode())}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let r=n;!1===r&&(r=0),nt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}scrollTo(e,t,n){if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto",duration:o}=e;this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+Ce(e);if(this.component){const{eventNamesMap:n}=this.component;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}addEventListener(e,t,n){let r=e,o=t,i=n,s=!0;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);const c=this.getNativeEventName(r);this.attributes[c]&&(s=!1),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Pt,r,o,i)),super.addEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==kt&&(this.events[t].type=kt):this.events[t]={name:t,type:kt,listener:(n=t,r=e,e=>{const{id:t,currentId:o,params:i,eventPhase:s}=e,c={id:t,nativeName:n,originalName:r,currentId:o,params:i,eventPhase:s};qt.receiveComponentEvent(c,e)}),isCapture:!1}}),s&&this.updateNativeEvent()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Rt,r,o,i)),super.removeEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ct)});const s=this.getNativeEventName(r);this.attributes[s]&&delete this.attributes[s],this.updateNativeEvent()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,Bt(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}convertToNativeNodes(e,t={}){if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return super.convertToNativeNodes(!0,t);let n=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof ln){const e=this.parentNode.processedStyle;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!n[t]&&e[t]&&(n[t]=e[t])})}if(Re(this,n),this.component.defaultNativeStyle){const{defaultNativeStyle:e}=this.component,t={};Object.keys(e).forEach(n=>{this.getAttribute(n)||(t[n]=e[n])}),n=l(l({},t),n)}this.processedStyle=n;const r={name:this.component.name,props:l(l({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return function(e,t){const n=t;e.component.name===we.TextInput&&jt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===we.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&je(),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=jt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&je(),e.childNodes.length&&e.nodeType===rn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Le(o.backgroundImage)))}(this,r,n),super.convertToNativeNodes(!1,t,r)}repaintWithChildren(){this.updateNativeNode(!0)}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}setPressed(e){nt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){nt.callUIFunction(this,"setHotspot",[e,t])}setStyleScope(e){const t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}get styleScopeId(){return this.scopedIdList}getInlineStyle(){const e={};return Object.keys(this.style).forEach(t=>{const n=m.toRaw(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return ye(void 0,Pe()).query(this).selectors.forEach(t=>{var n,r;Ve(t,this)&&(null===(r=null===(n=t.ruleSet)||void 0===n?void 0:n.declarations)||void 0===r?void 0:r.length)&&t.ruleSet.declarations.forEach(t=>{t.property&&(e[t.property]=t.value)})}),this.ssrInlineStyle&&(e=l(l({},e),this.ssrInlineStyle)),e=ln.parseRem(l(l({},e),this.getInlineStyle())),e}getNativeProps(){const e={},{defaultNativeProps:t}=this.component;t&&Object.keys(t).forEach(n=>{if(void 0===this.getAttribute(n)){const r=t[n];e[n]=h.isFunction(r)?r(this):m.toRaw(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=m.toRaw(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=m.toRaw(r));const o=this.component.attributeMaps[t];if(h.isString(o))return void(e[o]=m.toRaw(r));if(h.isFunction(o))return void(e[t]=m.toRaw(o(r)));const{name:i,propsValue:s,jointKey:c}=o;h.isFunction(s)&&(r=s(r)),c?(e[c]=null!==(n=e[c])&&void 0!==n?n:{},Object.assign(e[c],{[i]:m.toRaw(r)})):e[i]=m.toRaw(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=m.toRaw(n[t])}),e}getNodeAttributes(){var e;try{const t=function e(t,n=new WeakMap){if("object"!=typeof t||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);const r={};return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof i||null===i?r[o]=i:Array.isArray(i)?r[o]=[...i]:i instanceof Set?r[o]=new Set([...i]):i instanceof Map?r[o]=new Map([...i]):(n.set(t,t),r[o]=e(i,n))}),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=l({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach(e=>{e.toLowerCase().includes("color")&&delete r[e]}),r}catch(e){return{}}}getNativeEvents(){const e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){const{eventNamesMap:r}=this.component;n.forEach(n=>{const o=null==r?void 0:r.get(n);if(o)e[o]=!!t[n];else{const r="on"+Ce(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){var e;let t=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>t,set:e=>{t=void 0===e?"flex":e,this.updateNativeNode()}})}}function un(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?nt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function u(t){const{mode:i="timing",valueType:s,startValue:u,toValue:d}=t,p=c(t,o),f=l(l({},n),p);void 0!==s&&(f.valueType=t.valueType),f.startValue=r(f.valueType,u),f.toValue=r(f.valueType,d),f.repeatCount=a(f.repeatCount),f.mode=i;const h=new e.Hippy.Animation(f),m=h.getId();return{animation:h,animationId:m}}function d(t,n={}){const r={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const i=t[o],{repeatCount:s}=i[i.length-1],c=i.map(e=>{const{animationId:t,animation:r}=u(l(l({},e),{},{repeatCount:0}));return Object.assign(n,{[t]:r}),{animationId:t,follow:!0}}),{animationId:d,animation:p}=function(t,n=0){const r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}(c,a(s));r[o]={animationId:d},Object.assign(n,{[d]:p})}else{const e=t[o],{animationId:i,animation:s}=u(e);Object.assign(n,{[i]:s}),r[o]={animationId:i}}}),r}function p(e){const{transform:t}=e,n=c(e,i);let r=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:r}=t[n];"number"==typeof r&&r%1==0&&e.push(r)}})),r=[...r,...e]}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{const e=this.$attrs[Fe("actionsDidUpdate")];"function"==typeof e&&e()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},deactivated(){this.pause()},activated(){this.resume()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=c(e.actions,s);this.animationIdsMap={};const r=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);r.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=p(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.start()}))},resume(){p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return m.h(this.tag,l({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}const dn=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"];var pn={install(e){un(e),lt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=nt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{lt("hi-pull-"+r,{component:{name:`Pull${n}View`,processEventData(e,t){const{handler:r,__evt:o}=e;switch(o){case`on${n}Released`:case`on${n}Pulling`:Object.assign(r,t)}return r}}}),e.component("pull-"+r,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(){const{onReleased:e,onPulling:t,onIdle:o}=this.$attrs,i={onLayout:this.onLayout};return"function"==typeof e&&(i[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof o||(i[`on${n}Pulling`]=this[`on${n}Pulling`]),m.h("hi-pull-"+r,l(l({},i),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){lt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),lt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){nt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){nt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return m.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=m.h("div",null,this.$slots.default?this.$slots.default():null);return m.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){lt("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":{const{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s}=t;Object.assign(n,{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return n}}}),lt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(e,t){nt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(){const e=De.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return m.h("hi-waterfall",l(l({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render(){return m.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(e),function(e){lt("hi-swiper",{component:{name:"ViewPager",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),lt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:()=>({$initialSlide:0}),watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){nt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){nt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=De.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return m.h("hi-swiper",l(l({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return m.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class fn extends ln{constructor(e,t){super("comment",t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}}class hn extends ln{setText(e,t={}){"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}async getValue(){return new Promise(e=>nt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){nt.callUIFunction(this,"setValue",[e])}focus(){nt.callUIFunction(this,"focusTextInput",[])}blur(){nt.callUIFunction(this,"blurTextInput",[])}clear(){nt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>nt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class mn extends ln{scrollToIndex(e=0,t=0,n=!0){nt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&nt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class vn extends sn{static createComment(e){return new fn(e)}static createElement(e){switch(e){case"input":case"textarea":return new hn(e);case"ul":return new mn(e);default:return new ln(e)}}static createTextNode(e){return new cn(e)}constructor(){super(rn.DocumentNode)}}const gn={insert:function(e,t,n=null){t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){const t=e.parentNode;t&&(t.removeChild(e),Wt(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return vn.createElement(e)},createComment:function(e){return vn.createComment(e)},createText:function(e){return vn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const yn=/(?:Once|Passive|Capture)$/;function bn(e,t,n,r,o=null){var i;const s=e,c=null!==(i=s._vei)&&void 0!==i?i:s._vei={},a=c[t];if(r&&a)a.value=r;else{const[e,n]=function(e){let t=e;const n={};if(yn.test(t)){let e=t.match(yn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(yn)}return t=":"===t[2]?t.slice(3):t.slice(2),[(r=t,`${r.charAt(0).toLowerCase()}${r.slice(1)}`),n];var r}(t);if(r){c[t]=function(e,t){const n=e=>{m.callWithAsyncErrorHandling(n.value,t,m.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}(r,o);const i=c[t];s.addEventListener(e,i,n)}else s.removeEventListener(e,a,n),c[t]=void 0}}function On(e,t,n){const r=e,o={};if(!function(e,t,n){const r=!e,o=!t&&!n,i=JSON.stringify(t)===JSON.stringify(n);return r||o||i}(r,t,n))if(t&&!n)r.removeStyle();else{if(h.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];(function(e){return null==e})(t)||(o[m.camelize(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}function _n(e,t,n,r,o,i,s){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":On(e,n,r);break;default:h.isOn(t)?bn(e,t,0,r,s):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let En=!1;function Sn(e,t){const n=function(e){var t;if("comment"===e.name)return new fn(e.props.text,e);if("Text"===e.name&&!e.tagName){const t=new cn(e.props.text,e);return t.nodeType=rn.TextNode,t.data=e.props.text,t}switch(e.tagName){case"input":case"textarea":return new hn(e.tagName,e);case"ul":return new mn(e.tagName,e);default:return new ln(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e);let r=t.filter(t=>t.pId===e.id).sort((e,t)=>e.index-t.index);const o=r.filter(e=>"comment"===e.name);if(o.length){r=r.filter(e=>"comment"!==e.name);for(let e=o.length-1;e>=0;e--)r.splice(o[e].index,0,o[e])}return r.forEach(e=>{n.appendChild(Sn(e,t),!0)}),n}e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,this.protocol="",this.listeners={},this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const r=l({},n);if(En||(En=!0,Ee.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?(this.protocol=t.join(","),r["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof t&&(this.protocol=t,r["Sec-WebSocket-Protocol"]=this.protocol);const o={headers:r,url:e};nt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:je()})}close(e,t){1===this.readyState&&(this.readyState=2,nt.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);nt.callNative("websocket","send",{id:this.webSocketId,data:e})}else je()}set onopen(e){this.addEventListener("open",e)}set onclose(e){this.addEventListener("close",e)}set onerror(e){this.addEventListener("error",e)}set onmessage(e){this.addEventListener("message",e)}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ee.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach(t=>{h.isFunction(t)&&t(e.data)})}addEventListener(e,t){if((e=>-1!==["open","close","message","error"].indexOf(e))(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=Fe(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const wn=['%c[Hippy-Vue-Next "3.3.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Nn(e,t){if(nt.isIOS()){const n=function(e){var t,n;const{iPhone:r}=e;let o;if((null==r?void 0:r.statusBar)&&(o=r.statusBar),null==o?void 0:o.disabled)return null;const i=new ln("div"),{statusBarHeight:s}=nt.Dimensions.screen;nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0);let c=4282431619;if(Number.isInteger(c)&&({backgroundColor:c}=o),i.setStyle("backgroundColor",c),"string"==typeof o.backgroundImage){const r=new ln("img");r.setStyle("width",nt.Dimensions.screen.width),r.setStyle("height",s),r.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),i.appendChild(r)}return i.addEventListener("layout",()=>{nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0)}),i}(e);if(n){const e=t.$el.parentNode;e.childNodes.length?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)}}}const xn=(e,t)=>{var n,r;const o=e,i=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);var s,c;o.use(Tt),o.use(pn),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(s=t.styleOptions.beforeLoadStyle,Ie=s),t.silent&&(c=t.silent,Ne=c),function(e=!0){xe=e}(t.trimWhitespace);const{mount:a}=o;return o.mount=e=>{var n;Ft("rootContainer",e);const r=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?function(e){const[t]=e;return Sn(t,e)}(t.ssrNodeList):function(e){const t=vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=a(r,i,!1);return Ft("instance",o),i||Nn(t,o),o},o.$start=async e=>new Promise(n=>{nt.hippyNativeRegister.regist(t.appName,r=>{var i,s;const{__instanceId__:c}=r;Te(...wn,"Start",t.appName,"with rootViewId",c,r);const a=Lt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:r,app:o,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Mt=l;const u={superProps:r,rootViewId:c};h.isFunction(e)?e(u):n(u)})}),o};t.BackAndroid=ct,t.ContentSizeEvent=class extends Dt{},t.EventBus=Ee,t.ExposureEvent=class extends Dt{},t.FocusEvent=class extends Dt{},t.HIPPY_DEBUG_ADDRESS=Se,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="3.3.0",t.HippyEvent=Dt,t.HippyKeyboardEvent=class extends Dt{},t.HippyLayoutEvent=Vt,t.HippyLoadResourceEvent=class extends Dt{},t.HippyTouchEvent=class extends Dt{},t.IS_PROD=!0,t.ListViewEvent=class extends Dt{},t.NATIVE_COMPONENT_MAP=we,t.Native=nt,t.ViewPagerEvent=class extends Dt{},t._setBeforeRenderToNative=(e,t)=>{h.isFunction(e)&&(1===t?Re=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=(e,t)=>{const n=m.createRenderer(l({patchProp:_n},gn)).createApp(e);return xn(n,t)},t.createHippyApp=xn,t.createSSRApp=(e,t)=>{const n=m.createHydrationRenderer(l({patchProp:_n},gn)).createApp(e);return xn(n,t)},t.eventIsKeyboardEvent=Bt,t.getCssMap=ye,t.getTagComponent=ut,t.isNativeTag=function(e){return dn.includes(e)},t.parseCSS=function(e,t={source:0}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(t){const n=t.exec(e);if(!n)return null;const r=n[0];return o(r),e=e.slice(r.length),n}function s(){i(/^\s*/)}function c(){return o=>(o.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},s(),o)}const a=[];function u(o){const i=l(l({},new Error(`${t.source}:${n}:${r}: ${o}`)),{},{reason:o,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw i;a.push(i)}function d(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}function p(e=[]){let t;const n=e||[];for(;t=d();)!1!==t&&n.push(t);return n}function f(){let t;const n=[];for(s(),p(n);e.length&&"}"!==e.charAt(0)&&(t=x()||O());)t&&(n.push(t),p(n));return n}function m(){return i(/^{\s*/)}function v(){return i(/^}/)}function g(){const e=i(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,e=>e.replace(/,/g,"‌")).split(/\s*(?![^(]*\)),\s*/).map(e=>e.replace(/\u200C/g,",")):null}function y(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return u("property missing ':'");const n=t.replace(I,""),r=h.camelize(n);let o=(()=>{const e=T[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(I,""):"";switch(o){case"backgroundImage":[o,a]=F(o,a);break;case"transform":{const e=/((\w+)\s*\()/,t=/(?:\(['"]?)(.*?)(?:['"]?\))/,n=a;a=[],n.split(" ").forEach(n=>{if(e.test(n)){let r,o;const i=e.exec(n),s=t.exec(n);i&&([,,r]=i),s&&([,o]=s),0===o.indexOf(".")&&(o="0"+o),parseFloat(o).toString()===o&&(o=parseFloat(o));const c={};c[r]=o,a.push(c)}else u("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>R(e)),[t]=e;let[,n]=e;n||(n=t),a={x:t,y:n};break}case"collapsable":a=Boolean(a);break;default:a=function(e){if("number"==typeof e)return e;if(P.test(e))try{return parseFloat(e)}catch(e){}return e}(a);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find(e=>o.toLowerCase().indexOf(e)>-1)&&(a=R(a))}const l=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),l}function b(){let e,t=[];if(!m())return u("missing '{'");for(p(t);e=y();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),p(t));return v()?t:u("missing '}'")}function O(){const e=c(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:b()})):u("selector missing")}function _(){let e;const t=[],n=c();for(;e=i(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),i(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:b()}):null}function E(e){const t=new RegExp(`^@${e}\\s*([^;]+);`);return()=>{const n=c(),r=i(t);if(!r)return null;const o={type:e};return o[e]=r[1].trim(),n(o)}}const S=E("import"),w=E("charset"),N=E("namespace");function x(){return"@"!==e[0]?null:function(){const e=c();let t=i(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=i(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const r=t[1];if(!m())return u("@keyframes missing '{'");let o,s=p();for(;o=_();)s.push(o),s=s.concat(p());return v()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):u("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@media missing '{'");const r=p().concat(f());return v()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}()||function(){const e=c(),t=i(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}()||function(){const e=c(),t=i(/^@supports *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@supports missing '{'");const r=p().concat(f());return v()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}()||S()||w()||N()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!m())return u("@document missing '{'");const o=p().concat(f());return v()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!m())return u("@page missing '{'");let n,r=p();for(;n=y();)r.push(n),r=r.concat(p());return v()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!m())return u("@host missing '{'");const t=p().concat(f());return v()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!m())return u("@font-face missing '{'");let t,n=p();for(;t=y();)n.push(t),n=n.concat(p());return v()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}return function e(t,n){const r=t&&"string"==typeof t.type,o=r?t:n;return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e(t,o)}):r&&"object"==typeof r&&e(r,o)}),r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n}),t}(function(){const e=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)},t.registerElement=lt,t.setScreenSize=function(t){var n;if(t.width&&t.height){const{screen:r}=null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=x}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return s})),n.d(t,"ITERATE_KEY",(function(){return I})),n.d(t,"ReactiveEffect",(function(){return d})),n.d(t,"ReactiveFlags",(function(){return rt})),n.d(t,"TrackOpTypes",(function(){return tt})),n.d(t,"TriggerOpTypes",(function(){return nt})),n.d(t,"computed",(function(){return Re})),n.d(t,"customRef",(function(){return Ge})),n.d(t,"deferredComputed",(function(){return et})),n.d(t,"effect",(function(){return v})),n.d(t,"effectScope",(function(){return c})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return l})),n.d(t,"isProxy",(function(){return je})),n.d(t,"isReactive",(function(){return Ne})),n.d(t,"isReadonly",(function(){return xe})),n.d(t,"isRef",(function(){return Fe})),n.d(t,"isShallow",(function(){return Te})),n.d(t,"markRaw",(function(){return Ce})),n.d(t,"onScopeDispose",(function(){return u})),n.d(t,"pauseScheduling",(function(){return w})),n.d(t,"pauseTracking",(function(){return _})),n.d(t,"proxyRefs",(function(){return ze})),n.d(t,"reactive",(function(){return Oe})),n.d(t,"readonly",(function(){return Ee})),n.d(t,"ref",(function(){return De})),n.d(t,"resetScheduling",(function(){return N})),n.d(t,"resetTracking",(function(){return S})),n.d(t,"shallowReactive",(function(){return _e})),n.d(t,"shallowReadonly",(function(){return Se})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return g})),n.d(t,"toRaw",(function(){return ke})),n.d(t,"toRef",(function(){return Ze})),n.d(t,"toRefs",(function(){return qe})),n.d(t,"toValue",(function(){return Ye})),n.d(t,"track",(function(){return R})),n.d(t,"trigger",(function(){return M})),n.d(t,"triggerRef",(function(){return Ue})),n.d(t,"unref",(function(){return He}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"); +const o=["mode","valueType","startValue","toValue"],i=["transform"],s=["transform"];function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=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,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},d.apply(this,arguments)}function p(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var h=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"),m=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");const v={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},g=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,y="[-+]?\\d*\\.?\\d+",b={rgb:new RegExp("rgb"+g(y,y,y)),rgba:new RegExp("rgba"+g(y,y,y,y)),hsl:new RegExp("hsl"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",y)),hex3:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex4:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},O=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},_=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},E=(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},S=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=E(o,r,e+1/3),s=E(o,r,e),c=E(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},w=e=>(parseFloat(e)%360+360)%360/360,N=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function x(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=b.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(v,e)?v[e]:(t=b.rgb.exec(e),Array.isArray(t)?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|255)>>>0:(t=b.rgba.exec(e),t?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|_(t[4]))>>>0:(t=b.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=b.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=b.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=b.hsl.exec(e),t?(255|S(w(t[1]),N(t[2]),N(t[3])))>>>0:(t=b.hsla.exec(e),t?(S(w(t[1]),N(t[2]),N(t[3]))|_(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const T={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},j={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},k="turn",C="rad",A="deg",I=/\/\*[\s\S]{0,1000}?\*\//gm;const P=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function M(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=d(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";let r="180";const[o,i,s]=n;return i&&s?r=function(e,t=A){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case k:r=""+(360*n).toFixed(2);break;case C:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==j[o]&&(r=j[o]),r}function L(e=""){const t=e.replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:x(n)}:null:{color:x(n)}}function F(e,t){let n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},e.forEach((e,t)=>{if(0===t){const t=M(e);if(t)n.angle=t;else{n.angle="180";const t=L(e);t&&o.push(t)}}else{const t=L(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}class D{constructor(){this.changeMap=new Map}addAttribute(e,t){const n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}addPseudoClass(e,t){const n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}properties(e){let t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}class V{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.lookupSort(this))}static removeFromMap(e,t,n){const r=e[t],o=r.findIndex(e=>{var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)});-1!==o&&r.splice(o,1)}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e,t){const{tagName:n,id:r,classList:o,props:i}=e;let s=r,c=o;if(null==i?void 0:i.attributes){const{attributes:e}=i;c=new Set(((null==e?void 0:e.class)||"").split(" ").filter(e=>e.trim())),s=e.id}const a=[this.universal,this.id[s],this.type[n]];(null==c?void 0:c.size)&&c.forEach(e=>a.push(this.class[e]));const l=a.filter(e=>!!e).reduce((e,t)=>e.concat(t),[]),u=new D;return u.selectors=l.filter(n=>n.sel.accumulateChanges(e,u,t)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),u}removeById(e,t){V.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){V.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){V.removeFromMap(this.type,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)});-1!==t&&this.universal.splice(t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,n){this.position+=1;const r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function B(e){return e?" "+e:""}function $(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}class U{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class H extends U{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}match(e){return!!e}mayMatch(e){return this.match(e)}trackChanges(e,t){}}class Y extends H{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof H&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${B(this.combinator)}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof H&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof H&&this.head.removeSort(e,null!=t?t:this)}}class W extends H{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+B(this.combinator)}match(){return!0}}class z extends H{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${B(this.combinator)}`}match(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class K extends H{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${B(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,null!=t?t:this)}removeSort(e,t){e.removeByType(this.cssType,null!=t?t:this)}}class G extends H{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${B(this.combinator)}`}match(e){var t,n,r;if(!e)return!1;const o=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter(e=>e.trim()));return!(!o.size||!o.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,null!=t?t:this)}removeSort(e,t){e.removeByClass(this.className,null!=t?t:this)}}class q extends H{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${B(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const J=(e,t)=>{var n,r,o;const i=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==i?i:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(o=null==e?void 0:e.styleScopeId)||void 0===o?void 0:o.includes(t))?t:void 0};class X extends H{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?r=>{if(!r||!(null==r?void 0:r.attributes)&&!(null==r?void 0:r.props[e]))return!1;const o=""+J(r,e);if("="===t)return o===n;if("^="===t)return o.startsWith(n);if("$="===t)return o.endsWith(n);if("*="===t)return-1!==o.indexOf(n);if("~="===t){const e=o.split(" ");return-1!==(null==e?void 0:e.indexOf(n))}return"|="===t&&(o===n||o.startsWith(n+"-"))}:()=>!1:t=>!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!function(e){return null==e}(J(t,e))}toString(){return`[${this.attribute}${B(this.test)}${this.test&&this.value||""}]${B(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Z extends H{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.error=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Q{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class ee{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class te extends U{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],r=[];const o=[],i=[...e],s=i.length-1;this.specificity=0,this.dynamic=!1;for(let e=s;e>=0;e--){const s=i[e];if(-1===t.indexOf(s.combinator))throw console.error(`Unsupported combinator "${s.combinator}".`),new Error(`Unsupported combinator "${s.combinator}".`);void 0!==s.combinator&&" "!==s.combinator||o.push(r=[n=[]]),">"===s.combinator&&r.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=o.map(e=>new Q(e.map(e=>new ee(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e,t){return!!e&&this.groups.every((n,r)=>{if(0===r)return!!(e=n.match(e));let o=$(e,t);for(;o;){if(e=n.match(o))return!0;o=$(o,t)}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t,n){if(!this.dynamic)return this.match(e,n);const r=[],o=this.groups.every((t,o)=>{if(0===o){const n=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=n)}let i=$(e,n);for(;i;){const o=t.mayMatch(i);if(o)return r.push({left:i,right:null}),e=o,!0;i=$(i,n)}return!1});if(!o)return!1;if(!t)return o;for(let e=0;e(e.ruleSet=this,null)),this.selectors=e,this.declarations=t,this.hash=n}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}const re=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),oe={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ie={};function se(e,t,n){let r="";re&&(r="gy"),ie[e]||(ie[e]=new RegExp(oe[e],r));const o=ie[e];let i;if(re)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),i=o.exec(t),!i)return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function ce(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=se("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:r.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){const{result:n,regexp:r}=se("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){const{result:n,regexp:r}=se("attributeSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:o}}return{value:{type:"[]",property:i},start:t,end:o}}(e,t)}function ae(e,t){let n=ce(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=ce(e,r);return{start:t,end:r,value:o}}function le(e,t){const{result:n,regexp:r}=se("combinatorRegEx",e,t);if(!n)return null;let o;o=re?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}const ue=e=>e;function de(e){return"declaration"===e.type}function pe(e){return t=>e(t)}function fe(e){switch(e.type){case"*":return new W;case"#":return new z(e.identifier);case"":return new K(e.identifier.replace(/-/,"").toLowerCase());case".":return new G(e.identifier);case":":return new q(e.identifier);case"[]":return e.test?new X(e.property,e.test,e.value):new X(e.property);default:return null}}function he(e){return 0===e.length?new Z(new Error("Empty simple selector sequence.")):1===e.length?fe(e[0]):new Y(e.map(fe))}function me(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=se("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=re?[e]:e.split(" "),c.forEach(e=>{if(!re){if(""===e)return;n=0}do{const t=ae(e,n);if(!t){if(a)return;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=le(e,n),s&&({end:n}=s),a=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e,0);return t?function(e){if(0===e.length)return new Z(new Error("Empty selector."));if(1===e.length)return he(e[0][0]);const t=[];for(const n of e){const e=he(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new te(t)}(t.value):new Z(new Error("Empty selector"))}catch(e){return new Z(e)}}let ve;function ge(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function ye(t,n){if(t){if(!ge(ve))return ve;const e=function(e=[],t){return e.map(e=>{let n=e[0],r=e[1];return r=r.map(e=>{const[t,n]=e;return{type:"declaration",property:t,value:n}}).map(pe(null!=t?t:ue)),n=n.map(me),new ne(n,r,"")})}(t,n);return ve=new V(e),ve}const r=e[be];if(ge(ve)||r){const t=function(e=[],t){return e.map(e=>{const n=e.declarations.filter(de).map(pe(null!=t?t:ue)),r=e.selectors.map(me);return new ne(r,n,e.hash)})}(r,n);ve?ve.append(t):ve=new V(t),e[be]=void 0}return e[Oe]&&(e[Oe].forEach(e=>{ve.delete(e)}),e[Oe]=void 0),ve}const be="__HIPPY_VUE_STYLES__",Oe="__HIPPY_VUE_DISPOSE_STYLES__";let _e=Object.create(null);const Ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{Ee.$on(e,t,n)}):(_e[e]||(_e[e]=[]),_e[e].push({fn:t,ctx:n})),Ee),$once(e,t,n){function r(...o){Ee.$off(e,r),t.apply(n,o)}return r._=t,Ee.$on(e,r),Ee},$emit(e,...t){const n=(_e[e]||[]).slice(),r=n.length;for(let e=0;e{Ee.$off(e,t)}),Ee;const n=_e[e];if(!n)return Ee;if(!t)return _e[e]=null,Ee;let r;const o=n.length;for(let e=0;ee;function Pe(){return Ie}let Re=(e,t)=>{};function Me(e,t){const n=new Map;return Array.isArray(e)?e.forEach(([e,t])=>{n.set(e,t),n.set(t,e)}):(n.set(e,t),n.set(t,e)),n}function Le(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function Fe(e){return"on"+h.capitalize(e)}function De(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=Fe(e[0]),r=Fe(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Ve(e,t){return!(!t||!e)&&e.match(t)}function Be(e){return e.split(" ").filter(e=>e.trim())}var $e;const Ue=["%c[native]%c","color: red","color: auto"],He={},{bridge:{callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze},device:{platform:{OS:Ke,Localization:Ge={}},screen:{scale:qe}},device:Je,document:Xe,register:Ze,asyncStorage:Qe}=null!==($e=e.Hippy)&&void 0!==$e?$e:{device:{platform:{Localization:{}},window:{},screen:{}},bridge:{},register:{},document:{},asyncStorage:{}},et=async(e,t)=>{const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:r}=e;return Te(...Ue,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>Xe.callUIFunction(r,t,[],t=>{if(!t||"object"!=typeof t||void 0===r)return e(n);const{x:o,y:i,height:s,width:c}=t;return e({top:i,left:o,width:c,height:s,bottom:i+s,right:o+c})}))},tt=new Map,nt={Localization:Ge,hippyNativeDocument:Xe,hippyNativeRegister:Ze,Platform:Ke,PixelRatio:qe,ConsoleModule:e.ConsoleModule||e.console,callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze,AsyncStorage:Qe,callUIFunction(...e){const[t,n,...r]=e;if(!(null==t?void 0:t.nodeId))return;const{nodeId:o}=t;let[i=[],s]=r;"function"==typeof i&&(s=i,i=[]),Te(...Ue,"callUIFunction",{nodeId:o,funcName:n,params:i}),Xe.callUIFunction(o,n,i,s)},Clipboard:{getString(){return nt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){nt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return nt.callNativeWithPromise.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Native.Cookie.set() must have url argument");let r="";n&&(r=n.toUTCString()),nt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return nt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){nt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=Je,{statusBarHeight:t}=e;return{window:Je.window,screen:l(l({},e),{},{statusBarHeight:t})}},get Device(){var t;return void 0===He.Device&&(nt.isIOS()?(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Device)?He.Device=e.__HIPPYNATIVEGLOBAL__.Device:He.Device="iPhone":nt.isAndroid()?He.Device="Android device":He.Device="Unknown device"),He.Device},get screenIsVertical(){return nt.Dimensions.window.width"android"===nt.Platform,isIOS:()=>"ios"===nt.Platform,measureInWindow:e=>et(e,"measureInWindow"),measureInAppWindow:e=>nt.isAndroid()?et(e,"measureInWindow"):et(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((r,o)=>{if(!e.isMounted||!n)return o(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));Te(...Ue,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Xe.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return o(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let c=void 0,a=void 0;return"number"==typeof n&&"number"==typeof s&&(c=n+s),"number"==typeof t&&"number"==typeof i&&(a=t+i),r({x:t,y:n,width:i,height:s,bottom:c,right:a,left:t,top:n})})})},NetInfo:{fetch:()=>nt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===tt.size&&nt.callNative("NetInfo","addListener",n),Ee.$on(n,t),tt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(nt.NetInfo.removeEventListener(this.eventName,this.listener),this.listener=void 0)}}},removeEventListener(e,t){if(null==t?void 0:t.remove)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange"),tt.size<=1&&nt.callNative("NetInfo","removeListener",n);const r=tt.get(t);r&&(Ee.$off(n,r),tt.delete(t),tt.size<1&&nt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===He.isIPhoneX){let e=!1;nt.isIOS()&&(e=20!==nt.Dimensions.screen.statusBarHeight),He.isIPhoneX=e}return He.isIPhoneX},get OnePixel(){if(void 0===He.OnePixel){const e=nt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),He.OnePixel=t}return He.OnePixel},get APILevel(){var t,n;return nt.isAndroid()&&(null===(n=null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Platform)||void 0===n?void 0:n.APILevel)?e.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(je(),null)},get OSVersion(){var t;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?e.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var t,n;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?null===(n=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===n?void 0:n.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=He.COLOR_PARSER)&&void 0!==t?t:He.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=x(e)),n[e]},getElemCss(e){const t=Object.create(null);try{ye(void 0,Pe()).query(e).selectors.forEach(n=>{Ve(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){je()}return t},version:"3.3.1"},rt=new Set;let ot=!1;const it={exitApp(){nt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ot||(ot=!0,it.initEventListener()),nt.callNative("DeviceEventModule","setListenBackPress",!0),rt.add(e),{remove(){it.removeListener(e)}}),removeListener(e){rt.delete(e),0===rt.size&&nt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(rt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&it.exitApp()})}},st={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ct=nt.isAndroid()?it:st,at=new Map;function lt(e,t){if(!e)throw new Error("tagName can not be empty");const n=ke(e);at.has(n)||at.set(n,t.component)}function ut(e){const t=ke(e),n=h.camelize(e).toLowerCase();return at.get(t)||at.get(n)}const dt=new Map,pt={number:"numeric",text:"default",search:"web-search"},ft={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},ht={component:{name:we.View,eventNamesMap:Me([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},ft),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y,(null==t?void 0:t.contentSize)&&(o.scrollHeight=t.contentSize.height,o.scrollWidth=t.contentSize.width);break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":o.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":o.isFocused=t.focus}return o}}},mt={component:{name:we.View,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData}},vt={component:{name:we.View}},gt={component:{name:we.Image,eventNamesMap:ht.component.eventNamesMap,processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":n.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":n.isFocused=t.focus;break;case"onLoad":{const{width:e,height:r,url:o}=t;n.width=e,n.height=r,n.url=o;break}}return n},defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=Le(e);return(null==t?void 0:t.indexOf(Se))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&je(),t}},src:e=>Le(e)},ft)}},yt={component:{name:we.ListView,defaultNativeStyle:{flex:1},attributeMaps:l({},ft),eventNamesMap:Me("listReady","initialListReady"),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":o.index=t.index}return o}}},bt={component:{name:we.ListViewItem,attributeMaps:l({},ft),eventNamesMap:Me([["disappear","onDisappear"]])}},Ot={component:{name:we.Text,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},_t=Ot,Et=Ot,St={component:l(l({},Ot.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(je(),""):e}}})},wt={component:{name:we.TextInput,attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=pt[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ft),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Me([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onChangeText":case"onEndEditing":n.value=t.text;break;case"onSelectionChange":n.start=t.selection.start,n.end=t.selection.end;break;case"onKeyboardWillShow":n.keyboardHeight=t.keyboardHeight;break;case"onContentSizeChange":n.width=t.contentSize.width,n.height=t.contentSize.height}return n}}},Nt={component:{name:we.TextInput,defaultNativeProps:l(l({},wt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},wt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:wt.component.defaultNativeStyle,eventNamesMap:wt.component.eventNamesMap,processEventData:wt.component.processEventData}},xt={component:{name:we.WebView,defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onLoad":case"onLoadStart":n.url=t.url;break;case"onLoadEnd":n.url=t.url,n.success=t.success,n.error=t.error}return n}}};dt.set("div",ht),dt.set("button",mt),dt.set("form",vt),dt.set("img",gt),dt.set("ul",yt),dt.set("li",bt),dt.set("span",Ot),dt.set("label",_t),dt.set("p",Et),dt.set("a",St),dt.set("input",wt),dt.set("textarea",Nt),dt.set("iframe",xt);var Tt={install(){dt.forEach((e,t)=>{lt(t,e)})}};function jt(){const{Localization:e}=nt;return!!e&&1===e.direction}const kt=0,Ct=1,At={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},It={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Pt="addEventListener",Rt="removeEventListener";let Mt;function Lt(){return Mt}function Ft(e,t){Mt[e]=t}class Dt{constructor(e){this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.timeStamp=Date.now()}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){if(this.cancelable){if(this.isCanceled)return;this.isCanceled=!0}}}class Vt extends Dt{}function Bt(e){return"string"==typeof e.value}const $t=new Map;function Ut(e,t){$t.set(t,e)}function Ht(e){$t.delete(e)}function Yt(e){return $t.get(e)||null}function Wt(t){var n,r;n=e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Ht(t):t&&(Ht(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout(()=>{n({didTimeout:!1,timeRemaining:()=>1/0})},1)}function zt(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new Vt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{layout:{x:t,y:n,height:r,width:o}}=s;e.top=n,e.left=t,e.bottom=n+r,e.right=t+o,e.width=o,e.height=r}else{e=new Dt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{processEventData:t}=l.component;t&&t({__evt:o,handler:e},s)}a.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else je(...Gt,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=qt);class Jt{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&h.looseEqual(e.options,n):e.callback===t)}addEventListener(e,t,n){const r=e.split(","),o=r.length;for(let e=0;e=0&&e.splice(r,1),e.length||(this.listeners[o]=void 0)}}}else this.listeners[o]=void 0}}emitEvent(e){var t,n;const{type:r}=e,o=this.listeners[r];if(o)for(let r=o.length-1;r>=0;r-=1){const i=o[r];(null===(t=i.options)||void 0===t?void 0:t.once)&&o.splice(r,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventListenerList(){return this.listeners}}var Xt;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Xt||(Xt={}));let Zt=!1,Qt=[];function en(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:o,listener:i}=e;let s;s=function(e){return!!At[e]}(r)?At[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ct&&t.removeEventListener(n,s,i),o===kt&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function tn(e,t){0}function nn(){Zt||(Zt=!0,0!==Qt.length?m.nextTick().then(()=>{const t=function(e){const t=[];for(const n of e){const{type:e,nodes:r,eventNodes:o,printedNodes:i}=n,s=t[t.length-1];s&&s.type===e?(s.nodes=s.nodes.concat(r),s.eventNodes=s.eventNodes.concat(o),s.printedNodes=s.printedNodes.concat(i)):t.push({type:e,nodes:r,eventNodes:o,printedNodes:i})}return t}(Qt),{rootViewId:n}=Lt(),r=new e.Hippy.SceneBuilder(n);t.forEach(e=>{switch(e.type){case Xt.CREATE:tn(e.printedNodes),r.create(e.nodes,!0),en(e.eventNodes,r);break;case Xt.UPDATE:tn(e.printedNodes),r.update(e.nodes),en(e.eventNodes,r);break;case Xt.DELETE:tn(e.printedNodes),r.delete(e.nodes);break;case Xt.MOVE:tn(e.printedNodes),r.move(e.nodes);break;case Xt.UPDATE_EVENT:en(e.eventNodes,r)}}),r.build(),Zt=!1,Qt=[]}):Zt=!1)}var rn;function on(e){let t;const n=e.events;if(n){const r=[];Object.keys(n).forEach(e=>{const{name:t,type:o,isCapture:i,listener:s}=n[e];r.push({name:t,type:o,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rn||(rn={}));class sn extends Jt{constructor(e,t){var n;super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:sn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===rn.ElementNode}(e),(null==t?void 0:t.id)&&(this.isMounted=!0)}static getUniqueNodeId(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get component(){return this.tagComponent}get index(){let e=0;if(this.parentNode){e=this.parentNode.childNodes.filter(e=>e.isNeedInsertToNative).indexOf(this)}return e}isRootNode(){return 1===this.nodeId}hasChildNodes(){return!!this.childNodes.length}insertBefore(e,t){const n=e,r=t;if(!n)throw new Error("No child to insert");if(!r)return void this.appendChild(n);if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");let o=this;r.parentNode!==this&&(o=r.parentNode);const i=o.childNodes.indexOf(r);let s=r;r.isNeedInsertToNative||(s=zt(this.childNodes,i)),n.parentNode=o,n.nextSibling=r,n.prevSibling=o.childNodes[i-1],o.childNodes[i-1]&&(o.childNodes[i-1].nextSibling=n),r.prevSibling=n,o.childNodes.splice(i,0,n),s.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}moveChild(e,t){const n=e,r=t;if(!n)throw new Error("No child to move");if(!r)return void this.appendChild(n);if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");const o=this.childNodes.indexOf(n),i=this.childNodes.indexOf(r);let s=r;if(r.isNeedInsertToNative||(s=zt(this.childNodes,i)),i===o)return;n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=n),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=n),this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=this.childNodes[o+1]),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=this.childNodes[o-1]),this.childNodes.splice(o,1);const c=this.childNodes.indexOf(r);this.childNodes.splice(c,0,n),s.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}appendChild(e,t=!1){const n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?Ut(n,n.nodeId):this.insertChildNativeNode(n)))}removeChild(e){const t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode!==this)return void t.parentNode.removeChild(t);if(!t.isNeedInsertToNative)return;t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;const n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(const t of this.childNodes){const n=this.findChild.call(t,e);if(n)return n}return null}eachNode(e){e&&e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.eachNode.call(t,e)})}insertChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;const n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){const r=n?this:e;!function([e,t,n]){Qt.push({type:Xt.CREATE,nodes:e,eventNodes:t,printedNodes:n}),nn()}(r.convertToNativeNodes(!0,t)),r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Ut(t,t.nodeId)})}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Qt.push({type:Xt.MOVE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(Qt.push({type:Xt.DELETE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Qt.push({type:Xt.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),nn())}(this.convertToNativeNodes(e,{}))}updateNativeEvent(){if(!this.isMounted)return;!function(e){Qt.push({type:Xt.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),nn()}(on(this))}convertToNativeNodes(e,t={},n){var r,o;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){const e=[],n=[],r=[];return this.eachNode(o=>{const[i,s,c]=o.convertToNativeNodes(!1,t);Array.isArray(i)&&i.length&&e.push(...i),Array.isArray(s)&&s.length&&n.push(...s),Array.isArray(c)&&c.length&&r.push(...c)}),[e,n,r]}if(!this.component)throw new Error("tagName is not supported yet");const{rootViewId:i}=Lt(),s=null!=n?n:{},c=l({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=on(this);let u=void 0;return[[[c,t]],[a],[u]]}}class cn extends sn{constructor(e,t){super(rn.TextNode,t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}setText(e){this.text=e,this.parentNode&&this.parentNode.nodeType===rn.ElementNode&&this.parentNode.setText(e)}}function an(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;e{t[n]=function(e){let t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;const{ratioBaseWidth:n}=Lt(),{width:r}=nt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=ut(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Lt();return super.isRootNode()||this.id===e}appendChild(e,t=!1){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e,t)}insertBefore(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof cn&&this.setText("",{notToNative:!0}),super.removeChild(e)}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}removeAttribute(e){delete this.attributes[e]}setAttribute(e,t,n={}){let r=t,o=e;try{if("boolean"==typeof this.attributes[o]&&""===r&&(r=!0),void 0===o)return void(!n.notToNative&&this.updateNativeNode());switch(o){case"class":{const e=new Set(Be(r));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let r=n.next().value;for(;r;){if(!t.has(r))return!1;r=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&this.updateNativeNode(!0))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){je(e.message)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===xe||xe?i.trim():i),r=r.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)));break;case"numberOfRows":if(!nt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=nt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=nt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=nt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=nt.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}var i}setText(e,t={}){return this.setAttribute("text",e,{notToNative:!!t.notToNative})}removeStyle(e=!1){this.style={},e||this.updateNativeNode()}setStyles(e){e&&"object"==typeof e&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),this.updateNativeNode())}setStyle(e,t,n=!1){if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());let{property:r,value:o}=this.beforeLoadStyle({property:e,value:t});switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=F(r,o);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){var r;const o=n;return o.textShadowOffset=null!==(r=o.textShadowOffset)&&void 0!==r?r:{},Object.assign(o.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t}),["textShadowOffset",o.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=null!=o?o:{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(T,r)&&(r=T[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?nt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(Ae.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||this.updateNativeNode())}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let r=n;!1===r&&(r=0),nt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}scrollTo(e,t,n){if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto",duration:o}=e;this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+Ce(e);if(this.component){const{eventNamesMap:n}=this.component;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}addEventListener(e,t,n){let r=e,o=t,i=n,s=!0;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);const c=this.getNativeEventName(r);this.attributes[c]&&(s=!1),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Pt,r,o,i)),super.addEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==kt&&(this.events[t].type=kt):this.events[t]={name:t,type:kt,listener:(n=t,r=e,e=>{const{id:t,currentId:o,params:i,eventPhase:s}=e,c={id:t,nativeName:n,originalName:r,currentId:o,params:i,eventPhase:s};qt.receiveComponentEvent(c,e)}),isCapture:!1}}),s&&this.updateNativeEvent()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Rt,r,o,i)),super.removeEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ct)});const s=this.getNativeEventName(r);this.attributes[s]&&delete this.attributes[s],this.updateNativeEvent()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,Bt(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}convertToNativeNodes(e,t={}){if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return super.convertToNativeNodes(!0,t);let n=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof ln){const e=this.parentNode.processedStyle;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!n[t]&&e[t]&&(n[t]=e[t])})}if(Re(this,n),this.component.defaultNativeStyle){const{defaultNativeStyle:e}=this.component,t={};Object.keys(e).forEach(n=>{this.getAttribute(n)||(t[n]=e[n])}),n=l(l({},t),n)}this.processedStyle=n;const r={name:this.component.name,props:l(l({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return function(e,t){const n=t;e.component.name===we.TextInput&&jt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===we.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&je(),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=jt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&je(),e.childNodes.length&&e.nodeType===rn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Le(o.backgroundImage)))}(this,r,n),super.convertToNativeNodes(!1,t,r)}repaintWithChildren(){this.updateNativeNode(!0)}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}setPressed(e){nt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){nt.callUIFunction(this,"setHotspot",[e,t])}setStyleScope(e){const t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}get styleScopeId(){return this.scopedIdList}getInlineStyle(){const e={};return Object.keys(this.style).forEach(t=>{const n=m.toRaw(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return ye(void 0,Pe()).query(this).selectors.forEach(t=>{var n,r;Ve(t,this)&&(null===(r=null===(n=t.ruleSet)||void 0===n?void 0:n.declarations)||void 0===r?void 0:r.length)&&t.ruleSet.declarations.forEach(t=>{t.property&&(e[t.property]=t.value)})}),this.ssrInlineStyle&&(e=l(l({},e),this.ssrInlineStyle)),e=ln.parseRem(l(l({},e),this.getInlineStyle())),e}getNativeProps(){const e={},{defaultNativeProps:t}=this.component;t&&Object.keys(t).forEach(n=>{if(void 0===this.getAttribute(n)){const r=t[n];e[n]=h.isFunction(r)?r(this):m.toRaw(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=m.toRaw(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=m.toRaw(r));const o=this.component.attributeMaps[t];if(h.isString(o))return void(e[o]=m.toRaw(r));if(h.isFunction(o))return void(e[t]=m.toRaw(o(r)));const{name:i,propsValue:s,jointKey:c}=o;h.isFunction(s)&&(r=s(r)),c?(e[c]=null!==(n=e[c])&&void 0!==n?n:{},Object.assign(e[c],{[i]:m.toRaw(r)})):e[i]=m.toRaw(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=m.toRaw(n[t])}),e}getNodeAttributes(){var e;try{const t=function e(t,n=new WeakMap){if("object"!=typeof t||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);const r={};return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof i||null===i?r[o]=i:Array.isArray(i)?r[o]=[...i]:i instanceof Set?r[o]=new Set([...i]):i instanceof Map?r[o]=new Map([...i]):(n.set(t,t),r[o]=e(i,n))}),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=l({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach(e=>{"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]}),r}catch(e){return{}}}getNativeEvents(){const e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){const{eventNamesMap:r}=this.component;n.forEach(n=>{const o=null==r?void 0:r.get(n);if(o)e[o]=!!t[n];else{const r="on"+Ce(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){var e;let t=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>t,set:e=>{t=void 0===e?"flex":e,this.updateNativeNode()}})}}function un(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?nt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function u(t){const{mode:i="timing",valueType:s,startValue:u,toValue:d}=t,p=c(t,o),f=l(l({},n),p);void 0!==s&&(f.valueType=t.valueType),f.startValue=r(f.valueType,u),f.toValue=r(f.valueType,d),f.repeatCount=a(f.repeatCount),f.mode=i;const h=new e.Hippy.Animation(f),m=h.getId();return{animation:h,animationId:m}}function d(t,n={}){const r={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const i=t[o],{repeatCount:s}=i[i.length-1],c=i.map(e=>{const{animationId:t,animation:r}=u(l(l({},e),{},{repeatCount:0}));return Object.assign(n,{[t]:r}),{animationId:t,follow:!0}}),{animationId:d,animation:p}=function(t,n=0){const r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}(c,a(s));r[o]={animationId:d},Object.assign(n,{[d]:p})}else{const e=t[o],{animationId:i,animation:s}=u(e);Object.assign(n,{[i]:s}),r[o]={animationId:i}}}),r}function p(e){const{transform:t}=e,n=c(e,i);let r=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:r}=t[n];"number"==typeof r&&r%1==0&&e.push(r)}})),r=[...r,...e]}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{const e=this.$attrs[Fe("actionsDidUpdate")];"function"==typeof e&&e()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},deactivated(){this.pause()},activated(){this.resume()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=c(e.actions,s);this.animationIdsMap={};const r=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);r.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=p(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.start()}))},resume(){p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return m.h(this.tag,l({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}const dn=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"];var pn={install(e){un(e),lt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=nt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{lt("hi-pull-"+r,{component:{name:`Pull${n}View`,processEventData(e,t){const{handler:r,__evt:o}=e;switch(o){case`on${n}Released`:case`on${n}Pulling`:Object.assign(r,t)}return r}}}),e.component("pull-"+r,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(){const{onReleased:e,onPulling:t,onIdle:o}=this.$attrs,i={onLayout:this.onLayout};return"function"==typeof e&&(i[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof o||(i[`on${n}Pulling`]=this[`on${n}Pulling`]),m.h("hi-pull-"+r,l(l({},i),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){lt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),lt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){nt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){nt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return m.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=m.h("div",null,this.$slots.default?this.$slots.default():null);return m.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){lt("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":{const{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s}=t;Object.assign(n,{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return n}}}),lt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(e,t){nt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(){const e=De.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return m.h("hi-waterfall",l(l({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render(){return m.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(e),function(e){lt("hi-swiper",{component:{name:"ViewPager",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),lt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:()=>({$initialSlide:0}),watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){nt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){nt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=De.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return m.h("hi-swiper",l(l({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return m.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class fn extends ln{constructor(e,t){super("comment",t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}}class hn extends ln{setText(e,t={}){"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}async getValue(){return new Promise(e=>nt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){nt.callUIFunction(this,"setValue",[e])}focus(){nt.callUIFunction(this,"focusTextInput",[])}blur(){nt.callUIFunction(this,"blurTextInput",[])}clear(){nt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>nt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class mn extends ln{scrollToIndex(e=0,t=0,n=!0){nt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&nt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class vn extends sn{static createComment(e){return new fn(e)}static createElement(e){switch(e){case"input":case"textarea":return new hn(e);case"ul":return new mn(e);default:return new ln(e)}}static createTextNode(e){return new cn(e)}constructor(){super(rn.DocumentNode)}}const gn={insert:function(e,t,n=null){t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){const t=e.parentNode;t&&(t.removeChild(e),Wt(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return vn.createElement(e)},createComment:function(e){return vn.createComment(e)},createText:function(e){return vn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const yn=/(?:Once|Passive|Capture)$/;function bn(e,t,n,r,o=null){var i;const s=e,c=null!==(i=s._vei)&&void 0!==i?i:s._vei={},a=c[t];if(r&&a)a.value=r;else{const[e,n]=function(e){let t=e;const n={};if(yn.test(t)){let e=t.match(yn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(yn)}return t=":"===t[2]?t.slice(3):t.slice(2),[(r=t,`${r.charAt(0).toLowerCase()}${r.slice(1)}`),n];var r}(t);if(r){c[t]=function(e,t){const n=e=>{m.callWithAsyncErrorHandling(n.value,t,m.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}(r,o);const i=c[t];s.addEventListener(e,i,n)}else s.removeEventListener(e,a,n),c[t]=void 0}}function On(e,t,n){const r=e,o={};if(!function(e,t,n){const r=!e,o=!t&&!n,i=JSON.stringify(t)===JSON.stringify(n);return r||o||i}(r,t,n))if(t&&!n)r.removeStyle();else{if(h.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];(function(e){return null==e})(t)||(o[m.camelize(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}function _n(e,t,n,r,o,i,s){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":On(e,n,r);break;default:h.isOn(t)&&!function(e){return["onInterceptTouchEvent","onInterceptPullUpEvent"].indexOf(e)>=0}(t)?bn(e,t,0,r,s):function(e,t,n,r){n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let En=!1;function Sn(e,t){const n=function(e){var t;if("comment"===e.name)return new fn(e.props.text,e);if("Text"===e.name&&!e.tagName){const t=new cn(e.props.text,e);return t.nodeType=rn.TextNode,t.data=e.props.text,t}switch(e.tagName){case"input":case"textarea":return new hn(e.tagName,e);case"ul":return new mn(e.tagName,e);default:return new ln(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e);let r=t.filter(t=>t.pId===e.id).sort((e,t)=>e.index-t.index);const o=r.filter(e=>"comment"===e.name);if(o.length){r=r.filter(e=>"comment"!==e.name);for(let e=o.length-1;e>=0;e--)r.splice(o[e].index,0,o[e])}return r.forEach(e=>{n.appendChild(Sn(e,t),!0)}),n}e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,this.protocol="",this.listeners={},this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const r=l({},n);if(En||(En=!0,Ee.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?(this.protocol=t.join(","),r["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof t&&(this.protocol=t,r["Sec-WebSocket-Protocol"]=this.protocol);const o={headers:r,url:e};nt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:je()})}close(e,t){1===this.readyState&&(this.readyState=2,nt.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);nt.callNative("websocket","send",{id:this.webSocketId,data:e})}else je()}set onopen(e){this.addEventListener("open",e)}set onclose(e){this.addEventListener("close",e)}set onerror(e){this.addEventListener("error",e)}set onmessage(e){this.addEventListener("message",e)}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ee.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach(t=>{h.isFunction(t)&&t(e.data)})}addEventListener(e,t){if((e=>-1!==["open","close","message","error"].indexOf(e))(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=Fe(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const wn=['%c[Hippy-Vue-Next "3.3.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Nn(e,t){if(nt.isIOS()){const n=function(e){var t,n;const{iPhone:r}=e;let o;if((null==r?void 0:r.statusBar)&&(o=r.statusBar),null==o?void 0:o.disabled)return null;const i=new ln("div"),{statusBarHeight:s}=nt.Dimensions.screen;nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0);let c=4282431619;if(Number.isInteger(c)&&({backgroundColor:c}=o),i.setStyle("backgroundColor",c),"string"==typeof o.backgroundImage){const r=new ln("img");r.setStyle("width",nt.Dimensions.screen.width),r.setStyle("height",s),r.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),i.appendChild(r)}return i.addEventListener("layout",()=>{nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0)}),i}(e);if(n){const e=t.$el.parentNode;e.childNodes.length?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)}}}const xn=(e,t)=>{var n,r;const o=e,i=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);var s,c;o.use(Tt),o.use(pn),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(s=t.styleOptions.beforeLoadStyle,Ie=s),t.silent&&(c=t.silent,Ne=c),function(e=!0){xe=e}(t.trimWhitespace);const{mount:a}=o;return o.mount=e=>{var n;Ft("rootContainer",e);const r=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?function(e){const[t]=e;return Sn(t,e)}(t.ssrNodeList):function(e){const t=vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=a(r,i,!1);return Ft("instance",o),i||Nn(t,o),o},o.$start=async e=>new Promise(n=>{nt.hippyNativeRegister.regist(t.appName,r=>{var i,s;const{__instanceId__:c}=r;Te(...wn,"Start",t.appName,"with rootViewId",c,r);const a=Lt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:r,app:o,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Mt=l;const u={superProps:r,rootViewId:c};h.isFunction(e)?e(u):n(u)})}),o};t.BackAndroid=ct,t.ContentSizeEvent=class extends Dt{},t.EventBus=Ee,t.ExposureEvent=class extends Dt{},t.FocusEvent=class extends Dt{},t.HIPPY_DEBUG_ADDRESS=Se,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="3.3.1",t.HippyEvent=Dt,t.HippyKeyboardEvent=class extends Dt{},t.HippyLayoutEvent=Vt,t.HippyLoadResourceEvent=class extends Dt{},t.HippyTouchEvent=class extends Dt{},t.IS_PROD=!0,t.ListViewEvent=class extends Dt{},t.NATIVE_COMPONENT_MAP=we,t.Native=nt,t.ViewPagerEvent=class extends Dt{},t._setBeforeRenderToNative=(e,t)=>{h.isFunction(e)&&(1===t?Re=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=(e,t)=>{const n=m.createRenderer(l({patchProp:_n},gn)).createApp(e);return xn(n,t)},t.createHippyApp=xn,t.createSSRApp=(e,t)=>{const n=m.createHydrationRenderer(l({patchProp:_n},gn)).createApp(e);return xn(n,t)},t.eventIsKeyboardEvent=Bt,t.getCssMap=ye,t.getTagComponent=ut,t.isNativeTag=function(e){return dn.includes(e)},t.parseCSS=function(e,t={source:0}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(t){const n=t.exec(e);if(!n)return null;const r=n[0];return o(r),e=e.slice(r.length),n}function s(){i(/^\s*/)}function c(){return o=>(o.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},s(),o)}const a=[];function u(o){const i=l(l({},new Error(`${t.source}:${n}:${r}: ${o}`)),{},{reason:o,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw i;a.push(i)}function d(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}function p(e=[]){let t;const n=e||[];for(;t=d();)!1!==t&&n.push(t);return n}function f(){let t;const n=[];for(s(),p(n);e.length&&"}"!==e.charAt(0)&&(t=x()||O());)t&&(n.push(t),p(n));return n}function m(){return i(/^{\s*/)}function v(){return i(/^}/)}function g(){const e=i(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,e=>e.replace(/,/g,"‌")).split(/\s*(?![^(]*\)),\s*/).map(e=>e.replace(/\u200C/g,",")):null}function y(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return u("property missing ':'");const n=t.replace(I,""),r=h.camelize(n);let o=(()=>{const e=T[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(I,""):"";switch(o){case"backgroundImage":[o,a]=F(o,a);break;case"transform":{const e=/((\w+)\s*\()/,t=/(?:\(['"]?)(.*?)(?:['"]?\))/,n=a;a=[],n.split(" ").forEach(n=>{if(e.test(n)){let r,o;const i=e.exec(n),s=t.exec(n);i&&([,,r]=i),s&&([,o]=s),0===o.indexOf(".")&&(o="0"+o),parseFloat(o).toString()===o&&(o=parseFloat(o));const c={};c[r]=o,a.push(c)}else u("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>R(e)),[t]=e;let[,n]=e;n||(n=t),a={x:t,y:n};break}case"collapsable":a=Boolean(a);break;default:a=function(e){if("number"==typeof e)return e;if(P.test(e))try{return parseFloat(e)}catch(e){}return e}(a);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find(e=>o.toLowerCase().indexOf(e)>-1)&&(a=R(a))}const l=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),l}function b(){let e,t=[];if(!m())return u("missing '{'");for(p(t);e=y();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),p(t));return v()?t:u("missing '}'")}function O(){const e=c(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:b()})):u("selector missing")}function _(){let e;const t=[],n=c();for(;e=i(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),i(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:b()}):null}function E(e){const t=new RegExp(`^@${e}\\s*([^;]+);`);return()=>{const n=c(),r=i(t);if(!r)return null;const o={type:e};return o[e]=r[1].trim(),n(o)}}const S=E("import"),w=E("charset"),N=E("namespace");function x(){return"@"!==e[0]?null:function(){const e=c();let t=i(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=i(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const r=t[1];if(!m())return u("@keyframes missing '{'");let o,s=p();for(;o=_();)s.push(o),s=s.concat(p());return v()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):u("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@media missing '{'");const r=p().concat(f());return v()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}()||function(){const e=c(),t=i(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}()||function(){const e=c(),t=i(/^@supports *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@supports missing '{'");const r=p().concat(f());return v()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}()||S()||w()||N()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!m())return u("@document missing '{'");const o=p().concat(f());return v()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!m())return u("@page missing '{'");let n,r=p();for(;n=y();)r.push(n),r=r.concat(p());return v()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!m())return u("@host missing '{'");const t=p().concat(f());return v()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!m())return u("@font-face missing '{'");let t,n=p();for(;t=y();)n.push(t),n=n.concat(p());return v()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}return function e(t,n){const r=t&&"string"==typeof t.type,o=r?t:n;return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e(t,o)}):r&&"object"==typeof r&&e(r,o)}),r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n}),t}(function(){const e=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)},t.registerElement=lt,t.setScreenSize=function(t){var n;if(t.width&&t.height){const{screen:r}=null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=x}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return s})),n.d(t,"ITERATE_KEY",(function(){return I})),n.d(t,"ReactiveEffect",(function(){return d})),n.d(t,"ReactiveFlags",(function(){return rt})),n.d(t,"TrackOpTypes",(function(){return tt})),n.d(t,"TriggerOpTypes",(function(){return nt})),n.d(t,"computed",(function(){return Re})),n.d(t,"customRef",(function(){return Ge})),n.d(t,"deferredComputed",(function(){return et})),n.d(t,"effect",(function(){return v})),n.d(t,"effectScope",(function(){return c})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return l})),n.d(t,"isProxy",(function(){return je})),n.d(t,"isReactive",(function(){return Ne})),n.d(t,"isReadonly",(function(){return xe})),n.d(t,"isRef",(function(){return Fe})),n.d(t,"isShallow",(function(){return Te})),n.d(t,"markRaw",(function(){return Ce})),n.d(t,"onScopeDispose",(function(){return u})),n.d(t,"pauseScheduling",(function(){return w})),n.d(t,"pauseTracking",(function(){return _})),n.d(t,"proxyRefs",(function(){return ze})),n.d(t,"reactive",(function(){return Oe})),n.d(t,"readonly",(function(){return Ee})),n.d(t,"ref",(function(){return De})),n.d(t,"resetScheduling",(function(){return N})),n.d(t,"resetTracking",(function(){return S})),n.d(t,"shallowReactive",(function(){return _e})),n.d(t,"shallowReadonly",(function(){return Se})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return g})),n.d(t,"toRaw",(function(){return ke})),n.d(t,"toRef",(function(){return Ze})),n.d(t,"toRefs",(function(){return qe})),n.d(t,"toValue",(function(){return Ye})),n.d(t,"track",(function(){return R})),n.d(t,"trigger",(function(){return M})),n.d(t,"triggerRef",(function(){return Ue})),n.d(t,"unref",(function(){return He}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"); /** * @vue/reactivity v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors diff --git a/hippy.podspec b/hippy.podspec index 99a6f094049..887de162aa6 100644 --- a/hippy.podspec +++ b/hippy.podspec @@ -12,7 +12,7 @@ Pod::Spec.new do |s| puts "layout engine is #{layout_engine}, js engine is #{js_engine}" s.name = 'hippy' - s.version = '3.3.0' + s.version = '3.3.1' s.summary = 'Hippy Cross Platform Framework' s.description = <<-DESC Hippy is designed for developers to easily build cross-platform