diff --git a/.github/workflows/pod_spec_lint.yml b/.github/workflows/pod_spec_lint.yml deleted file mode 100644 index a169f9dee17..00000000000 --- a/.github/workflows/pod_spec_lint.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: '[pods] pod spec lint' - -on: - pull_request: - branches: - - main - paths: - - 'framework/ios/**' - - 'framework/examples/ios-demo/**' - - 'driver/js/src/**' - - 'driver/js/include/**' - - 'dom/include/**' - - 'dom/src/**' - - 'layout/engine/**' - - 'modules/ios/**' - - 'modules/footstone/**' - - 'modules/vfs/ios/**' - - 'modules/vfs/native/**' - - 'renderer/native/ios/**' - - 'devtools/devtools-backend/**' - -jobs: - pod_spec_lint: - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - lfs: true - - name: Pod Spec Lint - run: | - pod spec lint hippy.podspec --allow-warnings --use-libraries --verbose --skip-import-validation diff --git a/.github/workflows/pod_spec_lint_bypass.yml b/.github/workflows/pod_spec_lint_bypass.yml deleted file mode 100644 index 4d7b056cba8..00000000000 --- a/.github/workflows/pod_spec_lint_bypass.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: '[pods] pod spec lint' - -on: - pull_request: - branches: - - main - paths-ignore: - - 'framework/ios/**' - - 'framework/examples/ios-demo/**' - - 'driver/js/src/**' - - 'driver/js/include/**' - - 'dom/include/**' - - 'dom/src/**' - - 'layout/engine/**' - - 'modules/ios/**' - - 'modules/footstone/**' - - 'modules/vfs/ios/**' - - 'modules/vfs/native/**' - - 'renderer/native/ios/**' - - 'devtools/devtools-backend/**' - -jobs: - pod_spec_lint: - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - lfs: true - - name: Pod_Spec_Lint_Bypass - run: | - echo "No Pod Spec Lint required" diff --git a/dom/CMakeLists.txt b/dom/CMakeLists.txt index d8e4f958687..27b6d41b686 100644 --- a/dom/CMakeLists.txt +++ b/dom/CMakeLists.txt @@ -55,7 +55,7 @@ if ("${LAYOUT_ENGINE}" STREQUAL "Yoga") target_link_libraries(${PROJECT_NAME} PRIVATE yogacore) elseif ("${LAYOUT_ENGINE}" STREQUAL "Taitank") InfraPackage_Add(taitank - REMOTE "dom/third_party/taitank/1.0.2/git-repo.tgz" + REMOTE "dom/third_party/taitank/1.0.5/git-repo.tgz" LOCAL "third_party/taitank" ) target_link_libraries(${PROJECT_NAME} PRIVATE taitank) diff --git a/dom/src/dom/taitank_layout_node.cc b/dom/src/dom/taitank_layout_node.cc index 241e785f87c..30873d61878 100644 --- a/dom/src/dom/taitank_layout_node.cc +++ b/dom/src/dom/taitank_layout_node.cc @@ -162,7 +162,8 @@ TAITANK_GET_STYLE_DECL(Direction, TaitankDirection, TaitankDirection::DIRECTION_ } static void CheckValueType(footstone::value::HippyValue::Type type) { - FOOTSTONE_DCHECK(type == footstone::value::HippyValue::Type::kNumber || type == footstone::value::HippyValue::Type::kObject); + if (type == footstone::value::HippyValue::Type::kNumber || type == footstone::value::HippyValue::Type::kObject) + FOOTSTONE_DLOG(WARNING) << "Taitank Layout Node Value Type Error"; } static float GetDefaultValue( diff --git a/driver/js/CHANGELOG.md b/driver/js/CHANGELOG.md index 6e5ba1043d9..4c5f53eb1e4 100644 --- a/driver/js/CHANGELOG.md +++ b/driver/js/CHANGELOG.md @@ -3,6 +3,59 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + + +### Bug Fixes + +* **action:** fix 3.0 release and compare action ([8b3f572](https://github.com/Tencent/Hippy/commit/8b3f572cc94fe2759ad23950cbcfe15b5b269fa6)) +* **android:** add call function log ([5fc52e4](https://github.com/Tencent/Hippy/commit/5fc52e4312cb6237d8d94cda96792aa8d578f58c)) +* **android:** event to lower case ([e368ad5](https://github.com/Tencent/Hippy/commit/e368ad584540c3ee07ce0891a6d7b8eb8bb793f9)) +* **android:** fix incremental build ([06c22c2](https://github.com/Tencent/Hippy/commit/06c22c270e05fbc1ca40c95e834bcf9ffc6136a4)) +* **android:** initialContentOffset not working ([3e3b5a8](https://github.com/Tencent/Hippy/commit/3e3b5a868ed78188812927ef724cd692c7aef2ad)) +* **android:** issues of ScrollEvent ([#3362](https://github.com/Tencent/Hippy/issues/3362)) ([733f303](https://github.com/Tencent/Hippy/commit/733f303a4fd1cac5a7bc0d8a57742d4d008834ce)) +* **android:** non flattened elements background color ([#3352](https://github.com/Tencent/Hippy/issues/3352)) ([2a7402a](https://github.com/Tencent/Hippy/commit/2a7402a52be698f2df15b2ee604217807c973804)) +* **android:** recycle view event use low case name ([a4f4cde](https://github.com/Tencent/Hippy/commit/a4f4cde9a1d45bb556ec3390eaa99a28de503d46)) +* **android:** sticky header not deleted from ControllerManager ([#3356](https://github.com/Tencent/Hippy/issues/3356)) ([797eadd](https://github.com/Tencent/Hippy/commit/797eaddbf034ac5d95e3a5f73547a904df2671ce)) +* **android:** supply some layout style for filter ([6ff2398](https://github.com/Tencent/Hippy/commit/6ff239840299bbd89827e8f33f791f743b3a566d)) +* **android:** support sparse array for call ui function ([0b06be7](https://github.com/Tencent/Hippy/commit/0b06be7810e7f12cae064050b1f67a7504167fc5)) +* **android:** window and screen size use float ([6402189](https://github.com/Tencent/Hippy/commit/640218905b33fb39f51a482ab2846f50517f6d9f)) +* **devtools:** fix location double for all ([fb1be52](https://github.com/Tencent/Hippy/commit/fb1be5210d677b4ec246e714667f0077b9405787)) +* **dom:** filter nodes with same style ([82a0792](https://github.com/Tencent/Hippy/commit/82a079231e8d18d6873f34dadab81b46ab9bb351)) +* **dom:** fix dom ext style diff error ([e3351e6](https://github.com/Tencent/Hippy/commit/e3351e66c79c82faa5088db089d486084d78a04f)) +* **dom:** fix event empty pointer ([c690f86](https://github.com/Tencent/Hippy/commit/c690f8645bf722e6db933d4b363b30b1506780a3)) +* **dom:** fix modifying event by multi hippy engine ([4a731a2](https://github.com/Tencent/Hippy/commit/4a731a2f658f14fcf1f11936a0405f77c3f79344)) +* **dom:** fix vue diff style alogrithm ([3463362](https://github.com/Tencent/Hippy/commit/346336231078ff88a9459c6651fe6202923a20f1)) +* **ios:** add semaphore to make sure scope is created ([f27c513](https://github.com/Tencent/Hippy/commit/f27c51327fbfb810a11970b54e89bd07b2c76339)) +* **ios:** fix crash caused by null pointer ([15e2bc5](https://github.com/Tencent/Hippy/commit/15e2bc5c3b414633df189de43e1030b27cf45468)) +* **ios:** fix gradient color drawing bug ([a0e11c4](https://github.com/Tencent/Hippy/commit/a0e11c496b4c32787cafcc6d08fd9cd11fc9530b)) +* **ios:** fix ios event capture and bubbling process ([1d05545](https://github.com/Tencent/Hippy/commit/1d05545d7b9c53b7cfeb7a2c0d975d18a517b49d)) +* **ios:** remove the semicolon after namespace syntax ([a132dea](https://github.com/Tencent/Hippy/commit/a132dea5f8079dcea31f15d6f7ef4dab82db39b9)) +* **ios:** support intercept touche event ([a85040d](https://github.com/Tencent/Hippy/commit/a85040d4515b21d08aee53df8311c65591befeea)) +* **jsc:** fix jsc crash on ios12 ([d78bb47](https://github.com/Tencent/Hippy/commit/d78bb47e0083ce96b3c92ab717ba9bde027ec067)) +* **jsc:** fix JSCCtxValue crash after destroy engine ([a166fe3](https://github.com/Tencent/Hippy/commit/a166fe347cc461fcbaec15ba93b08da17461e37e)) +* **jsc:** temporarily used for testing jsc crash ([a053f1a](https://github.com/Tencent/Hippy/commit/a053f1a68438d4eceb3e052ee8a75d6a178b8b51)) +* **voltron:** fix crash when dom value type error ([ffbab34](https://github.com/Tencent/Hippy/commit/ffbab348fcf1638b484c3a105608d8f385741d68)) +* **voltron:** fix voltron android scope not erase when destroy ([eebd7a1](https://github.com/Tencent/Hippy/commit/eebd7a1d437e73c117f1a642e628f969f8f5fc37)) +* **vue-next:** fix element do not use beforeLoadStyle hooks issue ([604a231](https://github.com/Tencent/Hippy/commit/604a23193f032e7911c4168ee0e3203efcbb33e4)) +* **vue:** fix rootview conditional statement ([#3355](https://github.com/Tencent/Hippy/issues/3355)) ([5364548](https://github.com/Tencent/Hippy/commit/5364548e5f3cb11d501b79989419e3608c2562da)) + + +### Features + +* **android:** add filter for css style to native renderer ([#3405](https://github.com/Tencent/Hippy/issues/3405)) ([c459934](https://github.com/Tencent/Hippy/commit/c45993435633b938587d1a29196fe4a26d489326)) +* **dom:** fix empty dom event function crash ([388beef](https://github.com/Tencent/Hippy/commit/388beef1fb648b66b903b02d25c94a5c90ed62b2)) +* **dom:** measure textinput node ([c9cedd1](https://github.com/Tencent/Hippy/commit/c9cedd14adcff622dbdca75bb2d7f5f9d77b33f9)) +* **dom:** remove DCHECK for taitank node ([c779738](https://github.com/Tencent/Hippy/commit/c779738d5dddb9f8bd116a8e2cc8f252805149ab)) +* **ios:** add 'SetRootOrigin' function for root node ([ef7d9ce](https://github.com/Tencent/Hippy/commit/ef7d9ce506feb073d72164c99a77830e7a462679)) +* **ios:** strip hippyconvenientbridge from bridge module to host module ([3f28b9e](https://github.com/Tencent/Hippy/commit/3f28b9e6fd47ac9a6b4af4bc59dc791ae7f6b1a2)) +* **voltron:** publish voltron 0.0.31 ([#3375](https://github.com/Tencent/Hippy/issues/3375)) ([f02c1a7](https://github.com/Tencent/Hippy/commit/f02c1a7830b0e860ed6203e3cdaab633eaf80606)) +* **voltron:** update workflow xcode version ([2fcd955](https://github.com/Tencent/Hippy/commit/2fcd9559a192ab2c48709f7c5c04c76c04b3bf59)) + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) diff --git a/driver/js/include/driver/scope.h b/driver/js/include/driver/scope.h index 2ddd3583d08..050f45d5ec5 100644 --- a/driver/js/include/driver/scope.h +++ b/driver/js/include/driver/scope.h @@ -119,6 +119,7 @@ struct ClassTemplate { string_view name; size_t size = SIZE_OF; std::unordered_map> holder_map; + std::vector> holder_ctx_values; }; class Scope : public std::enable_shared_from_this { diff --git a/driver/js/include/driver/vm/jsc/jsc_vm.h b/driver/js/include/driver/vm/jsc/jsc_vm.h index 36ceafb90fc..d235163e76a 100644 --- a/driver/js/include/driver/vm/jsc/jsc_vm.h +++ b/driver/js/include/driver/vm/jsc/jsc_vm.h @@ -23,7 +23,7 @@ #pragma once #include "driver/vm/js_vm.h" - +#include #include #include "footstone/string_view.h" @@ -49,6 +49,13 @@ class JSCVM : public VM, public std::enable_shared_from_this { std::unordered_map>> constructor_data_holder_; JSContextGroupRef vm_; + static void SaveConstructorDataPtr(void* ptr); + static void ClearConstructorDataPtr(void* ptr); + static bool IsValidConstructorDataPtr(void* ptr); + + static std::set constructor_data_ptr_set_; + static std::mutex mutex_; + virtual std::shared_ptr ParseJson(const std::shared_ptr& ctx, const string_view& json) override; virtual std::shared_ptr CreateContext() override; diff --git a/driver/js/lerna.json b/driver/js/lerna.json index a8197639fd6..4b8913ddf1c 100644 --- a/driver/js/lerna.json +++ b/driver/js/lerna.json @@ -4,5 +4,5 @@ "packages/*" ], "tagVersionPrefix": "", - "version": "3.0.0" + "version": "3.0.1" } diff --git a/driver/js/packages/hippy-react-web/CHANGELOG.md b/driver/js/packages/hippy-react-web/CHANGELOG.md index f3a0bf30d12..5db085715b8 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.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + +**Note:** Version bump only for package @hippy/react-web + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) diff --git a/driver/js/packages/hippy-react-web/package-lock.json b/driver/js/packages/hippy-react-web/package-lock.json index 11a21193589..8dbdaf94801 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.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/react-web", - "version": "3.0.0", + "version": "3.0.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 531451c92d0..60bafb4f017 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.0.0", + "version": "3.0.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 943675c82fd..97074b0fed0 100644 --- a/driver/js/packages/hippy-react/CHANGELOG.md +++ b/driver/js/packages/hippy-react/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.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + +**Note:** Version bump only for package @hippy/react + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) diff --git a/driver/js/packages/hippy-react/package-lock.json b/driver/js/packages/hippy-react/package-lock.json index d168910fd7f..ba7be99217d 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.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/react", - "version": "3.0.0", + "version": "3.0.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 c90de3c40f4..761305639f9 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.0.0", + "version": "3.0.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 cdedb5f9dea..0b71ff76b73 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.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + +**Note:** Version bump only for package @hippy/vue-css-loader + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) 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 4fa1f2a966c..b8cb8be5fc5 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.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-css-loader", - "version": "3.0.0", + "version": "3.0.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 52c1cd05316..fc8e1364c94 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.0.0", + "version": "3.0.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 ad7e7c958bf..f47ea26f673 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.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + +**Note:** Version bump only for package @hippy/vue-loader + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) diff --git a/driver/js/packages/hippy-vue-loader/package.json b/driver/js/packages/hippy-vue-loader/package.json index 7e56021e36d..16f88d905bf 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.0.0", + "version": "3.0.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 d6482f1dcf8..56b106a1f21 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.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + +**Note:** Version bump only for package @hippy/vue-native-components + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) diff --git a/driver/js/packages/hippy-vue-native-components/package.json b/driver/js/packages/hippy-vue-native-components/package.json index 5c9fc3f99fe..d1ad9e7bb8e 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.0.0", + "version": "3.0.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-style-parser/CHANGELOG.md b/driver/js/packages/hippy-vue-next-style-parser/CHANGELOG.md index ac2c4d3909e..59a7bcb01e2 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,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + +**Note:** Version bump only for package @hippy/hippy-vue-next-style-parser + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) 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 e21bb43d41c..41ad37d31d0 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.0.0", + "version": "3.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hippy/hippy-vue-next-style-parser", - "version": "3.0.0", + "version": "3.0.1", "license": "Apache-2.0", "dependencies": { "@vue/shared": "^3.2.21" 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 da50a4cd069..59ad813d529 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.0.0", + "version": "3.0.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 ba3eb9a5a01..f7628062485 100644 --- a/driver/js/packages/hippy-vue-next/CHANGELOG.md +++ b/driver/js/packages/hippy-vue-next/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + + +### Bug Fixes + +* **vue-next:** fix element do not use beforeLoadStyle hooks issue ([604a231](https://github.com/Tencent/Hippy/commit/604a23193f032e7911c4168ee0e3203efcbb33e4)) + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) diff --git a/driver/js/packages/hippy-vue-next/package-lock.json b/driver/js/packages/hippy-vue-next/package-lock.json index ccdf0f04cda..8415568224c 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.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-next", - "version": "3.0.0", + "version": "3.0.1", "license": "Apache-2.0", "dependencies": { "@vue/runtime-core": "^3.2.21", diff --git a/driver/js/packages/hippy-vue-next/package.json b/driver/js/packages/hippy-vue-next/package.json index fba1b6d9770..1998f4142b9 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.0.0", + "version": "3.0.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 872194d95df..1d6b75a55ed 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.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + +**Note:** Version bump only for package @hippy/vue-router + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) diff --git a/driver/js/packages/hippy-vue-router/package-lock.json b/driver/js/packages/hippy-vue-router/package-lock.json index dbe5bffd8cc..10585a88556 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.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue-router", - "version": "3.0.0", + "version": "3.0.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 046dcd9b591..b5301da7539 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.0.0", + "version": "3.0.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 688a2fdcd43..36491330077 100644 --- a/driver/js/packages/hippy-vue/CHANGELOG.md +++ b/driver/js/packages/hippy-vue/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.1](https://github.com/Tencent/Hippy/compare/3.0.0...3.0.1) (2023-08-07) + + +### Bug Fixes + +* **vue:** fix rootview conditional statement ([#3355](https://github.com/Tencent/Hippy/issues/3355)) ([5364548](https://github.com/Tencent/Hippy/commit/5364548e5f3cb11d501b79989419e3608c2562da)) + + + + + # [3.0.0](https://github.com/Tencent/Hippy/compare/2.2.1...3.0.0) (2023-06-29) diff --git a/driver/js/packages/hippy-vue/package-lock.json b/driver/js/packages/hippy-vue/package-lock.json index 68c8699122a..b9639b3ca26 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.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hippy/vue", - "version": "3.0.0", + "version": "3.0.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 3fb5dd2923e..6e543f5c718 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.0.0", + "version": "3.0.1", "description": "Vue binding for Hippy native framework", "author": "OpenHippy Team", "license": "Apache-2.0", diff --git a/driver/js/src/engine.cc b/driver/js/src/engine.cc index 90c53bb3f7f..b79528673fe 100644 --- a/driver/js/src/engine.cc +++ b/driver/js/src/engine.cc @@ -44,6 +44,12 @@ Engine::Engine() Engine::~Engine() { FOOTSTONE_DLOG(INFO) << "~Engine"; + for(auto& [key, template_map] : class_template_holder_map_) { + auto animation_template = std::any_cast>>(template_map["Animation"]); + animation_template->holder_ctx_values.clear(); + auto animation_set_template = std::any_cast>>(template_map["AnimationSet"]); + animation_set_template->holder_ctx_values.clear(); + } } void Engine::AsyncInitialize(std::shared_ptr js, diff --git a/driver/js/src/modules/animation_module.cc b/driver/js/src/modules/animation_module.cc index 8a63cc4ab1b..7146ffa178c 100644 --- a/driver/js/src/modules/animation_module.cc +++ b/driver/js/src/modules/animation_module.cc @@ -537,16 +537,22 @@ RegisterAnimation(const std::weak_ptr& weak_scope) { exception = context->CreateException("cb is not a function"); return nullptr; } - auto cb = [weak_scope, func] { // run in js thread + std::weak_ptr weak_func = func; + auto cb = [weak_scope, weak_func] { // run in js thread auto scope = weak_scope.lock(); if (!scope) { return; } auto context = scope->GetContext(); - context->CallFunction(func, context->GetGlobalObject(), 0, nullptr); + auto func = weak_func.lock(); + if (func) { + context->CallFunction(func, context->GetGlobalObject(), 0, nullptr); + } }; animation->AddEventListener(StringViewUtils::ToStdString(StringViewUtils::ConvertEncoding( event_name, string_view::Encoding::Utf8).utf8_value()), std::move(cb)); + auto class_template_ptr = std::any_cast>>(scope->GetClassTemplate("Animation")); + class_template_ptr->holder_ctx_values.emplace_back(func); return nullptr; }; class_template.functions.emplace_back(std::move(add_event_listener_func_def)); @@ -809,16 +815,22 @@ RegisterAnimationSet(const std::weak_ptr& weak_scope) { exception = context->CreateException("cb is not a function"); return nullptr; } - auto cb = [weak_scope, func] { + std::weak_ptr weak_func = func; + auto cb = [weak_scope, weak_func] { auto scope = weak_scope.lock(); if (!scope) { return; } auto context = scope->GetContext(); - context->CallFunction(func, context->GetGlobalObject(), 0, nullptr); + auto func = weak_func.lock(); + if (func) { + context->CallFunction(func, context->GetGlobalObject(), 0, nullptr); + } }; animation_set->AddEventListener(StringViewUtils::ToStdString(StringViewUtils::ConvertEncoding( event_name, string_view::Encoding::Utf8).utf8_value()), std::move(cb)); + auto class_template_ptr = std::any_cast>>(scope->GetClassTemplate("AnimationSet")); + class_template_ptr->holder_ctx_values.emplace_back(func); return nullptr; }; def.functions.emplace_back(std::move(add_event_listener_func_def)); diff --git a/driver/js/src/napi/jsc/jsc_ctx.cc b/driver/js/src/napi/jsc/jsc_ctx.cc index 0c79151d32e..54007a88d01 100644 --- a/driver/js/src/napi/jsc/jsc_ctx.cc +++ b/driver/js/src/napi/jsc/jsc_ctx.cc @@ -70,6 +70,7 @@ JSCCtx::~JSCCtx() { auto& holder = jsc_vm->constructor_data_holder_[this]; for (auto& [key, item] : holder) { item->prototype = nullptr; + JSCVM::ClearConstructorDataPtr(item.get()); } } @@ -262,6 +263,9 @@ std::shared_ptr JSCCtx::DefineClass(const string_view& name, if (!private_data) { return; } + if (!JSCVM::IsValidConstructorDataPtr(private_data)) { + return; + } auto constructor_data = reinterpret_cast(private_data); auto weak_callback_wrapper = constructor_data->weak_callback_wrapper; if (weak_callback_wrapper) { @@ -974,6 +978,7 @@ void JSCCtx::SaveConstructorData(std::unique_ptr constructor_da if (it == holder.end()) { holder[this] = std::unordered_map>{}; } + JSCVM::SaveConstructorDataPtr(constructor_data.get()); holder[this][constructor_data->class_ref] = std::move(constructor_data); } diff --git a/driver/js/src/vm/jsc/jsc_vm.cc b/driver/js/src/vm/jsc/jsc_vm.cc index 6e92f5c3d40..eceeb8d1a97 100644 --- a/driver/js/src/vm/jsc/jsc_vm.cc +++ b/driver/js/src/vm/jsc/jsc_vm.cc @@ -37,6 +37,9 @@ namespace hippy { inline namespace driver { inline namespace vm { +std::set JSCVM::constructor_data_ptr_set_; +std::mutex JSCVM::mutex_; + std::shared_ptr JSCVM::ParseJson(const std::shared_ptr& ctx, const string_view& json) { if (footstone::StringViewUtils::IsEmpty(json)) { return nullptr; @@ -90,6 +93,21 @@ JSStringRef JSCVM::CreateJSCString(const string_view& str_view) { return ret; } +void JSCVM::SaveConstructorDataPtr(void* ptr) { + std::lock_guard lock(mutex_); + constructor_data_ptr_set_.insert(ptr); +} + +void JSCVM::ClearConstructorDataPtr(void* ptr) { + std::lock_guard lock(mutex_); + constructor_data_ptr_set_.erase(ptr); +} + +bool JSCVM::IsValidConstructorDataPtr(void* ptr) { + std::lock_guard lock(mutex_); + return constructor_data_ptr_set_.find(ptr) != constructor_data_ptr_set_.end(); +} + } } } diff --git a/framework/android/build.gradle b/framework/android/build.gradle index 69ed954186a..14fd6c253f4 100644 --- a/framework/android/build.gradle +++ b/framework/android/build.gradle @@ -175,7 +175,11 @@ dependencies { } } + embed project(path: ":${path.reverse().join('-')}", configuration: 'default') + if (it == 'renderer/native') { + embed project(path: ':renderer-native', configuration: 'default') + } } compileOnly project(path: ':renderer-native') //noinspection GradleDependency @@ -312,13 +316,3 @@ task dealAfterAssembleRelease() { } } } - -project.afterEvaluate { - project.android.libraryVariants.all { variant -> - def variantName = variant.name.capitalize() - def taskMergeClasses = project.tasks.named("mergeClasses${variantName}") - project.tasks.named("bundleLibCompileToJar${variantName}").configure { - dependsOn(taskMergeClasses) - } - } -} \ No newline at end of file diff --git a/framework/android/connector/renderer/native/build.gradle b/framework/android/connector/renderer/native/build.gradle index 2762336922e..beb91ff1d16 100644 --- a/framework/android/connector/renderer/native/build.gradle +++ b/framework/android/connector/renderer/native/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'com.android.library' -apply plugin: 'com.kezong.fat-aar' allprojects { repositories { @@ -39,7 +38,7 @@ android { } dependencies { - embed project(path: ':renderer-native', configuration: 'default') + implementation project(path: ':renderer-native') compileOnly project(path: ':connector-support') compileOnly project(path: ':hippy-support') diff --git a/framework/android/gradle.properties b/framework/android/gradle.properties index 275a1d5ee47..c7e65736d9c 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.0.0 +VERSION_NAME=3.0.1 # # Whether to skip build C/C++ code diff --git a/framework/examples/android-demo/res/react/vendor.android.js b/framework/examples/android-demo/res/react/vendor.android.js index 072541819f3..2823cd1722b 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} /*! - * @hippy/react v3.0.0 - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * @hippy/react v3.0.1 + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -20,7 +20,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage: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.0.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.0.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();e&&(I.push(o.a.createElement(bn,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0)}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=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.0.1"]%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.0.1";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();e&&(I.push(o.a.createElement(bn,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0)}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){ /** @license React v0.26.2 * react-reconciler.production.min.js * diff --git a/framework/examples/android-demo/res/vue2/index.android.js b/framework/examples/android-demo/res/vue2/index.android.js index 9b185722fc8..6bec4c389d8 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,i=t[0],s=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 i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function i(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let s;function n(){return s}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return(c="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 d(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var o=a.call(e,t||"default");if("object"!==c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}function p(e,t,a){return(t=d(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function u(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function y(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}a.d(t,"a",(function(){return he})), /*! - * @hippy/vue-router v3.0.0 - * (Using Vue v2.6.14 and Hippy-Vue v3.0.0) - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * @hippy/vue-router v3.0.1 + * (Using Vue v2.6.14 and Hippy-Vue v3.0.1) + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. diff --git a/framework/examples/android-demo/res/vue2/vendor.android.js b/framework/examples/android-demo/res/vue2/vendor.android.js index cbddb41e94c..d38b15c071b 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){ /*! - * @hippy/vue-native-components v3.0.0 - * (Using Vue v2.6.14 and Hippy-Vue v3.0.0) - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * @hippy/vue-native-components v3.0.1 + * (Using Vue v2.6.14 and Hippy-Vue v3.0.1) + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -24,9 +24,9 @@ var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports; */ 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 r(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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,"string");return"symbol"===o(t)?t:String(t)}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"AnimationComponent",(function(){return p})),n.d(t,"DialogComponent",(function(){return m})),n.d(t,"ListRefreshComponent",(function(){return v})),n.d(t,"PullsComponents",(function(){return w})),n.d(t,"SwiperComponent",(function(){return b})),n.d(t,"WaterfallComponent",(function(){return S})),n.d(t,"default",(function(){return O}));const a=["mode","valueType","startValue","toValue"],c=["transform"],l=["transform"];function u(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 d(e){for(var t=1;t=0?t.Native.parseColor(n):n}function r(t){const{mode:r="timing",valueType:c,startValue:l,toValue:u}=t,p=s(t,a),f=d(d({},n),p);void 0!==c&&(f.valueType=t.valueType),f.startValue=o(f.valueType,l),f.toValue=o(f.valueType,u),f.repeatCount=i(f.repeatCount),f.mode=r;const h=new e.Hippy.Animation(f),m=h.getId();return{animation:h,animationId:m}}function i(e){return"loop"===e?-1:e}function u(t,n={}){const o={};return Object.keys(t).forEach(s=>{if(Array.isArray(t[s])){const a=t[s],{repeatCount:c}=a[a.length-1],l=a.map(e=>{const{animationId:t,animation:o}=r(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:u,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(l,i(c));o[s]={animationId:u},Object.assign(n,{[u]:d})}else{const e=t[s],{animationId:i,animation:a}=r(e);Object.assign(n,{[i]:a}),o[s]={animationId:i}}}),o}function p(e){const{transform:t}=e,n=s(e,c);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=s(e.actions,l);this.animationIdsMap={};const o=u(n,this.animationIdsMap);if(t){const e=u(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=p(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&t.start()}))},resume(){p(this.style).forEach(e=>{const t=this.animationIdsMap[e];t&&t.resume()})},pause(){if(!this.$alreadyStarted)return;p(this.style).forEach(e=>{const t=this.animationIdsMap[e];t&&t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;p(this.style).forEach(e=>{const t=this.animationIdsMap[e];t&&t.destroy()})}},template:'\n \n \n \n '})}function f(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 h(e){for(var t=1;t{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+y(o)]?t[e]=this["on"+y(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+y(e)]?t[e]=this["on"+y(e)]:t[e]=t=>this.$emit(e,t))}),t}function v(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:g.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function b(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:g.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function w(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 _(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 $(e){for(var t=1;t({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: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(e){return e("hi-waterfall-item",{on:$({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const O={install(e){p(e),m(e),v(e),b(e),w(e),S(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){n.d(t,"default",(function(){return Qc})); /*! - * @hippy/vue v3.0.0 + * @hippy/vue v3.0.1 * (Using Vue v2.6.14) - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -46,4 +46,4 @@ function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterat * See the License for the specific language governing permissions and * limitations under the License. */ -const i=Object.freeze({});function s(e){return null==e}function a(e){return null!=e}function c(e){return!0===e}function l(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return null!==e&&"object"==typeof e}const d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function f(e){return"[object RegExp]"===d.call(e)}function h(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function y(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function g(e){const t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const b=v("slot,component",!0),w=v("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const $=Object.prototype.hasOwnProperty;function S(e,t){return $.call(e,t)}function O(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const x=/-(\w)/g,k=O(e=>e.replace(x,(e,t)=>t?t.toUpperCase():"")),E=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=/\B([A-Z])/g,C=O(e=>e.replace(N,"-$1").toLowerCase());const I=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 A(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 P(e,t){for(const n in t)e[n]=t[n];return e}function T(e,t,n){}const j=(e,t,n)=>!1,D=e=>e;function L(e,t){if(e===t)return!0;const n=u(e),o=u(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)=>L(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=>L(e[n],t[n]))}}catch(e){return!1}}function M(e,t){for(let n=0;n!1,ne=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){return"function"==typeof e&&/native code/.test(e.toString())}const re="undefined"!=typeof Symbol&&oe(Symbol)&&"undefined"!=typeof Reflect&&oe(Reflect.ownKeys);let ie;ie="undefined"!=typeof Set&&oe(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 se=T;let ae=0;class ce{constructor(){this.id=ae++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){_(this.subs,e)}depend(){ce.target&&ce.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new pe;return t.text=e,t.isComment=!0,t};function he(e){return new pe(void 0,void 0,void 0,String(e))}function me(e){const 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}const ye=Array.prototype,ge=Object.create(ye);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=ye[e];W(ge,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 ve=Object.getOwnPropertyNames(ge);let be=!0;function we(e){be=e}class _e{constructor(e){this.value=e,this.dep=new ce,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(Y?function(e,t){e.__proto__=t}(e,ge):function(e,t,n){for(let o=0,r=n.length;o{Ee[e]=Ie}),R.forEach((function(e){Ee[e+"s"]=Ae})),Ee.watch=function(e,t,n,o){if(e===Q&&(e=void 0),t===Q&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};P(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},Ee.props=Ee.methods=Ee.inject=Ee.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return P(r,e),t&&P(r,t),r},Ee.provide=Ce;const Pe=function(e,t){return void 0===t?e:t};function Te(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=k(i),o[s]={type:null});else if(p(n))for(const e in n)i=n[e],s=k(e),o[s]=p(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&&!S(r,"default"))s=!1;else if(""===s||s===C(e)){const e=Re(String,r.type);(e<0||aVe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ve(e,o,r)}return i}function Ue(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(t){t!==e&&He(t,null,"config.errorHandler")}He(e,t,n)}function He(e,t,n){if(!K&&!G||"undefined"==typeof console)throw e;console.error(e)}const We=[];let ze,Ye=!1;function Ke(){Ye=!1;const e=We.slice(0);We.length=0;for(let t=0;t{e.then(Ke),Z&&setTimeout(T)}}else if(J||"undefined"==typeof MutationObserver||!oe(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ze=void 0!==o&&oe(o)?()=>{o(Ke)}:()=>{setTimeout(Ke,0)};else{let e=1;const t=new MutationObserver(Ke),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),ze=()=>{e=(e+1)%2,n.data=String(e)}}function Ge(e,t){let n;if(We.push(()=>{if(e)try{e.call(t)}catch(e){Ve(e,t,"nextTick")}else n&&n(t)}),Ye||(Ye=!0,ze()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const qe=new ie;function Xe(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!u(t)||Object.isFrozen(t)||t instanceof pe)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,qe),qe.clear()}const Je=O(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 Ze(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Be(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),ot(i[0])&&ot(d)&&(o[u]=he(d.text+i[0].text),i.shift()),o.push.apply(o,i)):l(i)?ot(d)?o[u]=he(d.text+i):""!==i&&o.push(he(i)):ot(i)&&ot(d)?o[u]=he(d.text+i.text):(c(t._isVList)&&a(i.tag)&&s(i.key)&&a(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function ot(e){return a(e)&&a(e.text)&&!1===e.isComment}function rt(e,t){if(e){const n=Object.create(null),o=re?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,s=e?!!e.$stable:!r,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&n&&n!==i&&a===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=lt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=ut(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),W(o,"$stable",s),W(o,"$key",a),W(o,"$hasNormal",r),o}function lt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:nt(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!at(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function ut(e,t){return()=>e[t]}function dt(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||ct(e.scopedSlots,this.$slots=it(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ct(e.scopedSlots,this.slots())}}),l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ct(e.scopedSlots,this.$slots)),s._scopeId?this._c=(e,t,n,r)=>{const i=Tt(a,e,t,n,r,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=(e,t,n,o)=>Tt(a,e,t,n,o,u)}function Et(e,t,n,o,r){const i=me(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Nt(e,t){for(const n in t)e[k(n)]=t[n]}xt(kt.prototype);const Ct={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Ct.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;a(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Bt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const s=o.data.scopedSlots,a=e.$scopedSlots,c=!!(s&&!s.$stable||a!==i&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key),l=!!(r||e.$options._renderChildren||c);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||i,e.$listeners=n||i,t&&e.$options.props){we(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;r_(o,n));const l=e=>{for(let e=0,t=o.length;e{e.resolved=Lt(n,t),r?o.length=0:l(!0)}),p=F(t=>{a(e.errorComp)&&(e.error=!0,l(!0))}),f=e(d,p);return u(f)&&(m(f)?s(e.resolved)&&f.then(d,p):m(f.component)&&(f.component.then(d,p),a(f.error)&&(e.errorComp=Lt(f.error,t)),a(f.loading)&&(e.loadingComp=Lt(f.loading,t),0===f.delay?e.loading=!0:i=setTimeout(()=>{i=null,s(e.resolved)&&s(e.error)&&(e.loading=!0,l(!1))},f.delay||200)),a(f.timeout)&&(c=setTimeout(()=>{c=null,s(e.resolved)&&p(null)},f.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(d,l))))return function(e,t,n,o,r){const i=fe();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(d,t,n,o,r);t=t||{},un(e),a(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;a(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const p=function(e,t,n){const o=t.options.props;if(s(o))return;const r={},{attrs:i,props:c}=e;if(a(i)||a(c))for(const e in o){const t=C(e);0,tt(r,c,e,t,!0)||tt(r,i,e,t,!1)}return r}(t,e);if(c(e.options.functional))return function(e,t,n,o,r){const s=e.options,c={},l=s.props;if(a(l))for(const e in l)c[e]=De(e,l,t||i);else a(n.attrs)&&Nt(c,n.attrs),a(n.props)&&Nt(c,n.props);const u=new kt(n,c,r,o,e),d=s.render.call(null,u._c,u);if(d instanceof pe)return Et(d,n,u.parent,s,u);if(Array.isArray(d)){const e=nt(d)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Tt(e,t,n,o,r,i){return(Array.isArray(n)||l(n))&&(r=o,o=n,n=void 0),c(i)&&(r=2),function(e,t,n,o,r){if(a(n)&&a(n.__ob__))return fe();a(n)&&a(n.is)&&(t=n.is);if(!t)return fe();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=nt(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(Jt=()=>e.now())}function Zt(){let e,t;for(Jt(),qt=!0,zt.sort((e,t)=>e.id-t.id),Xt=0;XtXt&&zt[t].id>e.id;)t--;zt.splice(t+1,0,e)}else zt.push(e);Gt||(Gt=!0,Ge(Zt))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||u(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Be(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||_(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const tn={enumerable:!0,configurable:!0,get:T,set:T};function nn(e,t,n){tn.get=function(){return this[t][n]},tn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,tn)}function on(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&&we(!1);for(const i in t){r.push(i);const s=De(i,t,n,e);Se(o,i,s),i in e||nn(e,"_props",i)}we(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?T:I(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{de()}}(t,e):t||{},p(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&&S(o,t)||H(t)||nn(e,"_data",t)}$e(t,!0)}(e):$e(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 en(e,i||T,T,rn),o in e||sn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==Q&&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:!!f(e)&&e.test(t)}function mn(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)&&yn(n,e,o,r)}}}function yn(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,_(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=ln++,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=Te(un(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&&Vt(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=it(t._renderChildren,o),e.$scopedSlots=i,e._c=(t,n,o,r)=>Tt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Tt(e,t,n,o,r,!0);const r=n&&n.data;Se(e,"$attrs",r&&r.attrs||i,null,!0),Se(e,"$listeners",t._parentListeners||i,null,!0)}(t),Wt(t,"beforeCreate"),function(e){const t=rt(e.$options.inject,e);t&&(we(!1),Object.keys(t).forEach(n=>{Se(e,n,t[n])}),we(!0))}(t),on(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Wt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),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=Oe,e.prototype.$delete=xe,e.prototype.$watch=function(e,t,n){const o=this;if(p(t))return cn(o,e,t,n);(n=n||{}).user=!0;const r=new en(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ue(),Be(t,o,[r.value],o,e),de()}return function(){r.teardown()}}}(dn),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?A(n):n;const o=A(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Bt=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;Wt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(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),Wt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(dn),function(e){xt(e.prototype),e.prototype.$nextTick=function(e){return Ge(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ct(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Dt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ve(t,e,"render"),o=e._vnode}finally{Dt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof pe||(o=fe()),o.parent=n,o}}(dn);const gn=[String,RegExp,Array];var vn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:gn,exclude:gn,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:fn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&yn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)yn(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{mn(this,t=>hn(e,t))}),this.$watch("exclude",e=>{mn(this,t=>!hn(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tB};Object.defineProperty(e,"config",t),e.util={warn:se,extend:P,mergeOptions:Te,defineReactive:Se},e.set=Oe,e.delete=xe,e.nextTick=Ge,e.observable=e=>($e(e),e),e.options=Object.create(null),R.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,P(e.options.components,vn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=A(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=Te(this.options,e),this}}(e),pn(e),function(e){R.forEach(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:te}),Object.defineProperty(dn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:kt}),dn.version="2.6.14",v("style,class");const bn=v("input,textarea,option,select,progress");function wn(e){let t=e.data,n=e,o=e;for(;a(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=_n(o.data,t));for(;a(n=n.parent);)n&&n.data&&(t=_n(t,n.data));return function(e,t){if(a(e)||a(t))return $n(e,Sn(t));return""}(t.staticClass,t.class)}function _n(e,t){return{staticClass:$n(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function $n(e,t){return e?t?e+" "+t:e:t||""}function Sn(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&&En.test(t)||(l=!0)}}else void 0===r?(f=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(f,o).trim()),f=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==f&&h(),i)for(o=0;o{const t=e[0].replace(An,"\\$&"),n=e[1].replace(An,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Tn(e,t){console.error("[Vue compiler]: "+e)}function jn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Dn(e,t,n,o,r){(e.props||(e.props=[])).push(Wn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Ln(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Wn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Mn(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Wn({name:t,value:n},o))}function Fn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Wn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function Rn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Vn(e,t,n,o,r,s,a,c){let l;(o=o||i).right?c?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(c?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=Rn("!",t,c)),o.once&&(delete o.once,t=Rn("~",t,c)),o.passive&&(delete o.passive,t=Rn("&",t,c)),o.native?(delete o.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});const u=Wn({value:n.trim(),dynamic:c},a);o!==i&&(u.modifiers=o);const d=l[t];Array.isArray(d)?r?d.unshift(u):d.push(u):l[t]=d?r?[u,d]:[d,u]:u,e.plain=!1}function Bn(e,t,n){const o=Un(e,":"+t)||Un(e,"v-bind:"+t);if(null!=o)return Nn(o);if(!1!==n){const n=Un(e,t);if(null!=n)return JSON.stringify(n)}}function Un(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 Kn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Un(e,"style");n&&(e.staticStyle=JSON.stringify(Yn(n)));const o=Bn(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 Gn=function(e){return e};const qn=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Xn=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Jn=v("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"),Zn=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Qn=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,eo=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${U.source}]*`,to=`((?:${eo}\\:)?${eo})`,no=new RegExp("^<"+to),oo=/^\s*(\/?)>/,ro=new RegExp(`^<\\/${to}[^>]*>`),io=/^]+>/i,so=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},po=/&(?:lt|gt|quot|amp|#39);/g,fo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,ho=v("pre,textarea",!0),mo=(e,t)=>e&&ho(e)&&"\n"===t[0];function yo(e,t){const n=t?fo:po;return e.replace(n,e=>uo[e])}function go(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=vo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function vo(e,t){const n=function(e){if(e=e.trim(),bo=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,$o),key:'"'+e.slice($o+1)+'"'}:{exp:e,key:null};wo=e,$o=So=Oo=0;for(;!ko();)_o=xo(),Eo(_o)?Co(_o):91===_o&&No(_o);return{exp:e.slice(0,So),key:e.slice(So+1,Oo)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let bo,wo,_o,$o,So,Oo;function xo(){return wo.charCodeAt(++$o)}function ko(){return $o>=bo}function Eo(e){return 34===e||39===e}function No(e){let t=1;for(So=$o;!ko();)if(Eo(e=xo()))Co(e);else if(91===e&&t++,93===e&&t--,0===t){Oo=$o;break}}function Co(e){const t=e;for(;!ko()&&(e=xo())!==t;);}const Io=/^@|^v-on:/,Ao=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Po=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,To=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,jo=/^\(|\)$/g,Do=/^\[.*\]$/,Lo=/:(.*)$/,Mo=/^:|^\.|^v-bind:/,Fo=/^\./,Ro=/\.[^.\]]+(?=[^\]]*$)/g,Vo=/^v-slot(:|$)|^#/,Bo=/[\r\n]/,Uo=/[ \f\t\r\n]+/g,Ho=O(Gn);let Wo,zo,Yo,Ko,Go,qo,Xo,Jo,Zo;function Qo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:sr(t),rawAttrsMap:{},parent:n,children:[]}}function er(e,t){Wo=t.warn||Tn,qo=t.isPreTag||j,Xo=t.mustUseProp||j,Jo=t.getTagNamespace||j;const n=t.isReservedTag||j;Zo=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Yo=jn(t.modules,"transformNode"),Ko=jn(t.modules,"preTransformNode"),Go=jn(t.modules,"postTransformNode"),zo=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=tr(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&or(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&&or(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),qo(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,co(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),mo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,p(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(so.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(ao.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(io);if(n){l(n[0].length);continue}const o=e.match(ro);if(o){const e=c;l(o[0].length),p(o[1],e,c);continue}const r=u();if(r){d(r),mo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(ro.test(o)||no.test(o)||so.test(o)||ao.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(no);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(oo))&&(r=e.match(Qn)||e.match(Zn));)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&&Jn(s)&&p(a),i(s)&&a===s&&p(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))}p()}(e,{warn:Wo,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 p=a&&a.ns||Jo(e);J&&"svg"===p&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=Nn(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=Bn(n,"name")),function(e){let t;(t=Bn(e,"is"))&&(e.component=t);null!=Un(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function sr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Vn(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&&(${vo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${vo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${vo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Bn(e,"value")||"null";r=o?`_n(${r})`:r,Dn(e,"checked",`_q(${t},${r})`),Vn(e,"change",vo(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=vo(t,l);a&&(u="if($event.target.composing)return;"+u);Dn(e,"value",`(${t})`),Vn(e,c,u,null,!0),(s||i)&&Vn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!B.isReservedTag(i))return go(e,o,r),!1}return!0},text:function(e,t){t.value&&Dn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Dn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:qn,mustUseProp:(e,t,n)=>"value"===n&&bn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:Xn,isReservedTag:e=>On(e)||xn(e),getTagNamespace:function(e){return xn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(ur)};let fr,hr;const mr=O((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function yr(e,t){e&&(fr=mr(t.staticKeys||""),hr=t.isReservedTag||j,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||b(e.tag)||!hr(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(fr)))}(t),1===t.type){if(!hr(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,vr=/\([^)]*?\);*$/,br=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,wr={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},_r={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"]},$r=e=>`if(${e})return null;`,Sr={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:$r("$event.target !== $event.currentTarget"),ctrl:$r("!$event.ctrlKey"),shift:$r("!$event.shiftKey"),alt:$r("!$event.altKey"),meta:$r("!$event.metaKey"),left:$r("'button' in $event && $event.button !== 0"),middle:$r("'button' in $event && $event.button !== 1"),right:$r("'button' in $event && $event.button !== 2")};function Or(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=xr(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 xr(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>xr(e)).join(",")}]`;const t=br.test(e.value),n=gr.test(e.value),o=br.test(e.value.replace(vr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Sr[t])i+=Sr[t],wr[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=$r(["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(kr).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 kr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=wr[e],o=_r[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Er={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:T};class Nr{constructor(e){this.options=e,this.warn=e.warn||Tn,this.transforms=jn(e.modules,"transformCode"),this.dataGenFns=jn(e.modules,"genData"),this.directives=P(P({},Er),e.directives);const t=e.isReservedTag||j;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Cr(e,t){const n=new Nr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Ir(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Ir(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ar(e,t);if(e.once&&!e.onceProcessed)return Pr(e,t);if(e.for&&!e.forProcessed)return jr(e,t);if(e.if&&!e.ifProcessed)return Tr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Fr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Br((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:k(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:Fr(t,n,!0);return`_c(${e},${Dr(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Dr(e,t));const r=e.inlineTemplate?null:Fr(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||Lr(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=>Mr(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=Cr(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}",${Br(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Lr(e){return 1===e.type&&("slot"===e.tag||e.children.some(Lr))}function Mr(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Tr(e,t,Mr,"null");if(e.for&&!e.forProcessed)return jr(e,t,Mr);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Fr(e,t)||"undefined"}:undefined`:Fr(e,t)||"undefined":Ir(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Fr(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||Ir)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;oRr(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||Vr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function Rr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Vr(e,t){return 1===e.type?Ir(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:Ur(JSON.stringify(e.text))})`}(e)}function Br(e){let t="",n="";for(let o=0;oHr(e,c)),t[i]=a}}const zr=(Yr=function(e,t){const n=er(e.trim(),t);!1!==t.optimize&&yr(n,t);const o=Cr(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=P(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=Yr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Wr(t)}});var Yr;const{compile:Kr,compileToFunctions:Gr}=zr(pr);function qr(e){return(qr="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 Xr(e){var t=function(e,t){if("object"!==qr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==qr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qr(t)?t:String(t)}function Jr(e,t,n){return(t=Xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zr=`http://127.0.0.1:${r.env.PORT}/`;let Qr,ei,ti=e=>e,ni=()=>{};function oi(e){Qr=e}function ri(){return Qr}function ii(){return ti}const si=F(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ai(...e){ei&&ei.config.silent&&si()}function ci(e){return e.charAt(0).toUpperCase()+e.slice(1)}const li=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ui(e){return"[object Function]"===Object.prototype.toString.call(e)}function di(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function pi(e){return null==e}const fi=Symbol.for("View"),hi=Symbol.for("Image"),mi=Symbol.for("ListView"),yi=Symbol.for("ListViewItem"),gi=Symbol.for("Text"),vi=Symbol.for("TextInput"),bi=Symbol.for("WebView"),wi=Symbol.for("VideoPlayer"),_i={[fi]:"View",[hi]:"Image",[mi]:"ListView",[yi]:"ListViewItem",[gi]:"Text",[vi]:"TextInput",[bi]:"WebView",[wi]:"VideoPlayer"};function $i(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 Si(e){for(var t=1;t{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const xi={number:"numeric",text:"default",search:"web-search"},ki={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:fi,component:{name:_i[fi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:Si({},ki),processEventData(e,t,n){switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=n.contentOffset&&n.contentOffset.x,e.offsetY=n.contentOffset&&n.contentOffset.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}}},Ni={symbol:fi,component:Si(Si({},Ei.component),{},{name:_i[fi],defaultNativeStyle:{}})},Ci={symbol:fi,component:{name:_i[fi]}},Ii={symbol:hi,component:Si(Si({},Ei.component),{},{name:_i[hi],defaultNativeStyle:{backgroundColor:0},attributeMaps:Si({placeholder:{name:"defaultSource",propsValue(e){const t=di(e);return t&&t.indexOf(Zr)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>di(e)},ki),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}})},Ai={symbol:mi,component:{name:_i[mi],defaultNativeStyle:{flex:1},attributeMaps:Si({},ki),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=n.contentOffset&&n.contentOffset.x,e.offsetY=n.contentOffset&&n.contentOffset.y;break;case"onDelete":e.index=n.index}return e}}},Pi={symbol:yi,component:{name:_i[yi],attributeMaps:Si({},ki),eventNamesMap:Oi([["disappear","onDisappear"]])}},Ti={symbol:fi,component:Si(Si({},Ei.component),{},{name:_i[gi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},ji=Ti,Di=Ti,Li={component:Si(Si({},Ti.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Mi={symbol:vi,component:{name:_i[vi],attributeMaps:Si({type:{name:"keyboardType",propsValue(e){const t=xi[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ki),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}}},Fi={symbol:vi,component:{name:_i[vi],defaultNativeProps:Si(Si({},Mi.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:Si(Si({},Mi.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Mi.component.defaultNativeStyle,eventNamesMap:Mi.component.eventNamesMap,processEventData:Mi.component.processEventData}},Ri={symbol:bi,component:{name:_i[bi],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 Vi=Object.freeze({__proto__:null,button:Ni,div:Ei,form:Ci,img:Ii,input:Mi,label:ji,li:Pi,p:Di,span:Ti,a:Li,textarea:Fi,ul:Ai,iframe:Ri});function Bi(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 Ui(e){for(var t=1;te(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===ci(k(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 o&&o.meta&&(n=o.meta),n}function qi(e,t){return(qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xi(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&&qi(e,t)}const Ji={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},Zi=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,Qi="[-+]?\\d*\\.?\\d+",es={rgb:new RegExp("rgb"+Zi(Qi,Qi,Qi)),rgba:new RegExp("rgba"+Zi(Qi,Qi,Qi,Qi)),hsl:new RegExp("hsl"+Zi(Qi,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Zi(Qi,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Qi)),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})$/},ts=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ns=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},os=(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},rs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=os(r,o,e+1/3),s=os(r,o,e),a=os(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},is=e=>(parseFloat(e)%360+360)%360/360,ss=e=>{const t=parseFloat(e,10);return t<0?0:t>100?1:t/100};function as(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=es.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Ji,e)?Ji[e]:(t=es.rgb.exec(e),Array.isArray(t)?(ts(t[1])<<24|ts(t[2])<<16|ts(t[3])<<8|255)>>>0:(t=es.rgba.exec(e),t?(ts(t[1])<<24|ts(t[2])<<16|ts(t[3])<<8|ns(t[4]))>>>0:(t=es.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=es.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=es.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=es.hsl.exec(e),t?(255|rs(is(t[1]),ss(t[2]),ss(t[3])))>>>0:(t=es.hsla.exec(e),t?(rs(is(t[1]),ss(t[2]),ss(t[3]))|ns(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const cs={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"},ls=0,us=1,ds={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},ps={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const fs="addEventListener",hs="removeEventListener";function ms(){const e=Ua.Localization;return!!e&&1===e.direction}const ys=new Map;function gs(e){ys.delete(e)}function vs(e){return ys.get(e)||null}function bs(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?gs(t):t&&(gs(t.nodeId),t.childNodes&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}function ws(e=[],t=0){let n=e[t];for(let o=t;o{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ss={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*"},Os={};function xs(e,t,n){let o="";$s&&(o="gy"),Os[e]||(Os[e]=new RegExp(Ss[e],o));const r=Os[e];let i;if($s)r.lastIndex=n,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+i[0].length}return{result:i,regexp:r}}function ks(e,t){return function(e,t){const{result:n,regexp:o}=xs("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=xs("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}=xs("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 Es(e,t){let n=ks(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=ks(e,o);return{start:t,end:o,value:r}}function Ns(e,t){const{result:n,regexp:o}=xs("combinatorRegEx",e,t);if(!n)return null;let r;r=$s?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}function Cs(e){return e?` ${e} `:""}class Is{lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}}class As extends Is{accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}trackChanges(){return null}}class Ps extends As{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Cs(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.lookupSort(e,t||this)}removeSort(e,t){this.head.removeSort(e,t||this)}}class Ts extends As{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+Cs(this.combinator)}match(){return!0}}class js extends As{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Cs(this.combinator)}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,t||this)}removeSort(e,t){e.removeById(this.id,t||this)}}class Ds extends As{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${Cs(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,t||this)}removeSort(e,t){e.removeByType(this.cssType,t||this)}}class Ls extends As{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Cs(this.combinator)}`}match(e){return!!e&&(e.classList&&e.classList.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 Ms extends As{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Cs(this.combinator)}`}match(e){return!!e&&(e.cssPseudoClasses&&e.cssPseudoClasses.has(this.cssPseudoClass))}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const Fs=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Rs extends As{constructor(e,t,n){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?o=>{if(!o||!o.attributes)return!1;const r=""+Fs(o,e);if("="===t)return r===n;if("^="===t)return r.startsWith(n);if("$="===t)return r.endsWith(n);if("*="===t)return-1!==r.indexOf(n);if("~="===t){const e=r.split(" ");return e&&-1!==e.indexOf(n)}return"|="===t&&(r===n||r.startsWith(n+"-"))}:()=>!1:t=>!(!t||!t.attributes)&&!pi(Fs(t,e))}toString(){return`[${this.attribute}${Cs(this.test)}${this.test&&this.value||""}]${Cs(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Vs extends As{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Bs{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,o)=>{0!==o&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class Us{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,o)=>{0!==o&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class Hs extends Is{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],o=[];const r=[],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||r.push(o=[n=[]]),">"===s.combinator&&o.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=r.map(e=>new Bs(e.map(e=>new Us(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e){return!!e&&this.groups.every((t,n)=>{if(0===n)return!!(e=t.match(e));let o=e;for(;o=o.parentNode;)if(e=t.match(o))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);const n=[],o=this.groups.every((t,o)=>{if(0===o){const o=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=o)}let r=e;for(;r=r.parentNode;){const o=t.mayMatch(r);if(o)return n.push({left:r,right:null}),e=o,!0}return!1});if(!o)return!1;if(!t)return o;for(let e=0;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 zs{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 Ys{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.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 zs;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=>t.sel.ruleSet.hash===e.ruleSet.hash);-1!==t&&this.universal.splice(t)}addToMap(e,t,n){this.position+=1;const o=e[t];o?o.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>e.sel.ruleSet.hash===n.ruleSet.hash);-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function Ks(e){return"declaration"===e.type}function Gs(e){switch(e.type){case"*":return new Ts;case"#":return new js(e.identifier);case"":return new Ds(e.identifier.replace(/-/,"").toLowerCase());case".":return new Ls(e.identifier);case":":return new Ms(e.identifier);case"[]":return e.test?new Rs(e.property,e.test,e.value):new Rs(e.property);default:return null}}function qs(e){return 0===e.length?new Vs(new Error("Empty simple selector sequence.")):1===e.length?Gs(e[0]):new Ps(e.map(Gs))}function Xs(e){try{const t=function(e,t){let n=t;const{result:o,regexp:r}=xs("whiteSpaceRegEx",e,t);o&&(n=r.lastIndex);const i=[];let s,a,c=!0,l=[];return a=$s?[e]:e.split(" "),a.forEach(e=>{if(!$s){if(""===e)return;n=0}do{const t=Es(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=Ns(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 Vs(new Error("Empty selector."));if(1===e.length)return qs(e[0][0]);const t=[];for(let n=0;ne);const Qs={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let ea,ta=!0,na=[];function oa(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!!ds[e]}(o)?ds[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===us&&t.removeEventListener(n,s,i),r===ls&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function ra(e,t){0}function ia(t){if(!ta)return;if(ta=!1,0===na.length)return void(ta=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case Qs.createNode:ra(e.printedNodes),n.create(e.nodes),oa(e.eventNodes,n);break;case Qs.updateNode:ra(e.printedNodes),n.update(e.nodes),oa(e.eventNodes,n);break;case Qs.deleteNode:ra(e.printedNodes),n.delete(e.nodes);break;case Qs.moveNode:ra(e.printedNodes),n.move(e.nodes)}}),n.build(),ta=!0,na=[]})}function sa(){if(!ea||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ii();return e.map(e=>{const n=e.declarations.filter(Ks).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Xs);return new Ws(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);ea?ea.append(t):ea=new Ys(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{ea.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),ea}function aa(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];ui(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(ui(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;ui(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 ca(e){const t=Object.create(null);try{sa().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 la(e,t,n={}){if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let o=ca(t);o=Zs(Zs({},o),t.style),ni(t,o),t.meta.component.defaultNativeStyle&&(o=Zs(Zs({},t.meta.component.defaultNativeStyle),o));const r={id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,name:t.meta.component.name,props:Zs(Zs({},aa(t)),{},{style:o}),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))}}(r),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=ms()?"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)))}(t,r,o),function(e,t){"TextInput"===e.meta.component.name&&ms()&&(t.textAlign||(t.textAlign="right"))}(t,o);const i=function(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}(t);let s=void 0;return[[r,n],i,s]}function ua(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=la(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 da(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ri();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]=ua(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,ys.set(n,t)},n);na.push({type:Qs.createNode,nodes:i,eventNodes:a,printedNodes:c}),ia(o)}}function pa(e){if(!e.isMounted)return;const t=ri(),{$options:{rootViewId:n}}=t,[o,r,i]=la(n,e);o&&(na.push({type:Qs.updateNode,nodes:[o],eventNodes:[r],printedNodes:[]}),ia(t))}function fa(e){if(!e.isMounted)return;const t=ri(),{$options:{rootViewId:n}}=t,[o,r,i]=ua(n,e);na.push({type:Qs.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ia(t)}const ha=new Set;let ma,ya=!1;const ga={exitApp(){Ua.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ya||(ya=!0,ga.initEventListener()),Ua.callNative("DeviceEventModule","setListenBackPress",!0),ha.add(e),{remove(){ga.removeListener(e)}}),removeListener(e){ha.delete(e),0===ha.size&&Ua.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ma||(ma=ri()),ma.$on("hardwareBackPress",()=>{let e=!0;Array.from(ha).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&ga.exitApp()})}},va={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ba="android"===Hippy.device.platform.OS?ga:va;let wa;const _a=new Map;class $a{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Sa(this.eventName,this.listener),this.listener=void 0)}}function Sa(e,t){if(t instanceof $a)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=_a.get(t);o&&(wa||(wa=ri()),wa.$off(n,o),_a.delete(t),_a.size<1&&Ua.callNative("NetInfo","removeListener",n))}var Oa=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===_a.size&&Ua.callNative("NetInfo","addListener",n),wa||(wa=ri()),wa.$on(n,t),_a.set(t,t),new $a(n,t)},removeEventListener:Sa,fetch:function(){return Ua.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:$a});function xa(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 ka(e){for(var t=1;tMa.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})}))},Ua={callNative:Ia,callNativeWithPromise:Aa,callNativeWithCallbackId:Pa,UIManagerModule:Ma,ConsoleModule:e.ConsoleModule||e.console,on:Ea,off:Na,emit:Ca,PixelRatio:Da,Platform:Ta,Localization:ja,version:"3.0.0",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return Aa.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()}Ia.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return Aa.call(this,"ClipboardModule","getString")},setString(e){Ia.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!a(Ra.isIPhoneX)){let e=!1;"ios"===Ua.Platform&&(e=20!==Ua.Dimensions.screen.statusBarHeight),Ra.isIPhoneX=e}return Ra.isIPhoneX},get screenIsVertical(){return Ua.Dimensions.window.widthBa(e,"measureInWindow"),measureInAppWindow:e=>"android"===Ua.Platform?Ba(e,"measureInWindow"):Ba(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`));ai(...Va,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Ma.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error(e&&e.errMsg||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=void 0,c=void 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:Ua.Platform}){if(Number.isInteger(e))return e;const n=Ra.COLOR_PARSER||(Ra.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=as(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:ba,ImageLoader:{getSize(e){return Aa.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Ia.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Oa,getElemCss:ca};class Ha{constructor(e){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 Wa{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&&!ui(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){const{type:t}=e,n=this.observers[t];if(n)for(let t=n.length-1;t>=0;t-=1){const o=n[t];o.options&&o.options.once&&n.splice(t,1),o.options&&o.options.thisArg?o.callback.apply(o.options.thisArg,[e]):o.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&&L(e.options,n):e.callback===t)}}const za=["%c[event]%c","color: green","color: auto"];const Ya={receiveNativeEvent(e){if(ai(...za,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)return;const[t,n]=e,o=ri();o&&o.$emit(t,n)},receiveComponentEvent(e,t){if(ai(...za,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:o,nativeName:r,originalName:i,params:s={},eventPhase:a}=e,c=vs(o),l=vs(n);if(c&&l)try{if([ps.AT_TARGET,ps.BUBBLING_PHASE].indexOf(a)>-1){const e=new Ha(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=Ya);let Ka=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ka=e.__GLOBAL__.nodeId);class Ga{constructor(){this._ownerDocument=null,this._meta=null,this._isMounted=!1,this.nodeId=(Ka+=1,Ka%10==0&&(Ka+=1),Ka%10==0&&(Ka+=1),Ka),this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null}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=ws(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?da(this,e):da(this,e,{refId:o.nodeId,relativeToRef:_s})}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=ws(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?da(this,e):function(e,t,n={}){if(e&&e.meta&&ui(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;t.isMounted=!1;const o=ri(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];na.push({printedNodes:a,type:Qs.moveNode,nodes:s,eventNodes:[]}),ia(o)}(this,e,{refId:r.nodeId,relativeToRef:_s})}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),da(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=null,e.nextSibling=null;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=ri(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];na.push({printedNodes:s,type:Qs.deleteNode,nodes:i,eventNodes:[]}),ia(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}function qa(){qa=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)),qi(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)},qa.apply(this,arguments)}const Xa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Ja="turn",Za="rad",Qa="deg";function ec(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=qa(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,i,s]=n;return i&&s?o=function(e,t=Qa){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Ja:o=""+(360*n).toFixed(2);break;case Za:o=""+(180/Math.PI*n).toFixed(2)}return o}(i,s):r&&void 0!==Xa[r]&&(o=Xa[r]),o}function tc(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:Ua.parseColor(n)}:void 0:{color:Ua.parseColor(n)}}function nc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}const oc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function rc(e,t,n){void 0===t&&(delete n[e],nc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[oc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function ic(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&&fa(this))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&fa(this));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!ei||void 0===ei.config.trimWhitespace||ei.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"numberOfRows":if("ios"!==Ua.Platform)return;break;case"caretColor":case"caret-color":o="caret-color",r=Ua.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=Ua.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=Ua.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=Ua.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&&pa(this)}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)}),pa(this))}setStyle(e,t,n=!1){let{value:o,property:r}=this.beforeLoadStyle({property:e,value:t});if(void 0===t)return rc(r,o,this.style),void(n||pa(this));switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=function(e,t,n){delete n[e],nc(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=ec(e);if(t)o.angle=t;else{o.angle="180";const t=tc(e);t&&n.push(t)}}else{const t=tc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(r,o,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[oc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=o||{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(cs,r)&&(r=cs[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?Ua.parseColor(o):function(e,t,n){if(String.prototype.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}(o,"px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&li.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||pa(this))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){fa(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}appendChild(e){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e&&e.meta.symbol===gi&&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"+ci(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;n&&n[e]&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Wa(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(fs,e,t,n)),this._emitter.addEventListener(e,t,n),ic(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ls&&(this.events[t].type=ls):this.events[t]={name:t,type:ls,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};Ya.receiveComponentEvent(a,e)}),isCapture:!1}}),pa(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(hs,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return ic(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=us)}),pa(this),o}dispatchEvent(e,t,n){if(!(e instanceof Ha))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return Ua.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){"number"==typeof e&&"number"==typeof t&&(!1===n&&(n=0),Ua.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:n}]))}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){Ua.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){Ua.callUIFunction(this,"setHotspot",[e,t])}}class ac extends sc{constructor(e){super("comment"),this.text=e,this._meta={symbol:gi,skipAddToDom:!0}}}class cc extends Ga{constructor(e){super(),this.text=e,this._meta={symbol:gi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}class lc extends sc{getValue(){return new Promise(e=>Ua.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){Ua.callUIFunction(this,"setValue",[e])}focus(){Ua.callUIFunction(this,"focusTextInput",[])}blur(){Ua.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>Ua.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){Ua.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class uc extends sc{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Ua.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Ua.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class dc extends Ga{constructor(){super(),this.documentElement=new sc("document"),this.createComment=this.constructor.createComment,this.createElement=this.constructor.createElement,this.createElementNS=this.constructor.createElementNS,this.createTextNode=this.constructor.createTextNode}static createComment(e){return new ac(e)}static createElement(e){switch(e){case"input":case"textarea":return new lc(e);case"ul":return new uc(e);default:return new sc(e)}}static createElementNS(e,t){return new sc(`${e}:${t}`)}static createTextNode(e){return new cc(e)}static createEvent(e){return new Ha(e)}}var pc={create(e,t){fc(t)},update(e,t){e.data.ref!==t.data.ref&&(fc(e,!0),fc(t))},destroy(e){fc(e,!0)}};function fc(e,t){const n=e.data.ref;if(!a(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[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 hc=new pe("",{},[]),mc=["create","activate","update","remove","destroy"];function yc(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;let n;const o=a(n=e.data)&&a(n=n.attrs)&&n.type,r=a(n=t.data)&&a(n=n.attrs)&&n.type;return o===r||kn(o)&&kn(r)}(e,t)||c(e.isAsyncPlaceholder)&&s(t.asyncFactory.error))}function gc(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,a(r)&&(i[r]=o);return i}var vc={create:bc,update:bc,destroy:function(e){bc(e,hc)}};function bc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===hc,o=t===hc,r=_c(e.data.directives,e.context),i=_c(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,Sc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Sc(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 kc={create:xc,update:xc};function Ec(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=wn(t);const s=n._transitionClasses;s&&(i=$n(i,Sn(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Nc={create:Ec,update:Ec};let Cc;function Ic(e,t,n,o){(o||Cc).removeEventListener(e)}function Ac(e,t,n,o,r){n||Cc.addEventListener(e,t)}function Pc(e,t,n){const o=Cc;return function(){const n=t(...arguments);null!==n&&Ic(e,0,0,o)}}function Tc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Cc=t.elm,Qe(n,o,Ac,Ic,Pc,t.context)}var jc={create:Tc,update:Tc};function Dc(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 Lc(e){for(var t=1;t{const r=e[o],i=t[o];!pi(r)&&pi(i)&&(n[Mc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];pi(i)||i===r||(n[Mc(o)]=i)}),n}function Vc(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=Rc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Fc(r),t.data.style=r),i&&(r=P({},r),t.data.style=r);const s=Rc(o,r);t.elm.setStyles(Lc(Lc({},n),s))}var Bc=[kc,Nc,jc,{create:Vc,update:Vc}];function Uc(e,t){let n=!1;if(3===e.nodeId)n=!0;else if(t&&t.data&&t.data.attrs&&t.data.attrs.id){const e=ri();if(e){const{$options:{rootView:o}}=e;n=t.data.attrs.id===o.slice(1-o.length)}}n&&(function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;let r=e.data&&e.data.attrs||{};r.__ob__&&(r=P({},r),e.data.attrs=r),Object.keys(r).forEach(e=>{o.setAttribute(e,r[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(Mc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Fc(i),e.data.style=i),t&&(i=P({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Mc(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=wn(e);const s=r._transitionClasses;s&&(i=$n(i,Sn(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const Hc=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(p=s(n[v+1])?null:n[v+1].elm,b(e,p,n,h,v,o)):h>v&&_(t,f,m)}(p,y,g,n,u):a(g)?(a(e.text)&&i.setTextContent(p,""),b(p,null,g,0,g.length-1,n)):a(y)?_(y,0,y.length-1):a(e.text)&&i.setTextContent(p,""):e.text!==t.text&&i.setTextContent(p,t.text),a(h)&&a(f=h.hook)&&a(f=f.postpatch)&&f(e,t)}function x(e,t,n){if(c(n)&&a(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),bs(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:Bc.concat(Oc)});function Wc(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let zc=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const Yc={inserted(e,t){"ios"===Ua.Platform&&zc!==Wc&&(zc=Wc),"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 Ha("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,zc(e,t,n)}};function Kc(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const Gc={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,Kc(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&Kc(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var qc=Object.freeze({__proto__:null,model:Yc,show:Gc});const Xc=['%c[Hippy-Vue "3.0.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Jc=new dc;dn.$document=Jc,dn.prototype.$document=Jc,dn.$Document=dc,dn.$Event=Ha,dn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},dn.config.isReservedTag=Hi,dn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},dn.compile=Gr,dn.registerElement=Ki,P(dn.options.directives,qc),dn.prototype.__patch__=Hc,dn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return se("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=Gr(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=fe),Wt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new en(e,o,T,{before(){e._isMounted&&!e._isDestroyed&&Wt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Wt(e,"mounted")),e}(this,e,t)},dn.prototype.$start=function(e,t){var n;oi(this),ui(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ti=n),Wi.forEach(e=>{dn.component(e.meta.component.name,e.meta.component)}),Fa.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ai(...Xc,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();oi(new(dn.extend(this.$options))(this.$options))}if(ui(t)&&t(this,n),this.$mount(),"ios"===Ua.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if(t&&t.statusBar&&(n=t.statusBar),n.disabled)return null;const o=new sc("div"),{statusBarHeight:r}=Ua.Dimensions.screen;Ua.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 sc("img");t.setStyle("width",Ua.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{Ua.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))}ui(e)&&e(this,n)})};let Zc=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||{};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,Zc+=1,i.cid=Zc,i.options=Te(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>nn(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>sn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,R.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=P({},i.options),o[n]=i,i},dn.Native=Ua,dn.getApp=ri,dn.use((function(){Object.keys(Vi).forEach(e=>{Ki(e,Vi[e])})})),B.devtools&&ne&&ne.emit("init",dn);dn.config._setBeforeRenderToNative=(e,t)=>{ui(e)&&(1===t?ni=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const Qc=new Proxy(dn,{construct(e,t){const n=new e(...t);return n}});function el(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}let tl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){tl=ri(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=function(e){for(var t=1;t0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};Ua.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,Ua.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);Ua.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,tl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];ui(n)&&n(e.data)}},Qc.config.silent=!1,Qc.config.trimWhitespace=!0,function(e){ei=e}(Qc)}.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 p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=a(p);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 +const i=Object.freeze({});function s(e){return null==e}function a(e){return null!=e}function c(e){return!0===e}function l(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return null!==e&&"object"==typeof e}const d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function f(e){return"[object RegExp]"===d.call(e)}function h(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function y(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function g(e){const t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const b=v("slot,component",!0),w=v("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const $=Object.prototype.hasOwnProperty;function S(e,t){return $.call(e,t)}function O(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const x=/-(\w)/g,k=O(e=>e.replace(x,(e,t)=>t?t.toUpperCase():"")),E=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=/\B([A-Z])/g,C=O(e=>e.replace(N,"-$1").toLowerCase());const I=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 A(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 P(e,t){for(const n in t)e[n]=t[n];return e}function T(e,t,n){}const j=(e,t,n)=>!1,D=e=>e;function L(e,t){if(e===t)return!0;const n=u(e),o=u(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)=>L(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=>L(e[n],t[n]))}}catch(e){return!1}}function M(e,t){for(let n=0;n!1,ne=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){return"function"==typeof e&&/native code/.test(e.toString())}const re="undefined"!=typeof Symbol&&oe(Symbol)&&"undefined"!=typeof Reflect&&oe(Reflect.ownKeys);let ie;ie="undefined"!=typeof Set&&oe(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 se=T;let ae=0;class ce{constructor(){this.id=ae++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){_(this.subs,e)}depend(){ce.target&&ce.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new pe;return t.text=e,t.isComment=!0,t};function he(e){return new pe(void 0,void 0,void 0,String(e))}function me(e){const 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}const ye=Array.prototype,ge=Object.create(ye);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=ye[e];W(ge,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 ve=Object.getOwnPropertyNames(ge);let be=!0;function we(e){be=e}class _e{constructor(e){this.value=e,this.dep=new ce,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(Y?function(e,t){e.__proto__=t}(e,ge):function(e,t,n){for(let o=0,r=n.length;o{Ee[e]=Ie}),R.forEach((function(e){Ee[e+"s"]=Ae})),Ee.watch=function(e,t,n,o){if(e===Q&&(e=void 0),t===Q&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};P(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},Ee.props=Ee.methods=Ee.inject=Ee.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return P(r,e),t&&P(r,t),r},Ee.provide=Ce;const Pe=function(e,t){return void 0===t?e:t};function Te(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=k(i),o[s]={type:null});else if(p(n))for(const e in n)i=n[e],s=k(e),o[s]=p(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&&!S(r,"default"))s=!1;else if(""===s||s===C(e)){const e=Re(String,r.type);(e<0||aVe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ve(e,o,r)}return i}function Ue(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(t){t!==e&&He(t,null,"config.errorHandler")}He(e,t,n)}function He(e,t,n){if(!K&&!G||"undefined"==typeof console)throw e;console.error(e)}const We=[];let ze,Ye=!1;function Ke(){Ye=!1;const e=We.slice(0);We.length=0;for(let t=0;t{e.then(Ke),Z&&setTimeout(T)}}else if(J||"undefined"==typeof MutationObserver||!oe(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ze=void 0!==o&&oe(o)?()=>{o(Ke)}:()=>{setTimeout(Ke,0)};else{let e=1;const t=new MutationObserver(Ke),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),ze=()=>{e=(e+1)%2,n.data=String(e)}}function Ge(e,t){let n;if(We.push(()=>{if(e)try{e.call(t)}catch(e){Ve(e,t,"nextTick")}else n&&n(t)}),Ye||(Ye=!0,ze()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const qe=new ie;function Xe(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!u(t)||Object.isFrozen(t)||t instanceof pe)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,qe),qe.clear()}const Je=O(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 Ze(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Be(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),ot(i[0])&&ot(d)&&(o[u]=he(d.text+i[0].text),i.shift()),o.push.apply(o,i)):l(i)?ot(d)?o[u]=he(d.text+i):""!==i&&o.push(he(i)):ot(i)&&ot(d)?o[u]=he(d.text+i.text):(c(t._isVList)&&a(i.tag)&&s(i.key)&&a(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function ot(e){return a(e)&&a(e.text)&&!1===e.isComment}function rt(e,t){if(e){const n=Object.create(null),o=re?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,s=e?!!e.$stable:!r,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&n&&n!==i&&a===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=lt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=ut(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),W(o,"$stable",s),W(o,"$key",a),W(o,"$hasNormal",r),o}function lt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:nt(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!at(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function ut(e,t){return()=>e[t]}function dt(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||ct(e.scopedSlots,this.$slots=it(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ct(e.scopedSlots,this.slots())}}),l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ct(e.scopedSlots,this.$slots)),s._scopeId?this._c=(e,t,n,r)=>{const i=Tt(a,e,t,n,r,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=(e,t,n,o)=>Tt(a,e,t,n,o,u)}function Et(e,t,n,o,r){const i=me(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Nt(e,t){for(const n in t)e[k(n)]=t[n]}xt(kt.prototype);const Ct={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Ct.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;a(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Bt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const s=o.data.scopedSlots,a=e.$scopedSlots,c=!!(s&&!s.$stable||a!==i&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key),l=!!(r||e.$options._renderChildren||c);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||i,e.$listeners=n||i,t&&e.$options.props){we(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;r_(o,n));const l=e=>{for(let e=0,t=o.length;e{e.resolved=Lt(n,t),r?o.length=0:l(!0)}),p=F(t=>{a(e.errorComp)&&(e.error=!0,l(!0))}),f=e(d,p);return u(f)&&(m(f)?s(e.resolved)&&f.then(d,p):m(f.component)&&(f.component.then(d,p),a(f.error)&&(e.errorComp=Lt(f.error,t)),a(f.loading)&&(e.loadingComp=Lt(f.loading,t),0===f.delay?e.loading=!0:i=setTimeout(()=>{i=null,s(e.resolved)&&s(e.error)&&(e.loading=!0,l(!1))},f.delay||200)),a(f.timeout)&&(c=setTimeout(()=>{c=null,s(e.resolved)&&p(null)},f.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(d,l))))return function(e,t,n,o,r){const i=fe();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(d,t,n,o,r);t=t||{},un(e),a(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;a(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const p=function(e,t,n){const o=t.options.props;if(s(o))return;const r={},{attrs:i,props:c}=e;if(a(i)||a(c))for(const e in o){const t=C(e);0,tt(r,c,e,t,!0)||tt(r,i,e,t,!1)}return r}(t,e);if(c(e.options.functional))return function(e,t,n,o,r){const s=e.options,c={},l=s.props;if(a(l))for(const e in l)c[e]=De(e,l,t||i);else a(n.attrs)&&Nt(c,n.attrs),a(n.props)&&Nt(c,n.props);const u=new kt(n,c,r,o,e),d=s.render.call(null,u._c,u);if(d instanceof pe)return Et(d,n,u.parent,s,u);if(Array.isArray(d)){const e=nt(d)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Tt(e,t,n,o,r,i){return(Array.isArray(n)||l(n))&&(r=o,o=n,n=void 0),c(i)&&(r=2),function(e,t,n,o,r){if(a(n)&&a(n.__ob__))return fe();a(n)&&a(n.is)&&(t=n.is);if(!t)return fe();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=nt(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(Jt=()=>e.now())}function Zt(){let e,t;for(Jt(),qt=!0,zt.sort((e,t)=>e.id-t.id),Xt=0;XtXt&&zt[t].id>e.id;)t--;zt.splice(t+1,0,e)}else zt.push(e);Gt||(Gt=!0,Ge(Zt))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||u(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Be(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||_(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const tn={enumerable:!0,configurable:!0,get:T,set:T};function nn(e,t,n){tn.get=function(){return this[t][n]},tn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,tn)}function on(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&&we(!1);for(const i in t){r.push(i);const s=De(i,t,n,e);Se(o,i,s),i in e||nn(e,"_props",i)}we(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?T:I(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{de()}}(t,e):t||{},p(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&&S(o,t)||H(t)||nn(e,"_data",t)}$e(t,!0)}(e):$e(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 en(e,i||T,T,rn),o in e||sn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==Q&&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:!!f(e)&&e.test(t)}function mn(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)&&yn(n,e,o,r)}}}function yn(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,_(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=ln++,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=Te(un(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&&Vt(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=it(t._renderChildren,o),e.$scopedSlots=i,e._c=(t,n,o,r)=>Tt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Tt(e,t,n,o,r,!0);const r=n&&n.data;Se(e,"$attrs",r&&r.attrs||i,null,!0),Se(e,"$listeners",t._parentListeners||i,null,!0)}(t),Wt(t,"beforeCreate"),function(e){const t=rt(e.$options.inject,e);t&&(we(!1),Object.keys(t).forEach(n=>{Se(e,n,t[n])}),we(!0))}(t),on(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Wt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),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=Oe,e.prototype.$delete=xe,e.prototype.$watch=function(e,t,n){const o=this;if(p(t))return cn(o,e,t,n);(n=n||{}).user=!0;const r=new en(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ue(),Be(t,o,[r.value],o,e),de()}return function(){r.teardown()}}}(dn),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?A(n):n;const o=A(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Bt=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;Wt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(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),Wt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(dn),function(e){xt(e.prototype),e.prototype.$nextTick=function(e){return Ge(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ct(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Dt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ve(t,e,"render"),o=e._vnode}finally{Dt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof pe||(o=fe()),o.parent=n,o}}(dn);const gn=[String,RegExp,Array];var vn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:gn,exclude:gn,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:fn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&yn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)yn(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{mn(this,t=>hn(e,t))}),this.$watch("exclude",e=>{mn(this,t=>!hn(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tB};Object.defineProperty(e,"config",t),e.util={warn:se,extend:P,mergeOptions:Te,defineReactive:Se},e.set=Oe,e.delete=xe,e.nextTick=Ge,e.observable=e=>($e(e),e),e.options=Object.create(null),R.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,P(e.options.components,vn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=A(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=Te(this.options,e),this}}(e),pn(e),function(e){R.forEach(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:te}),Object.defineProperty(dn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:kt}),dn.version="2.6.14",v("style,class");const bn=v("input,textarea,option,select,progress");function wn(e){let t=e.data,n=e,o=e;for(;a(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=_n(o.data,t));for(;a(n=n.parent);)n&&n.data&&(t=_n(t,n.data));return function(e,t){if(a(e)||a(t))return $n(e,Sn(t));return""}(t.staticClass,t.class)}function _n(e,t){return{staticClass:$n(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function $n(e,t){return e?t?e+" "+t:e:t||""}function Sn(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&&En.test(t)||(l=!0)}}else void 0===r?(f=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(f,o).trim()),f=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==f&&h(),i)for(o=0;o{const t=e[0].replace(An,"\\$&"),n=e[1].replace(An,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Tn(e,t){console.error("[Vue compiler]: "+e)}function jn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Dn(e,t,n,o,r){(e.props||(e.props=[])).push(Wn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Ln(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Wn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Mn(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Wn({name:t,value:n},o))}function Fn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Wn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function Rn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Vn(e,t,n,o,r,s,a,c){let l;(o=o||i).right?c?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(c?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=Rn("!",t,c)),o.once&&(delete o.once,t=Rn("~",t,c)),o.passive&&(delete o.passive,t=Rn("&",t,c)),o.native?(delete o.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});const u=Wn({value:n.trim(),dynamic:c},a);o!==i&&(u.modifiers=o);const d=l[t];Array.isArray(d)?r?d.unshift(u):d.push(u):l[t]=d?r?[u,d]:[d,u]:u,e.plain=!1}function Bn(e,t,n){const o=Un(e,":"+t)||Un(e,"v-bind:"+t);if(null!=o)return Nn(o);if(!1!==n){const n=Un(e,t);if(null!=n)return JSON.stringify(n)}}function Un(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 Kn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Un(e,"style");n&&(e.staticStyle=JSON.stringify(Yn(n)));const o=Bn(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 Gn=function(e){return e};const qn=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Xn=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Jn=v("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"),Zn=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Qn=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,eo=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${U.source}]*`,to=`((?:${eo}\\:)?${eo})`,no=new RegExp("^<"+to),oo=/^\s*(\/?)>/,ro=new RegExp(`^<\\/${to}[^>]*>`),io=/^]+>/i,so=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},po=/&(?:lt|gt|quot|amp|#39);/g,fo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,ho=v("pre,textarea",!0),mo=(e,t)=>e&&ho(e)&&"\n"===t[0];function yo(e,t){const n=t?fo:po;return e.replace(n,e=>uo[e])}function go(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=vo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function vo(e,t){const n=function(e){if(e=e.trim(),bo=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,$o),key:'"'+e.slice($o+1)+'"'}:{exp:e,key:null};wo=e,$o=So=Oo=0;for(;!ko();)_o=xo(),Eo(_o)?Co(_o):91===_o&&No(_o);return{exp:e.slice(0,So),key:e.slice(So+1,Oo)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let bo,wo,_o,$o,So,Oo;function xo(){return wo.charCodeAt(++$o)}function ko(){return $o>=bo}function Eo(e){return 34===e||39===e}function No(e){let t=1;for(So=$o;!ko();)if(Eo(e=xo()))Co(e);else if(91===e&&t++,93===e&&t--,0===t){Oo=$o;break}}function Co(e){const t=e;for(;!ko()&&(e=xo())!==t;);}const Io=/^@|^v-on:/,Ao=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Po=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,To=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,jo=/^\(|\)$/g,Do=/^\[.*\]$/,Lo=/:(.*)$/,Mo=/^:|^\.|^v-bind:/,Fo=/^\./,Ro=/\.[^.\]]+(?=[^\]]*$)/g,Vo=/^v-slot(:|$)|^#/,Bo=/[\r\n]/,Uo=/[ \f\t\r\n]+/g,Ho=O(Gn);let Wo,zo,Yo,Ko,Go,qo,Xo,Jo,Zo;function Qo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:sr(t),rawAttrsMap:{},parent:n,children:[]}}function er(e,t){Wo=t.warn||Tn,qo=t.isPreTag||j,Xo=t.mustUseProp||j,Jo=t.getTagNamespace||j;const n=t.isReservedTag||j;Zo=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Yo=jn(t.modules,"transformNode"),Ko=jn(t.modules,"preTransformNode"),Go=jn(t.modules,"postTransformNode"),zo=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=tr(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&or(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&&or(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),qo(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,co(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),mo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,p(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(so.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(ao.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(io);if(n){l(n[0].length);continue}const o=e.match(ro);if(o){const e=c;l(o[0].length),p(o[1],e,c);continue}const r=u();if(r){d(r),mo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(ro.test(o)||no.test(o)||so.test(o)||ao.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(no);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(oo))&&(r=e.match(Qn)||e.match(Zn));)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&&Jn(s)&&p(a),i(s)&&a===s&&p(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))}p()}(e,{warn:Wo,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 p=a&&a.ns||Jo(e);J&&"svg"===p&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=Nn(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=Bn(n,"name")),function(e){let t;(t=Bn(e,"is"))&&(e.component=t);null!=Un(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function sr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Vn(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&&(${vo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${vo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${vo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Bn(e,"value")||"null";r=o?`_n(${r})`:r,Dn(e,"checked",`_q(${t},${r})`),Vn(e,"change",vo(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=vo(t,l);a&&(u="if($event.target.composing)return;"+u);Dn(e,"value",`(${t})`),Vn(e,c,u,null,!0),(s||i)&&Vn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!B.isReservedTag(i))return go(e,o,r),!1}return!0},text:function(e,t){t.value&&Dn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Dn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:qn,mustUseProp:(e,t,n)=>"value"===n&&bn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:Xn,isReservedTag:e=>On(e)||xn(e),getTagNamespace:function(e){return xn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(ur)};let fr,hr;const mr=O((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function yr(e,t){e&&(fr=mr(t.staticKeys||""),hr=t.isReservedTag||j,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||b(e.tag)||!hr(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(fr)))}(t),1===t.type){if(!hr(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,vr=/\([^)]*?\);*$/,br=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,wr={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},_r={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"]},$r=e=>`if(${e})return null;`,Sr={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:$r("$event.target !== $event.currentTarget"),ctrl:$r("!$event.ctrlKey"),shift:$r("!$event.shiftKey"),alt:$r("!$event.altKey"),meta:$r("!$event.metaKey"),left:$r("'button' in $event && $event.button !== 0"),middle:$r("'button' in $event && $event.button !== 1"),right:$r("'button' in $event && $event.button !== 2")};function Or(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=xr(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 xr(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>xr(e)).join(",")}]`;const t=br.test(e.value),n=gr.test(e.value),o=br.test(e.value.replace(vr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Sr[t])i+=Sr[t],wr[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=$r(["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(kr).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 kr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=wr[e],o=_r[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Er={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:T};class Nr{constructor(e){this.options=e,this.warn=e.warn||Tn,this.transforms=jn(e.modules,"transformCode"),this.dataGenFns=jn(e.modules,"genData"),this.directives=P(P({},Er),e.directives);const t=e.isReservedTag||j;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Cr(e,t){const n=new Nr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Ir(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Ir(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ar(e,t);if(e.once&&!e.onceProcessed)return Pr(e,t);if(e.for&&!e.forProcessed)return jr(e,t);if(e.if&&!e.ifProcessed)return Tr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Fr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Br((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:k(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:Fr(t,n,!0);return`_c(${e},${Dr(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Dr(e,t));const r=e.inlineTemplate?null:Fr(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||Lr(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=>Mr(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=Cr(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}",${Br(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Lr(e){return 1===e.type&&("slot"===e.tag||e.children.some(Lr))}function Mr(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Tr(e,t,Mr,"null");if(e.for&&!e.forProcessed)return jr(e,t,Mr);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Fr(e,t)||"undefined"}:undefined`:Fr(e,t)||"undefined":Ir(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Fr(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||Ir)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;oRr(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||Vr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function Rr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Vr(e,t){return 1===e.type?Ir(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:Ur(JSON.stringify(e.text))})`}(e)}function Br(e){let t="",n="";for(let o=0;oHr(e,c)),t[i]=a}}const zr=(Yr=function(e,t){const n=er(e.trim(),t);!1!==t.optimize&&yr(n,t);const o=Cr(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=P(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=Yr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Wr(t)}});var Yr;const{compile:Kr,compileToFunctions:Gr}=zr(pr);function qr(e){return(qr="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 Xr(e){var t=function(e,t){if("object"!==qr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==qr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qr(t)?t:String(t)}function Jr(e,t,n){return(t=Xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zr=`http://127.0.0.1:${r.env.PORT}/`;let Qr,ei,ti=e=>e,ni=()=>{};function oi(e){Qr=e}function ri(){return Qr}function ii(){return ti}const si=F(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ai(...e){ei&&ei.config.silent&&si()}function ci(e){return e.charAt(0).toUpperCase()+e.slice(1)}const li=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ui(e){return"[object Function]"===Object.prototype.toString.call(e)}function di(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function pi(e){return null==e}const fi=Symbol.for("View"),hi=Symbol.for("Image"),mi=Symbol.for("ListView"),yi=Symbol.for("ListViewItem"),gi=Symbol.for("Text"),vi=Symbol.for("TextInput"),bi=Symbol.for("WebView"),wi=Symbol.for("VideoPlayer"),_i={[fi]:"View",[hi]:"Image",[mi]:"ListView",[yi]:"ListViewItem",[gi]:"Text",[vi]:"TextInput",[bi]:"WebView",[wi]:"VideoPlayer"};function $i(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 Si(e){for(var t=1;t{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const xi={number:"numeric",text:"default",search:"web-search"},ki={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:fi,component:{name:_i[fi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:Si({},ki),processEventData(e,t,n){switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=n.contentOffset&&n.contentOffset.x,e.offsetY=n.contentOffset&&n.contentOffset.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}}},Ni={symbol:fi,component:Si(Si({},Ei.component),{},{name:_i[fi],defaultNativeStyle:{}})},Ci={symbol:fi,component:{name:_i[fi]}},Ii={symbol:hi,component:Si(Si({},Ei.component),{},{name:_i[hi],defaultNativeStyle:{backgroundColor:0},attributeMaps:Si({placeholder:{name:"defaultSource",propsValue(e){const t=di(e);return t&&t.indexOf(Zr)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>di(e)},ki),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}})},Ai={symbol:mi,component:{name:_i[mi],defaultNativeStyle:{flex:1},attributeMaps:Si({},ki),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=n.contentOffset&&n.contentOffset.x,e.offsetY=n.contentOffset&&n.contentOffset.y;break;case"onDelete":e.index=n.index}return e}}},Pi={symbol:yi,component:{name:_i[yi],attributeMaps:Si({},ki),eventNamesMap:Oi([["disappear","onDisappear"]])}},Ti={symbol:fi,component:Si(Si({},Ei.component),{},{name:_i[gi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},ji=Ti,Di=Ti,Li={component:Si(Si({},Ti.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Mi={symbol:vi,component:{name:_i[vi],attributeMaps:Si({type:{name:"keyboardType",propsValue(e){const t=xi[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ki),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}}},Fi={symbol:vi,component:{name:_i[vi],defaultNativeProps:Si(Si({},Mi.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:Si(Si({},Mi.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Mi.component.defaultNativeStyle,eventNamesMap:Mi.component.eventNamesMap,processEventData:Mi.component.processEventData}},Ri={symbol:bi,component:{name:_i[bi],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 Vi=Object.freeze({__proto__:null,button:Ni,div:Ei,form:Ci,img:Ii,input:Mi,label:ji,li:Pi,p:Di,span:Ti,a:Li,textarea:Fi,ul:Ai,iframe:Ri});function Bi(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 Ui(e){for(var t=1;te(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===ci(k(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 o&&o.meta&&(n=o.meta),n}function qi(e,t){return(qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xi(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&&qi(e,t)}const Ji={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},Zi=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,Qi="[-+]?\\d*\\.?\\d+",es={rgb:new RegExp("rgb"+Zi(Qi,Qi,Qi)),rgba:new RegExp("rgba"+Zi(Qi,Qi,Qi,Qi)),hsl:new RegExp("hsl"+Zi(Qi,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Zi(Qi,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Qi)),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})$/},ts=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ns=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},os=(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},rs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=os(r,o,e+1/3),s=os(r,o,e),a=os(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},is=e=>(parseFloat(e)%360+360)%360/360,ss=e=>{const t=parseFloat(e,10);return t<0?0:t>100?1:t/100};function as(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=es.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Ji,e)?Ji[e]:(t=es.rgb.exec(e),Array.isArray(t)?(ts(t[1])<<24|ts(t[2])<<16|ts(t[3])<<8|255)>>>0:(t=es.rgba.exec(e),t?(ts(t[1])<<24|ts(t[2])<<16|ts(t[3])<<8|ns(t[4]))>>>0:(t=es.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=es.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=es.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=es.hsl.exec(e),t?(255|rs(is(t[1]),ss(t[2]),ss(t[3])))>>>0:(t=es.hsla.exec(e),t?(rs(is(t[1]),ss(t[2]),ss(t[3]))|ns(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const cs={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"},ls=0,us=1,ds={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},ps={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const fs="addEventListener",hs="removeEventListener";function ms(){const e=Ua.Localization;return!!e&&1===e.direction}const ys=new Map;function gs(e){ys.delete(e)}function vs(e){return ys.get(e)||null}function bs(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?gs(t):t&&(gs(t.nodeId),t.childNodes&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}function ws(e=[],t=0){let n=e[t];for(let o=t;o{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ss={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*"},Os={};function xs(e,t,n){let o="";$s&&(o="gy"),Os[e]||(Os[e]=new RegExp(Ss[e],o));const r=Os[e];let i;if($s)r.lastIndex=n,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+i[0].length}return{result:i,regexp:r}}function ks(e,t){return function(e,t){const{result:n,regexp:o}=xs("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=xs("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}=xs("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 Es(e,t){let n=ks(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=ks(e,o);return{start:t,end:o,value:r}}function Ns(e,t){const{result:n,regexp:o}=xs("combinatorRegEx",e,t);if(!n)return null;let r;r=$s?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}function Cs(e){return e?` ${e} `:""}class Is{lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}}class As extends Is{accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}trackChanges(){return null}}class Ps extends As{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Cs(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.lookupSort(e,t||this)}removeSort(e,t){this.head.removeSort(e,t||this)}}class Ts extends As{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+Cs(this.combinator)}match(){return!0}}class js extends As{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Cs(this.combinator)}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,t||this)}removeSort(e,t){e.removeById(this.id,t||this)}}class Ds extends As{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${Cs(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,t||this)}removeSort(e,t){e.removeByType(this.cssType,t||this)}}class Ls extends As{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Cs(this.combinator)}`}match(e){return!!e&&(e.classList&&e.classList.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 Ms extends As{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Cs(this.combinator)}`}match(e){return!!e&&(e.cssPseudoClasses&&e.cssPseudoClasses.has(this.cssPseudoClass))}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const Fs=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Rs extends As{constructor(e,t,n){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?o=>{if(!o||!o.attributes)return!1;const r=""+Fs(o,e);if("="===t)return r===n;if("^="===t)return r.startsWith(n);if("$="===t)return r.endsWith(n);if("*="===t)return-1!==r.indexOf(n);if("~="===t){const e=r.split(" ");return e&&-1!==e.indexOf(n)}return"|="===t&&(r===n||r.startsWith(n+"-"))}:()=>!1:t=>!(!t||!t.attributes)&&!pi(Fs(t,e))}toString(){return`[${this.attribute}${Cs(this.test)}${this.test&&this.value||""}]${Cs(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Vs extends As{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Bs{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,o)=>{0!==o&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class Us{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,o)=>{0!==o&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class Hs extends Is{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],o=[];const r=[],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||r.push(o=[n=[]]),">"===s.combinator&&o.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=r.map(e=>new Bs(e.map(e=>new Us(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e){return!!e&&this.groups.every((t,n)=>{if(0===n)return!!(e=t.match(e));let o=e;for(;o=o.parentNode;)if(e=t.match(o))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);const n=[],o=this.groups.every((t,o)=>{if(0===o){const o=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=o)}let r=e;for(;r=r.parentNode;){const o=t.mayMatch(r);if(o)return n.push({left:r,right:null}),e=o,!0}return!1});if(!o)return!1;if(!t)return o;for(let e=0;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 zs{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 Ys{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.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 zs;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=>t.sel.ruleSet.hash===e.ruleSet.hash);-1!==t&&this.universal.splice(t)}addToMap(e,t,n){this.position+=1;const o=e[t];o?o.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>e.sel.ruleSet.hash===n.ruleSet.hash);-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function Ks(e){return"declaration"===e.type}function Gs(e){switch(e.type){case"*":return new Ts;case"#":return new js(e.identifier);case"":return new Ds(e.identifier.replace(/-/,"").toLowerCase());case".":return new Ls(e.identifier);case":":return new Ms(e.identifier);case"[]":return e.test?new Rs(e.property,e.test,e.value):new Rs(e.property);default:return null}}function qs(e){return 0===e.length?new Vs(new Error("Empty simple selector sequence.")):1===e.length?Gs(e[0]):new Ps(e.map(Gs))}function Xs(e){try{const t=function(e,t){let n=t;const{result:o,regexp:r}=xs("whiteSpaceRegEx",e,t);o&&(n=r.lastIndex);const i=[];let s,a,c=!0,l=[];return a=$s?[e]:e.split(" "),a.forEach(e=>{if(!$s){if(""===e)return;n=0}do{const t=Es(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=Ns(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 Vs(new Error("Empty selector."));if(1===e.length)return qs(e[0][0]);const t=[];for(let n=0;ne);const Qs={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let ea,ta=!0,na=[];function oa(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!!ds[e]}(o)?ds[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===us&&t.removeEventListener(n,s,i),r===ls&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function ra(e,t){0}function ia(t){if(!ta)return;if(ta=!1,0===na.length)return void(ta=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case Qs.createNode:ra(e.printedNodes),n.create(e.nodes),oa(e.eventNodes,n);break;case Qs.updateNode:ra(e.printedNodes),n.update(e.nodes),oa(e.eventNodes,n);break;case Qs.deleteNode:ra(e.printedNodes),n.delete(e.nodes);break;case Qs.moveNode:ra(e.printedNodes),n.move(e.nodes)}}),n.build(),ta=!0,na=[]})}function sa(){if(!ea||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ii();return e.map(e=>{const n=e.declarations.filter(Ks).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Xs);return new Ws(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);ea?ea.append(t):ea=new Ys(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{ea.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),ea}function aa(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];ui(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(ui(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;ui(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 ca(e){const t=Object.create(null);try{sa().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 la(e,t,n={}){if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let o=ca(t);o=Zs(Zs({},o),t.style),ni(t,o),t.meta.component.defaultNativeStyle&&(o=Zs(Zs({},t.meta.component.defaultNativeStyle),o));const r={id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,name:t.meta.component.name,props:Zs(Zs({},aa(t)),{},{style:o}),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))}}(r),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=ms()?"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)))}(t,r,o),function(e,t){"TextInput"===e.meta.component.name&&ms()&&(t.textAlign||(t.textAlign="right"))}(t,o);const i=function(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}(t);let s=void 0;return[[r,n],i,s]}function ua(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=la(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 da(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ri();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]=ua(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,ys.set(n,t)},n);na.push({type:Qs.createNode,nodes:i,eventNodes:a,printedNodes:c}),ia(o)}}function pa(e){if(!e.isMounted)return;const t=ri(),{$options:{rootViewId:n}}=t,[o,r,i]=la(n,e);o&&(na.push({type:Qs.updateNode,nodes:[o],eventNodes:[r],printedNodes:[]}),ia(t))}function fa(e){if(!e.isMounted)return;const t=ri(),{$options:{rootViewId:n}}=t,[o,r,i]=ua(n,e);na.push({type:Qs.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ia(t)}const ha=new Set;let ma,ya=!1;const ga={exitApp(){Ua.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ya||(ya=!0,ga.initEventListener()),Ua.callNative("DeviceEventModule","setListenBackPress",!0),ha.add(e),{remove(){ga.removeListener(e)}}),removeListener(e){ha.delete(e),0===ha.size&&Ua.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ma||(ma=ri()),ma.$on("hardwareBackPress",()=>{let e=!0;Array.from(ha).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&ga.exitApp()})}},va={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ba="android"===Hippy.device.platform.OS?ga:va;let wa;const _a=new Map;class $a{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Sa(this.eventName,this.listener),this.listener=void 0)}}function Sa(e,t){if(t instanceof $a)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=_a.get(t);o&&(wa||(wa=ri()),wa.$off(n,o),_a.delete(t),_a.size<1&&Ua.callNative("NetInfo","removeListener",n))}var Oa=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===_a.size&&Ua.callNative("NetInfo","addListener",n),wa||(wa=ri()),wa.$on(n,t),_a.set(t,t),new $a(n,t)},removeEventListener:Sa,fetch:function(){return Ua.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:$a});function xa(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 ka(e){for(var t=1;tMa.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})}))},Ua={callNative:Ia,callNativeWithPromise:Aa,callNativeWithCallbackId:Pa,UIManagerModule:Ma,ConsoleModule:e.ConsoleModule||e.console,on:Ea,off:Na,emit:Ca,PixelRatio:Da,Platform:Ta,Localization:ja,version:"3.0.1",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return Aa.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()}Ia.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return Aa.call(this,"ClipboardModule","getString")},setString(e){Ia.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!a(Ra.isIPhoneX)){let e=!1;"ios"===Ua.Platform&&(e=20!==Ua.Dimensions.screen.statusBarHeight),Ra.isIPhoneX=e}return Ra.isIPhoneX},get screenIsVertical(){return Ua.Dimensions.window.widthBa(e,"measureInWindow"),measureInAppWindow:e=>"android"===Ua.Platform?Ba(e,"measureInWindow"):Ba(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`));ai(...Va,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Ma.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error(e&&e.errMsg||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=void 0,c=void 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:Ua.Platform}){if(Number.isInteger(e))return e;const n=Ra.COLOR_PARSER||(Ra.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=as(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:ba,ImageLoader:{getSize(e){return Aa.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Ia.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Oa,getElemCss:ca};class Ha{constructor(e){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 Wa{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&&!ui(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){const{type:t}=e,n=this.observers[t];if(n)for(let t=n.length-1;t>=0;t-=1){const o=n[t];o.options&&o.options.once&&n.splice(t,1),o.options&&o.options.thisArg?o.callback.apply(o.options.thisArg,[e]):o.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&&L(e.options,n):e.callback===t)}}const za=["%c[event]%c","color: green","color: auto"];const Ya={receiveNativeEvent(e){if(ai(...za,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)return;const[t,n]=e,o=ri();o&&o.$emit(t,n)},receiveComponentEvent(e,t){if(ai(...za,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:o,nativeName:r,originalName:i,params:s={},eventPhase:a}=e,c=vs(o),l=vs(n);if(c&&l)try{if([ps.AT_TARGET,ps.BUBBLING_PHASE].indexOf(a)>-1){const e=new Ha(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=Ya);let Ka=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ka=e.__GLOBAL__.nodeId);class Ga{constructor(){this._ownerDocument=null,this._meta=null,this._isMounted=!1,this.nodeId=(Ka+=1,Ka%10==0&&(Ka+=1),Ka%10==0&&(Ka+=1),Ka),this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null}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=ws(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?da(this,e):da(this,e,{refId:o.nodeId,relativeToRef:_s})}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=ws(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?da(this,e):function(e,t,n={}){if(e&&e.meta&&ui(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;t.isMounted=!1;const o=ri(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];na.push({printedNodes:a,type:Qs.moveNode,nodes:s,eventNodes:[]}),ia(o)}(this,e,{refId:r.nodeId,relativeToRef:_s})}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),da(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=null,e.nextSibling=null;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=ri(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];na.push({printedNodes:s,type:Qs.deleteNode,nodes:i,eventNodes:[]}),ia(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}function qa(){qa=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)),qi(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)},qa.apply(this,arguments)}const Xa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Ja="turn",Za="rad",Qa="deg";function ec(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=qa(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,i,s]=n;return i&&s?o=function(e,t=Qa){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Ja:o=""+(360*n).toFixed(2);break;case Za:o=""+(180/Math.PI*n).toFixed(2)}return o}(i,s):r&&void 0!==Xa[r]&&(o=Xa[r]),o}function tc(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:Ua.parseColor(n)}:void 0:{color:Ua.parseColor(n)}}function nc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}const oc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function rc(e,t,n){void 0===t&&(delete n[e],nc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[oc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function ic(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&&fa(this))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&fa(this));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!ei||void 0===ei.config.trimWhitespace||ei.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"numberOfRows":if("ios"!==Ua.Platform)return;break;case"caretColor":case"caret-color":o="caret-color",r=Ua.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=Ua.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=Ua.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=Ua.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&&pa(this)}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)}),pa(this))}setStyle(e,t,n=!1){let{value:o,property:r}=this.beforeLoadStyle({property:e,value:t});if(void 0===t)return rc(r,o,this.style),void(n||pa(this));switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=function(e,t,n){delete n[e],nc(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=ec(e);if(t)o.angle=t;else{o.angle="180";const t=tc(e);t&&n.push(t)}}else{const t=tc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(r,o,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[oc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=o||{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(cs,r)&&(r=cs[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?Ua.parseColor(o):function(e,t,n){if(String.prototype.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}(o,"px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&li.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||pa(this))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){fa(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}appendChild(e){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e&&e.meta.symbol===gi&&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"+ci(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;n&&n[e]&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Wa(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(fs,e,t,n)),this._emitter.addEventListener(e,t,n),ic(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ls&&(this.events[t].type=ls):this.events[t]={name:t,type:ls,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};Ya.receiveComponentEvent(a,e)}),isCapture:!1}}),pa(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(hs,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return ic(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=us)}),pa(this),o}dispatchEvent(e,t,n){if(!(e instanceof Ha))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return Ua.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){"number"==typeof e&&"number"==typeof t&&(!1===n&&(n=0),Ua.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:n}]))}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){Ua.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){Ua.callUIFunction(this,"setHotspot",[e,t])}}class ac extends sc{constructor(e){super("comment"),this.text=e,this._meta={symbol:gi,skipAddToDom:!0}}}class cc extends Ga{constructor(e){super(),this.text=e,this._meta={symbol:gi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}class lc extends sc{getValue(){return new Promise(e=>Ua.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){Ua.callUIFunction(this,"setValue",[e])}focus(){Ua.callUIFunction(this,"focusTextInput",[])}blur(){Ua.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>Ua.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){Ua.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class uc extends sc{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Ua.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Ua.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class dc extends Ga{constructor(){super(),this.documentElement=new sc("document"),this.createComment=this.constructor.createComment,this.createElement=this.constructor.createElement,this.createElementNS=this.constructor.createElementNS,this.createTextNode=this.constructor.createTextNode}static createComment(e){return new ac(e)}static createElement(e){switch(e){case"input":case"textarea":return new lc(e);case"ul":return new uc(e);default:return new sc(e)}}static createElementNS(e,t){return new sc(`${e}:${t}`)}static createTextNode(e){return new cc(e)}static createEvent(e){return new Ha(e)}}var pc={create(e,t){fc(t)},update(e,t){e.data.ref!==t.data.ref&&(fc(e,!0),fc(t))},destroy(e){fc(e,!0)}};function fc(e,t){const n=e.data.ref;if(!a(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[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 hc=new pe("",{},[]),mc=["create","activate","update","remove","destroy"];function yc(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;let n;const o=a(n=e.data)&&a(n=n.attrs)&&n.type,r=a(n=t.data)&&a(n=n.attrs)&&n.type;return o===r||kn(o)&&kn(r)}(e,t)||c(e.isAsyncPlaceholder)&&s(t.asyncFactory.error))}function gc(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,a(r)&&(i[r]=o);return i}var vc={create:bc,update:bc,destroy:function(e){bc(e,hc)}};function bc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===hc,o=t===hc,r=_c(e.data.directives,e.context),i=_c(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,Sc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Sc(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 kc={create:xc,update:xc};function Ec(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=wn(t);const s=n._transitionClasses;s&&(i=$n(i,Sn(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Nc={create:Ec,update:Ec};let Cc;function Ic(e,t,n,o){(o||Cc).removeEventListener(e)}function Ac(e,t,n,o,r){n||Cc.addEventListener(e,t)}function Pc(e,t,n){const o=Cc;return function(){const n=t(...arguments);null!==n&&Ic(e,0,0,o)}}function Tc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Cc=t.elm,Qe(n,o,Ac,Ic,Pc,t.context)}var jc={create:Tc,update:Tc};function Dc(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 Lc(e){for(var t=1;t{const r=e[o],i=t[o];!pi(r)&&pi(i)&&(n[Mc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];pi(i)||i===r||(n[Mc(o)]=i)}),n}function Vc(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=Rc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Fc(r),t.data.style=r),i&&(r=P({},r),t.data.style=r);const s=Rc(o,r);t.elm.setStyles(Lc(Lc({},n),s))}var Bc=[kc,Nc,jc,{create:Vc,update:Vc}];function Uc(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;let r=e.data&&e.data.attrs||{};r.__ob__&&(r=P({},r),e.data.attrs=r),Object.keys(r).forEach(e=>{o.setAttribute(e,r[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(Mc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Fc(i),e.data.style=i),t&&(i=P({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Mc(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=wn(e);const s=r._transitionClasses;s&&(i=$n(i,Sn(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const Hc=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(p=s(n[v+1])?null:n[v+1].elm,b(e,p,n,h,v,o)):h>v&&_(t,f,m)}(p,y,g,n,u):a(g)?(a(e.text)&&i.setTextContent(p,""),b(p,null,g,0,g.length-1,n)):a(y)?_(y,0,y.length-1):a(e.text)&&i.setTextContent(p,""):e.text!==t.text&&i.setTextContent(p,t.text),a(h)&&a(f=h.hook)&&a(f=f.postpatch)&&f(e,t)}function x(e,t,n){if(c(n)&&a(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),bs(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:Bc.concat(Oc)});function Wc(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let zc=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const Yc={inserted(e,t){"ios"===Ua.Platform&&zc!==Wc&&(zc=Wc),"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 Ha("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,zc(e,t,n)}};function Kc(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const Gc={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,Kc(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&Kc(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var qc=Object.freeze({__proto__:null,model:Yc,show:Gc});const Xc=['%c[Hippy-Vue "3.0.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Jc=new dc;dn.$document=Jc,dn.prototype.$document=Jc,dn.$Document=dc,dn.$Event=Ha,dn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},dn.config.isReservedTag=Hi,dn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},dn.compile=Gr,dn.registerElement=Ki,P(dn.options.directives,qc),dn.prototype.__patch__=Hc,dn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return se("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=Gr(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=fe),Wt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new en(e,o,T,{before(){e._isMounted&&!e._isDestroyed&&Wt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Wt(e,"mounted")),e}(this,e,t)},dn.prototype.$start=function(e,t){var n;oi(this),ui(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ti=n),Wi.forEach(e=>{dn.component(e.meta.component.name,e.meta.component)}),Fa.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ai(...Xc,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();oi(new(dn.extend(this.$options))(this.$options))}if(ui(t)&&t(this,n),this.$mount(),"ios"===Ua.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if(t&&t.statusBar&&(n=t.statusBar),n.disabled)return null;const o=new sc("div"),{statusBarHeight:r}=Ua.Dimensions.screen;Ua.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 sc("img");t.setStyle("width",Ua.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{Ua.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))}ui(e)&&e(this,n)})};let Zc=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||{};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,Zc+=1,i.cid=Zc,i.options=Te(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>nn(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>sn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,R.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=P({},i.options),o[n]=i,i},dn.Native=Ua,dn.getApp=ri,dn.use((function(){Object.keys(Vi).forEach(e=>{Ki(e,Vi[e])})})),B.devtools&&ne&&ne.emit("init",dn);dn.config._setBeforeRenderToNative=(e,t)=>{ui(e)&&(1===t?ni=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const Qc=new Proxy(dn,{construct(e,t){const n=new e(...t);return n}});function el(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}let tl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){tl=ri(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=function(e){for(var t=1;t0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};Ua.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,Ua.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);Ua.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,tl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];ui(n)&&n(e.data)}},Qc.config.silent=!1,Qc.config.trimWhitespace=!0,function(e){ei=e}(Qc)}.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 p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=a(p);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/vendor.android.js b/framework/examples/android-demo/res/vue3/vendor.android.js index 12fcaed9931..d227a1f7cb0 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";n.r(t),function(e,r){n.d(t,"BackAndroid",(function(){return _t})),n.d(t,"ContentSizeEvent",(function(){return rn})),n.d(t,"EventBus",(function(){return ee})),n.d(t,"ExposureEvent",(function(){return cn})),n.d(t,"FocusEvent",(function(){return on})),n.d(t,"HIPPY_DEBUG_ADDRESS",(function(){return te})),n.d(t,"HIPPY_GLOBAL_DISPOSE_STYLE_NAME",(function(){return se})),n.d(t,"HIPPY_GLOBAL_STYLE_NAME",(function(){return ie})),n.d(t,"HIPPY_STATIC_PROTOCOL",(function(){return oe})),n.d(t,"HIPPY_VUE_VERSION",(function(){return ce})),n.d(t,"HippyEvent",(function(){return Zt})),n.d(t,"HippyKeyboardEvent",(function(){return nn})),n.d(t,"HippyLayoutEvent",(function(){return en})),n.d(t,"HippyLoadResourceEvent",(function(){return tn})),n.d(t,"HippyTouchEvent",(function(){return Qt})),n.d(t,"IS_PROD",(function(){return ne})),n.d(t,"ListViewEvent",(function(){return an})),n.d(t,"NATIVE_COMPONENT_MAP",(function(){return re})),n.d(t,"Native",(function(){return gt})),n.d(t,"ViewPagerEvent",(function(){return sn})),n.d(t,"_setBeforeRenderToNative",(function(){return Kn})),n.d(t,"createApp",(function(){return Yn})),n.d(t,"eventIsKeyboardEvent",(function(){return ln})),n.d(t,"getTagComponent",(function(){return xt})),n.d(t,"parseCSS",(function(){return D})),n.d(t,"registerElement",(function(){return St})),n.d(t,"setScreenSize",(function(){return zn})),n.d(t,"translateColor",(function(){return T}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),i=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js"),s=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");const c=["mode","valueType","startValue","toValue"],a=["transform"],l=["transform"];function u(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 d(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 f(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)},h.apply(this,arguments)}function m(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&&g(e,t)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)} +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";n.r(t),function(e,r){n.d(t,"BackAndroid",(function(){return wt})),n.d(t,"ContentSizeEvent",(function(){return on})),n.d(t,"EventBus",(function(){return ee})),n.d(t,"ExposureEvent",(function(){return an})),n.d(t,"FocusEvent",(function(){return sn})),n.d(t,"HIPPY_DEBUG_ADDRESS",(function(){return te})),n.d(t,"HIPPY_GLOBAL_DISPOSE_STYLE_NAME",(function(){return se})),n.d(t,"HIPPY_GLOBAL_STYLE_NAME",(function(){return ie})),n.d(t,"HIPPY_STATIC_PROTOCOL",(function(){return oe})),n.d(t,"HIPPY_VUE_VERSION",(function(){return ce})),n.d(t,"HippyEvent",(function(){return Qt})),n.d(t,"HippyKeyboardEvent",(function(){return rn})),n.d(t,"HippyLayoutEvent",(function(){return tn})),n.d(t,"HippyLoadResourceEvent",(function(){return nn})),n.d(t,"HippyTouchEvent",(function(){return en})),n.d(t,"IS_PROD",(function(){return ne})),n.d(t,"ListViewEvent",(function(){return ln})),n.d(t,"NATIVE_COMPONENT_MAP",(function(){return re})),n.d(t,"Native",(function(){return vt})),n.d(t,"ViewPagerEvent",(function(){return cn})),n.d(t,"_setBeforeRenderToNative",(function(){return Gn})),n.d(t,"createApp",(function(){return Kn})),n.d(t,"eventIsKeyboardEvent",(function(){return un})),n.d(t,"getTagComponent",(function(){return jt})),n.d(t,"parseCSS",(function(){return D})),n.d(t,"registerElement",(function(){return xt})),n.d(t,"setScreenSize",(function(){return Hn})),n.d(t,"translateColor",(function(){return T}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),i=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js"),s=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");const c=["mode","valueType","startValue","toValue"],a=["transform"],l=["transform"];function u(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 d(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 f(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)},h.apply(this,arguments)}function m(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&&g(e,t)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)} /*! - * @hippy/vue v3.0.0 - * (Using Vue v3.2.37 and Hippy-Vue-Next v3.0.0) - * Build at: Thu Jun 29 2023 16:20:44 GMT+0800 (中国标准时间) + * @hippy/vue v3.0.1 + * (Using Vue v3.2.37 and Hippy-Vue-Next v3.0.1) + * Build at: Mon Aug 07 2023 19:38:19 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -21,4 +21,4 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const v=/-(\w)/g,b=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),y={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},O=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,_="[-+]?\\d*\\.?\\d+",w={rgb:new RegExp("rgb"+O(_,_,_)),rgba:new RegExp("rgba"+O(_,_,_,_)),hsl:new RegExp("hsl"+O(_,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+O(_,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",_)),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})$/},S=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},x=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},j=(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},E=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=j(o,r,e+1/3),s=j(o,r,e),c=j(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},N=e=>(parseFloat(e)%360+360)%360/360,k=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function T(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=w.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(y,e)?y[e]:(t=w.rgb.exec(e),Array.isArray(t)?(S(t[1])<<24|S(t[2])<<16|S(t[3])<<8|255)>>>0:(t=w.rgba.exec(e),t?(S(t[1])<<24|S(t[2])<<16|S(t[3])<<8|x(t[4]))>>>0:(t=w.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=w.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=w.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=w.hsl.exec(e),t?(255|E(N(t[1]),k(t[2]),k(t[3])))>>>0:(t=w.hsla.exec(e),t?(E(N(t[1]),k(t[2]),k(t[3]))|x(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const C={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},P={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},I="turn",A="rad",R="deg",M=/\/\*[\s\S]{0,1000}?\*\//gm;const L=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function F(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 V(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=h(/^([+-]?(?=(\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=R){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case I:r=""+(360*n).toFixed(2);break;case A:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==P[o]&&(r=P[o]),r}function $(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:T(n)}:null:{color:T(n)}}function B(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=V(e);if(t)n.angle=t;else{n.angle="180";const t=$(e);t&&o.push(t)}}else{const t=$(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?).{0,500}?(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}function D(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 l(o){const i=f(f({},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 u(){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 l("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 d(e=[]){let t;const n=e||[];for(;t=u();)!1!==t&&n.push(t);return n}function p(){let t;const n=[];for(s(),d(n);e.length&&"}"!==e.charAt(0)&&(t=E()||O());)t&&(n.push(t),d(n));return n}function h(){return i(/^{\s*/)}function m(){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 v(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return l("property missing ':'");const n=t.replace(M,""),r=b(n);let o=(()=>{const e=C[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(M,""):"";switch(o){case"backgroundImage":[o,a]=B(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 l("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>F(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(L.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=F(a))}const u=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),u}function y(){let e,t=[];if(!h())return l("missing '{'");for(d(t);e=v();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),d(t));return m()?t:l("missing '}'")}function O(){const e=c(),t=g();return t?(d(),e({type:"rule",selectors:t,declarations:y()})):l("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:y()}):null}function w(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=w("import"),x=w("charset"),j=w("namespace");function E(){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 l("@keyframes missing name");const r=t[1];if(!h())return l("@keyframes missing '{'");let o,s=d();for(;o=_();)s.push(o),s=s.concat(d());return m()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):l("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!h())return l("@media missing '{'");const r=d().concat(p());return m()?e({type:"media",media:n,rules:r}):l("@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(!h())return l("@supports missing '{'");const r=d().concat(p());return m()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}()||S()||x()||j()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!h())return l("@document missing '{'");const o=d().concat(p());return m()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!h())return l("@page missing '{'");let n,r=d();for(;n=v();)r.push(n),r=r.concat(d());return m()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!h())return l("@host missing '{'");const t=d().concat(p());return m()?e({type:"host",rules:t}):l("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!h())return l("@font-face missing '{'");let t,n=d();for(;t=v();)n.push(t),n=n.concat(d());return m()?e({type:"font-face",declarations:n}):l("@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=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)}function U(e,t){if(e===t)return!0;let n=W(e),r=W(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=G(e),r=G(t),n||r)return e===t;if(n=H(e),r=H(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r"[object Date]"===X(e),Y=e=>"function"==typeof e,K=e=>"string"==typeof e,G=e=>"symbol"==typeof e,q=e=>null!==e&&"object"==typeof e,J=Object.prototype.toString,X=e=>J.call(e),Z=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1));let Q=Object.create(null);const ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{ee.$on(e,t,n)}):(Q[e]||(Q[e]=[]),Q[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=(Q[e]||[]).slice(),r=n.length;for(let e=0;e{ee.$off(e,t)}),ee;const n=Q[e];if(!n)return ee;if(!t)return Q[e]=null,ee;let r;const o=n.length;for(let e=0;ee;let be=(e,t)=>{};function ye(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 Oe(e){let t=e;return/^assets/.test(t)&&(t=ne?`${oe}./${t}`:`${te}${t}`),t}function _e(e){return"on"+Z(e)}function we(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=_e(e[0]),r=_e(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Se(e){return null==e}function xe(e,t){return!(!t||!e)&&e.match(t)}class je{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 Ee{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){const{tagName:t,id:n,classList:r}=e,o=[this.universal,this.id[n],this.type[t]];r.size&&r.forEach(e=>o.push(this.class[e]));const i=o.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new je;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}removeById(e,t){Ee.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){Ee.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){Ee.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 Ne(e){return e?" "+e:""}class ke{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class Te extends ke{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 Ce extends Te{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Te&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Ne(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 Te&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof Te&&this.head.removeSort(e,null!=t?t:this)}}class Pe extends Te{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+Ne(this.combinator)}match(){return!0}}class Ie extends Te{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Ne(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 Ae extends Te{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${Ne(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 Re extends Te{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Ne(this.combinator)}`}match(e){return!!e&&!(!e.classList.size||!e.classList.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 Me extends Te{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Ne(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const Le=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Fe extends Te{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||!r.attributes)return!1;const o=""+Le(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||!t.attributes)&&!Se(Le(t,e))}toString(){return`[${this.attribute}${Ne(this.test)}${this.test&&this.value||""}]${Ne(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Ve extends Te{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 $e{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 Be{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 De extends ke{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 $e(e.map(e=>new Be(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e){return!!e&&this.groups.every((t,n)=>{if(0===n)return!!(e=t.match(e));if(null==e?void 0:e.parentNode){let n=e.parentNode;for(;n;){if(e=t.match(n))return!0;n=n.parentNode}}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);const n=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=r)}let o=e;for(;o=o.parentNode;){const r=t.mayMatch(o);if(r)return n.push({left:o,right:null}),e=r,!0}return!1});if(!r)return!1;if(!t)return r;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 ze=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),He={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*"},We={};function Ye(e,t,n){let r="";ze&&(r="gy"),We[e]||(We[e]=new RegExp(He[e],r));const o=We[e];let i;if(ze)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 Ke(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=Ye("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}=Ye("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}=Ye("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 Ge(e,t){let n=Ke(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=Ke(e,r);return{start:t,end:r,value:o}}function qe(e,t){const{result:n,regexp:r}=Ye("combinatorRegEx",e,t);if(!n)return null;let o;o=ze?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}function Je(e){return"declaration"===e.type}function Xe(e){switch(e.type){case"*":return new Pe;case"#":return new Ie(e.identifier);case"":return new Ae(e.identifier.replace(/-/,"").toLowerCase());case".":return new Re(e.identifier);case":":return new Me(e.identifier);case"[]":return e.test?new Fe(e.property,e.test,e.value):new Fe(e.property);default:return null}}function Ze(e){return 0===e.length?new Ve(new Error("Empty simple selector sequence.")):1===e.length?Xe(e[0]):new Ce(e.map(Xe))}function Qe(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=Ye("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=ze?[e]:e.split(" "),c.forEach(e=>{if(!ze){if(""===e)return;n=0}do{const t=Ge(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=qe(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 Ve(new Error("Empty selector."));if(1===e.length)return Ze(e[0][0]);const t=[];for(const n of e){const e=Ze(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new De(t)}(t.value):new Ve(new Error("Empty selector"))}catch(e){return new Ve(e)}}function et(e=[]){const t=ve;return e.map(e=>{const n=e.declarations.filter(Je).map(function(e){return t=>{const n=e(t);if(!ne&&!n)throw new Error("beforeLoadStyle hook must returns the processed style object");return n}}(t)),r=e.selectors.map(Qe);return new Ue(r,n,e.hash)})}let tt;function nt(){const e=r[ie];if(!tt||e){const t=et(e);tt?tt.append(t):tt=new Ee(t),r[ie]=void 0}return r[se]&&(r[se].forEach(e=>{tt.delete(e)}),r[se]=void 0),tt}const rt=["%c[native]%c","color: red","color: auto"],ot={},{bridge:{callNative:it,callNativeWithPromise:st,callNativeWithCallbackId:ct},device:{platform:{OS:at,Localization:lt={}},screen:{scale:ut}},device:dt,document:ft,register:pt}=r.Hippy,ht=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 fe(...rt,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>ft.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})}))},mt=new Map,gt={Localization:lt,hippyNativeDocument:ft,hippyNativeRegister:pt,Platform:at,PixelRatio:ut,ConsoleModule:r.ConsoleModule||r.console,callNative:it,callNativeWithPromise:st,callNativeWithCallbackId:ct,AsyncStorage:r.Hippy.asyncStorage,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=[]),fe(...rt,"callUIFunction",{nodeId:o,funcName:n,params:i}),ft.callUIFunction(o,n,i,s)},Clipboard:{getString(){return gt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){gt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return gt.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()),gt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return gt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){gt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=dt,{statusBarHeight:t}=e;return{window:dt.window,screen:f(f({},e),{},{statusBarHeight:t})}},get Device(){var e;return void 0===ot.Device&&(gt.isIOS()?(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.Device)?ot.Device=r.__HIPPYNATIVEGLOBAL__.Device:ot.Device="iPhone":gt.isAndroid()?ot.Device="Android device":ot.Device="Unknown device"),ot.Device},get screenIsVertical(){return gt.Dimensions.window.width"android"===gt.Platform,isIOS:()=>"ios"===gt.Platform,measureInWindow:e=>ht(e,"measureInWindow"),measureInAppWindow:e=>gt.isAndroid()?ht(e,"measureInWindow"):ht(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`));fe(...rt,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),ft.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:()=>gt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===mt.size&>.callNative("NetInfo","addListener",n),ee.$on(n,t),mt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(gt.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"),mt.size<=1&>.callNative("NetInfo","removeListener",n);const r=mt.get(t);r&&(ee.$off(n,r),mt.delete(t),mt.size<1&>.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===ot.isIPhoneX){let e=!1;gt.isIOS()&&(e=20!==gt.Dimensions.screen.statusBarHeight),ot.isIPhoneX=e}return ot.isIPhoneX},get OnePixel(){if(void 0===ot.OnePixel){const e=gt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),ot.OnePixel=t}return ot.OnePixel},get APILevel(){var e,t;return gt.isAndroid()?(null===(t=null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.Platform)||void 0===t?void 0:t.APILevel)?r.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(pe("Vue.Native.APILevel needs higher Android SDK version to retrieve"),null):(pe("Vue.Native.APIVersion is available in Android only"),null)},get OSVersion(){var e;return gt.isIOS()&&(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.OSVersion)?r.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var e,t;return gt.isIOS()&&(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.OSVersion)?null===(t=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=ot.COLOR_PARSER)&&void 0!==t?t:ot.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=T(e)),n[e]},getElemCss(e){const t=Object.create(null);try{nt().query(e).selectors.forEach(n=>{xe(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){pe("getDomCss Error:",e)}return t},version:ce},vt=new Set;let bt=!1;const yt={exitApp(){gt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(bt||(bt=!0,yt.initEventListener()),gt.callNative("DeviceEventModule","setListenBackPress",!0),vt.add(e),{remove(){yt.removeListener(e)}}),removeListener(e){vt.delete(e),0===vt.size&>.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(vt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&yt.exitApp()})}},Ot={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},_t=gt.isAndroid()?yt:Ot,wt=new Map;function St(e,t){if(!e)throw new Error("tagName can not be empty");const n=he(e);wt.has(n)||wt.set(n,t.component)}function xt(e){const t=he(e);return wt.get(t)}const jt=new Map,Et={number:"numeric",text:"default",search:"web-search"},Nt={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"}},kt={component:{name:re.View,eventNamesMap:ye([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:f({},Nt),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}}},Tt={component:{name:re.View,attributeMaps:kt.component.attributeMaps,eventNamesMap:kt.component.eventNamesMap,processEventData:kt.component.processEventData}},Ct={component:{name:re.View}},Pt={component:{name:re.Image,eventNamesMap:kt.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:f({placeholder:{name:"defaultSource",propsValue(e){const t=Oe(e);return(null==t?void 0:t.indexOf(te))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&pe(`img placeholder ${t} recommend to use base64 image or local path image`),t}},src:e=>Oe(e)},Nt)}},It={component:{name:re.ListView,defaultNativeStyle:{flex:1},attributeMaps:f({},Nt),eventNamesMap:ye("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}}},At={component:{name:re.ListViewItem,attributeMaps:f({},Nt),eventNamesMap:ye([["disappear","onDisappear"]])}},Rt={component:{name:re.Text,attributeMaps:kt.component.attributeMaps,eventNamesMap:kt.component.eventNamesMap,processEventData:kt.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},Mt=Rt,Lt=Rt,Ft={component:f(f({},Rt.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(pe("href attribute can't apply effect in native with url: "+e),""):e}}})},Vt={component:{name:re.TextInput,attributeMaps:f({type:{name:"keyboardType",propsValue(e){const t=Et[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Nt),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:ye([["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}}},$t={component:{name:re.TextInput,defaultNativeProps:f(f({},Vt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:f(f({},Vt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Vt.component.defaultNativeStyle,eventNamesMap:Vt.component.eventNamesMap,processEventData:Vt.component.processEventData}},Bt={component:{name:re.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}}};jt.set("div",kt),jt.set("button",Tt),jt.set("form",Ct),jt.set("img",Pt),jt.set("ul",It),jt.set("li",At),jt.set("span",Rt),jt.set("label",Mt),jt.set("p",Lt),jt.set("a",Ft),jt.set("input",Vt),jt.set("textarea",$t),jt.set("iframe",Bt);var Dt={install(){jt.forEach((e,t)=>{St(t,e)})}};function Ut(){const{Localization:e}=gt;return!!e&&1===e.direction}const zt=0,Ht=1,Wt={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},Yt={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Kt="addEventListener",Gt="removeEventListener";let qt;function Jt(){return qt}function Xt(e,t){qt[e]=t}class Zt{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 Qt extends Zt{}class en extends Zt{}class tn extends Zt{}class nn extends Zt{}class rn extends Zt{}class on extends Zt{}class sn extends Zt{}class cn extends Zt{}class an extends Zt{}function ln(e){return"string"==typeof e.value}const un=new Map;function dn(e,t){un.set(t,e)}function fn(e){un.delete(e)}function pn(e){return un.get(e)||null}function hn(e){var t,n;t=t=>{(t.timeRemaining()>0||t.didTimeout)&&function e(t){var n;"number"==typeof t?fn(t):t&&(fn(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(e)},n={timeout:50},r.requestIdleCallback?r.requestIdleCallback(t,n):setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1)}function mn(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new en(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 Zt(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 pe(...vn,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};r.__GLOBAL__&&(r.__GLOBAL__.jsModuleList.EventDispatcher=bn);class yn{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&U(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 On;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE"}(On||(On={}));let _n=!1,wn=[];const Sn=["%c[native]%c","color: red","color: auto"];function xn(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!!Wt[e]}(r)?Wt[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ht&&t.removeEventListener(n,s,i),o===zt&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function jn(e,t){de()&&fe(...Sn,t,e)}function En(){_n||(_n=!0,0!==wn.length?Object(o.nextTick)().then(()=>{const e=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}(wn),{rootViewId:t}=Jt(),n=new r.Hippy.SceneBuilder(t);e.forEach(e=>{switch(e.type){case On.CREATE:jn(e.printedNodes,"createNode"),n.create(e.nodes),xn(e.eventNodes,n);break;case On.UPDATE:jn(e.printedNodes,"updateNode"),n.update(e.nodes),xn(e.eventNodes,n);break;case On.DELETE:jn(e.printedNodes,"deleteNode"),n.delete(e.nodes);break;case On.MOVE:jn(e.printedNodes,"moveNode"),n.move(e.nodes)}}),n.build(),_n=!1,wn=[]}):_n=!1)}var Nn;!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=2]="TextNode",e[e.CommentNode=3]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(Nn||(Nn={}));class kn extends yn{constructor(e){super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=kn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===Nn.ElementNode}(e)}static getUniqueNodeId(){return ae+=1,ae%10==0&&(ae+=1),ae}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}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=mn(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:gn}):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=mn(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:gn}):this.insertChildNativeNode(n)}appendChild(e){const t=e;if(!t)throw new Error("No child to append");this.lastChild!==t&&(t.parentNode&&t.parentNode!==this&&t.parentNode.removeChild(t),t.isMounted&&this.removeChild(t),t.parentNode=this,this.lastChild&&(t.prevSibling=this.lastChild,this.lastChild.nextSibling=t),this.childNodes.push(t),this.insertChildNativeNode(t))}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,o=r.convertToNativeNodes(!0,t);r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),dn(t,t.nodeId)}),function([e,t,n]){wn.push({type:On.CREATE,nodes:e,eventNodes:t,printedNodes:n}),En()}(o)}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(wn.push({type:On.MOVE,nodes:e,eventNodes:[],printedNodes:t}),En())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(wn.push({type:On.DELETE,nodes:e,eventNodes:[],printedNodes:t}),En())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(wn.push({type:On.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),En())}(this.convertToNativeNodes(e,{}))}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}=Jt(),s=null!=n?n:{},c=f({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=function(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}(this);let l=void 0;if(!ne){const e={};a&&Array.isArray(a.eventList)&&a.eventList.forEach(t=>{const{name:n,listener:r,type:o}=t;o===zt&&Object.assign(e,{[n]:r})}),Object.assign(l={},c,t),l.listeners=e}return[[[c,t]],[a],[l]]}}class Tn extends kn{constructor(e){super(Nn.TextNode),this.text=e}setText(e){this.text=e,this.parentNode&&this.nodeType===Nn.ElementNode&&this.parentNode.setText(e)}}function Cn(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;ee,this.tagName=e.toLowerCase(),this.classList=new Set,this.attributes={},this.style={},this.events={},this.hackSpecialIssue()}static parseRem(e){let t={};const n=Object.keys(e);return n.length?n.forEach(n=>{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}=Jt(),{width:r}=gt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=xt(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Jt();return super.isRootNode()||this.id===e}appendChild(e){e instanceof Tn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){e instanceof Tn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof Tn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof Tn&&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(r.split(" ").filter(e=>e.trim()));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){pe(`Property ${o} must be string:${e.message}`)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===ue||ue?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(!gt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=gt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=gt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=gt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=gt.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){if(!ne)throw e}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]=B(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(C,r)&&(r=C[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?gt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(ge.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),gt.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"+me(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;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Kt,r,o,i)),super.addEventListener(r,o,i),Cn(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==zt&&(this.events[t].type=zt):this.events[t]={name:t,type:zt,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};bn.receiveComponentEvent(c,e)}),isCapture:!1}}),this.updateNativeNode()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Gt,r,o,i)),super.removeEventListener(r,o,i),Cn(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ht)}),this.updateNativeNode()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,ln(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();be(this,n),this.component.defaultNativeStyle&&(n=f(f({},this.component.defaultNativeStyle),n));const r={name:this.component.name,props:f(f({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return ne||r.props&&(r.props.attributes=this.getNodeAttributes()),function(e,t){const n=t;e.component.name===re.TextInput&&Ut()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===re.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&pe("overflow-x and overflow-y for View can not work together"),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=Ut()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&pe("Only one child node is acceptable for View with overflow"),e.childNodes.length&&e.nodeType===Nn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Oe(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){gt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){gt.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=Object(i.toRaw)(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return nt().query(this).selectors.forEach(t=>{var n,r;xe(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&&(e[t.property]=t.value)})}),e=Pn.parseRem(f(f({},e),this.getInlineStyle())),e}hackNativeProps(e){const t=e;"img"===this.tagName&>.isIOS()&&(t.source=[{uri:t.src}],t.src=void 0)}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]=Y(r)?r(this):Object(i.toRaw)(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=Object(i.toRaw)(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=Object(i.toRaw)(r));const o=this.component.attributeMaps[t];if(K(o))return void(e[o]=Object(i.toRaw)(r));if(Y(o))return void(e[t]=Object(i.toRaw)(o(r)));const{name:s,propsValue:c,jointKey:a}=o;Y(c)&&(r=c(r)),a?(e[a]=null!==(n=e[a])&&void 0!==n?n:{},Object.assign(e[a],{[s]:Object(i.toRaw)(r)})):e[s]=Object(i.toRaw)(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=Object(i.toRaw)(n[t])}),this.hackNativeProps(e),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=f({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,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"+me(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){let e;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>e,set:t=>{e=void 0===t?"flex":t,this.updateNativeNode()}})}}function In(e){const t={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function n(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?gt.parseColor(t):t}function s(e){return"loop"===e?-1:e}function d(e){const{mode:o="timing",valueType:i,startValue:a,toValue:l}=e,d=u(e,c),p=f(f({},t),d);void 0!==i&&(p.valueType=e.valueType),p.startValue=n(p.valueType,a),p.toValue=n(p.valueType,l),p.repeatCount=s(p.repeatCount),p.mode=o;const h=new r.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function p(e,t={}){const n={};return Object.keys(e).forEach(o=>{if(Array.isArray(e[o])){const i=e[o],{repeatCount:c}=i[i.length-1],a=i.map(e=>{const{animationId:n,animation:r}=d(f(f({},e),{},{repeatCount:0}));return Object.assign(t,{[n]:r}),{animationId:n,follow:!0}}),{animationId:l,animation:u}=function(e,t=0){const n=new r.Hippy.AnimationSet({children:e,repeatCount:t}),o=n.getId();return{animation:n,animationId:o}}(a,s(c));n[o]={animationId:l},Object.assign(t,{[l]:u})}else{const r=e[o],{animationId:i,animation:s}=d(r);Object.assign(t,{[i]:s}),n[o]={animationId:i}}}),n}function h(e){const{transform:t}=e,n=u(e,a);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}e.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[_e("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()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=u(e.actions,l);this.animationIdsMap={};const r=p(n,this.animationIdsMap);if(t){const e=p(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=Object(i.toRaw)(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[_e(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[_e(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=h(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.start()}))},resume(){h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return Object(o.h)(this.tag,f({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}var An={install(e){In(e),St("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=gt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{St("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:i}=this.$attrs,s={onLayout:this.onLayout};return"function"==typeof e&&(s[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof i||(s[`on${n}Pulling`]=this[`on${n}Pulling`]),Object(o.h)("hi-pull-"+r,f(f({},s),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){St("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),St("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){gt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){gt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return Object(o.h)("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=Object(o.h)("div",null,this.$slots.default?this.$slots.default():null);return Object(o.h)("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){St("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}}}),St("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){gt.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=we.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return Object(o.h)("hi-waterfall",f(f({},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:""}},render(){return Object(o.h)("hi-waterfall-item",{type:this.type},this.$slots.default?this.$slots.default():null)}})}(e),function(e){St("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}}}),St("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}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){gt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){gt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=we.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return Object(o.h)("hi-swiper",f(f({},e),{},{ref:"swiper",initialPage:this.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return Object(o.h)("swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class Rn extends Pn{constructor(e){super(e),this.text=e,this.isNeedInsertToNative=!1}}class Mn extends Pn{showInputMenu(){}hideInputMenu(){}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=>gt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){gt.callUIFunction(this,"setValue",[e])}focus(){gt.callUIFunction(this,"focusTextInput",[])}blur(){gt.callUIFunction(this,"blurTextInput",[])}clear(){gt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>gt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class Ln extends Pn{scrollToIndex(e=0,t=0,n=!0){gt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&>.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class Fn extends kn{static createComment(e){return new Rn(e)}static createElement(e){switch(e){case"input":case"textarea":return new Mn(e);case"ul":return new Ln(e);default:return new Pn(e)}}static createTextNode(e){return new Tn(e)}constructor(){super(Nn.DocumentNode)}}const Vn={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),hn(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return Fn.createElement(e)},createComment:function(e){return Fn.createComment(e)},createText:function(e){return Fn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const $n=/(?:Once|Passive|Capture)$/;function Bn(e,t,n,r,i=null){var s;const c=e,a=null!==(s=c._vei)&&void 0!==s?s:c._vei={},l=a[t];if(r&&l)l.value=r;else{const[e,n]=function(e){let t=e;const n={};if($n.test(t)){let e=t.match($n);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match($n)}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){a[t]=function(e,t){const n=e=>{Object(o.callWithAsyncErrorHandling)(n.value,t,5,[e])};return n.value=e,n}(r,i);const s=a[t];c.addEventListener(e,s,n)}else c.removeEventListener(e,l,n),a[t]=void 0}}function Dn(e,t,n,r,o,i,c){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":!function(e,t,n){const r=e,o={};if(t&&!n)r.removeStyle();else{if(K(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];Se(t)||(o[Object(s.camelize)(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}(e,n,r);break;default:(e=>z.test(e))(t)?Bn(e,t,0,r,c):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let Un=!1;function zn(e){var t;if(e.width&&e.height){const{screen:n}=null===(t=null==r?void 0:r.Hippy)||void 0===t?void 0:t.device;n&&(n.width=e.width,n.height=e.height)}}r.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=f({},n);if(Un||(Un=!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};gt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:pe("Fail to create websocket connection",e)})}close(e,t){1===this.readyState&&(this.readyState=2,gt.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);gt.callNative("websocket","send",{id:this.webSocketId,data:e})}else pe("WebSocket is not connected")}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=>{Y(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=_e(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const Hn=['%c[Hippy-Vue-Next "3.0.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Wn(e,t){if(gt.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 Pn("div"),{statusBarHeight:s}=gt.Dimensions.screen;gt.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 Pn("img");r.setStyle("width",gt.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",()=>{gt.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 Yn=(e,t)=>{var n;const r=Object(o.createRenderer)(f({patchProp:Dn},Vn)).createApp(e);var i,s;r.use(Dt),r.use(An),"function"==typeof(null===(n=null==t?void 0:t.styleOptions)||void 0===n?void 0:n.beforeLoadStyle)&&(i=t.styleOptions.beforeLoadStyle,ve=i),t.silent&&(s=t.silent,le=s),function(e=!0){ue=e}(t.trimWhitespace);const{mount:c}=r;return r.mount=e=>{Xt("rootContainer",e);const n=function(e){const t=Fn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),r=c(n,!1,!1);return Xt("instance",r),Wn(t,r),r},r.$start=async e=>new Promise(n=>{gt.hippyNativeRegister.regist(t.appName,o=>{var i,s;const{__instanceId__:c}=o;fe(...Hn,"Start",t.appName,"with rootViewId",c,o);const a=Jt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:o,app:r,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},qt=l;const u={superProps:o,rootViewId:c};Y(e)?e(u):n(u)})}),r},Kn=(e,t)=>{Y(e)&&(1===t?be=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))}}.call(this,n("./node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.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 i})),n.d(t,"ITERATE_KEY",(function(){return v})),n.d(t,"ReactiveEffect",(function(){return y})),n.d(t,"computed",(function(){return Xe})),n.d(t,"customRef",(function(){return Ye})),n.d(t,"deferredComputed",(function(){return ot})),n.d(t,"effect",(function(){return _})),n.d(t,"effectScope",(function(){return s})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return a})),n.d(t,"isProxy",(function(){return Te})),n.d(t,"isReactive",(function(){return Ee})),n.d(t,"isReadonly",(function(){return Ne})),n.d(t,"isRef",(function(){return Le})),n.d(t,"isShallow",(function(){return ke})),n.d(t,"markRaw",(function(){return Pe})),n.d(t,"onScopeDispose",(function(){return l})),n.d(t,"pauseTracking",(function(){return j})),n.d(t,"proxyRefs",(function(){return He})),n.d(t,"reactive",(function(){return _e})),n.d(t,"readonly",(function(){return Se})),n.d(t,"ref",(function(){return Fe})),n.d(t,"resetTracking",(function(){return N})),n.d(t,"shallowReactive",(function(){return we})),n.d(t,"shallowReadonly",(function(){return xe})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return w})),n.d(t,"toRaw",(function(){return Ce})),n.d(t,"toRef",(function(){return qe})),n.d(t,"toRefs",(function(){return Ke})),n.d(t,"track",(function(){return k})),n.d(t,"trigger",(function(){return C})),n.d(t,"triggerRef",(function(){return De})),n.d(t,"unref",(function(){return Ue}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");let o;class i{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&m)>0,f=e=>(e.n&m)>0,p=new WeakMap;let h=0,m=1;let g;const v=Symbol(""),b=Symbol("");class y{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let e=g,t=S;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=g,g=this,S=!0,m=1<<++h,h<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&a.push(e)});else switch(void 0!==n&&a.push(c.get(n)),t){case"add":Object(r.isArray)(e)?Object(r.isIntegerKey)(n)&&a.push(c.get("length")):(a.push(c.get(v)),Object(r.isMap)(e)&&a.push(c.get(b)));break;case"delete":Object(r.isArray)(e)||(a.push(c.get(v)),Object(r.isMap)(e)&&a.push(c.get(b)));break;case"set":Object(r.isMap)(e)&&a.push(c.get(v))}if(1===a.length)a[0]&&P(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);P(u(e))}}function P(e,t){const n=Object(r.isArray)(e)?e:[...e];for(const e of n)e.computed&&I(e,t);for(const e of n)e.computed||I(e,t)}function I(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const A=Object(r.makeMap)("__proto__,__v_isRef,__isVue"),R=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.isSymbol)),M=D(),L=D(!1,!0),F=D(!0),V=D(!0,!0),$=B();function B(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Ce(this);for(let e=0,t=this.length;e{e[t]=function(...e){j();const n=Ce(this)[t].apply(this,e);return N(),n}}),e}function D(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&i===(e?t?Oe:ye:t?be:ve).get(n))return n;const s=Object(r.isArray)(n);if(!e&&s&&Object(r.hasOwn)($,o))return Reflect.get($,o,i);const c=Reflect.get(n,o,i);return(Object(r.isSymbol)(o)?R.has(o):A(o))?c:(e||k(n,0,o),t?c:Le(c)?s&&Object(r.isIntegerKey)(o)?c:c.value:Object(r.isObject)(c)?e?Se(c):_e(c):c)}}const U=H(),z=H(!0);function H(e=!1){return function(t,n,o,i){let s=t[n];if(Ne(s)&&Le(s)&&!Le(o))return!1;if(!e&&!Ne(o)&&(ke(o)||(o=Ce(o),s=Ce(s)),!Object(r.isArray)(t)&&Le(s)&&!Le(o)))return s.value=o,!0;const c=Object(r.isArray)(t)&&Object(r.isIntegerKey)(n)?Number(n)!0,deleteProperty:(e,t)=>!0},K=Object(r.extend)({},W,{get:L,set:z}),G=Object(r.extend)({},Y,{get:V}),q=e=>e,J=e=>Reflect.getPrototypeOf(e);function X(e,t,n=!1,r=!1){const o=Ce(e=e.__v_raw),i=Ce(t);n||(t!==i&&k(o,0,t),k(o,0,i));const{has:s}=J(o),c=r?q:n?Ae:Ie;return s.call(o,t)?c(e.get(t)):s.call(o,i)?c(e.get(i)):void(e!==o&&e.get(t))}function Z(e,t=!1){const n=this.__v_raw,r=Ce(n),o=Ce(e);return t||(e!==o&&k(r,0,e),k(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function Q(e,t=!1){return e=e.__v_raw,!t&&k(Ce(e),0,v),Reflect.get(e,"size",e)}function ee(e){e=Ce(e);const t=Ce(this);return J(t).has.call(t,e)||(t.add(e),C(t,"add",e,e)),this}function te(e,t){t=Ce(t);const n=Ce(this),{has:o,get:i}=J(n);let s=o.call(n,e);s||(e=Ce(e),s=o.call(n,e));const c=i.call(n,e);return n.set(e,t),s?Object(r.hasChanged)(t,c)&&C(n,"set",e,t):C(n,"add",e,t),this}function ne(e){const t=Ce(this),{has:n,get:r}=J(t);let o=n.call(t,e);o||(e=Ce(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&C(t,"delete",e,void 0),i}function re(){const e=Ce(this),t=0!==e.size,n=e.clear();return t&&C(e,"clear",void 0,void 0),n}function oe(e,t){return function(n,r){const o=this,i=o.__v_raw,s=Ce(i),c=t?q:e?Ae:Ie;return!e&&k(s,0,v),i.forEach((e,t)=>n.call(r,c(e),c(t),o))}}function ie(e,t,n){return function(...o){const i=this.__v_raw,s=Ce(i),c=Object(r.isMap)(s),a="entries"===e||e===Symbol.iterator&&c,l="keys"===e&&c,u=i[e](...o),d=n?q:t?Ae:Ie;return!t&&k(s,0,l?b:v),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function se(e){return function(...t){return"delete"!==e&&this}}function ce(){const e={get(e){return X(this,e)},get size(){return Q(this)},has:Z,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!1)},t={get(e){return X(this,e,!1,!0)},get size(){return Q(this)},has:Z,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!0)},n={get(e){return X(this,e,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear"),forEach:oe(!0,!1)},r={get(e){return X(this,e,!0,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear"),forEach:oe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ie(o,!1,!1),n[o]=ie(o,!0,!1),t[o]=ie(o,!1,!0),r[o]=ie(o,!0,!0)}),[e,n,t,r]}const[ae,le,ue,de]=ce();function fe(e,t){const n=t?e?de:ue:e?le:ae;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r.hasOwn)(n,o)&&o in t?n:t,o,i)}const pe={get:fe(!1,!1)},he={get:fe(!1,!0)},me={get:fe(!0,!1)},ge={get:fe(!0,!0)};const ve=new WeakMap,be=new WeakMap,ye=new WeakMap,Oe=new WeakMap;function _e(e){return Ne(e)?e:je(e,!1,W,pe,ve)}function we(e){return je(e,!1,K,he,be)}function Se(e){return je(e,!0,Y,me,ye)}function xe(e){return je(e,!0,G,ge,Oe)}function je(e,t,n,o,i){if(!Object(r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const c=(a=e).__v_skip||!Object.isExtensible(a)?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(r.toRawType)(a));var a;if(0===c)return e;const l=new Proxy(e,2===c?o:n);return i.set(e,l),l}function Ee(e){return Ne(e)?Ee(e.__v_raw):!(!e||!e.__v_isReactive)}function Ne(e){return!(!e||!e.__v_isReadonly)}function ke(e){return!(!e||!e.__v_isShallow)}function Te(e){return Ee(e)||Ne(e)}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function Pe(e){return Object(r.def)(e,"__v_skip",!0),e}const Ie=e=>Object(r.isObject)(e)?_e(e):e,Ae=e=>Object(r.isObject)(e)?Se(e):e;function Re(e){S&&g&&T((e=Ce(e)).dep||(e.dep=u()))}function Me(e,t){(e=Ce(e)).dep&&P(e.dep)}function Le(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return $e(e,!1)}function Ve(e){return $e(e,!0)}function $e(e,t){return Le(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ce(e),this._value=t?e:Ie(e)}get value(){return Re(this),this._value}set value(e){e=this.__v_isShallow?e:Ce(e),Object(r.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ie(e),Me(this))}}function De(e){Me(e)}function Ue(e){return Le(e)?e.value:e}const ze={get:(e,t,n)=>Ue(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function He(e){return Ee(e)?e:new Proxy(e,ze)}class We{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>Re(this),()=>Me(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ye(e){return new We(e)}function Ke(e){const t=Object(r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=qe(e,n);return t}class Ge{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function qe(e,t,n){const r=e[t];return Le(r)?r:new Ge(e,t,n)}class Je{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new y(e,()=>{this._dirty||(this._dirty=!0,Me(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ce(this);return Re(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Xe(e,t,n=!1){let o,i;const s=Object(r.isFunction)(e);s?(o=e,i=r.NOOP):(o=e.get,i=e.set);return new Je(o,i,s||!i,n)}var Ze;const Qe=Promise.resolve(),et=[];let tt=!1;const nt=()=>{for(let e=0;e{if(this.dep){if(e)t=this._value,n=!0;else if(!r){const e=n?t:this._value;r=!0,n=!1,o=()=>{this.effect.active&&this._get()!==e&&Me(this),r=!1},et.push(o),tt||(tt=!0,Qe.then(nt))}for(const e of this.dep)e.computed instanceof rt&&e.scheduler(!0)}var o;this._dirty=!0}),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return Re(this),Ce(this)._get()}}function ot(e){return new rt(e)}Ze="__v_isReadonly"},"../../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 xe})),n.d(t,"Comment",(function(){return ln})),n.d(t,"Fragment",(function(){return cn})),n.d(t,"KeepAlive",(function(){return Le})),n.d(t,"Static",(function(){return un})),n.d(t,"Suspense",(function(){return ie})),n.d(t,"Teleport",(function(){return sn})),n.d(t,"Text",(function(){return an})),n.d(t,"callWithAsyncErrorHandling",(function(){return l})),n.d(t,"callWithErrorHandling",(function(){return a})),n.d(t,"cloneVNode",(function(){return Pn})),n.d(t,"compatUtils",(function(){return kr})),n.d(t,"computed",(function(){return ar})),n.d(t,"createBlock",(function(){return On})),n.d(t,"createCommentVNode",(function(){return Rn})),n.d(t,"createElementBlock",(function(){return yn})),n.d(t,"createElementVNode",(function(){return Nn})),n.d(t,"createHydrationRenderer",(function(){return Xt})),n.d(t,"createPropsRestProxy",(function(){return vr})),n.d(t,"createRenderer",(function(){return Jt})),n.d(t,"createSlots",(function(){return dt})),n.d(t,"createStaticVNode",(function(){return An})),n.d(t,"createTextVNode",(function(){return In})),n.d(t,"createVNode",(function(){return kn})),n.d(t,"defineAsyncComponent",(function(){return Ae})),n.d(t,"defineComponent",(function(){return Pe})),n.d(t,"defineEmits",(function(){return ur})),n.d(t,"defineExpose",(function(){return dr})),n.d(t,"defineProps",(function(){return lr})),n.d(t,"devtools",(function(){return A})),n.d(t,"getCurrentInstance",(function(){return Hn})),n.d(t,"getTransitionRawChildren",(function(){return Ce})),n.d(t,"guardReactiveProps",(function(){return Cn})),n.d(t,"h",(function(){return yr})),n.d(t,"handleError",(function(){return u})),n.d(t,"initCustomFormatter",(function(){return wr})),n.d(t,"inject",(function(){return fe})),n.d(t,"isMemoSame",(function(){return xr})),n.d(t,"isRuntimeOnly",(function(){return er})),n.d(t,"isVNode",(function(){return _n})),n.d(t,"mergeDefaults",(function(){return gr})),n.d(t,"mergeProps",(function(){return Vn})),n.d(t,"nextTick",(function(){return x})),n.d(t,"onActivated",(function(){return Ve})),n.d(t,"onBeforeMount",(function(){return Ye})),n.d(t,"onBeforeUnmount",(function(){return Je})),n.d(t,"onBeforeUpdate",(function(){return Ge})),n.d(t,"onDeactivated",(function(){return $e})),n.d(t,"onErrorCaptured",(function(){return tt})),n.d(t,"onMounted",(function(){return Ke})),n.d(t,"onRenderTracked",(function(){return et})),n.d(t,"onRenderTriggered",(function(){return Qe})),n.d(t,"onServerPrefetch",(function(){return Ze})),n.d(t,"onUnmounted",(function(){return Xe})),n.d(t,"onUpdated",(function(){return qe})),n.d(t,"openBlock",(function(){return pn})),n.d(t,"popScopeId",(function(){return q})),n.d(t,"provide",(function(){return de})),n.d(t,"pushScopeId",(function(){return G})),n.d(t,"queuePostFlushCb",(function(){return k})),n.d(t,"registerRuntimeCompiler",(function(){return Qn})),n.d(t,"renderList",(function(){return ut})),n.d(t,"renderSlot",(function(){return ft})),n.d(t,"resolveComponent",(function(){return ot})),n.d(t,"resolveDirective",(function(){return ct})),n.d(t,"resolveDynamicComponent",(function(){return st})),n.d(t,"resolveFilter",(function(){return Nr})),n.d(t,"resolveTransitionHooks",(function(){return Ee})),n.d(t,"setBlockTracking",(function(){return vn})),n.d(t,"setDevtoolsHook",(function(){return F})),n.d(t,"setTransitionHooks",(function(){return Te})),n.d(t,"ssrContextKey",(function(){return Or})),n.d(t,"ssrUtils",(function(){return Er})),n.d(t,"toHandlers",(function(){return pt})),n.d(t,"transformVNodeArgs",(function(){return Sn})),n.d(t,"useAttrs",(function(){return hr})),n.d(t,"useSSRContext",(function(){return _r})),n.d(t,"useSlots",(function(){return pr})),n.d(t,"useTransitionState",(function(){return we})),n.d(t,"version",(function(){return jr})),n.d(t,"warn",(function(){return s})),n.d(t,"watch",(function(){return ve})),n.d(t,"watchEffect",(function(){return pe})),n.d(t,"watchPostEffect",(function(){return he})),n.d(t,"watchSyncEffect",(function(){return me})),n.d(t,"withAsyncContext",(function(){return br})),n.d(t,"withCtx",(function(){return X})),n.d(t,"withDefaults",(function(){return fr})),n.d(t,"withDirectives",(function(){return nt})),n.d(t,"withMemo",(function(){return Sr})),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,"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,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");n.d(t,"camelize",(function(){return o.camelize})),n.d(t,"capitalize",(function(){return o.capitalize})),n.d(t,"normalizeClass",(function(){return o.normalizeClass})),n.d(t,"normalizeProps",(function(){return o.normalizeProps})),n.d(t,"normalizeStyle",(function(){return o.normalizeStyle})),n.d(t,"toDisplayString",(function(){return o.toDisplayString})),n.d(t,"toHandlerKey",(function(){return o.toHandlerKey}));const i=[];function s(e,...t){Object(r.pauseTracking)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)a(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:e})=>`at <${sr(n,e.type)}>`).join("\n"),s]);else{const n=["[Vue warn]: "+e,...t];s.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+sr(e.component,e.type,r),i=">"+n;return e.props?[o,...c(e.props),i]:[o+i]}(e))}),t}(s)),console.warn(...n)}Object(r.resetTracking)()}function c(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(o.isString)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(o.isFunction)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Object(r.toRaw)(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function a(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){u(e,t,n)}return o}function l(e,t,n,r){if(Object(o.isFunction)(e)){const i=a(e,t,n,r);return i&&Object(o.isPromise)(i)&&i.catch(e=>{u(e,t,n)}),i}const i=[];for(let o=0;o>>1;P(p[r])P(e)-P(t)),O=0;Onull==e.id?1/0:e.id;function I(e){f=!1,d=!0,T(e),p.sort((e,t)=>P(e)-P(t));o.NOOP;try{for(h=0;hA.emit(e,...t)),R=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{F(e,t)}),setTimeout(()=>{A||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=!0,R=[])},3e3)}else M=!0,R=[]}const V=D("component:added"),$=D("component:updated"),B=D("component:removed");function D(e){return t=>{L(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function U(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),c=s&&t.slice(7);if(c&&c in r){const e=("modelValue"===c?"model":c)+"Modifiers",{number:t,trim:s}=r[e]||o.EMPTY_OBJ;s&&(i=n.map(e=>e.trim())),t&&(i=n.map(o.toNumber))}let a;__VUE_PROD_DEVTOOLS__&&function(e,t,n){L("component:emit",e.appContext.app,e,t,n)}(e,t,i);let u=r[a=Object(o.toHandlerKey)(t)]||r[a=Object(o.toHandlerKey)(Object(o.camelize)(t))];!u&&s&&(u=r[a=Object(o.toHandlerKey)(Object(o.hyphenate)(t))]),u&&l(u,e,6,i);const d=r[a+"Once"];if(d){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,l(d,e,6,i)}}function z(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let c={},a=!1;if(__VUE_OPTIONS_API__&&!Object(o.isFunction)(e)){const r=e=>{const n=z(e,t,!0);n&&(a=!0,Object(o.extend)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||a?(Object(o.isArray)(s)?s.forEach(e=>c[e]=null):Object(o.extend)(c,s),r.set(e,c),c):(r.set(e,null),null)}function H(e,t){return!(!e||!Object(o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(o.hasOwn)(e,Object(o.hyphenate)(t))||Object(o.hasOwn)(e,t))}let W=null,Y=null;function K(e){const t=W;return W=e,Y=e&&e.type.__scopeId||null,t}function G(e){Y=e}function q(){Y=null}const J=e=>X;function X(e,t=W,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&vn(-1);const o=K(t),i=e(...n);return K(o),r._d&&vn(1),__VUE_PROD_DEVTOOLS__&&$(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function Z(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[c],slots:a,attrs:l,emit:d,render:f,renderCache:p,data:h,setupState:m,ctx:g,inheritAttrs:v}=e;let b,y;const O=K(e);try{if(4&n.shapeFlag){const e=i||r;b=Mn(f.call(e,e,p,s,m,h,g)),y=l}else{const e=t;0,b=Mn(e.length>1?e(s,{attrs:l,slots:a,emit:d}):e(s,null)),y=t.props?l:ee(l)}}catch(t){dn.length=0,u(t,e,1),b=kn(ln)}let _=b;if(y&&!1!==v){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(c&&e.some(o.isModelListener)&&(y=te(y,c)),_=Pn(_,y))}return n.dirs&&(_=Pn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,K(O),b}function Q(e){let t;for(let n=0;n{let t;for(const n in e)("class"===n||"style"===n||Object(o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},te=(e,t)=>{const n={};for(const r in e)Object(o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function ne(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense,ie={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,c,a,l){null==e?function(e,t,n,r,o,i,s,c,a){const{p:l,o:{createElement:u}}=a,d=u("div"),f=e.suspense=ce(e,o,r,t,d,n,i,s,c,a);l(null,f.pendingBranch=e.ssContent,d,null,r,f,i,s),f.deps>0?(se(e,"onPending"),se(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),ue(f,e.ssFallback)):f.resolve()}(t,n,r,o,i,s,c,a,l):function(e,t,n,r,o,i,s,c,{p:a,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=f,wn(f,m)?(a(m,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():g&&(a(h,p,n,r,o,null,i,s,c),ue(d,p))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():(a(h,p,n,r,o,null,i,s,c),ue(d,p))):h&&wn(f,h)?(a(h,f,n,r,o,d,i,s,c),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0&&d.resolve()));else if(h&&wn(f,h))a(h,f,n,r,o,d,i,s,c),ue(d,f);else if(se(t,"onPending"),d.pendingBranch=f,d.pendingId++,a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,r,o,s,c,a,l)},hydrate:function(e,t,n,r,o,i,s,c,a){const l=t.suspense=ce(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,c,!0),u=a(e,l.pendingBranch=t.ssContent,n,l,i,s);0===l.deps&&l.resolve();return u},create:ce,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=ae(r?n.default:n),e.ssFallback=r?ae(n.fallback):kn(ln)}};function se(e,t){const n=e.props&&e.props[t];Object(o.isFunction)(n)&&n()}function ce(e,t,n,r,i,s,c,a,l,d,f=!1){const{p:p,m:h,um:m,n:g,o:{parentNode:v,remove:b}}=d,y=Object(o.toNumber)(e.props&&e.props.timeout),O={vnode:e,parent:t,parentComponent:n,isSVG:c,container:r,hiddenContainer:i,anchor:s,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:i,parentComponent:s,container:c}=O;if(O.isHydrating)O.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===O.pendingId&&h(r,c,t,0)});let{anchor:t}=O;n&&(t=g(n),m(n,s,O,!0)),e||h(r,c,t,0)}ue(O,r),O.pendingBranch=null,O.isInFallback=!1;let a=O.parent,l=!1;for(;a;){if(a.pendingBranch){a.effects.push(...i),l=!0;break}a=a.parent}l||k(i),O.effects=[],se(t,"onResolve")},fallback(e){if(!O.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:i}=O;se(t,"onFallback");const s=g(n),c=()=>{O.isInFallback&&(p(null,e,o,s,r,null,i,a,l),ue(O,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),O.isInFallback=!0,m(n,r,null,!0),u||c()},move(e,t,n){O.activeBranch&&h(O.activeBranch,e,t,n),O.container=e},next:()=>O.activeBranch&&g(O.activeBranch),registerDep(e,t){const n=!!O.pendingBranch;n&&O.deps++;const r=e.vnode.el;e.asyncDep.catch(t=>{u(t,e,0)}).then(o=>{if(e.isUnmounted||O.isUnmounted||O.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Zn(e,o,!1),r&&(i.el=r);const s=!r&&e.subTree.el;t(e,i,v(r||e.subTree.el),r?null:g(e.subTree),O,c,l),s&&b(s),re(e,i.el),n&&0==--O.deps&&O.resolve()})},unmount(e,t){O.isUnmounted=!0,O.activeBranch&&m(O.activeBranch,n,e,t),O.pendingBranch&&m(O.pendingBranch,n,e,t)}};return O}function ae(e){let t;if(Object(o.isFunction)(e)){const n=gn&&e._c;n&&(e._d=!1,pn()),e=e(),n&&(e._d=!0,t=fn,hn())}if(Object(o.isArray)(e)){const t=Q(e);0,e=t}return e=Mn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function le(e,t){t&&t.pendingBranch?Object(o.isArray)(e)?t.effects.push(...e):t.effects.push(e):k(e)}function ue(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,re(r,o))}function de(e,t){if(zn){let n=zn.provides;const r=zn.parent&&zn.parent.provides;r===n&&(n=zn.provides=Object.create(r)),n[e]=t}else 0}function fe(e,t,n=!1){const r=zn||W;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Object(o.isFunction)(t)?t.call(r.proxy):t}else 0}function pe(e,t){return be(e,null,t)}function he(e,t){return be(e,null,{flush:"post"})}function me(e,t){return be(e,null,{flush:"sync"})}const ge={};function ve(e,t,n){return be(e,t,n)}function be(e,t,{immediate:n,deep:i,flush:s,onTrack:c,onTrigger:u}=o.EMPTY_OBJ){const d=zn;let f,p,h=!1,b=!1;if(Object(r.isRef)(e)?(f=()=>e.value,h=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(f=()=>e,i=!0):Object(o.isArray)(e)?(b=!0,h=e.some(e=>Object(r.isReactive)(e)||Object(r.isShallow)(e)),f=()=>e.map(e=>Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?_e(e):Object(o.isFunction)(e)?a(e,d,2):void 0)):f=Object(o.isFunction)(e)?t?()=>a(e,d,2):()=>{if(!d||!d.isUnmounted)return p&&p(),l(e,d,3,[y])}:o.NOOP,t&&i){const e=f;f=()=>_e(e())}let y=e=>{p=S.onStop=()=>{a(e,d,4)}};if(Jn)return y=o.NOOP,t?n&&l(t,d,3,[f(),b?[]:void 0,y]):f(),o.NOOP;let O=b?[]:ge;const _=()=>{if(S.active)if(t){const e=S.run();(i||h||(b?e.some((e,t)=>Object(o.hasChanged)(e,O[t])):Object(o.hasChanged)(e,O)))&&(p&&p(),l(t,d,3,[e,O===ge?void 0:O,y]),O=e)}else S.run()};let w;_.allowRecurse=!!t,w="sync"===s?_:"post"===s?()=>qt(_,d&&d.suspense):()=>function(e){N(e,g,m,v)}(_);const S=new r.ReactiveEffect(f,w);return t?n?_():O=S.run():"post"===s?qt(S.run.bind(S),d&&d.suspense):S.run(),()=>{S.stop(),d&&d.scope&&Object(o.remove)(d.scope.effects,S)}}function ye(e,t,n){const r=this.proxy,i=Object(o.isString)(e)?e.includes(".")?Oe(r,e):()=>r[e]:e.bind(r,r);let s;Object(o.isFunction)(t)?s=t:(s=t.handler,n=t);const c=zn;Wn(this);const a=be(i,s.bind(r),n);return c?Wn(c):Yn(),a}function Oe(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{_e(e,t)});else if(Object(o.isPlainObject)(e))for(const n in e)_e(e[n],t);return e}function we(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ke(()=>{e.isMounted=!0}),Je(()=>{e.isUnmounting=!0}),e}const Se=[Function,Array],xe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Se,onEnter:Se,onAfterEnter:Se,onEnterCancelled:Se,onBeforeLeave:Se,onLeave:Se,onAfterLeave:Se,onLeaveCancelled:Se,onBeforeAppear:Se,onAppear:Se,onAfterAppear:Se,onAppearCancelled:Se},setup(e,{slots:t}){const n=Hn(),o=we();let i;return()=>{const s=t.default&&Ce(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){let e=!1;for(const t of s)if(t.type!==ln){0,c=t,e=!0;break}}const a=Object(r.toRaw)(e),{mode:l}=a;if(o.isLeaving)return Ne(c);const u=ke(c);if(!u)return Ne(c);const d=Ee(u,a,o,n);Te(u,d);const f=n.subTree,p=f&&ke(f);let h=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(p&&p.type!==ln&&(!wn(u,p)||h)){const e=Ee(p,a,o,n);if(Te(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Ne(c);"in-out"===l&&u.type!==ln&&(e.delayLeave=(e,t,n)=>{je(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return c}}};function je(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ee(e,t,n,r){const{appear:i,mode:s,persisted:c=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:y,onAppearCancelled:O}=t,_=String(e.key),w=je(n,e),S=(e,t)=>{e&&l(e,r,9,t)},x=(e,t)=>{const n=t[1];S(e,t),Object(o.isArray)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},j={mode:s,persisted:c,beforeEnter(t){let r=a;if(!n.isMounted){if(!i)return;r=v||a}t._leaveCb&&t._leaveCb(!0);const o=w[_];o&&wn(e,o)&&o.el._leaveCb&&o.el._leaveCb(),S(r,[t])},enter(e){let t=u,r=d,o=f;if(!n.isMounted){if(!i)return;t=b||u,r=y||d,o=O||f}let s=!1;const c=e._enterCb=t=>{s||(s=!0,S(t?o:r,[e]),j.delayedLeave&&j.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(p,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,r(),S(n?g:m,[t]),t._leaveCb=void 0,w[o]===e&&delete w[o])};w[o]=e,h?x(h,[t,s]):s()},clone:e=>Ee(e,t,n,r)};return j}function Ne(e){if(Me(e))return(e=Pn(e)).children=null,e}function ke(e){return Me(e)?e.children?e.children[0]:void 0:e}function Te(e,t){6&e.shapeFlag&&e.component?Te(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 Ce(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;e!!e.type.__asyncLoader;function Ae(e){Object(o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:c,suspensible:a=!0,onError:l}=e;let d,f=null,p=0;const h=()=>{let e;return f||(e=f=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((p++,f=null,h())),()=>n(e),p+1)});throw e}).then(t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),d=t,t)))};return Pe({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return d},setup(){const e=zn;if(d)return()=>Re(d,e);const t=t=>{f=null,u(t,e,13,!i)};if(a&&e.suspense||Jn)return h().then(t=>()=>Re(t,e)).catch(e=>(t(e),()=>i?kn(i,{error:e}):null));const o=Object(r.ref)(!1),l=Object(r.ref)(),p=Object(r.ref)(!!s);return s&&setTimeout(()=>{p.value=!1},s),null!=c&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}},c),h().then(()=>{o.value=!0,e.parent&&Me(e.parent.vnode)&&j(e.parent.update)}).catch(e=>{t(e),l.value=e}),()=>o.value&&d?Re(d,e):l.value&&i?kn(i,{error:l.value}):n&&!p.value?kn(n):void 0}})}function Re(e,{vnode:{ref:t,props:n,children:r,shapeFlag:o},parent:i}){const s=kn(e,n,r);return s.ref=t,s}const Me=e=>e.type.__isKeepAlive,Le={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Hn(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let c=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=i);const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:f}}}=r,p=f("div");function h(e){Ue(e),d(e,n,a,!0)}function m(e){i.forEach((t,n)=>{const r=ir(t.type);!r||e&&e(r)||g(n)})}function g(e){const t=i.get(e);c&&t.type===c.type?c&&Ue(c):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,a),l(s.vnode,e,t,n,s,a,r,e.slotScopeIds,i),qt(()=>{s.isDeactivated=!1,s.a&&Object(o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&$n(t,s.parent,e)},a),__VUE_PROD_DEVTOOLS__&&V(s)},r.deactivate=e=>{const t=e.component;u(e,p,null,1,a),qt(()=>{t.da&&Object(o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&$n(n,t.parent,e),t.isDeactivated=!0},a),__VUE_PROD_DEVTOOLS__&&V(t)},ve(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Fe(e,t)),t&&m(e=>!Fe(t,e))},{flush:"post",deep:!0});let v=null;const b=()=>{null!=v&&i.set(v,ze(n.subTree))};return Ke(b),qe(b),Je(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=ze(t);if(e.type!==o.type)h(e);else{Ue(o);const e=o.component.da;e&&qt(e,r)}})}),()=>{if(v=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!(_n(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return c=null,r;let o=ze(r);const a=o.type,l=ir(Ie(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Fe(u,l))||d&&l&&Fe(d,l))return c=o,r;const p=null==o.key?a:o.key,h=i.get(p);return o.el&&(o=Pn(o),128&r.shapeFlag&&(r.ssContent=o)),v=p,h?(o.el=h.el,o.component=h.component,o.transition&&Te(o,o.transition),o.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),f&&s.size>parseInt(f,10)&&g(s.values().next().value)),o.shapeFlag|=256,c=o,oe(r.type)?r:o}}};function Fe(e,t){return Object(o.isArray)(e)?e.some(e=>Fe(e,t)):Object(o.isString)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Ve(e,t){Be(e,"a",t)}function $e(e,t){Be(e,"da",t)}function Be(e,t,n=zn){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(He(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Me(e.parent.vnode)&&De(r,t,n,e),e=e.parent}}function De(e,t,n,r){const i=He(t,e,r,!0);Xe(()=>{Object(o.remove)(r[t],i)},n)}function Ue(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function ze(e){return 128&e.shapeFlag?e.ssContent:e}function He(e,t,n=zn,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Object(r.pauseTracking)(),Wn(n);const i=l(t,n,e,o);return Yn(),Object(r.resetTracking)(),i});return o?i.unshift(s):i.push(s),s}}const We=e=>(t,n=zn)=>(!Jn||"sp"===e)&&He(e,t,n),Ye=We("bm"),Ke=We("m"),Ge=We("bu"),qe=We("u"),Je=We("bum"),Xe=We("um"),Ze=We("sp"),Qe=We("rtg"),et=We("rtc");function tt(e,t=zn){He("ec",e,t)}function nt(e,t){const n=W;if(null===n)return e;const r=rr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r!_n(t)||t.type!==ln&&!(t.type===cn&&!e(t.children)))?t:null}(i(n)),c=On(cn,{key:n.key||"_"+t},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function pt(e){const t={};for(const n in e)t[Object(o.toHandlerKey)(n)]=e[n];return t}const ht=e=>e?Kn(e)?rr(e)||e.proxy:ht(e.parent):null,mt=Object(o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ht(e.parent),$root:e=>ht(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?wt(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>j(e.update)),$nextTick:e=>e.n||(e.n=x.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?ye.bind(e):o.NOOP}),gt={get({_:e},t){const{ctx:n,setupState:i,data:s,props:c,accessCache:a,type:l,appContext:u}=e;let d;if("$"!==t[0]){const r=a[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return c[t]}else{if(i!==o.EMPTY_OBJ&&Object(o.hasOwn)(i,t))return a[t]=1,i[t];if(s!==o.EMPTY_OBJ&&Object(o.hasOwn)(s,t))return a[t]=2,s[t];if((d=e.propsOptions[0])&&Object(o.hasOwn)(d,t))return a[t]=3,c[t];if(n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!bt||(a[t]=0)}}const f=mt[t];let p,h;return f?("$attrs"===t&&Object(r.track)(e,"get",t),f(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t)?(a[t]=4,n[t]):(h=u.config.globalProperties,Object(o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return i!==o.EMPTY_OBJ&&Object(o.hasOwn)(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&Object(o.hasOwn)(r,t)?(r[t]=n,!0):!Object(o.hasOwn)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!n[c]||e!==o.EMPTY_OBJ&&Object(o.hasOwn)(e,c)||t!==o.EMPTY_OBJ&&Object(o.hasOwn)(t,c)||(a=s[0])&&Object(o.hasOwn)(a,c)||Object(o.hasOwn)(r,c)||Object(o.hasOwn)(mt,c)||Object(o.hasOwn)(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const vt=Object(o.extend)({},gt,{get(e,t){if(t!==Symbol.unscopables)return gt.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(o.isGloballyWhitelisted)(t)});let bt=!0;function yt(e){const t=wt(e),n=e.proxy,i=e.ctx;bt=!1,t.beforeCreate&&Ot(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:a,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:v,deactivated:b,beforeDestroy:y,beforeUnmount:O,destroyed:_,unmounted:w,render:S,renderTracked:x,renderTriggered:j,errorCaptured:E,serverPrefetch:N,expose:k,inheritAttrs:T,components:C,directives:P,filters:I}=t;if(d&&function(e,t,n=o.NOOP,i=!1){Object(o.isArray)(e)&&(e=Et(e));for(const n in e){const s=e[n];let c;c=Object(o.isObject)(s)?"default"in s?fe(s.from||n,s.default,!0):fe(s.from||n):fe(s),Object(r.isRef)(c)&&i?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e}):t[n]=c}}(d,i,null,e.appContext.config.unwrapInjectedRef),a)for(const e in a){const t=a[e];Object(o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,Object(o.isObject)(t)&&(e.data=Object(r.reactive)(t))}if(bt=!0,c)for(const e in c){const t=c[e],r=Object(o.isFunction)(t)?t.bind(n,n):Object(o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP;0;const s=!Object(o.isFunction)(t)&&Object(o.isFunction)(t.set)?t.set.bind(n):o.NOOP,a=ar({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const e in l)_t(l[e],i,n,e);if(u){const e=Object(o.isFunction)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{de(t,e[t])})}function A(e,t){Object(o.isArray)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(f&&Ot(f,e,"c"),A(Ye,p),A(Ke,h),A(Ge,m),A(qe,g),A(Ve,v),A($e,b),A(tt,E),A(et,x),A(Qe,j),A(Je,O),A(Xe,w),A(Ze,N),Object(o.isArray)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=T&&(e.inheritAttrs=T),C&&(e.components=C),P&&(e.directives=P)}function Ot(e,t,n){l(Object(o.isArray)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function _t(e,t,n,r){const i=r.includes(".")?Oe(n,r):()=>n[r];if(Object(o.isString)(e)){const n=t[e];Object(o.isFunction)(n)&&ve(i,n)}else if(Object(o.isFunction)(e))ve(i,e.bind(n));else if(Object(o.isObject)(e))if(Object(o.isArray)(e))e.forEach(e=>_t(e,t,n,r));else{const r=Object(o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(o.isFunction)(r)&&ve(i,r,e)}else 0}function wt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:o.length||n||r?(a={},o.length&&o.forEach(e=>St(a,e,s,!0)),St(a,t,s)):a=t,i.set(t,a),a}function St(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&St(e,i,n,!0),o&&o.forEach(t=>St(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=xt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const xt={data:jt,props:kt,emits:kt,methods:kt,computed:kt,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:kt,directives:kt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(o.extend)(Object.create(null),e);for(const r in t)n[r]=Nt(e[r],t[r]);return n},provide:jt,inject:function(e,t){return kt(Et(e),Et(t))}};function jt(e,t){return t?e?function(){return Object(o.extend)(Object(o.isFunction)(e)?e.call(this,this):e,Object(o.isFunction)(t)?t.call(this,this):t)}:t:e}function Et(e){if(Object(o.isArray)(e)){const t={};for(let n=0;n{l=!0;const[n,r]=Pt(e,t,!0);Object(o.extend)(c,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if(Object(o.isArray)(s))for(let e=0;e-1,r[1]=n<0||e-1||Object(o.hasOwn)(r,"default"))&&a.push(t)}}}}const u=[c,a];return r.set(e,u),u}function It(e){return"$"!==e[0]}function At(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Rt(e,t){return At(e)===At(t)}function Mt(e,t){return Object(o.isArray)(t)?t.findIndex(t=>Rt(t,e)):Object(o.isFunction)(t)&&Rt(t,e)?0:-1}const Lt=e=>"_"===e[0]||"$stable"===e,Ft=e=>Object(o.isArray)(e)?e.map(Mn):[Mn(e)],Vt=(e,t,n)=>{if(t._n)return t;const r=X((...e)=>Ft(t(...e)),n);return r._c=!1,r},$t=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Lt(n))continue;const i=e[n];if(Object(o.isFunction)(i))t[n]=Vt(0,i,r);else if(null!=i){0;const e=Ft(i);t[n]=()=>e}}},Bt=(e,t)=>{const n=Ft(t);e.slots.default=()=>n};function Dt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ut=0;function zt(e,t){return function(n,r=null){Object(o.isFunction)(n)||(n=Object.assign({},n)),null==r||Object(o.isObject)(r)||(r=null);const i=Dt(),s=new Set;let c=!1;const a=i.app={_uid:Ut++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:jr,get config(){return i.config},set config(e){0},use:(e,...t)=>(s.has(e)||(e&&Object(o.isFunction)(e.install)?(s.add(e),e.install(a,...t)):Object(o.isFunction)(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,s,l){if(!c){0;const u=kn(n,r);return u.appContext=i,s&&t?t(u,o):e(u,o,l),c=!0,a._container=o,o.__vue_app__=a,__VUE_PROD_DEVTOOLS__&&(a._instance=u.component,function(e,t){L("app:init",e,t,{Fragment:cn,Text:an,Comment:ln,Static:un})}(a,jr)),rr(u.component)||u.component.proxy}},unmount(){c&&(e(null,a._container),__VUE_PROD_DEVTOOLS__&&(a._instance=null,function(e){L("app:unmount",e)}(a)),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a)};return a}}function Ht(e,t,n,i,s=!1){if(Object(o.isArray)(e))return void e.forEach((e,r)=>Ht(e,t&&(Object(o.isArray)(t)?t[r]:t),n,i,s));if(Ie(i)&&!s)return;const c=4&i.shapeFlag?rr(i.component)||i.component.proxy:i.el,l=s?null:c,{i:u,r:d}=e;const f=t&&t.r,p=u.refs===o.EMPTY_OBJ?u.refs={}:u.refs,h=u.setupState;if(null!=f&&f!==d&&(Object(o.isString)(f)?(p[f]=null,Object(o.hasOwn)(h,f)&&(h[f]=null)):Object(r.isRef)(f)&&(f.value=null)),Object(o.isFunction)(d))a(d,u,12,[l,p]);else{const t=Object(o.isString)(d),i=Object(r.isRef)(d);if(t||i){const r=()=>{if(e.f){const n=t?p[d]:d.value;s?Object(o.isArray)(n)&&Object(o.remove)(n,c):Object(o.isArray)(n)?n.includes(c)||n.push(c):t?(p[d]=[c],Object(o.hasOwn)(h,d)&&(h[d]=p[d])):(d.value=[c],e.k&&(p[e.k]=d.value))}else t?(p[d]=l,Object(o.hasOwn)(h,d)&&(h[d]=l)):i&&(d.value=l,e.k&&(p[e.k]=l))};l?(r.id=-1,qt(r,n)):r()}else 0}}let Wt=!1;const Yt=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Kt=e=>8===e.nodeType;function Gt(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:s,parentNode:c,remove:a,insert:l,createComment:u}}=e,d=(n,r,o,a,u,v=!1)=>{const b=Kt(n)&&"["===n.data,y=()=>m(n,r,o,a,u,b),{type:O,ref:_,shapeFlag:w,patchFlag:S}=r,x=n.nodeType;r.el=n,-2===S&&(v=!1,r.dynamicChildren=null);let j=null;switch(O){case an:3!==x?""===r.children?(l(r.el=i(""),c(n),n),j=n):j=y():(n.data!==r.children&&(Wt=!0,n.data=r.children),j=s(n));break;case ln:j=8!==x||b?y():s(n);break;case un:if(1===x||3===x){j=n;const e=!r.children.length;for(let t=0;t{c=c||!!t.dynamicChildren;const{type:l,props:u,patchFlag:d,shapeFlag:f,dirs:h}=t,m="input"===l&&h||"option"===l;if(m||-1!==d){if(h&&rt(t,null,n,"created"),u)if(m||!c||48&d)for(const t in u)(m&&t.endsWith("value")||Object(o.isOn)(t)&&!Object(o.isReservedProp)(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let l;if((l=u&&u.onVnodeBeforeMount)&&$n(l,n,t),h&&rt(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||h)&&le(()=>{l&&$n(l,n,t),h&&rt(t,null,n,"mounted")},i),16&f&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,i,s,c);for(;r;){Wt=!0;const e=r;r=r.nextSibling,a(e)}}else 8&f&&e.textContent!==t.children&&(Wt=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,i,s,c)=>{c=c||!!t.dynamicChildren;const a=t.children,l=a.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const d=c(e),f=p(s(e),t,d,n,r,o,i);return f&&Kt(f)&&"]"===f.data?s(t.anchor=f):(Wt=!0,l(t.anchor=u("]"),d,f),f)},m=(e,t,r,o,i,l)=>{if(Wt=!0,t.el=null,l){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;a(n)}}const u=s(e),d=c(e);return a(e),n(null,t,d,u,r,o,Yt(d),i),u},g=e=>{let t=0;for(;e;)if((e=s(e))&&Kt(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return s(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),C(),void(t._vnode=e);Wt=!1,d(t.firstChild,e,null,null,null),C(),t._vnode=e,Wt&&console.error("Hydration completed but contains mismatches.")},d]}const qt=le;function Jt(e){return Zt(e)}function Xt(e){return Zt(e,Gt)}function Zt(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(o.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Object(o.getGlobalThis)().__VUE_PROD_DEVTOOLS__=!1);const n=Object(o.getGlobalThis)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&F(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:s,patchProp:c,createElement:a,createText:l,createComment:u,setText:d,setElementText:f,parentNode:m,nextSibling:g,setScopeId:v=o.NOOP,cloneNode:b,insertStaticContent:y}=e,O=(e,t,n,r=null,o=null,i=null,s=!1,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!wn(e,t)&&(r=oe(e),J(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case an:_(e,t,n,r);break;case ln:w(e,t,n,r);break;case un:null==e&&S(t,n,r,s);break;case cn:M(e,t,n,r,o,i,s,c,a);break;default:1&d?E(e,t,n,r,o,i,s,c,a):6&d?L(e,t,n,r,o,i,s,c,a):(64&d||128&d)&&l.process(e,t,n,r,o,i,s,c,a,se)}null!=u&&o&&Ht(u,e&&e.ref,i,t||e,!t)},_=(e,t,n,r)=>{if(null==e)i(t.el=l(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,n,r)=>{null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=y(e.children,t,n,r,e.el,e.anchor)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),s(e),e=n;s(t)},E=(e,t,n,r,o,i,s,c,a)=>{s=s||"svg"===t.type,null==e?N(t,n,r,o,i,s,c,a):I(e,t,o,i,s,c,a)},N=(e,t,n,r,s,l,u,d)=>{let p,h;const{type:m,props:g,shapeFlag:v,transition:y,patchFlag:O,dirs:_}=e;if(e.el&&void 0!==b&&-1===O)p=e.el=b(e.el);else{if(p=e.el=a(e.type,l,g&&g.is,g),8&v?f(p,e.children):16&v&&P(e.children,p,null,r,s,l&&"foreignObject"!==m,u,d),_&&rt(e,null,r,"created"),g){for(const t in g)"value"===t||Object(o.isReservedProp)(t)||c(p,t,null,g[t],l,e.children,r,s,te);"value"in g&&c(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&$n(h,r,e)}k(p,e,e.scopeId,u,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:r,enumerable:!1})),_&&rt(e,null,r,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;w&&y.beforeEnter(p),i(p,t,n),((h=g&&g.onVnodeMounted)||w||_)&&qt(()=>{h&&$n(h,r,e),w&&y.enter(p),_&&rt(e,null,r,"mounted")},s)},k=(e,t,n,r,o)=>{if(n&&v(e,n),r)for(let t=0;t{for(let l=a;l{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let g;n&&Qt(n,!1),(g=m.onVnodeBeforeUpdate)&&$n(g,n,t,e),p&&rt(t,e,n,"beforeUpdate"),n&&Qt(n,!0);const v=i&&"foreignObject"!==t.type;if(d?A(e.dynamicChildren,d,l,n,r,v,s):a||Y(e,t,l,null,n,r,v,s,!1),u>0){if(16&u)R(l,t,h,m,n,r,i);else if(2&u&&h.class!==m.class&&c(l,"class",null,m.class,i),4&u&&c(l,"style",h.style,m.style,i),8&u){const o=t.dynamicProps;for(let t=0;t{g&&$n(g,n,t,e),p&&rt(t,e,n,"updated")},r)},A=(e,t,n,r,o,i,s)=>{for(let c=0;c{if(n!==r){for(const l in r){if(Object(o.isReservedProp)(l))continue;const u=r[l],d=n[l];u!==d&&"value"!==l&&c(e,l,d,u,a,t.children,i,s,te)}if(n!==o.EMPTY_OBJ)for(const l in n)Object(o.isReservedProp)(l)||l in r||c(e,l,n[l],null,a,t.children,i,s,te);"value"in r&&c(e,"value",n.value,r.value)}},M=(e,t,n,r,o,s,c,a,u)=>{const d=t.el=e?e.el:l(""),f=t.anchor=e?e.anchor:l("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(i(d,n,r),i(f,n,r),P(t.children,n,f,o,s,c,a,u)):p>0&&64&p&&h&&e.dynamicChildren?(A(e.dynamicChildren,h,n,o,s,c,a),(null!=t.key||o&&t===o.subTree)&&en(e,t,!0)):Y(e,t,n,f,o,s,c,a,u)},L=(e,t,n,r,o,i,s,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):D(t,n,r,o,i,s,a):U(e,t,a)},D=(e,t,n,r,o,i,s)=>{const c=e.component=Un(e,r,o);if(Me(e)&&(c.ctx.renderer=se),Xn(c),c.asyncDep){if(o&&o.registerDep(c,z),!e.el){const e=c.subTree=kn(ln);w(null,e,t,n)}}else z(c,e,t,n,o,i,s)},U=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:c,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||r!==s&&(r?!s||ne(r,s,l):!!s);if(1024&a)return!0;if(16&a)return r?ne(r,s,l):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;th&&p.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,i,s,c,a)=>{const l=e.effect=new r.ReactiveEffect(()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:l,vnode:u}=e,d=n;0,Qt(e,!1),n?(n.el=u.el,W(e,n,a)):n=u,r&&Object(o.invokeArrayFns)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$n(t,l,n,u),Qt(e,!0);const f=Z(e);0;const p=e.subTree;e.subTree=f,O(p,f,m(p.el),oe(p),e,s,c),n.el=f.el,null===d&&re(e,f.el),i&&qt(i,s),(t=n.props&&n.props.onVnodeUpdated)&&qt(()=>$n(t,l,n,u),s),__VUE_PROD_DEVTOOLS__&&$(e)}else{let r;const{el:a,props:l}=t,{bm:u,m:d,parent:f}=e,p=Ie(t);if(Qt(e,!1),u&&Object(o.invokeArrayFns)(u),!p&&(r=l&&l.onVnodeBeforeMount)&&$n(r,f,t),Qt(e,!0),a&&ae){const n=()=>{e.subTree=Z(e),ae(a,e.subTree,e,s,null)};p?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Z(e);0,O(null,r,n,i,e,s,c),t.el=r.el}if(d&&qt(d,s),!p&&(r=l&&l.onVnodeMounted)){const e=t;qt(()=>$n(r,f,e),s)}(256&t.shapeFlag||f&&Ie(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&qt(e.a,s),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&V(e),t=n=i=null}},()=>j(u),e.scope),u=e.update=()=>l.run();u.id=e.uid,Qt(e,!0),u()},W=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:c,vnode:{patchFlag:a}}=e,l=Object(r.toRaw)(s),[u]=e.propsOptions;let d=!1;if(!(i||a>0)||16&a){let r;Tt(e,t,s,c)&&(d=!0);for(const i in l)t&&(Object(o.hasOwn)(t,i)||(r=Object(o.hyphenate)(i))!==i&&Object(o.hasOwn)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=Ct(u,l,i,void 0,e,!0)):delete s[i]);if(c!==l)for(const e in c)t&&Object(o.hasOwn)(t,e)||(delete c[e],d=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let s=!0,c=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(Object(o.extend)(i,t),n||1!==e||delete i._):(s=!t.$stable,$t(t,i)),c=t}else t&&(Bt(e,t),c={default:1});if(s)for(const e in i)Lt(e)||e in c||delete i[e]})(e,t.children,n),Object(r.pauseTracking)(),T(void 0,e.update),Object(r.resetTracking)()},Y=(e,t,n,r,o,i,s,c,a=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void G(l,d,n,r,o,i,s,c,a);if(256&p)return void K(l,d,n,r,o,i,s,c,a)}8&h?(16&u&&te(l,o,i),d!==l&&f(n,d)):16&u?16&h?G(l,d,n,r,o,i,s,c,a):te(l,o,i,!0):(8&u&&f(n,""),16&h&&P(d,n,r,o,i,s,c,a))},K=(e,t,n,r,i,s,c,a,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const u=e.length,d=t.length,f=Math.min(u,d);let p;for(p=0;pd?te(e,i,s,!0,!1,f):P(t,n,r,i,s,c,a,l,f)},G=(e,t,n,r,i,s,c,a,l)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const r=e[u],o=t[u]=l?Ln(t[u]):Mn(t[u]);if(!wn(r,o))break;O(r,o,n,null,i,s,c,a,l),u++}for(;u<=f&&u<=p;){const r=e[f],o=t[p]=l?Ln(t[p]):Mn(t[p]);if(!wn(r,o))break;O(r,o,n,null,i,s,c,a,l),f--,p--}if(u>f){if(u<=p){const e=p+1,o=ep)for(;u<=f;)J(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?Ln(t[u]):Mn(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const y=p-m+1;let _=!1,w=0;const S=new Array(y);for(u=0;u=y){J(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(v=m;v<=p;v++)if(0===S[v-m]&&wn(r,t[v])){o=v;break}void 0===o?J(r,i,s,!0):(S[o-m]=u+1,o>=w?w=o:_=!0,O(r,t[o],n,null,i,s,c,a,l),b++)}const x=_?function(e){const t=e.slice(),n=[0];let r,o,i,s,c;const a=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(v=x.length-1,u=y-1;u>=0;u--){const e=m+u,o=t[e],f=e+1{const{el:s,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)return void q(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void c.move(e,t,n,se);if(c===cn){i(s,t,n);for(let e=0;e{let o;for(;e&&e!==t;)o=g(e),i(e,n,r),e=o;i(t,n,r)})(e,t,n);if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(s),i(s,t,n),qt(()=>a.enter(s),o);else{const{leave:e,delayLeave:r,afterLeave:o}=a,c=()=>i(s,t,n),l=()=>{e(s,()=>{c(),o&&o()})};r?r(s,c,l):l()}else i(s,t,n)},J=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=c&&Ht(c,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&f,h=!Ie(e);let m;if(h&&(m=s&&s.onVnodeBeforeUnmount)&&$n(m,t,e),6&u)ee(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);p&&rt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,se,r):l&&(i!==cn||d>0&&64&d)?te(l,t,n,!1,!0):(i===cn&&384&d||!o&&16&u)&&te(a,t,n),r&&X(e)}(h&&(m=s&&s.onVnodeUnmounted)||p)&&qt(()=>{m&&$n(m,t,e),p&&rt(e,null,t,"unmounted")},n)},X=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===cn)return void Q(n,r);if(t===un)return void x(e);const i=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,s=()=>t(n,i);r?r(e.el,i,s):s()}else i()},Q=(e,t)=>{let n;for(;e!==t;)n=g(e),s(e),e=n;s(t)},ee=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:c,um:a}=e;r&&Object(o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,J(c,e,t,n)),a&&qt(a,t),qt(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&B(e)},te=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?oe(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el),ie=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):O(t._vnode||null,e,t,null,null,null,n),C(),t._vnode=e},se={p:O,um:J,m:q,r:X,mt:D,mc:P,pc:Y,pbc:A,n:oe,o:e};let ce,ae;return t&&([ce,ae]=t(se)),{render:ie,hydrate:ce,createApp:zt(ie,ce)}}function Qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function en(e,t,n=!1){const r=e.children,i=t.children;if(Object(o.isArray)(r)&&Object(o.isArray)(i))for(let e=0;ee&&(e.disabled||""===e.disabled),nn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rn=(e,t)=>{const n=e&&e.to;if(Object(o.isString)(n)){if(t){const e=t(n);return e}return null}return n};function on(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:c,shapeFlag:a,children:l,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||tn(u))&&16&a)for(let e=0;e{16&b&&u(y,e,t,o,i,s,c,a)};v?g(n,l):d&&g(d,f)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=tn(e.props),g=m?n:u,b=m?r:p;if(s=s||nn(u),O?(f(e.dynamicChildren,O,g,o,i,s,c),en(e,t,!0)):a||d(e,t,g,b,o,i,s,c,!1),v)m||on(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=rn(t.props,h);e&&on(t,e,null,l,0)}else m&&on(t,u,p,l,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:c,children:a,anchor:l,targetAnchor:u,target:d,props:f}=e;if(d&&i(u),(s||!tn(f))&&(i(l),16&c))for(let e=0;e0?fn||o.EMPTY_ARR:null,hn(),gn>0&&fn&&fn.push(e),e}function yn(e,t,n,r,o,i){return bn(Nn(e,t,n,r,o,i,!0))}function On(e,t,n,r,o){return bn(kn(e,t,n,r,o,!0))}function _n(e){return!!e&&!0===e.__v_isVNode}function wn(e,t){return e.type===t.type&&e.key===t.key}function Sn(e){mn=e}const xn="__vInternal",jn=({key:e})=>null!=e?e:null,En=({ref:e,ref_key:t,ref_for:n})=>null!=e?Object(o.isString)(e)||Object(r.isRef)(e)||Object(o.isFunction)(e)?{i:W,r:e,k:t,f:!!n}:e:null;function Nn(e,t=null,n=null,r=0,i=null,s=(e===cn?0:1),c=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jn(t),ref:t&&En(t),scopeId:Y,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Fn(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=Object(o.isString)(n)?8:16),gn>0&&!c&&fn&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&fn.push(l),l}const kn=Tn;function Tn(e,t=null,n=null,i=0,s=null,c=!1){if(e&&e!==it||(e=ln),_n(e)){const r=Pn(e,t,!0);return n&&Fn(r,n),gn>0&&!c&&fn&&(6&r.shapeFlag?fn[fn.indexOf(e)]=r:fn.push(r)),r.patchFlag|=-2,r}if(cr(e)&&(e=e.__vccOpts),t){t=Cn(t);let{class:e,style:n}=t;e&&!Object(o.isString)(e)&&(t.class=Object(o.normalizeClass)(e)),Object(o.isObject)(n)&&(Object(r.isProxy)(n)&&!Object(o.isArray)(n)&&(n=Object(o.extend)({},n)),t.style=Object(o.normalizeStyle)(n))}return Nn(e,t,n,i,s,Object(o.isString)(e)?1:oe(e)?128:(e=>e.__isTeleport)(e)?64:Object(o.isObject)(e)?4:Object(o.isFunction)(e)?2:0,c,!0)}function Cn(e){return e?Object(r.isProxy)(e)||xn in e?Object(o.extend)({},e):e:null}function Pn(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:c}=e,a=t?Vn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&jn(a),ref:t&&t.ref?n&&i?Object(o.isArray)(i)?i.concat(En(t)):[i,En(t)]:En(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==cn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pn(e.ssContent),ssFallback:e.ssFallback&&Pn(e.ssFallback),el:e.el,anchor:e.anchor}}function In(e=" ",t=0){return kn(an,null,e,t)}function An(e,t){const n=kn(un,null,e);return n.staticCount=t,n}function Rn(e="",t=!1){return t?(pn(),On(ln,null,e)):kn(ln,null,e)}function Mn(e){return null==e||"boolean"==typeof e?kn(ln):Object(o.isArray)(e)?kn(cn,null,e.slice()):"object"==typeof e?Ln(e):kn(an,null,String(e))}function Ln(e){return null===e.el||e.memo?e:Pn(e)}function Fn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Fn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||xn in t?3===r&&W&&(1===W.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=W}}else Object(o.isFunction)(t)?(t={default:t,_ctx:W},n=32):(t=String(t),64&r?(n=16,t=[In(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vn(...e){const t={};for(let n=0;nzn||W,Wn=e=>{zn=e,e.scope.on()},Yn=()=>{zn&&zn.scope.off(),zn=null};function Kn(e){return 4&e.vnode.shapeFlag}let Gn,qn,Jn=!1;function Xn(e,t=!1){Jn=t;const{props:n,children:i}=e.vnode,s=Kn(e);!function(e,t,n,i=!1){const s={},c={};Object(o.def)(c,xn,1),e.propsDefaults=Object.create(null),Tt(e,t,s,c);for(const t in e.propsOptions[0])t in s||(s[t]=void 0);n?e.props=i?s:Object(r.shallowReactive)(s):e.type.props?e.props=s:e.props=c,e.attrs=c}(e,n,s,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Object(r.toRaw)(t),Object(o.def)(t,"_",n)):$t(t,e.slots={})}else e.slots={},t&&Bt(e,t);Object(o.def)(e.slots,xn,1)})(e,i);const c=s?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Object(r.markRaw)(new Proxy(e.ctx,gt)),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?nr(e):null;Wn(e),Object(r.pauseTracking)();const s=a(i,e,0,[e.props,n]);if(Object(r.resetTracking)(),Yn(),Object(o.isPromise)(s)){if(s.then(Yn,Yn),t)return s.then(n=>{Zn(e,n,t)}).catch(t=>{u(t,e,0)});e.asyncDep=s}else Zn(e,s,t)}else tr(e,t)}(e,t):void 0;return Jn=!1,c}function Zn(e,t,n){Object(o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(o.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Object(r.proxyRefs)(t)),tr(e,n)}function Qn(e){Gn=e,qn=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vt))}}const er=()=>!Gn;function tr(e,t,n){const i=e.type;if(!e.render){if(!t&&Gn&&!i.render){const t=i.template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:c}=i,a=Object(o.extend)(Object(o.extend)({isCustomElement:n,delimiters:s},r),c);i.render=Gn(t,a)}}e.render=i.render||o.NOOP,qn&&qn(e)}__VUE_OPTIONS_API__&&(Wn(e),Object(r.pauseTracking)(),yt(e),Object(r.resetTracking)(),Yn())}function nr(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Object(r.track)(e,"get","$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function rr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in mt?mt[n](e):void 0}))}const or=/(?:^|[-_])(\w)/g;function ir(e,t=!0){return Object(o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function sr(e,t,n=!1){let r=ir(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(or,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function cr(e){return Object(o.isFunction)(e)&&"__vccOpts"in e}const ar=(e,t)=>Object(r.computed)(e,t,Jn);function lr(){return null}function ur(){return null}function dr(e){0}function fr(e,t){return null}function pr(){return mr().slots}function hr(){return mr().attrs}function mr(){const e=Hn();return e.setupContext||(e.setupContext=nr(e))}function gr(e,t){const n=Object(o.isArray)(e)?e.reduce((e,t)=>(e[t]={},e),{}):e;for(const e in t){const r=n[e];r?Object(o.isArray)(r)||Object(o.isFunction)(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n}function vr(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function br(e){const t=Hn();let n=e();return Yn(),Object(o.isPromise)(n)&&(n=n.catch(e=>{throw Wn(t),e})),[n,()=>Wn(t)]}function yr(e,t,n){const r=arguments.length;return 2===r?Object(o.isObject)(t)&&!Object(o.isArray)(t)?_n(t)?kn(e,null,[t]):kn(e,t):kn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&_n(n)&&(n=[n]),kn(e,t,n))}const Or=Symbol(""),_r=()=>{{const e=fe(Or);return e||s("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function wr(){return void 0}function Sr(e,t,n,r){const o=n[r];if(o&&xr(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&fn&&fn.push(e),!0}const jr="3.2.37",Er={createComponentInstance:Un,setupComponent:Xn,renderComponentRoot:Z,setCurrentRenderingInstance:K,isVNode:_n,normalizeVNode:Mn},Nr=null,kr=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){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"EMPTY_ARR",(function(){return V})),n.d(t,"EMPTY_OBJ",(function(){return F})),n.d(t,"NO",(function(){return B})),n.d(t,"NOOP",(function(){return $})),n.d(t,"PatchFlagNames",(function(){return o})),n.d(t,"camelize",(function(){return fe})),n.d(t,"capitalize",(function(){return me})),n.d(t,"def",(function(){return ye})),n.d(t,"escapeHtml",(function(){return C})),n.d(t,"escapeHtmlComment",(function(){return I})),n.d(t,"extend",(function(){return H})),n.d(t,"genPropsAccessExp",(function(){return xe})),n.d(t,"generateCodeFrame",(function(){return c})),n.d(t,"getGlobalThis",(function(){return we})),n.d(t,"hasChanged",(function(){return ve})),n.d(t,"hasOwn",(function(){return K})),n.d(t,"hyphenate",(function(){return he})),n.d(t,"includeBooleanAttr",(function(){return d})),n.d(t,"invokeArrayFns",(function(){return be})),n.d(t,"isArray",(function(){return G})),n.d(t,"isBooleanAttr",(function(){return u})),n.d(t,"isBuiltInDirective",(function(){return le})),n.d(t,"isDate",(function(){return X})),n.d(t,"isFunction",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return s})),n.d(t,"isHTMLTag",(function(){return E})),n.d(t,"isIntegerKey",(function(){return ce})),n.d(t,"isKnownHtmlAttr",(function(){return v})),n.d(t,"isKnownSvgAttr",(function(){return b})),n.d(t,"isMap",(function(){return q})),n.d(t,"isModelListener",(function(){return z})),n.d(t,"isNoUnitNumericStyleProp",(function(){return g})),n.d(t,"isObject",(function(){return te})),n.d(t,"isOn",(function(){return U})),n.d(t,"isPlainObject",(function(){return se})),n.d(t,"isPromise",(function(){return ne})),n.d(t,"isReservedProp",(function(){return ae})),n.d(t,"isSSRSafeAttrName",(function(){return h})),n.d(t,"isSVGTag",(function(){return N})),n.d(t,"isSet",(function(){return J})),n.d(t,"isSpecialBooleanAttr",(function(){return l})),n.d(t,"isString",(function(){return Q})),n.d(t,"isSymbol",(function(){return ee})),n.d(t,"isVoidTag",(function(){return k})),n.d(t,"looseEqual",(function(){return A})),n.d(t,"looseIndexOf",(function(){return R})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return x})),n.d(t,"normalizeProps",(function(){return j})),n.d(t,"normalizeStyle",(function(){return y})),n.d(t,"objectToString",(function(){return re})),n.d(t,"parseStringStyle",(function(){return w})),n.d(t,"propsToAttrMap",(function(){return m})),n.d(t,"remove",(function(){return W})),n.d(t,"slotFlagsText",(function(){return i})),n.d(t,"stringifyStyle",(function(){return S})),n.d(t,"toDisplayString",(function(){return M})),n.d(t,"toHandlerKey",(function(){return ge})),n.d(t,"toNumber",(function(){return Oe})),n.d(t,"toRawType",(function(){return ie})),n.d(t,"toTypeString",(function(){return oe}));const o={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},s=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function c(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",l=r(a),u=r(a+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function d(e){return!!e||""===e}const f=/[>/="'\u0009\u000a\u000c\u0020]/,p={};function h(e){if(p.hasOwnProperty(e))return p[e];const t=f.test(e);return t&&console.error("unsafe attribute name: "+e),p[e]=!t}const m={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},g=r("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),v=r("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,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"),b=r("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,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function y(e){if(G(e)){const t={};for(let n=0;n{if(e){const n=e.split(_);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function S(e){let t="";if(!e||Q(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:he(n);(Q(r)||"number"==typeof r&&g(o))&&(t+=`${o}:${r};`)}return t}function x(e){let t="";if(Q(e))t=e;else if(G(e))for(let n=0;n]/;function C(e){const t=""+e,n=T.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|A(e,t))}const M=e=>Q(e)?e:null==e?"":G(e)||te(e)&&(e.toString===re||!Z(e.toString))?JSON.stringify(e,L,2):String(e),L=(e,t)=>t&&t.__v_isRef?L(e,t.value):q(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:J(t)?{[`Set(${t.size})`]:[...t.values()]}:!te(t)||G(t)||se(t)?t:String(t),F={},V=[],$=()=>{},B=()=>!1,D=/^on[^a-z]/,U=e=>D.test(e),z=e=>e.startsWith("onUpdate:"),H=Object.assign,W=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y=Object.prototype.hasOwnProperty,K=(e,t)=>Y.call(e,t),G=Array.isArray,q=e=>"[object Map]"===oe(e),J=e=>"[object Set]"===oe(e),X=e=>"[object Date]"===oe(e),Z=e=>"function"==typeof e,Q=e=>"string"==typeof e,ee=e=>"symbol"==typeof e,te=e=>null!==e&&"object"==typeof e,ne=e=>te(e)&&Z(e.then)&&Z(e.catch),re=Object.prototype.toString,oe=e=>re.call(e),ie=e=>oe(e).slice(8,-1),se=e=>"[object Object]"===oe(e),ce=e=>Q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ae=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),le=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ue=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},de=/-(\w)/g,fe=ue(e=>e.replace(de,(e,t)=>t?t.toUpperCase():"")),pe=/\B([A-Z])/g,he=ue(e=>e.replace(pe,"-$1").toLowerCase()),me=ue(e=>e.charAt(0).toUpperCase()+e.slice(1)),ge=ue(e=>e?"on"+me(e):""),ve=(e,t)=>!Object.is(e,t),be=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Oe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _e;const we=()=>_e||(_e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),Se=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function xe(e){return Se.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}}.call(this,n("./node_modules/webpack/buildin/global.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 s(){throw new Error("clearTimeout has not been defined")}function c(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:s}catch(e){r=s}}();var a,l=[],u=!1,d=-1;function f(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;n{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),y={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},O=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,_="[-+]?\\d*\\.?\\d+",w={rgb:new RegExp("rgb"+O(_,_,_)),rgba:new RegExp("rgba"+O(_,_,_,_)),hsl:new RegExp("hsl"+O(_,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+O(_,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",_)),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})$/},S=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},x=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},j=(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},E=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=j(o,r,e+1/3),s=j(o,r,e),c=j(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},N=e=>(parseFloat(e)%360+360)%360/360,k=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function T(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=w.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(y,e)?y[e]:(t=w.rgb.exec(e),Array.isArray(t)?(S(t[1])<<24|S(t[2])<<16|S(t[3])<<8|255)>>>0:(t=w.rgba.exec(e),t?(S(t[1])<<24|S(t[2])<<16|S(t[3])<<8|x(t[4]))>>>0:(t=w.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=w.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=w.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=w.hsl.exec(e),t?(255|E(N(t[1]),k(t[2]),k(t[3])))>>>0:(t=w.hsla.exec(e),t?(E(N(t[1]),k(t[2]),k(t[3]))|x(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const C={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},P={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},I="turn",A="rad",R="deg",M=/\/\*[\s\S]{0,1000}?\*\//gm;const L=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function F(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 V(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=h(/^([+-]?(?=(\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=R){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case I:r=""+(360*n).toFixed(2);break;case A:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==P[o]&&(r=P[o]),r}function $(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:T(n)}:null:{color:T(n)}}function B(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=V(e);if(t)n.angle=t;else{n.angle="180";const t=$(e);t&&o.push(t)}}else{const t=$(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?).{0,500}?(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}function D(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 l(o){const i=f(f({},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 u(){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 l("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 d(e=[]){let t;const n=e||[];for(;t=u();)!1!==t&&n.push(t);return n}function p(){let t;const n=[];for(s(),d(n);e.length&&"}"!==e.charAt(0)&&(t=E()||O());)t&&(n.push(t),d(n));return n}function h(){return i(/^{\s*/)}function m(){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 v(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return l("property missing ':'");const n=t.replace(M,""),r=b(n);let o=(()=>{const e=C[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(M,""):"";switch(o){case"backgroundImage":[o,a]=B(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 l("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>F(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(L.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=F(a))}const u=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),u}function y(){let e,t=[];if(!h())return l("missing '{'");for(d(t);e=v();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),d(t));return m()?t:l("missing '}'")}function O(){const e=c(),t=g();return t?(d(),e({type:"rule",selectors:t,declarations:y()})):l("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:y()}):null}function w(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=w("import"),x=w("charset"),j=w("namespace");function E(){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 l("@keyframes missing name");const r=t[1];if(!h())return l("@keyframes missing '{'");let o,s=d();for(;o=_();)s.push(o),s=s.concat(d());return m()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):l("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!h())return l("@media missing '{'");const r=d().concat(p());return m()?e({type:"media",media:n,rules:r}):l("@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(!h())return l("@supports missing '{'");const r=d().concat(p());return m()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}()||S()||x()||j()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!h())return l("@document missing '{'");const o=d().concat(p());return m()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!h())return l("@page missing '{'");let n,r=d();for(;n=v();)r.push(n),r=r.concat(d());return m()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!h())return l("@host missing '{'");const t=d().concat(p());return m()?e({type:"host",rules:t}):l("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!h())return l("@font-face missing '{'");let t,n=d();for(;t=v();)n.push(t),n=n.concat(d());return m()?e({type:"font-face",declarations:n}):l("@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=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)}function U(e,t){if(e===t)return!0;let n=W(e),r=W(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=G(e),r=G(t),n||r)return e===t;if(n=H(e),r=H(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r"[object Date]"===X(e),Y=e=>"function"==typeof e,K=e=>"string"==typeof e,G=e=>"symbol"==typeof e,q=e=>null!==e&&"object"==typeof e,J=Object.prototype.toString,X=e=>J.call(e),Z=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1));let Q=Object.create(null);const ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{ee.$on(e,t,n)}):(Q[e]||(Q[e]=[]),Q[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=(Q[e]||[]).slice(),r=n.length;for(let e=0;e{ee.$off(e,t)}),ee;const n=Q[e];if(!n)return ee;if(!t)return Q[e]=null,ee;let r;const o=n.length;for(let e=0;ee;function be(){return ve}let ye=(e,t)=>{};function Oe(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 _e(e){let t=e;return/^assets/.test(t)&&(t=ne?`${oe}./${t}`:`${te}${t}`),t}function we(e){return"on"+Z(e)}function Se(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=we(e[0]),r=we(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function xe(e){return null==e}function je(e,t){return!(!t||!e)&&e.match(t)}class Ee{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 Ne{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){const{tagName:t,id:n,classList:r}=e,o=[this.universal,this.id[n],this.type[t]];r.size&&r.forEach(e=>o.push(this.class[e]));const i=o.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new Ee;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}removeById(e,t){Ne.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){Ne.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){Ne.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 ke(e){return e?" "+e:""}class Te{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class Ce extends Te{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 Pe extends Ce{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Ce&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${ke(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 Ce&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof Ce&&this.head.removeSort(e,null!=t?t:this)}}class Ie extends Ce{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+ke(this.combinator)}match(){return!0}}class Ae extends Ce{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${ke(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 Re extends Ce{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${ke(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 Me extends Ce{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${ke(this.combinator)}`}match(e){return!!e&&!(!e.classList.size||!e.classList.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 Le extends Ce{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${ke(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const Fe=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Ve extends Ce{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||!r.attributes)return!1;const o=""+Fe(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||!t.attributes)&&!xe(Fe(t,e))}toString(){return`[${this.attribute}${ke(this.test)}${this.test&&this.value||""}]${ke(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class $e extends Ce{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 Be{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 De{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 Ue extends Te{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 Be(e.map(e=>new De(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e){return!!e&&this.groups.every((t,n)=>{if(0===n)return!!(e=t.match(e));if(null==e?void 0:e.parentNode){let n=e.parentNode;for(;n;){if(e=t.match(n))return!0;n=n.parentNode}}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);const n=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=r)}let o=e;for(;o=o.parentNode;){const r=t.mayMatch(o);if(r)return n.push({left:o,right:null}),e=r,!0}return!1});if(!r)return!1;if(!t)return r;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 He=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),We={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*"},Ye={};function Ke(e,t,n){let r="";He&&(r="gy"),Ye[e]||(Ye[e]=new RegExp(We[e],r));const o=Ye[e];let i;if(He)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 Ge(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=Ke("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}=Ke("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}=Ke("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 qe(e,t){let n=Ge(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=Ge(e,r);return{start:t,end:r,value:o}}function Je(e,t){const{result:n,regexp:r}=Ke("combinatorRegEx",e,t);if(!n)return null;let o;o=He?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}function Xe(e){return"declaration"===e.type}function Ze(e){switch(e.type){case"*":return new Ie;case"#":return new Ae(e.identifier);case"":return new Re(e.identifier.replace(/-/,"").toLowerCase());case".":return new Me(e.identifier);case":":return new Le(e.identifier);case"[]":return e.test?new Ve(e.property,e.test,e.value):new Ve(e.property);default:return null}}function Qe(e){return 0===e.length?new $e(new Error("Empty simple selector sequence.")):1===e.length?Ze(e[0]):new Pe(e.map(Ze))}function et(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=Ke("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=He?[e]:e.split(" "),c.forEach(e=>{if(!He){if(""===e)return;n=0}do{const t=qe(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=Je(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 $e(new Error("Empty selector."));if(1===e.length)return Qe(e[0][0]);const t=[];for(const n of e){const e=Qe(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new Ue(t)}(t.value):new $e(new Error("Empty selector"))}catch(e){return new $e(e)}}function tt(e=[]){const t=be();return e.map(e=>{const n=e.declarations.filter(Xe).map(function(e){return t=>{const n=e(t);if(!ne&&!n)throw new Error("beforeLoadStyle hook must returns the processed style object");return n}}(t)),r=e.selectors.map(et);return new ze(r,n,e.hash)})}let nt;function rt(){const e=r[ie];if(!nt||e){const t=tt(e);nt?nt.append(t):nt=new Ne(t),r[ie]=void 0}return r[se]&&(r[se].forEach(e=>{nt.delete(e)}),r[se]=void 0),nt}const ot=["%c[native]%c","color: red","color: auto"],it={},{bridge:{callNative:st,callNativeWithPromise:ct,callNativeWithCallbackId:at},device:{platform:{OS:lt,Localization:ut={}},screen:{scale:dt}},device:ft,document:pt,register:ht}=r.Hippy,mt=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 fe(...ot,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>pt.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})}))},gt=new Map,vt={Localization:ut,hippyNativeDocument:pt,hippyNativeRegister:ht,Platform:lt,PixelRatio:dt,ConsoleModule:r.ConsoleModule||r.console,callNative:st,callNativeWithPromise:ct,callNativeWithCallbackId:at,AsyncStorage:r.Hippy.asyncStorage,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=[]),fe(...ot,"callUIFunction",{nodeId:o,funcName:n,params:i}),pt.callUIFunction(o,n,i,s)},Clipboard:{getString(){return vt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){vt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return vt.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()),vt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return vt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){vt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=ft,{statusBarHeight:t}=e;return{window:ft.window,screen:f(f({},e),{},{statusBarHeight:t})}},get Device(){var e;return void 0===it.Device&&(vt.isIOS()?(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.Device)?it.Device=r.__HIPPYNATIVEGLOBAL__.Device:it.Device="iPhone":vt.isAndroid()?it.Device="Android device":it.Device="Unknown device"),it.Device},get screenIsVertical(){return vt.Dimensions.window.width"android"===vt.Platform,isIOS:()=>"ios"===vt.Platform,measureInWindow:e=>mt(e,"measureInWindow"),measureInAppWindow:e=>vt.isAndroid()?mt(e,"measureInWindow"):mt(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`));fe(...ot,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),pt.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:()=>vt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===gt.size&&vt.callNative("NetInfo","addListener",n),ee.$on(n,t),gt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(vt.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"),gt.size<=1&&vt.callNative("NetInfo","removeListener",n);const r=gt.get(t);r&&(ee.$off(n,r),gt.delete(t),gt.size<1&&vt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===it.isIPhoneX){let e=!1;vt.isIOS()&&(e=20!==vt.Dimensions.screen.statusBarHeight),it.isIPhoneX=e}return it.isIPhoneX},get OnePixel(){if(void 0===it.OnePixel){const e=vt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),it.OnePixel=t}return it.OnePixel},get APILevel(){var e,t;return vt.isAndroid()?(null===(t=null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.Platform)||void 0===t?void 0:t.APILevel)?r.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(pe("Vue.Native.APILevel needs higher Android SDK version to retrieve"),null):(pe("Vue.Native.APIVersion is available in Android only"),null)},get OSVersion(){var e;return vt.isIOS()&&(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.OSVersion)?r.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var e,t;return vt.isIOS()&&(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.OSVersion)?null===(t=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=it.COLOR_PARSER)&&void 0!==t?t:it.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=T(e)),n[e]},getElemCss(e){const t=Object.create(null);try{rt().query(e).selectors.forEach(n=>{je(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){pe("getDomCss Error:",e)}return t},version:ce},bt=new Set;let yt=!1;const Ot={exitApp(){vt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(yt||(yt=!0,Ot.initEventListener()),vt.callNative("DeviceEventModule","setListenBackPress",!0),bt.add(e),{remove(){Ot.removeListener(e)}}),removeListener(e){bt.delete(e),0===bt.size&&vt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(bt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&Ot.exitApp()})}},_t={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},wt=vt.isAndroid()?Ot:_t,St=new Map;function xt(e,t){if(!e)throw new Error("tagName can not be empty");const n=he(e);St.has(n)||St.set(n,t.component)}function jt(e){const t=he(e);return St.get(t)}const Et=new Map,Nt={number:"numeric",text:"default",search:"web-search"},kt={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"}},Tt={component:{name:re.View,eventNamesMap:Oe([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:f({},kt),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}}},Ct={component:{name:re.View,attributeMaps:Tt.component.attributeMaps,eventNamesMap:Tt.component.eventNamesMap,processEventData:Tt.component.processEventData}},Pt={component:{name:re.View}},It={component:{name:re.Image,eventNamesMap:Tt.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:f({placeholder:{name:"defaultSource",propsValue(e){const t=_e(e);return(null==t?void 0:t.indexOf(te))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&pe(`img placeholder ${t} recommend to use base64 image or local path image`),t}},src:e=>_e(e)},kt)}},At={component:{name:re.ListView,defaultNativeStyle:{flex:1},attributeMaps:f({},kt),eventNamesMap:Oe("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}}},Rt={component:{name:re.ListViewItem,attributeMaps:f({},kt),eventNamesMap:Oe([["disappear","onDisappear"]])}},Mt={component:{name:re.Text,attributeMaps:Tt.component.attributeMaps,eventNamesMap:Tt.component.eventNamesMap,processEventData:Tt.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},Lt=Mt,Ft=Mt,Vt={component:f(f({},Mt.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(pe("href attribute can't apply effect in native with url: "+e),""):e}}})},$t={component:{name:re.TextInput,attributeMaps:f({type:{name:"keyboardType",propsValue(e){const t=Nt[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},kt),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Oe([["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}}},Bt={component:{name:re.TextInput,defaultNativeProps:f(f({},$t.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:f(f({},$t.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:$t.component.defaultNativeStyle,eventNamesMap:$t.component.eventNamesMap,processEventData:$t.component.processEventData}},Dt={component:{name:re.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}}};Et.set("div",Tt),Et.set("button",Ct),Et.set("form",Pt),Et.set("img",It),Et.set("ul",At),Et.set("li",Rt),Et.set("span",Mt),Et.set("label",Lt),Et.set("p",Ft),Et.set("a",Vt),Et.set("input",$t),Et.set("textarea",Bt),Et.set("iframe",Dt);var Ut={install(){Et.forEach((e,t)=>{xt(t,e)})}};function zt(){const{Localization:e}=vt;return!!e&&1===e.direction}const Ht=0,Wt=1,Yt={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},Kt={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Gt="addEventListener",qt="removeEventListener";let Jt;function Xt(){return Jt}function Zt(e,t){Jt[e]=t}class Qt{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 en extends Qt{}class tn extends Qt{}class nn extends Qt{}class rn extends Qt{}class on extends Qt{}class sn extends Qt{}class cn extends Qt{}class an extends Qt{}class ln extends Qt{}function un(e){return"string"==typeof e.value}const dn=new Map;function fn(e,t){dn.set(t,e)}function pn(e){dn.delete(e)}function hn(e){return dn.get(e)||null}function mn(e){var t,n;t=t=>{(t.timeRemaining()>0||t.didTimeout)&&function e(t){var n;"number"==typeof t?pn(t):t&&(pn(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(e)},n={timeout:50},r.requestIdleCallback?r.requestIdleCallback(t,n):setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1)}function gn(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new tn(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 Qt(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 pe(...bn,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};r.__GLOBAL__&&(r.__GLOBAL__.jsModuleList.EventDispatcher=yn);class On{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&U(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 _n;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE"}(_n||(_n={}));let wn=!1,Sn=[];const xn=["%c[native]%c","color: red","color: auto"];function jn(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!!Yt[e]}(r)?Yt[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Wt&&t.removeEventListener(n,s,i),o===Ht&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function En(e,t){de()&&fe(...xn,t,e)}function Nn(){wn||(wn=!0,0!==Sn.length?Object(o.nextTick)().then(()=>{const e=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}(Sn),{rootViewId:t}=Xt(),n=new r.Hippy.SceneBuilder(t);e.forEach(e=>{switch(e.type){case _n.CREATE:En(e.printedNodes,"createNode"),n.create(e.nodes),jn(e.eventNodes,n);break;case _n.UPDATE:En(e.printedNodes,"updateNode"),n.update(e.nodes),jn(e.eventNodes,n);break;case _n.DELETE:En(e.printedNodes,"deleteNode"),n.delete(e.nodes);break;case _n.MOVE:En(e.printedNodes,"moveNode"),n.move(e.nodes)}}),n.build(),wn=!1,Sn=[]}):wn=!1)}var kn;!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=2]="TextNode",e[e.CommentNode=3]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(kn||(kn={}));class Tn extends On{constructor(e){super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=Tn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===kn.ElementNode}(e)}static getUniqueNodeId(){return ae+=1,ae%10==0&&(ae+=1),ae}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}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=gn(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:vn}):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=gn(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:vn}):this.insertChildNativeNode(n)}appendChild(e){const t=e;if(!t)throw new Error("No child to append");this.lastChild!==t&&(t.parentNode&&t.parentNode!==this&&t.parentNode.removeChild(t),t.isMounted&&this.removeChild(t),t.parentNode=this,this.lastChild&&(t.prevSibling=this.lastChild,this.lastChild.nextSibling=t),this.childNodes.push(t),this.insertChildNativeNode(t))}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,o=r.convertToNativeNodes(!0,t);r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),fn(t,t.nodeId)}),function([e,t,n]){Sn.push({type:_n.CREATE,nodes:e,eventNodes:t,printedNodes:n}),Nn()}(o)}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Sn.push({type:_n.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&&(Sn.push({type:_n.DELETE,nodes:e,eventNodes:[],printedNodes:t}),Nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Sn.push({type:_n.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),Nn())}(this.convertToNativeNodes(e,{}))}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}=Xt(),s=null!=n?n:{},c=f({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=function(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}(this);let l=void 0;if(!ne){const e={};a&&Array.isArray(a.eventList)&&a.eventList.forEach(t=>{const{name:n,listener:r,type:o}=t;o===Ht&&Object.assign(e,{[n]:r})}),Object.assign(l={},c,t),l.listeners=e}return[[[c,t]],[a],[l]]}}class Cn extends Tn{constructor(e){super(kn.TextNode),this.text=e}setText(e){this.text=e,this.parentNode&&this.nodeType===kn.ElementNode&&this.parentNode.setText(e)}}function Pn(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}=Xt(),{width:r}=vt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=jt(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Xt();return super.isRootNode()||this.id===e}appendChild(e){e instanceof Cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}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(r.split(" ").filter(e=>e.trim()));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){pe(`Property ${o} must be string:${e.message}`)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===ue||ue?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(!vt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=vt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=vt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=vt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=vt.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){if(!ne)throw e}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]=B(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(C,r)&&(r=C[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?vt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(ge.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),vt.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"+me(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;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Gt,r,o,i)),super.addEventListener(r,o,i),Pn(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==Ht&&(this.events[t].type=Ht):this.events[t]={name:t,type:Ht,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};yn.receiveComponentEvent(c,e)}),isCapture:!1}}),this.updateNativeNode()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(qt,r,o,i)),super.removeEventListener(r,o,i),Pn(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Wt)}),this.updateNativeNode()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,un(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();ye(this,n),this.component.defaultNativeStyle&&(n=f(f({},this.component.defaultNativeStyle),n));const r={name:this.component.name,props:f(f({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return ne||r.props&&(r.props.attributes=this.getNodeAttributes()),function(e,t){const n=t;e.component.name===re.TextInput&&zt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===re.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&pe("overflow-x and overflow-y for View can not work together"),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=zt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&pe("Only one child node is acceptable for View with overflow"),e.childNodes.length&&e.nodeType===kn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=_e(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){vt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){vt.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=Object(i.toRaw)(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return rt().query(this).selectors.forEach(t=>{var n,r;je(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&&(e[t.property]=t.value)})}),e=In.parseRem(f(f({},e),this.getInlineStyle())),e}hackNativeProps(e){const t=e;"img"===this.tagName&&vt.isIOS()&&(t.source=[{uri:t.src}],t.src=void 0)}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]=Y(r)?r(this):Object(i.toRaw)(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=Object(i.toRaw)(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=Object(i.toRaw)(r));const o=this.component.attributeMaps[t];if(K(o))return void(e[o]=Object(i.toRaw)(r));if(Y(o))return void(e[t]=Object(i.toRaw)(o(r)));const{name:s,propsValue:c,jointKey:a}=o;Y(c)&&(r=c(r)),a?(e[a]=null!==(n=e[a])&&void 0!==n?n:{},Object.assign(e[a],{[s]:Object(i.toRaw)(r)})):e[s]=Object(i.toRaw)(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=Object(i.toRaw)(n[t])}),this.hackNativeProps(e),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=f({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,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"+me(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){let e;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>e,set:t=>{e=void 0===t?"flex":t,this.updateNativeNode()}})}}function An(e){const t={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function n(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?vt.parseColor(t):t}function s(e){return"loop"===e?-1:e}function d(e){const{mode:o="timing",valueType:i,startValue:a,toValue:l}=e,d=u(e,c),p=f(f({},t),d);void 0!==i&&(p.valueType=e.valueType),p.startValue=n(p.valueType,a),p.toValue=n(p.valueType,l),p.repeatCount=s(p.repeatCount),p.mode=o;const h=new r.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function p(e,t={}){const n={};return Object.keys(e).forEach(o=>{if(Array.isArray(e[o])){const i=e[o],{repeatCount:c}=i[i.length-1],a=i.map(e=>{const{animationId:n,animation:r}=d(f(f({},e),{},{repeatCount:0}));return Object.assign(t,{[n]:r}),{animationId:n,follow:!0}}),{animationId:l,animation:u}=function(e,t=0){const n=new r.Hippy.AnimationSet({children:e,repeatCount:t}),o=n.getId();return{animation:n,animationId:o}}(a,s(c));n[o]={animationId:l},Object.assign(t,{[l]:u})}else{const r=e[o],{animationId:i,animation:s}=d(r);Object.assign(t,{[i]:s}),n[o]={animationId:i}}}),n}function h(e){const{transform:t}=e,n=u(e,a);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}e.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[we("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()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=u(e.actions,l);this.animationIdsMap={};const r=p(n,this.animationIdsMap);if(t){const e=p(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=Object(i.toRaw)(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[we(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[we(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=h(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.start()}))},resume(){h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return Object(o.h)(this.tag,f({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}var Rn={install(e){An(e),xt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=vt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{xt("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:i}=this.$attrs,s={onLayout:this.onLayout};return"function"==typeof e&&(s[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof i||(s[`on${n}Pulling`]=this[`on${n}Pulling`]),Object(o.h)("hi-pull-"+r,f(f({},s),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){xt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),xt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){vt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){vt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return Object(o.h)("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=Object(o.h)("div",null,this.$slots.default?this.$slots.default():null);return Object(o.h)("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){xt("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}}}),xt("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){vt.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=Se.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return Object(o.h)("hi-waterfall",f(f({},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:""}},render(){return Object(o.h)("hi-waterfall-item",{type:this.type},this.$slots.default?this.$slots.default():null)}})}(e),function(e){xt("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}}}),xt("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}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){vt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){vt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=Se.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return Object(o.h)("hi-swiper",f(f({},e),{},{ref:"swiper",initialPage:this.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return Object(o.h)("swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class Mn extends In{constructor(e){super(e),this.text=e,this.isNeedInsertToNative=!1}}class Ln extends In{showInputMenu(){}hideInputMenu(){}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=>vt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){vt.callUIFunction(this,"setValue",[e])}focus(){vt.callUIFunction(this,"focusTextInput",[])}blur(){vt.callUIFunction(this,"blurTextInput",[])}clear(){vt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>vt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class Fn extends In{scrollToIndex(e=0,t=0,n=!0){vt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&vt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class Vn extends Tn{static createComment(e){return new Mn(e)}static createElement(e){switch(e){case"input":case"textarea":return new Ln(e);case"ul":return new Fn(e);default:return new In(e)}}static createTextNode(e){return new Cn(e)}constructor(){super(kn.DocumentNode)}}const $n={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),mn(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 Bn=/(?:Once|Passive|Capture)$/;function Dn(e,t,n,r,i=null){var s;const c=e,a=null!==(s=c._vei)&&void 0!==s?s:c._vei={},l=a[t];if(r&&l)l.value=r;else{const[e,n]=function(e){let t=e;const n={};if(Bn.test(t)){let e=t.match(Bn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(Bn)}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){a[t]=function(e,t){const n=e=>{Object(o.callWithAsyncErrorHandling)(n.value,t,5,[e])};return n.value=e,n}(r,i);const s=a[t];c.addEventListener(e,s,n)}else c.removeEventListener(e,l,n),a[t]=void 0}}function Un(e,t,n,r,o,i,c){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":!function(e,t,n){const r=e,o={};if(t&&!n)r.removeStyle();else{if(K(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];xe(t)||(o[Object(s.camelize)(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}(e,n,r);break;default:(e=>z.test(e))(t)?Dn(e,t,0,r,c):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let zn=!1;function Hn(e){var t;if(e.width&&e.height){const{screen:n}=null===(t=null==r?void 0:r.Hippy)||void 0===t?void 0:t.device;n&&(n.width=e.width,n.height=e.height)}}r.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=f({},n);if(zn||(zn=!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};vt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:pe("Fail to create websocket connection",e)})}close(e,t){1===this.readyState&&(this.readyState=2,vt.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);vt.callNative("websocket","send",{id:this.webSocketId,data:e})}else pe("WebSocket is not connected")}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=>{Y(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=we(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const Wn=['%c[Hippy-Vue-Next "3.0.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Yn(e,t){if(vt.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 In("div"),{statusBarHeight:s}=vt.Dimensions.screen;vt.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 In("img");r.setStyle("width",vt.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",()=>{vt.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 Kn=(e,t)=>{var n;const r=Object(o.createRenderer)(f({patchProp:Un},$n)).createApp(e);var i,s;r.use(Ut),r.use(Rn),"function"==typeof(null===(n=null==t?void 0:t.styleOptions)||void 0===n?void 0:n.beforeLoadStyle)&&(i=t.styleOptions.beforeLoadStyle,ve=i),t.silent&&(s=t.silent,le=s),function(e=!0){ue=e}(t.trimWhitespace);const{mount:c}=r;return r.mount=e=>{Zt("rootContainer",e);const n=function(e){const t=Vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),r=c(n,!1,!1);return Zt("instance",r),Yn(t,r),r},r.$start=async e=>new Promise(n=>{vt.hippyNativeRegister.regist(t.appName,o=>{var i,s;const{__instanceId__:c}=o;fe(...Wn,"Start",t.appName,"with rootViewId",c,o);const a=Xt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:o,app:r,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Jt=l;const u={superProps:o,rootViewId:c};Y(e)?e(u):n(u)})}),r},Gn=(e,t)=>{Y(e)&&(1===t?ye=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))}}.call(this,n("./node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.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 i})),n.d(t,"ITERATE_KEY",(function(){return v})),n.d(t,"ReactiveEffect",(function(){return y})),n.d(t,"computed",(function(){return Xe})),n.d(t,"customRef",(function(){return Ye})),n.d(t,"deferredComputed",(function(){return ot})),n.d(t,"effect",(function(){return _})),n.d(t,"effectScope",(function(){return s})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return a})),n.d(t,"isProxy",(function(){return Te})),n.d(t,"isReactive",(function(){return Ee})),n.d(t,"isReadonly",(function(){return Ne})),n.d(t,"isRef",(function(){return Le})),n.d(t,"isShallow",(function(){return ke})),n.d(t,"markRaw",(function(){return Pe})),n.d(t,"onScopeDispose",(function(){return l})),n.d(t,"pauseTracking",(function(){return j})),n.d(t,"proxyRefs",(function(){return He})),n.d(t,"reactive",(function(){return _e})),n.d(t,"readonly",(function(){return Se})),n.d(t,"ref",(function(){return Fe})),n.d(t,"resetTracking",(function(){return N})),n.d(t,"shallowReactive",(function(){return we})),n.d(t,"shallowReadonly",(function(){return xe})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return w})),n.d(t,"toRaw",(function(){return Ce})),n.d(t,"toRef",(function(){return qe})),n.d(t,"toRefs",(function(){return Ke})),n.d(t,"track",(function(){return k})),n.d(t,"trigger",(function(){return C})),n.d(t,"triggerRef",(function(){return De})),n.d(t,"unref",(function(){return Ue}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");let o;class i{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&m)>0,f=e=>(e.n&m)>0,p=new WeakMap;let h=0,m=1;let g;const v=Symbol(""),b=Symbol("");class y{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let e=g,t=S;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=g,g=this,S=!0,m=1<<++h,h<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&a.push(e)});else switch(void 0!==n&&a.push(c.get(n)),t){case"add":Object(r.isArray)(e)?Object(r.isIntegerKey)(n)&&a.push(c.get("length")):(a.push(c.get(v)),Object(r.isMap)(e)&&a.push(c.get(b)));break;case"delete":Object(r.isArray)(e)||(a.push(c.get(v)),Object(r.isMap)(e)&&a.push(c.get(b)));break;case"set":Object(r.isMap)(e)&&a.push(c.get(v))}if(1===a.length)a[0]&&P(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);P(u(e))}}function P(e,t){const n=Object(r.isArray)(e)?e:[...e];for(const e of n)e.computed&&I(e,t);for(const e of n)e.computed||I(e,t)}function I(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const A=Object(r.makeMap)("__proto__,__v_isRef,__isVue"),R=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.isSymbol)),M=D(),L=D(!1,!0),F=D(!0),V=D(!0,!0),$=B();function B(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Ce(this);for(let e=0,t=this.length;e{e[t]=function(...e){j();const n=Ce(this)[t].apply(this,e);return N(),n}}),e}function D(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&i===(e?t?Oe:ye:t?be:ve).get(n))return n;const s=Object(r.isArray)(n);if(!e&&s&&Object(r.hasOwn)($,o))return Reflect.get($,o,i);const c=Reflect.get(n,o,i);return(Object(r.isSymbol)(o)?R.has(o):A(o))?c:(e||k(n,0,o),t?c:Le(c)?s&&Object(r.isIntegerKey)(o)?c:c.value:Object(r.isObject)(c)?e?Se(c):_e(c):c)}}const U=H(),z=H(!0);function H(e=!1){return function(t,n,o,i){let s=t[n];if(Ne(s)&&Le(s)&&!Le(o))return!1;if(!e&&!Ne(o)&&(ke(o)||(o=Ce(o),s=Ce(s)),!Object(r.isArray)(t)&&Le(s)&&!Le(o)))return s.value=o,!0;const c=Object(r.isArray)(t)&&Object(r.isIntegerKey)(n)?Number(n)!0,deleteProperty:(e,t)=>!0},K=Object(r.extend)({},W,{get:L,set:z}),G=Object(r.extend)({},Y,{get:V}),q=e=>e,J=e=>Reflect.getPrototypeOf(e);function X(e,t,n=!1,r=!1){const o=Ce(e=e.__v_raw),i=Ce(t);n||(t!==i&&k(o,0,t),k(o,0,i));const{has:s}=J(o),c=r?q:n?Ae:Ie;return s.call(o,t)?c(e.get(t)):s.call(o,i)?c(e.get(i)):void(e!==o&&e.get(t))}function Z(e,t=!1){const n=this.__v_raw,r=Ce(n),o=Ce(e);return t||(e!==o&&k(r,0,e),k(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function Q(e,t=!1){return e=e.__v_raw,!t&&k(Ce(e),0,v),Reflect.get(e,"size",e)}function ee(e){e=Ce(e);const t=Ce(this);return J(t).has.call(t,e)||(t.add(e),C(t,"add",e,e)),this}function te(e,t){t=Ce(t);const n=Ce(this),{has:o,get:i}=J(n);let s=o.call(n,e);s||(e=Ce(e),s=o.call(n,e));const c=i.call(n,e);return n.set(e,t),s?Object(r.hasChanged)(t,c)&&C(n,"set",e,t):C(n,"add",e,t),this}function ne(e){const t=Ce(this),{has:n,get:r}=J(t);let o=n.call(t,e);o||(e=Ce(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&C(t,"delete",e,void 0),i}function re(){const e=Ce(this),t=0!==e.size,n=e.clear();return t&&C(e,"clear",void 0,void 0),n}function oe(e,t){return function(n,r){const o=this,i=o.__v_raw,s=Ce(i),c=t?q:e?Ae:Ie;return!e&&k(s,0,v),i.forEach((e,t)=>n.call(r,c(e),c(t),o))}}function ie(e,t,n){return function(...o){const i=this.__v_raw,s=Ce(i),c=Object(r.isMap)(s),a="entries"===e||e===Symbol.iterator&&c,l="keys"===e&&c,u=i[e](...o),d=n?q:t?Ae:Ie;return!t&&k(s,0,l?b:v),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function se(e){return function(...t){return"delete"!==e&&this}}function ce(){const e={get(e){return X(this,e)},get size(){return Q(this)},has:Z,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!1)},t={get(e){return X(this,e,!1,!0)},get size(){return Q(this)},has:Z,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!0)},n={get(e){return X(this,e,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear"),forEach:oe(!0,!1)},r={get(e){return X(this,e,!0,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear"),forEach:oe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ie(o,!1,!1),n[o]=ie(o,!0,!1),t[o]=ie(o,!1,!0),r[o]=ie(o,!0,!0)}),[e,n,t,r]}const[ae,le,ue,de]=ce();function fe(e,t){const n=t?e?de:ue:e?le:ae;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r.hasOwn)(n,o)&&o in t?n:t,o,i)}const pe={get:fe(!1,!1)},he={get:fe(!1,!0)},me={get:fe(!0,!1)},ge={get:fe(!0,!0)};const ve=new WeakMap,be=new WeakMap,ye=new WeakMap,Oe=new WeakMap;function _e(e){return Ne(e)?e:je(e,!1,W,pe,ve)}function we(e){return je(e,!1,K,he,be)}function Se(e){return je(e,!0,Y,me,ye)}function xe(e){return je(e,!0,G,ge,Oe)}function je(e,t,n,o,i){if(!Object(r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const c=(a=e).__v_skip||!Object.isExtensible(a)?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(r.toRawType)(a));var a;if(0===c)return e;const l=new Proxy(e,2===c?o:n);return i.set(e,l),l}function Ee(e){return Ne(e)?Ee(e.__v_raw):!(!e||!e.__v_isReactive)}function Ne(e){return!(!e||!e.__v_isReadonly)}function ke(e){return!(!e||!e.__v_isShallow)}function Te(e){return Ee(e)||Ne(e)}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function Pe(e){return Object(r.def)(e,"__v_skip",!0),e}const Ie=e=>Object(r.isObject)(e)?_e(e):e,Ae=e=>Object(r.isObject)(e)?Se(e):e;function Re(e){S&&g&&T((e=Ce(e)).dep||(e.dep=u()))}function Me(e,t){(e=Ce(e)).dep&&P(e.dep)}function Le(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return $e(e,!1)}function Ve(e){return $e(e,!0)}function $e(e,t){return Le(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ce(e),this._value=t?e:Ie(e)}get value(){return Re(this),this._value}set value(e){e=this.__v_isShallow?e:Ce(e),Object(r.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ie(e),Me(this))}}function De(e){Me(e)}function Ue(e){return Le(e)?e.value:e}const ze={get:(e,t,n)=>Ue(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function He(e){return Ee(e)?e:new Proxy(e,ze)}class We{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>Re(this),()=>Me(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ye(e){return new We(e)}function Ke(e){const t=Object(r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=qe(e,n);return t}class Ge{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function qe(e,t,n){const r=e[t];return Le(r)?r:new Ge(e,t,n)}class Je{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new y(e,()=>{this._dirty||(this._dirty=!0,Me(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ce(this);return Re(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Xe(e,t,n=!1){let o,i;const s=Object(r.isFunction)(e);s?(o=e,i=r.NOOP):(o=e.get,i=e.set);return new Je(o,i,s||!i,n)}var Ze;const Qe=Promise.resolve(),et=[];let tt=!1;const nt=()=>{for(let e=0;e{if(this.dep){if(e)t=this._value,n=!0;else if(!r){const e=n?t:this._value;r=!0,n=!1,o=()=>{this.effect.active&&this._get()!==e&&Me(this),r=!1},et.push(o),tt||(tt=!0,Qe.then(nt))}for(const e of this.dep)e.computed instanceof rt&&e.scheduler(!0)}var o;this._dirty=!0}),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return Re(this),Ce(this)._get()}}function ot(e){return new rt(e)}Ze="__v_isReadonly"},"../../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 xe})),n.d(t,"Comment",(function(){return ln})),n.d(t,"Fragment",(function(){return cn})),n.d(t,"KeepAlive",(function(){return Le})),n.d(t,"Static",(function(){return un})),n.d(t,"Suspense",(function(){return ie})),n.d(t,"Teleport",(function(){return sn})),n.d(t,"Text",(function(){return an})),n.d(t,"callWithAsyncErrorHandling",(function(){return l})),n.d(t,"callWithErrorHandling",(function(){return a})),n.d(t,"cloneVNode",(function(){return Pn})),n.d(t,"compatUtils",(function(){return kr})),n.d(t,"computed",(function(){return ar})),n.d(t,"createBlock",(function(){return On})),n.d(t,"createCommentVNode",(function(){return Rn})),n.d(t,"createElementBlock",(function(){return yn})),n.d(t,"createElementVNode",(function(){return Nn})),n.d(t,"createHydrationRenderer",(function(){return Xt})),n.d(t,"createPropsRestProxy",(function(){return vr})),n.d(t,"createRenderer",(function(){return Jt})),n.d(t,"createSlots",(function(){return dt})),n.d(t,"createStaticVNode",(function(){return An})),n.d(t,"createTextVNode",(function(){return In})),n.d(t,"createVNode",(function(){return kn})),n.d(t,"defineAsyncComponent",(function(){return Ae})),n.d(t,"defineComponent",(function(){return Pe})),n.d(t,"defineEmits",(function(){return ur})),n.d(t,"defineExpose",(function(){return dr})),n.d(t,"defineProps",(function(){return lr})),n.d(t,"devtools",(function(){return A})),n.d(t,"getCurrentInstance",(function(){return Hn})),n.d(t,"getTransitionRawChildren",(function(){return Ce})),n.d(t,"guardReactiveProps",(function(){return Cn})),n.d(t,"h",(function(){return yr})),n.d(t,"handleError",(function(){return u})),n.d(t,"initCustomFormatter",(function(){return wr})),n.d(t,"inject",(function(){return fe})),n.d(t,"isMemoSame",(function(){return xr})),n.d(t,"isRuntimeOnly",(function(){return er})),n.d(t,"isVNode",(function(){return _n})),n.d(t,"mergeDefaults",(function(){return gr})),n.d(t,"mergeProps",(function(){return Vn})),n.d(t,"nextTick",(function(){return x})),n.d(t,"onActivated",(function(){return Ve})),n.d(t,"onBeforeMount",(function(){return Ye})),n.d(t,"onBeforeUnmount",(function(){return Je})),n.d(t,"onBeforeUpdate",(function(){return Ge})),n.d(t,"onDeactivated",(function(){return $e})),n.d(t,"onErrorCaptured",(function(){return tt})),n.d(t,"onMounted",(function(){return Ke})),n.d(t,"onRenderTracked",(function(){return et})),n.d(t,"onRenderTriggered",(function(){return Qe})),n.d(t,"onServerPrefetch",(function(){return Ze})),n.d(t,"onUnmounted",(function(){return Xe})),n.d(t,"onUpdated",(function(){return qe})),n.d(t,"openBlock",(function(){return pn})),n.d(t,"popScopeId",(function(){return q})),n.d(t,"provide",(function(){return de})),n.d(t,"pushScopeId",(function(){return G})),n.d(t,"queuePostFlushCb",(function(){return k})),n.d(t,"registerRuntimeCompiler",(function(){return Qn})),n.d(t,"renderList",(function(){return ut})),n.d(t,"renderSlot",(function(){return ft})),n.d(t,"resolveComponent",(function(){return ot})),n.d(t,"resolveDirective",(function(){return ct})),n.d(t,"resolveDynamicComponent",(function(){return st})),n.d(t,"resolveFilter",(function(){return Nr})),n.d(t,"resolveTransitionHooks",(function(){return Ee})),n.d(t,"setBlockTracking",(function(){return vn})),n.d(t,"setDevtoolsHook",(function(){return F})),n.d(t,"setTransitionHooks",(function(){return Te})),n.d(t,"ssrContextKey",(function(){return Or})),n.d(t,"ssrUtils",(function(){return Er})),n.d(t,"toHandlers",(function(){return pt})),n.d(t,"transformVNodeArgs",(function(){return Sn})),n.d(t,"useAttrs",(function(){return hr})),n.d(t,"useSSRContext",(function(){return _r})),n.d(t,"useSlots",(function(){return pr})),n.d(t,"useTransitionState",(function(){return we})),n.d(t,"version",(function(){return jr})),n.d(t,"warn",(function(){return s})),n.d(t,"watch",(function(){return ve})),n.d(t,"watchEffect",(function(){return pe})),n.d(t,"watchPostEffect",(function(){return he})),n.d(t,"watchSyncEffect",(function(){return me})),n.d(t,"withAsyncContext",(function(){return br})),n.d(t,"withCtx",(function(){return X})),n.d(t,"withDefaults",(function(){return fr})),n.d(t,"withDirectives",(function(){return nt})),n.d(t,"withMemo",(function(){return Sr})),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,"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,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");n.d(t,"camelize",(function(){return o.camelize})),n.d(t,"capitalize",(function(){return o.capitalize})),n.d(t,"normalizeClass",(function(){return o.normalizeClass})),n.d(t,"normalizeProps",(function(){return o.normalizeProps})),n.d(t,"normalizeStyle",(function(){return o.normalizeStyle})),n.d(t,"toDisplayString",(function(){return o.toDisplayString})),n.d(t,"toHandlerKey",(function(){return o.toHandlerKey}));const i=[];function s(e,...t){Object(r.pauseTracking)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)a(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:e})=>`at <${sr(n,e.type)}>`).join("\n"),s]);else{const n=["[Vue warn]: "+e,...t];s.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+sr(e.component,e.type,r),i=">"+n;return e.props?[o,...c(e.props),i]:[o+i]}(e))}),t}(s)),console.warn(...n)}Object(r.resetTracking)()}function c(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(o.isString)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(o.isFunction)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Object(r.toRaw)(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function a(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){u(e,t,n)}return o}function l(e,t,n,r){if(Object(o.isFunction)(e)){const i=a(e,t,n,r);return i&&Object(o.isPromise)(i)&&i.catch(e=>{u(e,t,n)}),i}const i=[];for(let o=0;o>>1;P(p[r])P(e)-P(t)),O=0;Onull==e.id?1/0:e.id;function I(e){f=!1,d=!0,T(e),p.sort((e,t)=>P(e)-P(t));o.NOOP;try{for(h=0;hA.emit(e,...t)),R=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{F(e,t)}),setTimeout(()=>{A||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=!0,R=[])},3e3)}else M=!0,R=[]}const V=D("component:added"),$=D("component:updated"),B=D("component:removed");function D(e){return t=>{L(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function U(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),c=s&&t.slice(7);if(c&&c in r){const e=("modelValue"===c?"model":c)+"Modifiers",{number:t,trim:s}=r[e]||o.EMPTY_OBJ;s&&(i=n.map(e=>e.trim())),t&&(i=n.map(o.toNumber))}let a;__VUE_PROD_DEVTOOLS__&&function(e,t,n){L("component:emit",e.appContext.app,e,t,n)}(e,t,i);let u=r[a=Object(o.toHandlerKey)(t)]||r[a=Object(o.toHandlerKey)(Object(o.camelize)(t))];!u&&s&&(u=r[a=Object(o.toHandlerKey)(Object(o.hyphenate)(t))]),u&&l(u,e,6,i);const d=r[a+"Once"];if(d){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,l(d,e,6,i)}}function z(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let c={},a=!1;if(__VUE_OPTIONS_API__&&!Object(o.isFunction)(e)){const r=e=>{const n=z(e,t,!0);n&&(a=!0,Object(o.extend)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||a?(Object(o.isArray)(s)?s.forEach(e=>c[e]=null):Object(o.extend)(c,s),r.set(e,c),c):(r.set(e,null),null)}function H(e,t){return!(!e||!Object(o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(o.hasOwn)(e,Object(o.hyphenate)(t))||Object(o.hasOwn)(e,t))}let W=null,Y=null;function K(e){const t=W;return W=e,Y=e&&e.type.__scopeId||null,t}function G(e){Y=e}function q(){Y=null}const J=e=>X;function X(e,t=W,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&vn(-1);const o=K(t),i=e(...n);return K(o),r._d&&vn(1),__VUE_PROD_DEVTOOLS__&&$(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function Z(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[c],slots:a,attrs:l,emit:d,render:f,renderCache:p,data:h,setupState:m,ctx:g,inheritAttrs:v}=e;let b,y;const O=K(e);try{if(4&n.shapeFlag){const e=i||r;b=Mn(f.call(e,e,p,s,m,h,g)),y=l}else{const e=t;0,b=Mn(e.length>1?e(s,{attrs:l,slots:a,emit:d}):e(s,null)),y=t.props?l:ee(l)}}catch(t){dn.length=0,u(t,e,1),b=kn(ln)}let _=b;if(y&&!1!==v){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(c&&e.some(o.isModelListener)&&(y=te(y,c)),_=Pn(_,y))}return n.dirs&&(_=Pn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,K(O),b}function Q(e){let t;for(let n=0;n{let t;for(const n in e)("class"===n||"style"===n||Object(o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},te=(e,t)=>{const n={};for(const r in e)Object(o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function ne(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense,ie={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,c,a,l){null==e?function(e,t,n,r,o,i,s,c,a){const{p:l,o:{createElement:u}}=a,d=u("div"),f=e.suspense=ce(e,o,r,t,d,n,i,s,c,a);l(null,f.pendingBranch=e.ssContent,d,null,r,f,i,s),f.deps>0?(se(e,"onPending"),se(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),ue(f,e.ssFallback)):f.resolve()}(t,n,r,o,i,s,c,a,l):function(e,t,n,r,o,i,s,c,{p:a,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=f,wn(f,m)?(a(m,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():g&&(a(h,p,n,r,o,null,i,s,c),ue(d,p))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():(a(h,p,n,r,o,null,i,s,c),ue(d,p))):h&&wn(f,h)?(a(h,f,n,r,o,d,i,s,c),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0&&d.resolve()));else if(h&&wn(f,h))a(h,f,n,r,o,d,i,s,c),ue(d,f);else if(se(t,"onPending"),d.pendingBranch=f,d.pendingId++,a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,r,o,s,c,a,l)},hydrate:function(e,t,n,r,o,i,s,c,a){const l=t.suspense=ce(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,c,!0),u=a(e,l.pendingBranch=t.ssContent,n,l,i,s);0===l.deps&&l.resolve();return u},create:ce,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=ae(r?n.default:n),e.ssFallback=r?ae(n.fallback):kn(ln)}};function se(e,t){const n=e.props&&e.props[t];Object(o.isFunction)(n)&&n()}function ce(e,t,n,r,i,s,c,a,l,d,f=!1){const{p:p,m:h,um:m,n:g,o:{parentNode:v,remove:b}}=d,y=Object(o.toNumber)(e.props&&e.props.timeout),O={vnode:e,parent:t,parentComponent:n,isSVG:c,container:r,hiddenContainer:i,anchor:s,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:i,parentComponent:s,container:c}=O;if(O.isHydrating)O.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===O.pendingId&&h(r,c,t,0)});let{anchor:t}=O;n&&(t=g(n),m(n,s,O,!0)),e||h(r,c,t,0)}ue(O,r),O.pendingBranch=null,O.isInFallback=!1;let a=O.parent,l=!1;for(;a;){if(a.pendingBranch){a.effects.push(...i),l=!0;break}a=a.parent}l||k(i),O.effects=[],se(t,"onResolve")},fallback(e){if(!O.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:i}=O;se(t,"onFallback");const s=g(n),c=()=>{O.isInFallback&&(p(null,e,o,s,r,null,i,a,l),ue(O,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),O.isInFallback=!0,m(n,r,null,!0),u||c()},move(e,t,n){O.activeBranch&&h(O.activeBranch,e,t,n),O.container=e},next:()=>O.activeBranch&&g(O.activeBranch),registerDep(e,t){const n=!!O.pendingBranch;n&&O.deps++;const r=e.vnode.el;e.asyncDep.catch(t=>{u(t,e,0)}).then(o=>{if(e.isUnmounted||O.isUnmounted||O.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Zn(e,o,!1),r&&(i.el=r);const s=!r&&e.subTree.el;t(e,i,v(r||e.subTree.el),r?null:g(e.subTree),O,c,l),s&&b(s),re(e,i.el),n&&0==--O.deps&&O.resolve()})},unmount(e,t){O.isUnmounted=!0,O.activeBranch&&m(O.activeBranch,n,e,t),O.pendingBranch&&m(O.pendingBranch,n,e,t)}};return O}function ae(e){let t;if(Object(o.isFunction)(e)){const n=gn&&e._c;n&&(e._d=!1,pn()),e=e(),n&&(e._d=!0,t=fn,hn())}if(Object(o.isArray)(e)){const t=Q(e);0,e=t}return e=Mn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function le(e,t){t&&t.pendingBranch?Object(o.isArray)(e)?t.effects.push(...e):t.effects.push(e):k(e)}function ue(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,re(r,o))}function de(e,t){if(zn){let n=zn.provides;const r=zn.parent&&zn.parent.provides;r===n&&(n=zn.provides=Object.create(r)),n[e]=t}else 0}function fe(e,t,n=!1){const r=zn||W;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Object(o.isFunction)(t)?t.call(r.proxy):t}else 0}function pe(e,t){return be(e,null,t)}function he(e,t){return be(e,null,{flush:"post"})}function me(e,t){return be(e,null,{flush:"sync"})}const ge={};function ve(e,t,n){return be(e,t,n)}function be(e,t,{immediate:n,deep:i,flush:s,onTrack:c,onTrigger:u}=o.EMPTY_OBJ){const d=zn;let f,p,h=!1,b=!1;if(Object(r.isRef)(e)?(f=()=>e.value,h=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(f=()=>e,i=!0):Object(o.isArray)(e)?(b=!0,h=e.some(e=>Object(r.isReactive)(e)||Object(r.isShallow)(e)),f=()=>e.map(e=>Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?_e(e):Object(o.isFunction)(e)?a(e,d,2):void 0)):f=Object(o.isFunction)(e)?t?()=>a(e,d,2):()=>{if(!d||!d.isUnmounted)return p&&p(),l(e,d,3,[y])}:o.NOOP,t&&i){const e=f;f=()=>_e(e())}let y=e=>{p=S.onStop=()=>{a(e,d,4)}};if(Jn)return y=o.NOOP,t?n&&l(t,d,3,[f(),b?[]:void 0,y]):f(),o.NOOP;let O=b?[]:ge;const _=()=>{if(S.active)if(t){const e=S.run();(i||h||(b?e.some((e,t)=>Object(o.hasChanged)(e,O[t])):Object(o.hasChanged)(e,O)))&&(p&&p(),l(t,d,3,[e,O===ge?void 0:O,y]),O=e)}else S.run()};let w;_.allowRecurse=!!t,w="sync"===s?_:"post"===s?()=>qt(_,d&&d.suspense):()=>function(e){N(e,g,m,v)}(_);const S=new r.ReactiveEffect(f,w);return t?n?_():O=S.run():"post"===s?qt(S.run.bind(S),d&&d.suspense):S.run(),()=>{S.stop(),d&&d.scope&&Object(o.remove)(d.scope.effects,S)}}function ye(e,t,n){const r=this.proxy,i=Object(o.isString)(e)?e.includes(".")?Oe(r,e):()=>r[e]:e.bind(r,r);let s;Object(o.isFunction)(t)?s=t:(s=t.handler,n=t);const c=zn;Wn(this);const a=be(i,s.bind(r),n);return c?Wn(c):Yn(),a}function Oe(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{_e(e,t)});else if(Object(o.isPlainObject)(e))for(const n in e)_e(e[n],t);return e}function we(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ke(()=>{e.isMounted=!0}),Je(()=>{e.isUnmounting=!0}),e}const Se=[Function,Array],xe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Se,onEnter:Se,onAfterEnter:Se,onEnterCancelled:Se,onBeforeLeave:Se,onLeave:Se,onAfterLeave:Se,onLeaveCancelled:Se,onBeforeAppear:Se,onAppear:Se,onAfterAppear:Se,onAppearCancelled:Se},setup(e,{slots:t}){const n=Hn(),o=we();let i;return()=>{const s=t.default&&Ce(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){let e=!1;for(const t of s)if(t.type!==ln){0,c=t,e=!0;break}}const a=Object(r.toRaw)(e),{mode:l}=a;if(o.isLeaving)return Ne(c);const u=ke(c);if(!u)return Ne(c);const d=Ee(u,a,o,n);Te(u,d);const f=n.subTree,p=f&&ke(f);let h=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(p&&p.type!==ln&&(!wn(u,p)||h)){const e=Ee(p,a,o,n);if(Te(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Ne(c);"in-out"===l&&u.type!==ln&&(e.delayLeave=(e,t,n)=>{je(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return c}}};function je(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ee(e,t,n,r){const{appear:i,mode:s,persisted:c=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:y,onAppearCancelled:O}=t,_=String(e.key),w=je(n,e),S=(e,t)=>{e&&l(e,r,9,t)},x=(e,t)=>{const n=t[1];S(e,t),Object(o.isArray)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},j={mode:s,persisted:c,beforeEnter(t){let r=a;if(!n.isMounted){if(!i)return;r=v||a}t._leaveCb&&t._leaveCb(!0);const o=w[_];o&&wn(e,o)&&o.el._leaveCb&&o.el._leaveCb(),S(r,[t])},enter(e){let t=u,r=d,o=f;if(!n.isMounted){if(!i)return;t=b||u,r=y||d,o=O||f}let s=!1;const c=e._enterCb=t=>{s||(s=!0,S(t?o:r,[e]),j.delayedLeave&&j.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(p,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,r(),S(n?g:m,[t]),t._leaveCb=void 0,w[o]===e&&delete w[o])};w[o]=e,h?x(h,[t,s]):s()},clone:e=>Ee(e,t,n,r)};return j}function Ne(e){if(Me(e))return(e=Pn(e)).children=null,e}function ke(e){return Me(e)?e.children?e.children[0]:void 0:e}function Te(e,t){6&e.shapeFlag&&e.component?Te(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 Ce(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;e!!e.type.__asyncLoader;function Ae(e){Object(o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:c,suspensible:a=!0,onError:l}=e;let d,f=null,p=0;const h=()=>{let e;return f||(e=f=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((p++,f=null,h())),()=>n(e),p+1)});throw e}).then(t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),d=t,t)))};return Pe({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return d},setup(){const e=zn;if(d)return()=>Re(d,e);const t=t=>{f=null,u(t,e,13,!i)};if(a&&e.suspense||Jn)return h().then(t=>()=>Re(t,e)).catch(e=>(t(e),()=>i?kn(i,{error:e}):null));const o=Object(r.ref)(!1),l=Object(r.ref)(),p=Object(r.ref)(!!s);return s&&setTimeout(()=>{p.value=!1},s),null!=c&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}},c),h().then(()=>{o.value=!0,e.parent&&Me(e.parent.vnode)&&j(e.parent.update)}).catch(e=>{t(e),l.value=e}),()=>o.value&&d?Re(d,e):l.value&&i?kn(i,{error:l.value}):n&&!p.value?kn(n):void 0}})}function Re(e,{vnode:{ref:t,props:n,children:r,shapeFlag:o},parent:i}){const s=kn(e,n,r);return s.ref=t,s}const Me=e=>e.type.__isKeepAlive,Le={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Hn(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let c=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=i);const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:f}}}=r,p=f("div");function h(e){Ue(e),d(e,n,a,!0)}function m(e){i.forEach((t,n)=>{const r=ir(t.type);!r||e&&e(r)||g(n)})}function g(e){const t=i.get(e);c&&t.type===c.type?c&&Ue(c):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,a),l(s.vnode,e,t,n,s,a,r,e.slotScopeIds,i),qt(()=>{s.isDeactivated=!1,s.a&&Object(o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&$n(t,s.parent,e)},a),__VUE_PROD_DEVTOOLS__&&V(s)},r.deactivate=e=>{const t=e.component;u(e,p,null,1,a),qt(()=>{t.da&&Object(o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&$n(n,t.parent,e),t.isDeactivated=!0},a),__VUE_PROD_DEVTOOLS__&&V(t)},ve(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Fe(e,t)),t&&m(e=>!Fe(t,e))},{flush:"post",deep:!0});let v=null;const b=()=>{null!=v&&i.set(v,ze(n.subTree))};return Ke(b),qe(b),Je(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=ze(t);if(e.type!==o.type)h(e);else{Ue(o);const e=o.component.da;e&&qt(e,r)}})}),()=>{if(v=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!(_n(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return c=null,r;let o=ze(r);const a=o.type,l=ir(Ie(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Fe(u,l))||d&&l&&Fe(d,l))return c=o,r;const p=null==o.key?a:o.key,h=i.get(p);return o.el&&(o=Pn(o),128&r.shapeFlag&&(r.ssContent=o)),v=p,h?(o.el=h.el,o.component=h.component,o.transition&&Te(o,o.transition),o.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),f&&s.size>parseInt(f,10)&&g(s.values().next().value)),o.shapeFlag|=256,c=o,oe(r.type)?r:o}}};function Fe(e,t){return Object(o.isArray)(e)?e.some(e=>Fe(e,t)):Object(o.isString)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Ve(e,t){Be(e,"a",t)}function $e(e,t){Be(e,"da",t)}function Be(e,t,n=zn){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(He(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Me(e.parent.vnode)&&De(r,t,n,e),e=e.parent}}function De(e,t,n,r){const i=He(t,e,r,!0);Xe(()=>{Object(o.remove)(r[t],i)},n)}function Ue(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function ze(e){return 128&e.shapeFlag?e.ssContent:e}function He(e,t,n=zn,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Object(r.pauseTracking)(),Wn(n);const i=l(t,n,e,o);return Yn(),Object(r.resetTracking)(),i});return o?i.unshift(s):i.push(s),s}}const We=e=>(t,n=zn)=>(!Jn||"sp"===e)&&He(e,t,n),Ye=We("bm"),Ke=We("m"),Ge=We("bu"),qe=We("u"),Je=We("bum"),Xe=We("um"),Ze=We("sp"),Qe=We("rtg"),et=We("rtc");function tt(e,t=zn){He("ec",e,t)}function nt(e,t){const n=W;if(null===n)return e;const r=rr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r!_n(t)||t.type!==ln&&!(t.type===cn&&!e(t.children)))?t:null}(i(n)),c=On(cn,{key:n.key||"_"+t},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function pt(e){const t={};for(const n in e)t[Object(o.toHandlerKey)(n)]=e[n];return t}const ht=e=>e?Kn(e)?rr(e)||e.proxy:ht(e.parent):null,mt=Object(o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ht(e.parent),$root:e=>ht(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?wt(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>j(e.update)),$nextTick:e=>e.n||(e.n=x.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?ye.bind(e):o.NOOP}),gt={get({_:e},t){const{ctx:n,setupState:i,data:s,props:c,accessCache:a,type:l,appContext:u}=e;let d;if("$"!==t[0]){const r=a[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return c[t]}else{if(i!==o.EMPTY_OBJ&&Object(o.hasOwn)(i,t))return a[t]=1,i[t];if(s!==o.EMPTY_OBJ&&Object(o.hasOwn)(s,t))return a[t]=2,s[t];if((d=e.propsOptions[0])&&Object(o.hasOwn)(d,t))return a[t]=3,c[t];if(n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!bt||(a[t]=0)}}const f=mt[t];let p,h;return f?("$attrs"===t&&Object(r.track)(e,"get",t),f(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t)?(a[t]=4,n[t]):(h=u.config.globalProperties,Object(o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return i!==o.EMPTY_OBJ&&Object(o.hasOwn)(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&Object(o.hasOwn)(r,t)?(r[t]=n,!0):!Object(o.hasOwn)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!n[c]||e!==o.EMPTY_OBJ&&Object(o.hasOwn)(e,c)||t!==o.EMPTY_OBJ&&Object(o.hasOwn)(t,c)||(a=s[0])&&Object(o.hasOwn)(a,c)||Object(o.hasOwn)(r,c)||Object(o.hasOwn)(mt,c)||Object(o.hasOwn)(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const vt=Object(o.extend)({},gt,{get(e,t){if(t!==Symbol.unscopables)return gt.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(o.isGloballyWhitelisted)(t)});let bt=!0;function yt(e){const t=wt(e),n=e.proxy,i=e.ctx;bt=!1,t.beforeCreate&&Ot(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:a,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:v,deactivated:b,beforeDestroy:y,beforeUnmount:O,destroyed:_,unmounted:w,render:S,renderTracked:x,renderTriggered:j,errorCaptured:E,serverPrefetch:N,expose:k,inheritAttrs:T,components:C,directives:P,filters:I}=t;if(d&&function(e,t,n=o.NOOP,i=!1){Object(o.isArray)(e)&&(e=Et(e));for(const n in e){const s=e[n];let c;c=Object(o.isObject)(s)?"default"in s?fe(s.from||n,s.default,!0):fe(s.from||n):fe(s),Object(r.isRef)(c)&&i?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e}):t[n]=c}}(d,i,null,e.appContext.config.unwrapInjectedRef),a)for(const e in a){const t=a[e];Object(o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,Object(o.isObject)(t)&&(e.data=Object(r.reactive)(t))}if(bt=!0,c)for(const e in c){const t=c[e],r=Object(o.isFunction)(t)?t.bind(n,n):Object(o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP;0;const s=!Object(o.isFunction)(t)&&Object(o.isFunction)(t.set)?t.set.bind(n):o.NOOP,a=ar({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const e in l)_t(l[e],i,n,e);if(u){const e=Object(o.isFunction)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{de(t,e[t])})}function A(e,t){Object(o.isArray)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(f&&Ot(f,e,"c"),A(Ye,p),A(Ke,h),A(Ge,m),A(qe,g),A(Ve,v),A($e,b),A(tt,E),A(et,x),A(Qe,j),A(Je,O),A(Xe,w),A(Ze,N),Object(o.isArray)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=T&&(e.inheritAttrs=T),C&&(e.components=C),P&&(e.directives=P)}function Ot(e,t,n){l(Object(o.isArray)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function _t(e,t,n,r){const i=r.includes(".")?Oe(n,r):()=>n[r];if(Object(o.isString)(e)){const n=t[e];Object(o.isFunction)(n)&&ve(i,n)}else if(Object(o.isFunction)(e))ve(i,e.bind(n));else if(Object(o.isObject)(e))if(Object(o.isArray)(e))e.forEach(e=>_t(e,t,n,r));else{const r=Object(o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(o.isFunction)(r)&&ve(i,r,e)}else 0}function wt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:o.length||n||r?(a={},o.length&&o.forEach(e=>St(a,e,s,!0)),St(a,t,s)):a=t,i.set(t,a),a}function St(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&St(e,i,n,!0),o&&o.forEach(t=>St(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=xt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const xt={data:jt,props:kt,emits:kt,methods:kt,computed:kt,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:kt,directives:kt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(o.extend)(Object.create(null),e);for(const r in t)n[r]=Nt(e[r],t[r]);return n},provide:jt,inject:function(e,t){return kt(Et(e),Et(t))}};function jt(e,t){return t?e?function(){return Object(o.extend)(Object(o.isFunction)(e)?e.call(this,this):e,Object(o.isFunction)(t)?t.call(this,this):t)}:t:e}function Et(e){if(Object(o.isArray)(e)){const t={};for(let n=0;n{l=!0;const[n,r]=Pt(e,t,!0);Object(o.extend)(c,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if(Object(o.isArray)(s))for(let e=0;e-1,r[1]=n<0||e-1||Object(o.hasOwn)(r,"default"))&&a.push(t)}}}}const u=[c,a];return r.set(e,u),u}function It(e){return"$"!==e[0]}function At(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Rt(e,t){return At(e)===At(t)}function Mt(e,t){return Object(o.isArray)(t)?t.findIndex(t=>Rt(t,e)):Object(o.isFunction)(t)&&Rt(t,e)?0:-1}const Lt=e=>"_"===e[0]||"$stable"===e,Ft=e=>Object(o.isArray)(e)?e.map(Mn):[Mn(e)],Vt=(e,t,n)=>{if(t._n)return t;const r=X((...e)=>Ft(t(...e)),n);return r._c=!1,r},$t=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Lt(n))continue;const i=e[n];if(Object(o.isFunction)(i))t[n]=Vt(0,i,r);else if(null!=i){0;const e=Ft(i);t[n]=()=>e}}},Bt=(e,t)=>{const n=Ft(t);e.slots.default=()=>n};function Dt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ut=0;function zt(e,t){return function(n,r=null){Object(o.isFunction)(n)||(n=Object.assign({},n)),null==r||Object(o.isObject)(r)||(r=null);const i=Dt(),s=new Set;let c=!1;const a=i.app={_uid:Ut++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:jr,get config(){return i.config},set config(e){0},use:(e,...t)=>(s.has(e)||(e&&Object(o.isFunction)(e.install)?(s.add(e),e.install(a,...t)):Object(o.isFunction)(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,s,l){if(!c){0;const u=kn(n,r);return u.appContext=i,s&&t?t(u,o):e(u,o,l),c=!0,a._container=o,o.__vue_app__=a,__VUE_PROD_DEVTOOLS__&&(a._instance=u.component,function(e,t){L("app:init",e,t,{Fragment:cn,Text:an,Comment:ln,Static:un})}(a,jr)),rr(u.component)||u.component.proxy}},unmount(){c&&(e(null,a._container),__VUE_PROD_DEVTOOLS__&&(a._instance=null,function(e){L("app:unmount",e)}(a)),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a)};return a}}function Ht(e,t,n,i,s=!1){if(Object(o.isArray)(e))return void e.forEach((e,r)=>Ht(e,t&&(Object(o.isArray)(t)?t[r]:t),n,i,s));if(Ie(i)&&!s)return;const c=4&i.shapeFlag?rr(i.component)||i.component.proxy:i.el,l=s?null:c,{i:u,r:d}=e;const f=t&&t.r,p=u.refs===o.EMPTY_OBJ?u.refs={}:u.refs,h=u.setupState;if(null!=f&&f!==d&&(Object(o.isString)(f)?(p[f]=null,Object(o.hasOwn)(h,f)&&(h[f]=null)):Object(r.isRef)(f)&&(f.value=null)),Object(o.isFunction)(d))a(d,u,12,[l,p]);else{const t=Object(o.isString)(d),i=Object(r.isRef)(d);if(t||i){const r=()=>{if(e.f){const n=t?p[d]:d.value;s?Object(o.isArray)(n)&&Object(o.remove)(n,c):Object(o.isArray)(n)?n.includes(c)||n.push(c):t?(p[d]=[c],Object(o.hasOwn)(h,d)&&(h[d]=p[d])):(d.value=[c],e.k&&(p[e.k]=d.value))}else t?(p[d]=l,Object(o.hasOwn)(h,d)&&(h[d]=l)):i&&(d.value=l,e.k&&(p[e.k]=l))};l?(r.id=-1,qt(r,n)):r()}else 0}}let Wt=!1;const Yt=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Kt=e=>8===e.nodeType;function Gt(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:s,parentNode:c,remove:a,insert:l,createComment:u}}=e,d=(n,r,o,a,u,v=!1)=>{const b=Kt(n)&&"["===n.data,y=()=>m(n,r,o,a,u,b),{type:O,ref:_,shapeFlag:w,patchFlag:S}=r,x=n.nodeType;r.el=n,-2===S&&(v=!1,r.dynamicChildren=null);let j=null;switch(O){case an:3!==x?""===r.children?(l(r.el=i(""),c(n),n),j=n):j=y():(n.data!==r.children&&(Wt=!0,n.data=r.children),j=s(n));break;case ln:j=8!==x||b?y():s(n);break;case un:if(1===x||3===x){j=n;const e=!r.children.length;for(let t=0;t{c=c||!!t.dynamicChildren;const{type:l,props:u,patchFlag:d,shapeFlag:f,dirs:h}=t,m="input"===l&&h||"option"===l;if(m||-1!==d){if(h&&rt(t,null,n,"created"),u)if(m||!c||48&d)for(const t in u)(m&&t.endsWith("value")||Object(o.isOn)(t)&&!Object(o.isReservedProp)(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let l;if((l=u&&u.onVnodeBeforeMount)&&$n(l,n,t),h&&rt(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||h)&&le(()=>{l&&$n(l,n,t),h&&rt(t,null,n,"mounted")},i),16&f&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,i,s,c);for(;r;){Wt=!0;const e=r;r=r.nextSibling,a(e)}}else 8&f&&e.textContent!==t.children&&(Wt=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,i,s,c)=>{c=c||!!t.dynamicChildren;const a=t.children,l=a.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const d=c(e),f=p(s(e),t,d,n,r,o,i);return f&&Kt(f)&&"]"===f.data?s(t.anchor=f):(Wt=!0,l(t.anchor=u("]"),d,f),f)},m=(e,t,r,o,i,l)=>{if(Wt=!0,t.el=null,l){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;a(n)}}const u=s(e),d=c(e);return a(e),n(null,t,d,u,r,o,Yt(d),i),u},g=e=>{let t=0;for(;e;)if((e=s(e))&&Kt(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return s(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),C(),void(t._vnode=e);Wt=!1,d(t.firstChild,e,null,null,null),C(),t._vnode=e,Wt&&console.error("Hydration completed but contains mismatches.")},d]}const qt=le;function Jt(e){return Zt(e)}function Xt(e){return Zt(e,Gt)}function Zt(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(o.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Object(o.getGlobalThis)().__VUE_PROD_DEVTOOLS__=!1);const n=Object(o.getGlobalThis)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&F(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:s,patchProp:c,createElement:a,createText:l,createComment:u,setText:d,setElementText:f,parentNode:m,nextSibling:g,setScopeId:v=o.NOOP,cloneNode:b,insertStaticContent:y}=e,O=(e,t,n,r=null,o=null,i=null,s=!1,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!wn(e,t)&&(r=oe(e),J(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case an:_(e,t,n,r);break;case ln:w(e,t,n,r);break;case un:null==e&&S(t,n,r,s);break;case cn:M(e,t,n,r,o,i,s,c,a);break;default:1&d?E(e,t,n,r,o,i,s,c,a):6&d?L(e,t,n,r,o,i,s,c,a):(64&d||128&d)&&l.process(e,t,n,r,o,i,s,c,a,se)}null!=u&&o&&Ht(u,e&&e.ref,i,t||e,!t)},_=(e,t,n,r)=>{if(null==e)i(t.el=l(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,n,r)=>{null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=y(e.children,t,n,r,e.el,e.anchor)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),s(e),e=n;s(t)},E=(e,t,n,r,o,i,s,c,a)=>{s=s||"svg"===t.type,null==e?N(t,n,r,o,i,s,c,a):I(e,t,o,i,s,c,a)},N=(e,t,n,r,s,l,u,d)=>{let p,h;const{type:m,props:g,shapeFlag:v,transition:y,patchFlag:O,dirs:_}=e;if(e.el&&void 0!==b&&-1===O)p=e.el=b(e.el);else{if(p=e.el=a(e.type,l,g&&g.is,g),8&v?f(p,e.children):16&v&&P(e.children,p,null,r,s,l&&"foreignObject"!==m,u,d),_&&rt(e,null,r,"created"),g){for(const t in g)"value"===t||Object(o.isReservedProp)(t)||c(p,t,null,g[t],l,e.children,r,s,te);"value"in g&&c(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&$n(h,r,e)}k(p,e,e.scopeId,u,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:r,enumerable:!1})),_&&rt(e,null,r,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;w&&y.beforeEnter(p),i(p,t,n),((h=g&&g.onVnodeMounted)||w||_)&&qt(()=>{h&&$n(h,r,e),w&&y.enter(p),_&&rt(e,null,r,"mounted")},s)},k=(e,t,n,r,o)=>{if(n&&v(e,n),r)for(let t=0;t{for(let l=a;l{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let g;n&&Qt(n,!1),(g=m.onVnodeBeforeUpdate)&&$n(g,n,t,e),p&&rt(t,e,n,"beforeUpdate"),n&&Qt(n,!0);const v=i&&"foreignObject"!==t.type;if(d?A(e.dynamicChildren,d,l,n,r,v,s):a||Y(e,t,l,null,n,r,v,s,!1),u>0){if(16&u)R(l,t,h,m,n,r,i);else if(2&u&&h.class!==m.class&&c(l,"class",null,m.class,i),4&u&&c(l,"style",h.style,m.style,i),8&u){const o=t.dynamicProps;for(let t=0;t{g&&$n(g,n,t,e),p&&rt(t,e,n,"updated")},r)},A=(e,t,n,r,o,i,s)=>{for(let c=0;c{if(n!==r){for(const l in r){if(Object(o.isReservedProp)(l))continue;const u=r[l],d=n[l];u!==d&&"value"!==l&&c(e,l,d,u,a,t.children,i,s,te)}if(n!==o.EMPTY_OBJ)for(const l in n)Object(o.isReservedProp)(l)||l in r||c(e,l,n[l],null,a,t.children,i,s,te);"value"in r&&c(e,"value",n.value,r.value)}},M=(e,t,n,r,o,s,c,a,u)=>{const d=t.el=e?e.el:l(""),f=t.anchor=e?e.anchor:l("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(i(d,n,r),i(f,n,r),P(t.children,n,f,o,s,c,a,u)):p>0&&64&p&&h&&e.dynamicChildren?(A(e.dynamicChildren,h,n,o,s,c,a),(null!=t.key||o&&t===o.subTree)&&en(e,t,!0)):Y(e,t,n,f,o,s,c,a,u)},L=(e,t,n,r,o,i,s,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):D(t,n,r,o,i,s,a):U(e,t,a)},D=(e,t,n,r,o,i,s)=>{const c=e.component=Un(e,r,o);if(Me(e)&&(c.ctx.renderer=se),Xn(c),c.asyncDep){if(o&&o.registerDep(c,z),!e.el){const e=c.subTree=kn(ln);w(null,e,t,n)}}else z(c,e,t,n,o,i,s)},U=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:c,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||r!==s&&(r?!s||ne(r,s,l):!!s);if(1024&a)return!0;if(16&a)return r?ne(r,s,l):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;th&&p.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,i,s,c,a)=>{const l=e.effect=new r.ReactiveEffect(()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:l,vnode:u}=e,d=n;0,Qt(e,!1),n?(n.el=u.el,W(e,n,a)):n=u,r&&Object(o.invokeArrayFns)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$n(t,l,n,u),Qt(e,!0);const f=Z(e);0;const p=e.subTree;e.subTree=f,O(p,f,m(p.el),oe(p),e,s,c),n.el=f.el,null===d&&re(e,f.el),i&&qt(i,s),(t=n.props&&n.props.onVnodeUpdated)&&qt(()=>$n(t,l,n,u),s),__VUE_PROD_DEVTOOLS__&&$(e)}else{let r;const{el:a,props:l}=t,{bm:u,m:d,parent:f}=e,p=Ie(t);if(Qt(e,!1),u&&Object(o.invokeArrayFns)(u),!p&&(r=l&&l.onVnodeBeforeMount)&&$n(r,f,t),Qt(e,!0),a&&ae){const n=()=>{e.subTree=Z(e),ae(a,e.subTree,e,s,null)};p?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Z(e);0,O(null,r,n,i,e,s,c),t.el=r.el}if(d&&qt(d,s),!p&&(r=l&&l.onVnodeMounted)){const e=t;qt(()=>$n(r,f,e),s)}(256&t.shapeFlag||f&&Ie(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&qt(e.a,s),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&V(e),t=n=i=null}},()=>j(u),e.scope),u=e.update=()=>l.run();u.id=e.uid,Qt(e,!0),u()},W=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:c,vnode:{patchFlag:a}}=e,l=Object(r.toRaw)(s),[u]=e.propsOptions;let d=!1;if(!(i||a>0)||16&a){let r;Tt(e,t,s,c)&&(d=!0);for(const i in l)t&&(Object(o.hasOwn)(t,i)||(r=Object(o.hyphenate)(i))!==i&&Object(o.hasOwn)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=Ct(u,l,i,void 0,e,!0)):delete s[i]);if(c!==l)for(const e in c)t&&Object(o.hasOwn)(t,e)||(delete c[e],d=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let s=!0,c=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(Object(o.extend)(i,t),n||1!==e||delete i._):(s=!t.$stable,$t(t,i)),c=t}else t&&(Bt(e,t),c={default:1});if(s)for(const e in i)Lt(e)||e in c||delete i[e]})(e,t.children,n),Object(r.pauseTracking)(),T(void 0,e.update),Object(r.resetTracking)()},Y=(e,t,n,r,o,i,s,c,a=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void G(l,d,n,r,o,i,s,c,a);if(256&p)return void K(l,d,n,r,o,i,s,c,a)}8&h?(16&u&&te(l,o,i),d!==l&&f(n,d)):16&u?16&h?G(l,d,n,r,o,i,s,c,a):te(l,o,i,!0):(8&u&&f(n,""),16&h&&P(d,n,r,o,i,s,c,a))},K=(e,t,n,r,i,s,c,a,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const u=e.length,d=t.length,f=Math.min(u,d);let p;for(p=0;pd?te(e,i,s,!0,!1,f):P(t,n,r,i,s,c,a,l,f)},G=(e,t,n,r,i,s,c,a,l)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const r=e[u],o=t[u]=l?Ln(t[u]):Mn(t[u]);if(!wn(r,o))break;O(r,o,n,null,i,s,c,a,l),u++}for(;u<=f&&u<=p;){const r=e[f],o=t[p]=l?Ln(t[p]):Mn(t[p]);if(!wn(r,o))break;O(r,o,n,null,i,s,c,a,l),f--,p--}if(u>f){if(u<=p){const e=p+1,o=ep)for(;u<=f;)J(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?Ln(t[u]):Mn(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const y=p-m+1;let _=!1,w=0;const S=new Array(y);for(u=0;u=y){J(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(v=m;v<=p;v++)if(0===S[v-m]&&wn(r,t[v])){o=v;break}void 0===o?J(r,i,s,!0):(S[o-m]=u+1,o>=w?w=o:_=!0,O(r,t[o],n,null,i,s,c,a,l),b++)}const x=_?function(e){const t=e.slice(),n=[0];let r,o,i,s,c;const a=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(v=x.length-1,u=y-1;u>=0;u--){const e=m+u,o=t[e],f=e+1{const{el:s,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)return void q(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void c.move(e,t,n,se);if(c===cn){i(s,t,n);for(let e=0;e{let o;for(;e&&e!==t;)o=g(e),i(e,n,r),e=o;i(t,n,r)})(e,t,n);if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(s),i(s,t,n),qt(()=>a.enter(s),o);else{const{leave:e,delayLeave:r,afterLeave:o}=a,c=()=>i(s,t,n),l=()=>{e(s,()=>{c(),o&&o()})};r?r(s,c,l):l()}else i(s,t,n)},J=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=c&&Ht(c,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&f,h=!Ie(e);let m;if(h&&(m=s&&s.onVnodeBeforeUnmount)&&$n(m,t,e),6&u)ee(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);p&&rt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,se,r):l&&(i!==cn||d>0&&64&d)?te(l,t,n,!1,!0):(i===cn&&384&d||!o&&16&u)&&te(a,t,n),r&&X(e)}(h&&(m=s&&s.onVnodeUnmounted)||p)&&qt(()=>{m&&$n(m,t,e),p&&rt(e,null,t,"unmounted")},n)},X=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===cn)return void Q(n,r);if(t===un)return void x(e);const i=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,s=()=>t(n,i);r?r(e.el,i,s):s()}else i()},Q=(e,t)=>{let n;for(;e!==t;)n=g(e),s(e),e=n;s(t)},ee=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:c,um:a}=e;r&&Object(o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,J(c,e,t,n)),a&&qt(a,t),qt(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&B(e)},te=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?oe(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el),ie=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):O(t._vnode||null,e,t,null,null,null,n),C(),t._vnode=e},se={p:O,um:J,m:q,r:X,mt:D,mc:P,pc:Y,pbc:A,n:oe,o:e};let ce,ae;return t&&([ce,ae]=t(se)),{render:ie,hydrate:ce,createApp:zt(ie,ce)}}function Qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function en(e,t,n=!1){const r=e.children,i=t.children;if(Object(o.isArray)(r)&&Object(o.isArray)(i))for(let e=0;ee&&(e.disabled||""===e.disabled),nn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rn=(e,t)=>{const n=e&&e.to;if(Object(o.isString)(n)){if(t){const e=t(n);return e}return null}return n};function on(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:c,shapeFlag:a,children:l,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||tn(u))&&16&a)for(let e=0;e{16&b&&u(y,e,t,o,i,s,c,a)};v?g(n,l):d&&g(d,f)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=tn(e.props),g=m?n:u,b=m?r:p;if(s=s||nn(u),O?(f(e.dynamicChildren,O,g,o,i,s,c),en(e,t,!0)):a||d(e,t,g,b,o,i,s,c,!1),v)m||on(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=rn(t.props,h);e&&on(t,e,null,l,0)}else m&&on(t,u,p,l,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:c,children:a,anchor:l,targetAnchor:u,target:d,props:f}=e;if(d&&i(u),(s||!tn(f))&&(i(l),16&c))for(let e=0;e0?fn||o.EMPTY_ARR:null,hn(),gn>0&&fn&&fn.push(e),e}function yn(e,t,n,r,o,i){return bn(Nn(e,t,n,r,o,i,!0))}function On(e,t,n,r,o){return bn(kn(e,t,n,r,o,!0))}function _n(e){return!!e&&!0===e.__v_isVNode}function wn(e,t){return e.type===t.type&&e.key===t.key}function Sn(e){mn=e}const xn="__vInternal",jn=({key:e})=>null!=e?e:null,En=({ref:e,ref_key:t,ref_for:n})=>null!=e?Object(o.isString)(e)||Object(r.isRef)(e)||Object(o.isFunction)(e)?{i:W,r:e,k:t,f:!!n}:e:null;function Nn(e,t=null,n=null,r=0,i=null,s=(e===cn?0:1),c=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jn(t),ref:t&&En(t),scopeId:Y,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Fn(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=Object(o.isString)(n)?8:16),gn>0&&!c&&fn&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&fn.push(l),l}const kn=Tn;function Tn(e,t=null,n=null,i=0,s=null,c=!1){if(e&&e!==it||(e=ln),_n(e)){const r=Pn(e,t,!0);return n&&Fn(r,n),gn>0&&!c&&fn&&(6&r.shapeFlag?fn[fn.indexOf(e)]=r:fn.push(r)),r.patchFlag|=-2,r}if(cr(e)&&(e=e.__vccOpts),t){t=Cn(t);let{class:e,style:n}=t;e&&!Object(o.isString)(e)&&(t.class=Object(o.normalizeClass)(e)),Object(o.isObject)(n)&&(Object(r.isProxy)(n)&&!Object(o.isArray)(n)&&(n=Object(o.extend)({},n)),t.style=Object(o.normalizeStyle)(n))}return Nn(e,t,n,i,s,Object(o.isString)(e)?1:oe(e)?128:(e=>e.__isTeleport)(e)?64:Object(o.isObject)(e)?4:Object(o.isFunction)(e)?2:0,c,!0)}function Cn(e){return e?Object(r.isProxy)(e)||xn in e?Object(o.extend)({},e):e:null}function Pn(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:c}=e,a=t?Vn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&jn(a),ref:t&&t.ref?n&&i?Object(o.isArray)(i)?i.concat(En(t)):[i,En(t)]:En(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==cn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pn(e.ssContent),ssFallback:e.ssFallback&&Pn(e.ssFallback),el:e.el,anchor:e.anchor}}function In(e=" ",t=0){return kn(an,null,e,t)}function An(e,t){const n=kn(un,null,e);return n.staticCount=t,n}function Rn(e="",t=!1){return t?(pn(),On(ln,null,e)):kn(ln,null,e)}function Mn(e){return null==e||"boolean"==typeof e?kn(ln):Object(o.isArray)(e)?kn(cn,null,e.slice()):"object"==typeof e?Ln(e):kn(an,null,String(e))}function Ln(e){return null===e.el||e.memo?e:Pn(e)}function Fn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Fn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||xn in t?3===r&&W&&(1===W.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=W}}else Object(o.isFunction)(t)?(t={default:t,_ctx:W},n=32):(t=String(t),64&r?(n=16,t=[In(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vn(...e){const t={};for(let n=0;nzn||W,Wn=e=>{zn=e,e.scope.on()},Yn=()=>{zn&&zn.scope.off(),zn=null};function Kn(e){return 4&e.vnode.shapeFlag}let Gn,qn,Jn=!1;function Xn(e,t=!1){Jn=t;const{props:n,children:i}=e.vnode,s=Kn(e);!function(e,t,n,i=!1){const s={},c={};Object(o.def)(c,xn,1),e.propsDefaults=Object.create(null),Tt(e,t,s,c);for(const t in e.propsOptions[0])t in s||(s[t]=void 0);n?e.props=i?s:Object(r.shallowReactive)(s):e.type.props?e.props=s:e.props=c,e.attrs=c}(e,n,s,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Object(r.toRaw)(t),Object(o.def)(t,"_",n)):$t(t,e.slots={})}else e.slots={},t&&Bt(e,t);Object(o.def)(e.slots,xn,1)})(e,i);const c=s?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Object(r.markRaw)(new Proxy(e.ctx,gt)),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?nr(e):null;Wn(e),Object(r.pauseTracking)();const s=a(i,e,0,[e.props,n]);if(Object(r.resetTracking)(),Yn(),Object(o.isPromise)(s)){if(s.then(Yn,Yn),t)return s.then(n=>{Zn(e,n,t)}).catch(t=>{u(t,e,0)});e.asyncDep=s}else Zn(e,s,t)}else tr(e,t)}(e,t):void 0;return Jn=!1,c}function Zn(e,t,n){Object(o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(o.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Object(r.proxyRefs)(t)),tr(e,n)}function Qn(e){Gn=e,qn=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vt))}}const er=()=>!Gn;function tr(e,t,n){const i=e.type;if(!e.render){if(!t&&Gn&&!i.render){const t=i.template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:c}=i,a=Object(o.extend)(Object(o.extend)({isCustomElement:n,delimiters:s},r),c);i.render=Gn(t,a)}}e.render=i.render||o.NOOP,qn&&qn(e)}__VUE_OPTIONS_API__&&(Wn(e),Object(r.pauseTracking)(),yt(e),Object(r.resetTracking)(),Yn())}function nr(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Object(r.track)(e,"get","$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function rr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in mt?mt[n](e):void 0}))}const or=/(?:^|[-_])(\w)/g;function ir(e,t=!0){return Object(o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function sr(e,t,n=!1){let r=ir(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(or,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function cr(e){return Object(o.isFunction)(e)&&"__vccOpts"in e}const ar=(e,t)=>Object(r.computed)(e,t,Jn);function lr(){return null}function ur(){return null}function dr(e){0}function fr(e,t){return null}function pr(){return mr().slots}function hr(){return mr().attrs}function mr(){const e=Hn();return e.setupContext||(e.setupContext=nr(e))}function gr(e,t){const n=Object(o.isArray)(e)?e.reduce((e,t)=>(e[t]={},e),{}):e;for(const e in t){const r=n[e];r?Object(o.isArray)(r)||Object(o.isFunction)(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n}function vr(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function br(e){const t=Hn();let n=e();return Yn(),Object(o.isPromise)(n)&&(n=n.catch(e=>{throw Wn(t),e})),[n,()=>Wn(t)]}function yr(e,t,n){const r=arguments.length;return 2===r?Object(o.isObject)(t)&&!Object(o.isArray)(t)?_n(t)?kn(e,null,[t]):kn(e,t):kn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&_n(n)&&(n=[n]),kn(e,t,n))}const Or=Symbol(""),_r=()=>{{const e=fe(Or);return e||s("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function wr(){return void 0}function Sr(e,t,n,r){const o=n[r];if(o&&xr(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&fn&&fn.push(e),!0}const jr="3.2.37",Er={createComponentInstance:Un,setupComponent:Xn,renderComponentRoot:Z,setCurrentRenderingInstance:K,isVNode:_n,normalizeVNode:Mn},Nr=null,kr=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){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"EMPTY_ARR",(function(){return V})),n.d(t,"EMPTY_OBJ",(function(){return F})),n.d(t,"NO",(function(){return B})),n.d(t,"NOOP",(function(){return $})),n.d(t,"PatchFlagNames",(function(){return o})),n.d(t,"camelize",(function(){return fe})),n.d(t,"capitalize",(function(){return me})),n.d(t,"def",(function(){return ye})),n.d(t,"escapeHtml",(function(){return C})),n.d(t,"escapeHtmlComment",(function(){return I})),n.d(t,"extend",(function(){return H})),n.d(t,"genPropsAccessExp",(function(){return xe})),n.d(t,"generateCodeFrame",(function(){return c})),n.d(t,"getGlobalThis",(function(){return we})),n.d(t,"hasChanged",(function(){return ve})),n.d(t,"hasOwn",(function(){return K})),n.d(t,"hyphenate",(function(){return he})),n.d(t,"includeBooleanAttr",(function(){return d})),n.d(t,"invokeArrayFns",(function(){return be})),n.d(t,"isArray",(function(){return G})),n.d(t,"isBooleanAttr",(function(){return u})),n.d(t,"isBuiltInDirective",(function(){return le})),n.d(t,"isDate",(function(){return X})),n.d(t,"isFunction",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return s})),n.d(t,"isHTMLTag",(function(){return E})),n.d(t,"isIntegerKey",(function(){return ce})),n.d(t,"isKnownHtmlAttr",(function(){return v})),n.d(t,"isKnownSvgAttr",(function(){return b})),n.d(t,"isMap",(function(){return q})),n.d(t,"isModelListener",(function(){return z})),n.d(t,"isNoUnitNumericStyleProp",(function(){return g})),n.d(t,"isObject",(function(){return te})),n.d(t,"isOn",(function(){return U})),n.d(t,"isPlainObject",(function(){return se})),n.d(t,"isPromise",(function(){return ne})),n.d(t,"isReservedProp",(function(){return ae})),n.d(t,"isSSRSafeAttrName",(function(){return h})),n.d(t,"isSVGTag",(function(){return N})),n.d(t,"isSet",(function(){return J})),n.d(t,"isSpecialBooleanAttr",(function(){return l})),n.d(t,"isString",(function(){return Q})),n.d(t,"isSymbol",(function(){return ee})),n.d(t,"isVoidTag",(function(){return k})),n.d(t,"looseEqual",(function(){return A})),n.d(t,"looseIndexOf",(function(){return R})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return x})),n.d(t,"normalizeProps",(function(){return j})),n.d(t,"normalizeStyle",(function(){return y})),n.d(t,"objectToString",(function(){return re})),n.d(t,"parseStringStyle",(function(){return w})),n.d(t,"propsToAttrMap",(function(){return m})),n.d(t,"remove",(function(){return W})),n.d(t,"slotFlagsText",(function(){return i})),n.d(t,"stringifyStyle",(function(){return S})),n.d(t,"toDisplayString",(function(){return M})),n.d(t,"toHandlerKey",(function(){return ge})),n.d(t,"toNumber",(function(){return Oe})),n.d(t,"toRawType",(function(){return ie})),n.d(t,"toTypeString",(function(){return oe}));const o={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},s=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function c(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",l=r(a),u=r(a+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function d(e){return!!e||""===e}const f=/[>/="'\u0009\u000a\u000c\u0020]/,p={};function h(e){if(p.hasOwnProperty(e))return p[e];const t=f.test(e);return t&&console.error("unsafe attribute name: "+e),p[e]=!t}const m={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},g=r("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),v=r("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,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"),b=r("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,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function y(e){if(G(e)){const t={};for(let n=0;n{if(e){const n=e.split(_);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function S(e){let t="";if(!e||Q(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:he(n);(Q(r)||"number"==typeof r&&g(o))&&(t+=`${o}:${r};`)}return t}function x(e){let t="";if(Q(e))t=e;else if(G(e))for(let n=0;n]/;function C(e){const t=""+e,n=T.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|A(e,t))}const M=e=>Q(e)?e:null==e?"":G(e)||te(e)&&(e.toString===re||!Z(e.toString))?JSON.stringify(e,L,2):String(e),L=(e,t)=>t&&t.__v_isRef?L(e,t.value):q(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:J(t)?{[`Set(${t.size})`]:[...t.values()]}:!te(t)||G(t)||se(t)?t:String(t),F={},V=[],$=()=>{},B=()=>!1,D=/^on[^a-z]/,U=e=>D.test(e),z=e=>e.startsWith("onUpdate:"),H=Object.assign,W=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y=Object.prototype.hasOwnProperty,K=(e,t)=>Y.call(e,t),G=Array.isArray,q=e=>"[object Map]"===oe(e),J=e=>"[object Set]"===oe(e),X=e=>"[object Date]"===oe(e),Z=e=>"function"==typeof e,Q=e=>"string"==typeof e,ee=e=>"symbol"==typeof e,te=e=>null!==e&&"object"==typeof e,ne=e=>te(e)&&Z(e.then)&&Z(e.catch),re=Object.prototype.toString,oe=e=>re.call(e),ie=e=>oe(e).slice(8,-1),se=e=>"[object Object]"===oe(e),ce=e=>Q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ae=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),le=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ue=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},de=/-(\w)/g,fe=ue(e=>e.replace(de,(e,t)=>t?t.toUpperCase():"")),pe=/\B([A-Z])/g,he=ue(e=>e.replace(pe,"-$1").toLowerCase()),me=ue(e=>e.charAt(0).toUpperCase()+e.slice(1)),ge=ue(e=>e?"on"+me(e):""),ve=(e,t)=>!Object.is(e,t),be=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Oe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _e;const we=()=>_e||(_e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),Se=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function xe(e){return Se.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}}.call(this,n("./node_modules/webpack/buildin/global.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 s(){throw new Error("clearTimeout has not been defined")}function c(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:s}catch(e){r=s}}();var a,l=[],u=!1,d=-1;function f(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;n +#import #import "HippyModulesSetup.h" diff --git a/framework/ios/base/bridge/HippyConvenientBridge.mm b/framework/examples/ios-demo/HippyDemo/HippyConvenientBridge.mm similarity index 99% rename from framework/ios/base/bridge/HippyConvenientBridge.mm rename to framework/examples/ios-demo/HippyDemo/HippyConvenientBridge.mm index 6a57dafbd44..50113dfcbf6 100644 --- a/framework/ios/base/bridge/HippyConvenientBridge.mm +++ b/framework/examples/ios-demo/HippyDemo/HippyConvenientBridge.mm @@ -77,12 +77,14 @@ - (void)setUpNativeRenderManager { auto domManager = engineResource->GetDomManager(); //Create NativeRenderManager _nativeRenderManager = std::make_shared(); + _nativeRenderManager->Initialize(); //set dom manager _nativeRenderManager->SetDomManager(domManager); //set image provider for native render manager _nativeRenderManager->AddImageProviderClass([HPDefaultImageProvider class]); _nativeRenderManager->RegisterExtraComponent(_extraComponents); _nativeRenderManager->SetVFSUriLoader([self URILoader]); + _bridge.renderManager = _nativeRenderManager; } - (std::shared_ptr)URILoader { diff --git a/framework/examples/ios-demo/res/react/vendor.ios.js b/framework/examples/ios-demo/res/react/vendor.ios.js index 2445e715474..4bc72347100 100644 --- a/framework/examples/ios-demo/res/react/vendor.ios.js +++ b/framework/examples/ios-demo/res/react/vendor.ios.js @@ -1,7 +1,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Animated",(function(){return Wn})),n.d(t,"Animation",(function(){return st})),n.d(t,"AnimationSet",(function(){return ht})),n.d(t,"AppRegistry",(function(){return Fn})),n.d(t,"AsyncStorage",(function(){return yr})),n.d(t,"BackAndroid",(function(){return gr})),n.d(t,"Clipboard",(function(){return wr})),n.d(t,"ConsoleModule",(function(){return Rr})),n.d(t,"Dimensions",(function(){return Fr})),n.d(t,"Easing",(function(){return Vn})),n.d(t,"EventBus",(function(){return We})),n.d(t,"Focusable",(function(){return fr})),n.d(t,"Hippy",(function(){return Or})),n.d(t,"HippyEventEmitter",(function(){return Me})),n.d(t,"HippyEventListener",(function(){return Fe})),n.d(t,"HippyRegister",(function(){return Sr})),n.d(t,"Image",(function(){return Un})),n.d(t,"ImageBackground",(function(){return jr})),n.d(t,"ImageLoaderModule",(function(){return Cr})),n.d(t,"ListView",(function(){return Gn})),n.d(t,"ListViewItem",(function(){return $n})),n.d(t,"Modal",(function(){return cr})),n.d(t,"Navigator",(function(){return Xn})),n.d(t,"NetInfo",(function(){return xr})),n.d(t,"NetworkModule",(function(){return kr})),n.d(t,"PixelRatio",(function(){return Hr})),n.d(t,"Platform",(function(){return zr})),n.d(t,"PullFooter",(function(){return qn})),n.d(t,"PullHeader",(function(){return Qn})),n.d(t,"RefreshWrapper",(function(){return Kn})),n.d(t,"ScrollView",(function(){return ur})),n.d(t,"StyleSheet",(function(){return ar})),n.d(t,"Text",(function(){return Bn})),n.d(t,"TextInput",(function(){return nr})),n.d(t,"TimerModule",(function(){return Tr})),n.d(t,"UIManagerModule",(function(){return Nr})),n.d(t,"View",(function(){return Hn})),n.d(t,"ViewPager",(function(){return Zn})),n.d(t,"WaterfallView",(function(){return vr})),n.d(t,"WebSocket",(function(){return hr})),n.d(t,"WebView",(function(){return dr})),n.d(t,"callNative",(function(){return Ir})),n.d(t,"callNativeWithCallbackId",(function(){return Lr})),n.d(t,"callNativeWithPromise",(function(){return _r})),n.d(t,"colorParse",(function(){return tt})),n.d(t,"default",(function(){return jn})),n.d(t,"flushSync",(function(){return Pr})),n.d(t,"removeNativeCallback",(function(){return Ar}));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),u=["children"],s=["collapsable","style"],c=["style"],f=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],d=["children"],p=["children"],h=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getHeaderStyle","getFooterStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],m=["children"],v=["component"],y=["initialRoute"],g=["children","onPageScrollStateChanged"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function w(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=S(e);if(t){var i=S(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(){C=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),N(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){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"!=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);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.0.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();B&&(M.push(o.a.createElement(Hn,{key:"bannerView"},o.a.cloneElement(B))),H.containBannerView=!0)}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?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.0.1";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();B&&(M.push(o.a.createElement(Hn,{key:"bannerView"},o.a.cloneElement(B))),H.containBannerView=!0)}if("function"==typeof v){for(var D=this.getPullHeader(y,N,P),U=this.getPullFooter(g,_,A),W=0;W0===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 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} /*! - * @hippy/vue-router v3.0.0 - * (Using Vue v2.6.14 and Hippy-Vue v3.0.0) - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * @hippy/vue-router v3.0.1 + * (Using Vue v2.6.14 and Hippy-Vue v3.0.1) + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. diff --git a/framework/examples/ios-demo/res/vue2/vendor.ios.js b/framework/examples/ios-demo/res/vue2/vendor.ios.js index 527e64acd8b..73e7a0f65e1 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){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,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)||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 o(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)||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 i(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);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}n.d(t,"AnimationComponent",(function(){return y})),n.d(t,"DialogComponent",(function(){return w})),n.d(t,"ListRefreshComponent",(function(){return S})),n.d(t,"PullsComponents",(function(){return x})),n.d(t,"SwiperComponent",(function(){return O})),n.d(t,"WaterfallComponent",(function(){return A})),n.d(t,"default",(function(){return N}));var d=["mode","valueType","startValue","toValue"],p=["transform"],h=["transform"];function v(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 m(e){for(var t=1;t=0?t.Native.parseColor(n):n}function i(t){var o=t.mode,i=void 0===o?"timing":o,a=t.valueType,s=t.startValue,u=t.toValue,l=f(t,d),p=m(m({},n),l);void 0!==a&&(p.valueType=t.valueType),p.startValue=r(p.valueType,s),p.toValue=r(p.valueType,u),p.repeatCount=c(p.repeatCount),p.mode=i;var h=new e.Hippy.Animation(p),v=h.getId();return{animation:h,animationId:v}}function a(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 c(e){return"loop"===e?-1:e}function u(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],s=o[o.length-1].repeatCount,u=a(o.map((function(e){var n=i(Object.assign({},e,{repeatCount:0})),r=n.animationId,o=n.animation;return Object.assign(t,{[r]:o}),{animationId:r,follow:!0}})),c(s)),l=u.animationId,f=u.animation;n[r]={animationId:l},Object.assign(t,{[l]:f})}else{var d=i(e[r]),p=d.animationId,h=d.animation;Object.assign(t,{[p]:h}),n[r]={animationId:p}}})),n}function l(e){var t=e.transform,n=f(e,p),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(o(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,t=e.actions.transform,n=f(e.actions,h);this.animationIdsMap={};var r=u(n,this.animationIdsMap);if(t){var o=u(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=l(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&n.start()})))},resume:function(){var e=this;l(this.style).forEach((function(t){var n=e.animationIdsMap[t];n&&n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&l(this.style).forEach((function(t){var n=e.animationIdsMap[t];n&&n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,l(this.style).forEach((function(t){var n=e.animationIdsMap[t];n&&n.destroy()}))}},template:'\n \n \n \n '})}function g(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 b(e){for(var t=1;t\n
\n \n
\n \n "})}function O(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:k.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function x(e){var t=e.Native.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var o=r(n,2),i=o[0],a=o[1];e.registerElement("hi-pull-".concat(a),{component:{name:"Pull".concat(i,"View"),processEventData:function(e,t,n){switch(t){case"on".concat(i,"Released"):case"on".concat(i,"Pulling"):Object.assign(e,n)}return e}}}),e.component("pull-".concat(a),{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(e){var t=this.$listeners,n=t.released,r=t.pulling,o=t.idle,s={layout:this.onLayout};return"function"==typeof n&&(s["".concat(a,"Released")]=this["on".concat(i,"Released")]),"function"!=typeof r&&"function"!=typeof o||(s["".concat(a,"Pulling")]=this["on".concat(i,"Pulling")]),e("hi-pull-".concat(a),{on:s,ref:"instance"},this.$slots.default)}})}))}function $(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 E(e){for(var t=1;te.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}n.d(t,"AnimationComponent",(function(){return y})),n.d(t,"DialogComponent",(function(){return w})),n.d(t,"ListRefreshComponent",(function(){return S})),n.d(t,"PullsComponents",(function(){return x})),n.d(t,"SwiperComponent",(function(){return O})),n.d(t,"WaterfallComponent",(function(){return A})),n.d(t,"default",(function(){return N}));var d=["mode","valueType","startValue","toValue"],p=["transform"],h=["transform"];function v(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 m(e){for(var t=1;t=0?t.Native.parseColor(n):n}function i(t){var o=t.mode,i=void 0===o?"timing":o,a=t.valueType,s=t.startValue,u=t.toValue,l=f(t,d),p=m(m({},n),l);void 0!==a&&(p.valueType=t.valueType),p.startValue=r(p.valueType,s),p.toValue=r(p.valueType,u),p.repeatCount=c(p.repeatCount),p.mode=i;var h=new e.Hippy.Animation(p),v=h.getId();return{animation:h,animationId:v}}function a(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 c(e){return"loop"===e?-1:e}function u(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],s=o[o.length-1].repeatCount,u=a(o.map((function(e){var n=i(Object.assign({},e,{repeatCount:0})),r=n.animationId,o=n.animation;return Object.assign(t,{[r]:o}),{animationId:r,follow:!0}})),c(s)),l=u.animationId,f=u.animation;n[r]={animationId:l},Object.assign(t,{[l]:f})}else{var d=i(e[r]),p=d.animationId,h=d.animation;Object.assign(t,{[p]:h}),n[r]={animationId:p}}})),n}function l(e){var t=e.transform,n=f(e,p),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(o(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,t=e.actions.transform,n=f(e.actions,h);this.animationIdsMap={};var r=u(n,this.animationIdsMap);if(t){var o=u(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=l(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&n.start()})))},resume:function(){var e=this;l(this.style).forEach((function(t){var n=e.animationIdsMap[t];n&&n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&l(this.style).forEach((function(t){var n=e.animationIdsMap[t];n&&n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,l(this.style).forEach((function(t){var n=e.animationIdsMap[t];n&&n.destroy()}))}},template:'\n \n \n \n '})}function g(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 b(e){for(var t=1;t\n
\n \n
\n \n "})}function O(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:k.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function x(e){var t=e.Native.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var o=r(n,2),i=o[0],a=o[1];e.registerElement("hi-pull-".concat(a),{component:{name:"Pull".concat(i,"View"),processEventData:function(e,t,n){switch(t){case"on".concat(i,"Released"):case"on".concat(i,"Pulling"):Object.assign(e,n)}return e}}}),e.component("pull-".concat(a),{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(e){var t=this.$listeners,n=t.released,r=t.pulling,o=t.idle,s={layout:this.onLayout};return"function"==typeof n&&(s["".concat(a,"Released")]=this["on".concat(i,"Released")]),"function"!=typeof r&&"function"!=typeof o||(s["".concat(a,"Pulling")]=this["on".concat(i,"Pulling")]),e("hi-pull-".concat(a),{on:s,ref:"instance"},this.$slots.default)}})}))}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&Math.floor(t)===t&&isFinite(e)}function j(e){return O(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function P(e){return null==e?"":Array.isArray(e)||N(e)&&e.toString===A?JSON.stringify(e,null,2):String(e)}function T(e){var t=parseFloat(e);return isNaN(t)?e:t}function D(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var F=Object.prototype.hasOwnProperty;function V(e,t){return F.call(e,t)}function B(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var U=/-(\w)/g,H=B((function(e){return e.replace(U,(function(e,t){return t?t.toUpperCase():""}))})),W=B((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),z=/\B([A-Z])/g,Y=B((function(e){return e.replace(z,"-$1").toLowerCase()}));var K=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 G(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 X(e,t,n){}var J=function(e,t,n){return!1},Z=function(e){return e};function Q(e,t){if(e===t)return!0;var n=E(e),r=E(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 Q(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 Q(e[n],t[n])}))}catch(e){return!1}}function ee(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=new Ne;return t.text=e,t.isComment=!0,t};function Ie(e){return new Ne(void 0,void 0,void 0,String(e))}function je(e){var t=new Ne(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 Pe=Array.prototype,Te=Object.create(Pe);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Pe[e];se(Te,e,(function(){for(var n=arguments.length,r=new Array(n),o=0;o-1)if(i&&!V(o,"default"))a=!1;else if(""===a||a===Y(e)){var c=nt(String,o.type);(c<0||s0&&(Ot((o=e(o,"".concat(n||"","_").concat(r)))[0])&&Ot(a)&&(s[i]=Ie(a.text+o[0].text),o.shift()),s.push.apply(s,o)):$(o)?Ot(a)?s[i]=Ie(a.text+o):""!==o&&s.push(Ie(o)):Ot(o)&&Ot(a)?s[i]=Ie(a.text+o.text):(x(t._isVList)&&O(o.tag)&&S(o.key)&&O(n)&&(o.key="__vlist".concat(n,"_").concat(r,"__")),s.push(o)));return s}(e):void 0}function Ot(e){return O(e)&&O(e.text)&&!1===e.isComment}function xt(e,t){if(e){for(var n=Object.create(null),r=ke?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!==k&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=Ct(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=It(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),se(r,"$stable",i),se(r,"$key",a),se(r,"$hasNormal",o),r}function Ct(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"===_(e)&&!Array.isArray(e)?[e]:St(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!At(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function It(e,t){return function(){return e[t]}}function jt(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&&(bn=function(){return wn.now()})}function _n(){var e,t;for(bn(),yn=!0,pn.sort((function(e,t){return e.id-t.id})),gn=0;gngn&&pn[n].id>e.id;)n--;pn.splice(n+1,0,e)}else pn.push(e);mn||(mn=!0,vt(_n))}}(this)}},{key:"run",value:function(){if(this.active){var e=this.get();if(e!==this.value||E(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');ot(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||R(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}}}]),e}(),On={enumerable:!0,configurable:!0,get:X,set:X};function xn(e,t,n){On.get=function(){return this[t][n]},On.set=function(e){this[t][n]=e},Object.defineProperty(e,n,On)}function $n(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&&Me(!1);var i=function(i){o.push(i);var a=Ze(i,t,n,e);Ve(r,i,a),i in e||xn(e,"_props",i)};for(var a in t)i(a);Me(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?X:K(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;N(t=e._data="function"==typeof t?function(e,t){Ee();try{return e.call(t,t)}catch(e){return rt(e,t,"data()"),{}}finally{Ae()}}(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&&V(r,i)||ae(i)||xn(e,"_data",i)}Fe(t,!0)}(e):Fe(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 Sn(e,i||X,X,En),r in e||An(e,r,o)}}(e,t.computed),t.watch&&t.watch!==me&&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:!!C(e)&&e.test(t)}function Mn(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)&&Rn(n,i,r,o)}}}function Rn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,R(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=In++,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=Xe(jn(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&&cn(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=$t(t._renderChildren,r),e.$scopedSlots=k,e._c=function(t,n,r,o){return en(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return en(e,t,n,r,o,!0)};var o=n&&n.data;Ve(e,"$attrs",o&&o.attrs||k,null,!0),Ve(e,"$listeners",t._parentListeners||k,null,!0)}(t),dn(t,"beforeCreate"),function(e){var t=xt(e.$options.inject,e);t&&(Me(!1),Object.keys(t).forEach((function(n){Ve(e,n,t[n])})),Me(!0))}(t),$n(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),dn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Pn),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=Be,e.prototype.$delete=Ue,e.prototype.$watch=function(e,t,n){if(N(t))return Cn(this,e,t,n);(n=n||{}).user=!0;var r=new Sn(this,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');Ee(),ot(t,this,[r.value],this,o),Ae()}return function(){r.teardown()}}}(Pn),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?G(n):n;for(var r=G(arguments,1),o='event handler for "'.concat(e,'"'),i=0,a=n.length;iparseInt(this.max)&&Rn(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)Rn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Mn(e,(function(e){return Ln(t,e)}))})),this.$watch("exclude",(function(t){Mn(e,(function(e){return!Ln(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=G(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=Xe(this.options,e),this}}(e),Tn(e),function(e){ne.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&N(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)}(Pn),Object.defineProperty(Pn.prototype,"$isServer",{get:ge}),Object.defineProperty(Pn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Pn,"FunctionalRenderContext",{value:Kt}),Pn.version="2.6.14",D("style,class");var Bn=D("input,textarea,option,select,progress");function Un(e){for(var t=e.data,n=e,r=e;O(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Hn(r.data,t));for(;O(n=n.parent);)n&&n.data&&(t=Hn(t,n.data));return function(e,t){if(O(e)||O(t))return Wn(e,zn(t));return""}(t.staticClass,t.class)}function Hn(e,t){return{staticClass:Wn(e.staticClass,t.staticClass),class:O(e.class)?[e.class,t.class]:t.class}}function Wn(e,t){return e?t?e+" "+t:e:t||""}function zn(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 vr={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=lr(e,"style");n&&(e.staticStyle=JSON.stringify(hr(n)));var r=ur(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 mr,yr,gr,br,wr,_r,kr=function(e){return e},Sr=D("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Or=D("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),xr=D("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"),$r=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Er=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ar="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(ie.source,"]*"),Nr="((?:".concat(Ar,"\\:)?").concat(Ar,")"),Cr=new RegExp("^<".concat(Nr)),Ir=/^\s*(\/?)>/,jr=new RegExp("^<\\/".concat(Nr,"[^>]*>")),Pr=/^]+>/i,Tr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Fr=/&(?:lt|gt|quot|amp|#39);/g,Vr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Br=D("pre,textarea",!0),Ur=function(e,t){return e&&Br(e)&&"\n"===t[0]};function Hr(e,t){var n=t?Vr:Fr;return e.replace(n,(function(e){return Rr[e]}))}function Wr(e,t){for(var n,r,o=[],i=t.expectHTML,a=t.isUnaryTag||J,s=t.canBeLeftOpenTag||J,c=0,u=function(){if(n=e,r&&Lr(r)){var u=0,l=r.toLowerCase(),p=Mr[l]||(Mr[l]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(p,(function(e,n,r){return u=r.length,Lr(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Ur(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-h.length,e=h,d(l,c-u,c)}else{var v,m,y,g=e.indexOf("<");if(0===g){if(Tr.test(e)){var b=e.indexOf("--\x3e");if(b>=0)return t.shouldKeepComment&&t.comment(e.substring(4,b),c,c+b+3),f(b+3),"continue"}if(Dr.test(e)){var w=e.indexOf("]>");if(w>=0)return f(w+2),"continue"}var _=e.match(Pr);if(_)return f(_[0].length),"continue";var k=e.match(jr);if(k){var S=c;return f(k[0].length),d(k[1],S,c),"continue"}var O=function(){var t=e.match(Cr);if(t){var n,r,o={tagName:t[1],attrs:[],start:c};for(f(t[0].length);!(n=e.match(Ir))&&(r=e.match(Er)||e.match($r));)r.start=c,f(r[0].length),r.end=c,o.attrs.push(r);if(n)return o.unarySlash=n[1],f(n[0].length),o.end=c,o}}();if(O)return function(e){var n=e.tagName,c=e.unarySlash;i&&("p"===r&&xr(n)&&d(r),s(n)&&r===n&&d(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0){for(m=e.slice(g);!(jr.test(m)||Cr.test(m)||Tr.test(m)||Dr.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,c-v.length,c)}if(e===n)return t.chars&&t.chars(e),"break"};e;){var l=u();if("continue"!==l&&"break"===l)break}function f(t){c+=t,e=e.substring(t)}function d(e,n,i){var a,s;if(null==n&&(n=c),null==i&&(i=c),e)for(s=e.toLowerCase(),a=o.length-1;a>=0&&o[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=o.length-1;u>=a;u--)t.end&&t.end(o[u].tag,n,i);o.length=a,r=a&&o[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,i):"p"===s&&(t.start&&t.start(e,[],!1,n,i),t.end&&t.end(e,n,i))}d()}function zr(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=Yr(t,i);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat("$$v",") {").concat(a,"}")}}function Yr(e,t){var n=function(e){if(e=e.trim(),mr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,br),key:'"'+e.slice(br+1)+'"'}:{exp:e,key:null};yr=e,br=wr=_r=0;for(;!Gr();)qr(gr=Kr())?Jr(gr):91===gr&&Xr(gr);return{exp:e.slice(0,wr),key:e.slice(wr+1,_r)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function Kr(){return yr.charCodeAt(++br)}function Gr(){return br>=mr}function qr(e){return 34===e||39===e}function Xr(e){var t=1;for(wr=br;!Gr();)if(qr(e=Kr()))Jr(e);else if(91===e&&t++,93===e&&t--,0===t){_r=br;break}}function Jr(e){for(var t=e;!Gr()&&(e=Kr())!==t;);}var Zr,Qr,eo,to,no,ro,oo,io,ao=/^@|^v-on:/,so=o.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,co=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,uo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,lo=/^\(|\)$/g,fo=/^\[.*\]$/,po=/:(.*)$/,ho=/^:|^\.|^v-bind:/,vo=/^\./,mo=/\.[^.\]]+(?=[^\]]*$)/g,yo=/^v-slot(:|$)|^#/,go=/[\r\n]/,bo=/[ \f\t\r\n]+/g,wo=B(kr);function _o(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Ao(t),rawAttrsMap:{},parent:n,children:[]}}function ko(e,t){Zr=t.warn||tr,ro=t.isPreTag||J,oo=t.mustUseProp||J,io=t.getTagNamespace||J;var n=t.isReservedTag||J;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),eo=nr(t.modules,"transformNode"),to=nr(t.modules,"preTransformNode"),no=nr(t.modules,"postTransformNode"),Qr=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=So(e,t)),i.length||e===r||r.if&&(e.elseif||e.else)&&xo(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&&xo(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),ro(e.tag)&&(u=!1);for(var l=0;lc&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=Xn(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,")"))),cr(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(Yr(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Yr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Yr(t,"$$c"),"}"),null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=ur(e,"value")||"null";o=r?"_n(".concat(o,")"):o,rr(e,"checked","_q(".concat(t,",").concat(o,")")),cr(e,"change",Yr(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=Yr(t,l);c&&(f="if($event.target.composing)return;".concat(f));rr(e,"value","(".concat(t,")")),cr(e,u,f,null,!0),(s||a)&&cr(e,"blur","$forceUpdate()")}(e,r,o);else{if(!oe.isReservedTag(i))return zr(e,r,o),!1}return!0},text:function(e,t){t.value&&rr(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&rr(e,"innerHTML","_s(".concat(t.value,")"),t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Sr,mustUseProp:function(e,t,n){return"value"===n&&Bn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},canBeLeftOpenTag:Or,isReservedTag:function(e){return Yn(e)||Kn(e)},getTagNamespace:function(e){return Kn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(jo)},Lo=B((function(e){return D("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Mo(e,t){e&&(Po=Lo(t.staticKeys||""),To=t.isReservedTag||J,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||L(e.tag)||!To(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(Po)))}(t),1===t.type){if(!To(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Fo=/\([^)]*?\);*$/,Vo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Bo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Uo={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"]},Ho=function(e){return"if(".concat(e,")return null;")},Wo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ho("$event.target !== $event.currentTarget"),ctrl:Ho("!$event.ctrlKey"),shift:Ho("!$event.shiftKey"),alt:Ho("!$event.altKey"),meta:Ho("!$event.metaKey"),left:Ho("'button' in $event && $event.button !== 0"),middle:Ho("'button' in $event && $event.button !== 1"),right:Ho("'button' in $event && $event.button !== 2")};function zo(e,t){var n=t?"nativeOn:":"on:",r="",o="";for(var i in e){var a=Yo(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 Yo(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Yo(e)})).join(","),"]");var t=Vo.test(e.value),n=Ro.test(e.value),r=Vo.test(e.value.replace(Fo,""));if(e.modifiers){var o="",i="",a=[],s=function(){if(Wo[c])i+=Wo[c],Bo[c]&&a.push(c);else if("exact"===c){var t=e.modifiers;i+=Ho(["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(Ko).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 Ko(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=Bo[e],r=Uo[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Go={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:X},qo=w((function e(t){g(this,e),this.options=t,this.warn=t.warn||tr,this.transforms=nr(t.modules,"transformCode"),this.dataGenFns=nr(t.modules,"genData"),this.directives=q(q({},Go),t.directives);var n=t.isReservedTag||J;this.maybeComponent=function(e){return!!e.component||!n(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}));function Xo(e,t){var n=new qo(t),r=e?"script"===e.tag?"null":Jo(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function Jo(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Zo(e,t);if(e.once&&!e.onceProcessed)return Qo(e,t);if(e.for&&!e.forProcessed)return ti(e,t);if(e.if&&!e.ifProcessed)return ei(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ii(e,t),o="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),i=e.attrs||e.dynamicAttrs?ci((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:H(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:ii(t,n,!0);return"_c(".concat(e,",").concat(ni(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=ni(e,t));var o=e.inlineTemplate?null:ii(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=Xo(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(ci(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function ri(e){return 1===e.type&&("slot"===e.tag||e.children.some(ri))}function oi(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return ei(e,t,oi,"null");if(e.for&&!e.forProcessed)return ti(e,t,oi);var r="_empty_"===e.slotScope?"":String(e.slotScope),o="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(ii(e,t)||"undefined",":undefined"):ii(e,t)||"undefined":Jo(e,t),"}"),i=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(o).concat(i,"}")}function ii(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||Jo)(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 Mi(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:!bi||void 0===bi.config.trimWhitespace||bi.config.trimWhitespace?e.trim().replace(/Â/g," "):e.replace(/Â/g," ")}var Vi=Symbol.for("View"),Bi=Symbol.for("Image"),Ui=Symbol.for("ListView"),Hi=Symbol.for("ListViewItem"),Wi=Symbol.for("Text"),zi=Symbol.for("TextInput"),Yi=Symbol.for("WebView"),Ki=Symbol.for("VideoPlayer"),Gi={[Vi]:"View",[Bi]:"Image",[Ui]:"ListView",[Hi]:"ListViewItem",[Wi]:"Text",[zi]:"TextInput",[Yi]:"WebView",[Ki]:"VideoPlayer"};function qi(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 Xi(e){for(var t=1;t255?255:t},Ca=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},Ia=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},ja=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Ia(o,r,e+1/3),a=Ia(o,r,e),s=Ia(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8},Pa=function(e){return(parseFloat(e)%360+360)%360/360},Ta=function(e){var t=parseFloat(e,10);return t<0?0:t>100?1:t/100};function Da(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=Aa.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Oa,e)?Oa[e]:(t=Aa.rgb.exec(e),Array.isArray(t)?(Na(t[1])<<24|Na(t[2])<<16|Na(t[3])<<8|255)>>>0:(t=Aa.rgba.exec(e))?(Na(t[1])<<24|Na(t[2])<<16|Na(t[3])<<8|Ca(t[4]))>>>0:(t=Aa.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Aa.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Aa.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Aa.hsl.exec(e))?(255|ja(Pa(t[1]),Ta(t[2]),Ta(t[3])))>>>0:(t=Aa.hsla.exec(e))?(ja(Pa(t[1]),Ta(t[2]),Ta(t[3]))|Ca(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var La={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"},Ma=0,Ra=1,Fa={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},Va={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};function Ba(e){return!!Fa[e]}function Ua(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}var Ha="addEventListener",Wa="removeEventListener";function za(){var e=Cc.Localization;return!!e&&1===e.direction}var Ya=new Map;function Ka(e,t){Ya.set(t,e)}function Ga(e){Ya.delete(e)}function qa(e){return Ya.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){"number"==typeof t?Ga(t):t&&(Ga(t.nodeId),t.childNodes&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}function Ja(){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)?\\s*"},ts={};function ns(e,t,n){var r="";Qa&&(r="gy"),ts[e]||(ts[e]=new RegExp(es[e],r));var o,i=ts[e];if(Qa)i.lastIndex=n,o=i.exec(t);else{if(t=t.slice(n,t.length),!(o=i.exec(t)))return{result:null,regexp:i};i.lastIndex=n+o[0].length}return{result:o,regexp:i}}function rs(e,t){return function(e,t){var n=ns("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=ns("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=ns("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 os(e,t){var n=rs(e,t);if(!n)return null;for(var r=n.end,o=[];n;){o.push(n.value),n=rs(e,r=n.end)}return{start:t,end:r,value:o}}function is(e,t){var n=ns("combinatorRegEx",e,t),r=n.result,o=n.regexp;return r?{start:t,end:Qa?o.lastIndex:t,value:r[1]||" "}:null}function as(e){return e?" ".concat(e," "):""}var ss=function(){function e(){g(this,e)}return w(e,[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(t||this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(t||this)}}]),e}(),cs=function(e){c(n,e);var t=l(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{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:"trackChanges",value:function(){return null}}]),n}(ss),us=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),r.head=e.reduce((function(e,t){return!e||t.rarity>e.rarity?t:e}),null),r.dynamic=e.some((function(e){return e.dynamic})),r.selectors=e,r}return w(n,[{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.lookupSort(e,t||this)}},{key:"removeSort",value:function(e,t){this.head.removeSort(e,t||this)}}]),n}(cs),ls=function(e){c(n,e);var t=l(n);function n(){var e;return g(this,n),(e=t.call(this)).specificity=0,e.rarity=0,e.dynamic=!1,e}return w(n,[{key:"toString",value:function(){return"*".concat(as(this.combinator))}},{key:"match",value:function(){return!0}}]),n}(cs),fs=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=65536,r.rarity=3,r.dynamic=!1,r.id=e,r}return w(n,[{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,t||this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,t||this)}}]),n}(cs),ds=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=1,r.rarity=1,r.dynamic=!1,r.cssType=e,r}return w(n,[{key:"toString",value:function(){return"".concat(this.cssType).concat(as(this.combinator))}},{key:"match",value:function(e){return!!e&&e.tagName===this.cssType}},{key:"lookupSort",value:function(e,t){e.sortByType(this.cssType,t||this)}},{key:"removeSort",value:function(e,t){e.removeByType(this.cssType,t||this)}}]),n}(cs),ps=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=256,r.rarity=2,r.dynamic=!1,r.className=e,r}return w(n,[{key:"toString",value:function(){return".".concat(this.className).concat(as(this.combinator))}},{key:"match",value:function(e){return!!e&&(e.classList&&e.classList.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)}}]),n}(cs),hs=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=256,r.rarity=0,r.dynamic=!0,r.cssPseudoClass=e,r}return w(n,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(as(this.combinator))}},{key:"match",value:function(e){return!!e&&(e.cssPseudoClasses&&e.cssPseudoClasses.has(this.cssPseudoClass))}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}]),n}(cs),vs=function(e,t){var n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0},ms=function(e){c(n,e);var t=l(n);function n(e,r,o){var i;return g(this,n),(i=t.call(this)).specificity=256,i.rarity=0,i.dynamic=!0,i.attribute=e,i.test=r,i.value=o,r?o?(i.match=function(t){if(!t||!t.attributes)return!1;var n="".concat(vs(t,e));if("="===r)return n===o;if("^="===r)return n.startsWith(o);if("$="===r)return n.endsWith(o);if("*="===r)return-1!==n.indexOf(o);if("~="===r){var i=n.split(" ");return i&&-1!==i.indexOf(o)}return"|="===r&&(n===o||n.startsWith("".concat(o,"-")))},i):(i.match=function(){return!1},f(i)):(i.match=function(t){return!(!t||!t.attributes)&&!Ri(vs(t,e))},f(i))}return w(n,[{key:"toString",value:function(){return"[".concat(this.attribute).concat(as(this.test)).concat(this.test&&this.value||"","]").concat(as(this.combinator))}},{key:"match",value:function(){return!1}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}]),n}(cs),ys=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=0,r.rarity=4,r.dynamic=!1,r.combinator=void 0,r.err=e,r}return w(n,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}},{key:"lookupSort",value:function(){return null}},{key:"removeSort",value:function(){return null}}]),n}(cs),gs=function(){function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return w(e,[{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)}))}}]),e}(),bs=function(){function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return w(e,[{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)}))}}]),e}(),ws=function(e){c(n,e);var t=l(n);function n(e){var r;g(this,n),r=t.call(this);var o=[void 0," ",">","+","~"],i=[],a=[],s=[],c=v(e),u=c.length-1;r.specificity=0,r.dynamic=!1;for(var l=u;l>=0;l--){var f=c[l];if(-1===o.indexOf(f.combinator))throw console.error('Unsupported combinator "'.concat(f.combinator,'".')),new Error('Unsupported combinator "'.concat(f.combinator,'".'));void 0!==f.combinator&&" "!==f.combinator||s.push(a=[i=[]]),">"===f.combinator&&a.push(i=[]),r.specificity+=f.specificity,f.dynamic&&(r.dynamic=!0),i.push(f)}return r.groups=s.map((function(e){return new gs(e.map((function(e){return new bs(e)})))})),r.last=c[u],r}return w(n,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e){return!!e&&this.groups.every((function(t,n){if(0===n)return!!(e=t.match(e));for(var r=e;r=r.parentNode;)if(e=t.match(r))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){if(!this.dynamic)return this.match(e);var n=[],r=this.groups.every((function(t,r){if(0===r){var o=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=o)}for(var i=e;i=i.parentNode;){var a=t.mayMatch(i);if(a)return n.push({left:i,right:null}),e=a,!0}return!1}));if(!r)return!1;if(!t)return r;for(var o=0;o0&&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=Ba(o)?Fa[o]:Ua(o),i===Ra&&t.removeEventListener(n,r,a),i===Ma&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Ls(e,t){0}function Ms(t){if(Ps)if(Ps=!1,0!==Ts.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=xi();return e.map((function(e){var n=e.declarations.filter(Os).map(xs(t)),r=e.selectors.map(As);return new _s(r,n,e.hash)}))}(e.__HIPPY_VUE_STYLES__);Is?Is.append(t):Is=new Ss(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 Fs(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];Ti(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(Ti(o))t[n]=o(r);else{var i=o.name,a=o.propsValue,s=o.jointKey;Ti(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 Vs(e,t){"TextInput"===e.meta.component.name&&za()&&(t.textAlign||(t.textAlign="right"))}function Bs(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=Mi(n.backgroundImage)))}function Us(e){var t=Object.create(null);try{Rs().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 Hs(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 Ws(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 zs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var r=Us(t);r=Cs(Cs({},r),t.style),$i()(t,r),t.meta.component.defaultNativeStyle&&(r=Cs(Cs({},t.meta.component.defaultNativeStyle),r));var o={id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,name:t.meta.component.name,props:Cs(Cs({},Fs(t)),{},{style:r}),tagName:t.tagName};Hs(o),Bs(t,o,r),Vs(t,r);var i=Ws(t),a=void 0,s=[o,n];return[s,i,a]}function Ys(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=h(zs(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 Ks(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}function Gs(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=Ks(e,a)&&!e.isMounted,c=e.isMounted&&!t.isMounted;if(s||c){var u=Ys(i,s?e:t,(function(e){e.isMounted||(e.isMounted=!0),Ka(e,e.nodeId)}),n),l=h(u,3),f=l[0],d=l[1],p=l[2];Ts.push({type:js.createNode,nodes:f,eventNodes:d,printedNodes:p}),Ms(r)}}}}function qs(e){if(e.isMounted){var t=Oi(),n=h(zs(t.$options.rootViewId,e),3),r=n[0],o=n[1];n[2];r&&(Ts.push({type:js.updateNode,nodes:[r],eventNodes:[o],printedNodes:[]}),Ms(t))}}function Xs(e){if(e.isMounted){var t=Oi(),n=h(Ys(t.$options.rootViewId,e),3),r=n[0],o=n[1],i=n[2];Ts.push({type:js.updateNode,nodes:r,eventNodes:o,printedNodes:i}),Ms(t)}}var Js,Zs,Qs=new Set,ec=!1,tc={exitApp:function(){Cc.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:function(e){return ec||(ec=!0,tc.initEventListener()),Cc.callNative("DeviceEventModule","setListenBackPress",!0),Qs.add(e),{remove:function(){tc.removeListener(e)}}},removeListener:function(e){Qs.delete(e),0===Qs.size&&Cc.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener:function(){Js||(Js=Oi()),Js.$on("hardwareBackPress",(function(){var e=!0;Array.from(Qs).reverse().every((function(t){return"function"!=typeof t||!t()||(e=!1,!1)})),e&&tc.exitApp()}))}},nc={exitApp:function(){},addListener:function(){return{remove:function(){}}},removeListener:function(){},initEventListener:function(){}},rc="android"===Hippy.device.platform.OS?tc:nc,oc=new Map,ic=function(){function e(t,n){g(this,e),this.eventName=t,this.listener=n}return w(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(ac(this.eventName,this.listener),this.listener=void 0)}}]),e}();function ac(e,t){if(t instanceof ic)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=oc.get(t);r&&(Zs||(Zs=Oi()),Zs.$off(n,r),oc.delete(t),oc.size<1&&Cc.callNative("NetInfo","removeListener",n))}}var sc=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"==typeof t){var n=e;return"change"===n&&(n="networkStatusDidChange"),0===oc.size&&Cc.callNative("NetInfo","addListener",n),Zs||(Zs=Oi()),Zs.$on(n,t),oc.set(t,t),new ic(n,t)}},removeEventListener:ac,fetch:function(){return Cc.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))},NetInfoRevoker:ic});function cc(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 uc(e){for(var t=1;t1&&void 0!==arguments[1]||Cc.Platform;if(Number.isInteger(e))return e;var t=Ec.COLOR_PARSER||(Ec.COLOR_PARSER=Object.create(null));return t[e]||(t[e]=Da(e)),t[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:rc,ImageLoader:{getSize:function(e){return mc.call(this,"ImageLoaderModule","getSize",e)},prefetch:function(e){vc.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:sc,getElemCss:Us},Ic=function(){function e(t){g(this,e),this.type=t,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}return w(e,[{key:"canceled",get:function(){return this.isCanceled}},{key:"stopPropagation",value:function(){this.bubbles=!1}},{key:"preventDefault",value:function(){this.cancelable&&(this.isCanceled=!0)}},{key:"initEvent",value:function(e){var t=!(arguments.length>1&&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}(),jc=function(){function e(t){g(this,e),this.element=t,this.observers={}}return w(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&&!Ti(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=e.type,n=this.observers[t];if(n)for(var r=n.length-1;r>=0;r-=1){var o=n[r];o.options&&o.options.once&&n.splice(r,1),o.options&&o.options.thisArg?o.callback.apply(o.options.thisArg,[e]):o.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&&Q(e.options,n):e.callback===t}))}}]),e}(),Pc=["%c[event]%c","color: green","color: auto"];var Tc={receiveNativeEvent:function(e){if(Ai.apply(void 0,Pc.concat(["receiveNativeEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=h(e,2),n=t[0],r=t[1],o=Oi();o&&o.$emit(n,r)}},receiveComponentEvent:function(e,t){if(Ai.apply(void 0,Pc.concat(["receiveComponentEvent",e])),e&&t){var n=e.id,r=e.currentId,o=e.nativeName,i=e.originalName,a=e.params,s=void 0===a?{}:a,c=e.eventPhase,u=qa(r),l=qa(n);if(u&&l)try{if([Va.AT_TARGET,Va.BUBBLING_PHASE].indexOf(c)>-1){var f=new Ic(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 Ni.apply(void 0,Pc.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Ni.apply(void 0,Pc.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Tc);var Dc=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Dc=e.__GLOBAL__.nodeId);var Lc=function(){function e(){g(this,e),this._ownerDocument=null,this._meta=null,this._isMounted=!1,this.nodeId=((Dc+=1)%10==0&&(Dc+=1),Dc%10==0&&(Dc+=1),Dc),this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null}return w(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=Ja(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?Gs(this,e):Gs(this,e,{refId:r.nodeId,relativeToRef:Za})}},{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=Ja(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?Gs(this,e):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.meta&&Ti(e.meta.removeChild)&&e.meta.removeChild(e,t),t&&!t.meta.skipAddToDom&&(!n||n.refId!==t.nodeId)){t.isMounted=!1;var r=Oi(),o=r.$options.rootViewId,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},a=[[i,n]],s=[];Ts.push({printedNodes:s,type:js.moveNode,nodes:a,eventNodes:[]}),Ms(r)}}(this,e,{refId:o.nodeId,relativeToRef:Za})}},{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),Gs(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=null,e.nextSibling=null;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=[];Ts.push({printedNodes:a,type:js.deleteNode,nodes:i,eventNodes:[]}),Ms(n)}}(0,e)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t]+)>/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"!=_(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Mc.apply(this,arguments)}var Rc={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Fc="turn",Vc="rad",Bc="deg";function Uc(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=Mc(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(Array.isArray(n)){var r="180",o=h(n,3),i=o[0],a=o[1],s=o[2];return a&&s?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bc,n=parseFloat(e),r=e||"",o=e.split("."),i=h(o,2),a=i[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Fc:r="".concat((360*n).toFixed(2));break;case Vc:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,s):i&&void 0!==Rc[i]&&(r=Rc[i]),r}}function Hc(e){var t=h((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:Cc.parseColor(n)}:void 0:{color:Cc.parseColor(n)}}function Wc(e,t,n){delete n[e],zc(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=Uc(e);if(n)r.angle=n;else{r.angle="180";var o=Hc(e);o&&a.push(o)}}else{var i=Hc(e);i&&a.push(i)}})),r.colorStopList=a}else{var s=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(s&&s.length>1){var c=h(s,2);r=c[1]}}return[o,r]}function zc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}var Yc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function Kc(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,{[Yc[e]]:t}),["textShadowOffset",n.textShadowOffset]}function Gc(e,t,n){void 0===t&&(delete n[e],zc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[Yc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function qc(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"class":var i=new Set(o.split(" ").filter((function(e){return e.trim()})));if(Di(this.classList,i))return;return this.classList=i,void(!n.notToNative&&Xs(this));case"id":if(o===this.id)return;return this.id=o,void(!n.notToNative&&Xs(this));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof o)try{o=o.toString()}catch(e){"Property ".concat(r," must be string:").concat(e.message)}n&&n.textUpdate||(o=Fi(o)),o=Pi(o);break;case"numberOfRows":if("ios"!==Cc.Platform)return;break;case"caretColor":case"caret-color":r="caret-color",o=Cc.parseColor(o);break;case"break-strategy":r="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":r="placeholderTextColor",o=Cc.parseColor(o);break;case"underlineColorAndroid":case"underline-color-android":r="underlineColorAndroid",o=Cc.parseColor(o);break;case"nativeBackgroundAndroid":var a=o;void 0!==a.color&&(a.color=Cc.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)}catch(e){0}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyles",value:function(e){var t=this;e&&"object"===_(e)&&0!==Object.keys(e).length&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),qs(this))}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.beforeLoadStyle({property:e,value:t}),o=r.value,i=r.property;if(void 0===t)return Gc(i,o,this.style),void(n||qs(this));switch(i){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=Wc(i,o,this.style),s=h(a,2);i=s[0],o=s[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=Kc(i,o,this.style),u=h(c,2);i=u[0],o=u[1];break;case"textShadowOffset":var l=o||{},f=l.x,d=void 0===f?0:f,p=l.width,v=void 0===p?0:p,m=l.y,y=void 0===m?0:m,g=l.height,b=void 0===g?0:g;o={width:d||v,height:y||b};break;default:Object.prototype.hasOwnProperty.call(La,i)&&(i=La[i]),"string"==typeof o&&(o=o.trim(),o=i.toLowerCase().indexOf("color")>=0?Cc.parseColor(o):Li(o,"px")?parseFloat(o.slice(0,o.length-2)):ji(o))}null!=o&&this.style[i]!==o&&(this.style[i]=o,n||qs(this))}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"repaintWithChildren",value:function(){Xs(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:"appendChild",value:function(e){e&&e.meta.symbol===Wi&&this.setText(e.text,{notToNative:!0}),a(p(n.prototype),"appendChild",this).call(this,e)}},{key:"insertBefore",value:function(e,t){e&&e.meta.symbol===Wi&&this.setText(e.text,{notToNative:!0}),a(p(n.prototype),"insertBefore",this).call(this,e,t)}},{key:"moveChild",value:function(e,t){e&&e.meta.symbol===Wi&&this.setText(e.text,{notToNative:!0}),a(p(n.prototype),"moveChild",this).call(this,e,t)}},{key:"removeChild",value:function(e){e&&e.meta.symbol===Wi&&this.setText("",{notToNative:!0}),a(p(n.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(Ci(e));if(this.meta.component){var n=this.meta.component.eventNamesMap;n&&n[e]&&(t=n[e])}return t}},{key:"addEventListener",value:function(e,t,n){var r=this;if(this._emitter||(this._emitter=new jc(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){this.attributes.scrollEventThrottle=200}if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(Ha,e,t,n);e=o.eventNames,t=o.callback,n=o.options}this._emitter.addEventListener(e,t,n),qc(e,(function(e){var t,n,o=r.getNativeEventName(e);r.events[o]?r.events[o]&&r.events[o].type!==Ma&&(r.events[o].type=Ma):r.events[o]={name:o,type:Ma,listener:(t=o,n=e,function(e){var r=e.id,o=e.currentId,i=e.params,a=e.eventPhase;Tc.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:o,params:i,eventPhase:a},e)}),isCapture:!1}})),qs(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(Wa,e,t,n);e=o.eventNames,t=o.callback,n=o.options}var i=this._emitter.removeEventListener(e,t,n);return qc(e,(function(e){var t=r.getNativeEventName(e);r.events[t]&&(r.events[t].type=Ra)})),qs(this),i}},{key:"dispatchEvent",value:function(e,t,n){if(!(e instanceof Ic))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}},{key:"getBoundingClientRect",value:function(){return Cc.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;"number"==typeof e&&"number"==typeof t&&(!1===n&&(n=0),Cc.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:n}]))}},{key:"scrollTo",value:function(e,t,n){var r=n;if("object"===_(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){Cc.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Cc.callUIFunction(this,"setHotspot",[e,t])}}]),n}(Lc),Jc=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this,"comment")).text=e,r._meta={symbol:Wi,skipAddToDom:!0},r}return w(n)}(Xc),Zc=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).text=e,r._meta={symbol:Wi,skipAddToDom:!0},r}return w(n,[{key:"setText",value:function(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}]),n}(Lc),Qc=function(e){c(n,e);var t=l(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{key:"getValue",value:function(){var e=this;return new Promise((function(t){return Cc.callUIFunction(e,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){Cc.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Cc.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Cc.callUIFunction(this,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){return Cc.callUIFunction(e,"isFocused",(function(e){return t(e.value)}))}))}},{key:"clear",value:function(){Cc.callUIFunction(this,"clear",[])}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}}]),n}(Xc),eu=function(e){c(n,e);var t=l(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{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&&Cc.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&&Cc.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}]),n}(Xc),tu=function(e){c(n,e);var t=l(n);function n(){var e;return g(this,n),(e=t.call(this)).documentElement=new Xc("document"),e.createComment=e.constructor.createComment,e.createElement=e.constructor.createElement,e.createElementNS=e.constructor.createElementNS,e.createTextNode=e.constructor.createTextNode,e}return w(n,null,[{key:"createComment",value:function(e){return new Jc(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new Qc(e);case"ul":return new eu(e);default:return new Xc(e)}}},{key:"createElementNS",value:function(e,t){return new Xc("".concat(e,":").concat(t))}},{key:"createTextNode",value:function(e){return new Zc(e)}},{key:"createEvent",value:function(e){return new Ic(e)}}]),n}(Lc),nu={create:function(e,t){ru(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ru(e,!0),ru(t))},destroy:function(e){ru(e,!0)}};function ru(e,t){var n=e.data.ref;if(O(n)){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?R(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 ou=new Ne("",{},[]),iu=["create","activate","update","remove","destroy"];function au(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&O(e.data)===O(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=O(n=e.data)&&O(n=n.attrs)&&n.type,o=O(n=t.data)&&O(n=n.attrs)&&n.type;return r===o||Gn(r)&&Gn(o)}(e,t)||x(e.isAsyncPlaceholder)&&S(t.asyncFactory.error))}function su(e,t,n){var r,o,i={};for(r=t;r<=n;++r)O(o=e[r].key)&&(i[o]=r);return i}var cu={create:uu,update:uu,destroy:function(e){uu(e,ou)}};function uu(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===ou,a=t===ou,s=fu(e.data.directives,e.context),c=fu(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,pu(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(pu(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 r=e.elm;if(t&&(r=t),r){var o=e.data&&e.data.attrs||{};o.__ob__&&(o=q({},o),e.data.attrs=o),Object.keys(o).forEach((function(e){r.setAttribute(e,o[e],{notToNative:!!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.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(Eu(e),t,!!n.notToNative)}));var i=e.data.style;if(i){var a=i.__ob__;Array.isArray(i)&&(i=Au(i),e.data.style=i),a&&(i=q({},i),e.data.style=i),Object.keys(i).forEach((function(e){r.setStyle(Eu(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=Un(e),a=o._transitionClasses;a&&(i=Wn(i,zn(a))),i!==o._prevClass&&(o.setAttribute("class",i,{notToNative:!!n.notToNative}),o._prevClass=i)}}}}(t,e,{notToNative:!0}))}var Pu=function(e){var t,n,r={},o=e.modules,i=e.nodeOps;for(t=0;td?h(e,S(n[y+1])?null:n[y+1].elm,n,f,y,r):f>y&&m(t,l,d)}(u,p,v,n,c):O(v)?(O(e.text)&&i.setTextContent(u,""),h(u,null,v,0,v.length-1,n)):O(p)?m(p,0,p.length-1):O(e.text)&&i.setTextContent(u,""):e.text!==t.text&&i.setTextContent(u,t.text),O(d)&&O(l=d.hook)&&O(l=l.postpatch)&&l(e,t)}}}function w(e,t,n){if(x(n)&&O(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:Iu.concat(hu)});function Tu(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}var Du=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})},Lu={inserted:function(e,t){"ios"===Cc.Platform&&Du!==Tu&&(Du=Tu),"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 Ic("input");r.value=n,e.dispatchEvent(r)})))},update:function(e,t){var n=t.value,r=t.oldValue;e.value=n,Du(e,n,r)}};function Mu(e,t,n,r){t?(n.data.show=!0,e.setStyle("display",r)):e.setStyle("display","none")}var Ru={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,Mu(e,r,n,o)},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&Mu(e,r,n,e.__vOriginalDisplay)},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Fu=Object.freeze({__proto__:null,model:Lu,show:Ru}),Vu=['%c[Hippy-Vue "3.0.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Bu=new tu;Pn.$document=Bu,Pn.prototype.$document=Bu,Pn.$Document=tu,Pn.$Event=Ic,Pn.config.mustUseProp=function(e,t,n){var r=_a(e);return!!r.mustUseProp&&r.mustUseProp(t,n)},Pn.config.isReservedTag=ma,Pn.config.isUnknownElement=function(e){return t=e,!ya.has(ba(t));var t},Pn.compile=hi,Pn.registerElement=wa,q(Pn.options.directives,Fu),Pn.prototype.__patch__=Pu,Pn.prototype.$mount=function(e,t){var n=this.$options;if(!n.render){var r=n.template;if(r&&"string"!=typeof r)return Se("invalid template option: ".concat(r),this),this;if(r){var o=hi(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=Ce),dn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Sn(e,r,X,{before:function(){e._isMounted&&!e._isDestroyed&&dn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,dn(e,"mounted")),e}(this,e,t)},Pn.prototype.$start=function(e,t){var n,r=this;Si(this),Ti(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,_i=n),ya.forEach((function(e){Pn.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,Ai.apply(void 0,Vu.concat(["Start",r.$options.appName,"with rootViewId",o,n])),r.$el)&&(r.$destroy(),Si(new(Pn.extend(r.$options))(r.$options)));if(Ti(t)&&t(r,n),r.$mount(),"ios"===Cc.Platform){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iPhone,n={};if(t&&t.statusBar&&(n=t.statusBar),n.disabled)return null;var r=new Xc("div"),o=Cc.Dimensions.screen.statusBarHeight;Cc.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 Xc("img");s.setStyle("width",Cc.Dimensions.screen.width),s.setStyle("height",o),s.setAttribute("src",e.statusBarOpts.backgroundImage),r.appendChild(s)}return r.addEventListener("layout",(function(){Cc.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))}Ti(e)&&e(r,n)}))};var Uu=1;Pn.component=function(e,t){return t?(N(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},Pn.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=Uu+=1,s.options=Xe(t.options,e),s.super=t,s.options.props&&(i=(o=s).options.props,Object.keys(i).forEach((function(e){return xn(o.prototype,"_props",e)}))),s.options.computed&&function(e){var t=e.options.computed;Object.keys(t).forEach((function(n){return An(e.prototype,n,t[n])}))}(s),s.extend=t.extend,s.mixin=t.mixin,s.use=t.use,ne.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},Pn.Native=Cc,Pn.getApp=Oi,Pn.use((function(){Object.keys(pa).forEach((function(e){wa(e,pa[e])}))})),oe.devtools&&be&&be.emit("init",Pn);Pn.config._setBeforeRenderToNative=function(e,t){Ti(e)&&(1===t?ki=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};var Hu=new Proxy(Pn,{construct:function(e,t){var n=i(e,v(t));return n}});function Wu(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}var zu,Yu=function(){function e(t,n,r){var o=this;g(this,e),zu=Oi(),this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var i=function(e){for(var t=1;t0?i["Sec-WebSocket-Protocol"]=n.join(","):"string"==typeof n&&(i["Sec-WebSocket-Protocol"]=n);var a={headers:i,url:t};Cc.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(o.webSocketId=e.id)}))}return w(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Cc.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(_(e)));Cc.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"===_(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];Ti(n)&&n(e.data)}}}}]),e}();e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=Yu,Hu.config.silent=!1,Hu.config.trimWhitespace=!0,function(e){bi=e}(Hu)}.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 Hu}));var k=Object.freeze({});function S(e){return null==e}function O(e){return null!=e}function x(e){return!0===e}function E(e){return"string"==typeof e||"number"==typeof e||"symbol"===_(e)||"boolean"==typeof e}function $(e){return null!==e&&"object"===_(e)}var A=Object.prototype.toString;function N(e){return"[object Object]"===A.call(e)}function C(e){return"[object RegExp]"===A.call(e)}function I(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function j(e){return O(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function P(e){return null==e?"":Array.isArray(e)||N(e)&&e.toString===A?JSON.stringify(e,null,2):String(e)}function T(e){var t=parseFloat(e);return isNaN(t)?e:t}function D(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var F=Object.prototype.hasOwnProperty;function V(e,t){return F.call(e,t)}function B(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var U=/-(\w)/g,H=B((function(e){return e.replace(U,(function(e,t){return t?t.toUpperCase():""}))})),W=B((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),z=/\B([A-Z])/g,Y=B((function(e){return e.replace(z,"-$1").toLowerCase()}));var K=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 G(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 X(e,t,n){}var J=function(e,t,n){return!1},Z=function(e){return e};function Q(e,t){if(e===t)return!0;var n=$(e),r=$(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 Q(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 Q(e[n],t[n])}))}catch(e){return!1}}function ee(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=new Ne;return t.text=e,t.isComment=!0,t};function Ie(e){return new Ne(void 0,void 0,void 0,String(e))}function je(e){var t=new Ne(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 Pe=Array.prototype,Te=Object.create(Pe);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Pe[e];se(Te,e,(function(){for(var n=arguments.length,r=new Array(n),o=0;o-1)if(i&&!V(o,"default"))a=!1;else if(""===a||a===Y(e)){var c=nt(String,o.type);(c<0||s0&&(Ot((o=e(o,"".concat(n||"","_").concat(r)))[0])&&Ot(a)&&(s[i]=Ie(a.text+o[0].text),o.shift()),s.push.apply(s,o)):E(o)?Ot(a)?s[i]=Ie(a.text+o):""!==o&&s.push(Ie(o)):Ot(o)&&Ot(a)?s[i]=Ie(a.text+o.text):(x(t._isVList)&&O(o.tag)&&S(o.key)&&O(n)&&(o.key="__vlist".concat(n,"_").concat(r,"__")),s.push(o)));return s}(e):void 0}function Ot(e){return O(e)&&O(e.text)&&!1===e.isComment}function xt(e,t){if(e){for(var n=Object.create(null),r=ke?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!==k&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=Ct(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=It(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),se(r,"$stable",i),se(r,"$key",a),se(r,"$hasNormal",o),r}function Ct(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"===_(e)&&!Array.isArray(e)?[e]:St(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!At(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function It(e,t){return function(){return e[t]}}function jt(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&&(bn=function(){return wn.now()})}function _n(){var e,t;for(bn(),yn=!0,pn.sort((function(e,t){return e.id-t.id})),gn=0;gngn&&pn[n].id>e.id;)n--;pn.splice(n+1,0,e)}else pn.push(e);mn||(mn=!0,vt(_n))}}(this)}},{key:"run",value:function(){if(this.active){var e=this.get();if(e!==this.value||$(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');ot(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||R(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}}}]),e}(),On={enumerable:!0,configurable:!0,get:X,set:X};function xn(e,t,n){On.get=function(){return this[t][n]},On.set=function(e){this[t][n]=e},Object.defineProperty(e,n,On)}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&&Me(!1);var i=function(i){o.push(i);var a=Ze(i,t,n,e);Ve(r,i,a),i in e||xn(e,"_props",i)};for(var a in t)i(a);Me(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?X:K(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;N(t=e._data="function"==typeof t?function(e,t){$e();try{return e.call(t,t)}catch(e){return rt(e,t,"data()"),{}}finally{Ae()}}(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&&V(r,i)||ae(i)||xn(e,"_data",i)}Fe(t,!0)}(e):Fe(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 Sn(e,i||X,X,$n),r in e||An(e,r,o)}}(e,t.computed),t.watch&&t.watch!==me&&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:!!C(e)&&e.test(t)}function Mn(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)&&Rn(n,i,r,o)}}}function Rn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,R(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=In++,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=Xe(jn(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&&cn(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=k,e._c=function(t,n,r,o){return en(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return en(e,t,n,r,o,!0)};var o=n&&n.data;Ve(e,"$attrs",o&&o.attrs||k,null,!0),Ve(e,"$listeners",t._parentListeners||k,null,!0)}(t),dn(t,"beforeCreate"),function(e){var t=xt(e.$options.inject,e);t&&(Me(!1),Object.keys(t).forEach((function(n){Ve(e,n,t[n])})),Me(!0))}(t),En(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),dn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Pn),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=Be,e.prototype.$delete=Ue,e.prototype.$watch=function(e,t,n){if(N(t))return Cn(this,e,t,n);(n=n||{}).user=!0;var r=new Sn(this,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');$e(),ot(t,this,[r.value],this,o),Ae()}return function(){r.teardown()}}}(Pn),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?G(n):n;for(var r=G(arguments,1),o='event handler for "'.concat(e,'"'),i=0,a=n.length;iparseInt(this.max)&&Rn(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)Rn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Mn(e,(function(e){return Ln(t,e)}))})),this.$watch("exclude",(function(t){Mn(e,(function(e){return!Ln(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=G(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=Xe(this.options,e),this}}(e),Tn(e),function(e){ne.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&N(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)}(Pn),Object.defineProperty(Pn.prototype,"$isServer",{get:ge}),Object.defineProperty(Pn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Pn,"FunctionalRenderContext",{value:Kt}),Pn.version="2.6.14",D("style,class");var Bn=D("input,textarea,option,select,progress");function Un(e){for(var t=e.data,n=e,r=e;O(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Hn(r.data,t));for(;O(n=n.parent);)n&&n.data&&(t=Hn(t,n.data));return function(e,t){if(O(e)||O(t))return Wn(e,zn(t));return""}(t.staticClass,t.class)}function Hn(e,t){return{staticClass:Wn(e.staticClass,t.staticClass),class:O(e.class)?[e.class,t.class]:t.class}}function Wn(e,t){return e?t?e+" "+t:e:t||""}function zn(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 vr={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=lr(e,"style");n&&(e.staticStyle=JSON.stringify(hr(n)));var r=ur(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 mr,yr,gr,br,wr,_r,kr=function(e){return e},Sr=D("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Or=D("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),xr=D("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"'=<>`]+)))?/,$r=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ar="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(ie.source,"]*"),Nr="((?:".concat(Ar,"\\:)?").concat(Ar,")"),Cr=new RegExp("^<".concat(Nr)),Ir=/^\s*(\/?)>/,jr=new RegExp("^<\\/".concat(Nr,"[^>]*>")),Pr=/^]+>/i,Tr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Fr=/&(?:lt|gt|quot|amp|#39);/g,Vr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Br=D("pre,textarea",!0),Ur=function(e,t){return e&&Br(e)&&"\n"===t[0]};function Hr(e,t){var n=t?Vr:Fr;return e.replace(n,(function(e){return Rr[e]}))}function Wr(e,t){for(var n,r,o=[],i=t.expectHTML,a=t.isUnaryTag||J,s=t.canBeLeftOpenTag||J,c=0,u=function(){if(n=e,r&&Lr(r)){var u=0,l=r.toLowerCase(),p=Mr[l]||(Mr[l]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(p,(function(e,n,r){return u=r.length,Lr(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Ur(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-h.length,e=h,d(l,c-u,c)}else{var v,m,y,g=e.indexOf("<");if(0===g){if(Tr.test(e)){var b=e.indexOf("--\x3e");if(b>=0)return t.shouldKeepComment&&t.comment(e.substring(4,b),c,c+b+3),f(b+3),"continue"}if(Dr.test(e)){var w=e.indexOf("]>");if(w>=0)return f(w+2),"continue"}var _=e.match(Pr);if(_)return f(_[0].length),"continue";var k=e.match(jr);if(k){var S=c;return f(k[0].length),d(k[1],S,c),"continue"}var O=function(){var t=e.match(Cr);if(t){var n,r,o={tagName:t[1],attrs:[],start:c};for(f(t[0].length);!(n=e.match(Ir))&&(r=e.match($r)||e.match(Er));)r.start=c,f(r[0].length),r.end=c,o.attrs.push(r);if(n)return o.unarySlash=n[1],f(n[0].length),o.end=c,o}}();if(O)return function(e){var n=e.tagName,c=e.unarySlash;i&&("p"===r&&xr(n)&&d(r),s(n)&&r===n&&d(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0){for(m=e.slice(g);!(jr.test(m)||Cr.test(m)||Tr.test(m)||Dr.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,c-v.length,c)}if(e===n)return t.chars&&t.chars(e),"break"};e;){var l=u();if("continue"!==l&&"break"===l)break}function f(t){c+=t,e=e.substring(t)}function d(e,n,i){var a,s;if(null==n&&(n=c),null==i&&(i=c),e)for(s=e.toLowerCase(),a=o.length-1;a>=0&&o[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=o.length-1;u>=a;u--)t.end&&t.end(o[u].tag,n,i);o.length=a,r=a&&o[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,i):"p"===s&&(t.start&&t.start(e,[],!1,n,i),t.end&&t.end(e,n,i))}d()}function zr(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=Yr(t,i);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat("$$v",") {").concat(a,"}")}}function Yr(e,t){var n=function(e){if(e=e.trim(),mr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,br),key:'"'+e.slice(br+1)+'"'}:{exp:e,key:null};yr=e,br=wr=_r=0;for(;!Gr();)qr(gr=Kr())?Jr(gr):91===gr&&Xr(gr);return{exp:e.slice(0,wr),key:e.slice(wr+1,_r)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function Kr(){return yr.charCodeAt(++br)}function Gr(){return br>=mr}function qr(e){return 34===e||39===e}function Xr(e){var t=1;for(wr=br;!Gr();)if(qr(e=Kr()))Jr(e);else if(91===e&&t++,93===e&&t--,0===t){_r=br;break}}function Jr(e){for(var t=e;!Gr()&&(e=Kr())!==t;);}var Zr,Qr,eo,to,no,ro,oo,io,ao=/^@|^v-on:/,so=o.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,co=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,uo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,lo=/^\(|\)$/g,fo=/^\[.*\]$/,po=/:(.*)$/,ho=/^:|^\.|^v-bind:/,vo=/^\./,mo=/\.[^.\]]+(?=[^\]]*$)/g,yo=/^v-slot(:|$)|^#/,go=/[\r\n]/,bo=/[ \f\t\r\n]+/g,wo=B(kr);function _o(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Ao(t),rawAttrsMap:{},parent:n,children:[]}}function ko(e,t){Zr=t.warn||tr,ro=t.isPreTag||J,oo=t.mustUseProp||J,io=t.getTagNamespace||J;var n=t.isReservedTag||J;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),eo=nr(t.modules,"transformNode"),to=nr(t.modules,"preTransformNode"),no=nr(t.modules,"postTransformNode"),Qr=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=So(e,t)),i.length||e===r||r.if&&(e.elseif||e.else)&&xo(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&&xo(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),ro(e.tag)&&(u=!1);for(var l=0;lc&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=Xn(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,")"))),cr(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(Yr(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Yr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Yr(t,"$$c"),"}"),null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=ur(e,"value")||"null";o=r?"_n(".concat(o,")"):o,rr(e,"checked","_q(".concat(t,",").concat(o,")")),cr(e,"change",Yr(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=Yr(t,l);c&&(f="if($event.target.composing)return;".concat(f));rr(e,"value","(".concat(t,")")),cr(e,u,f,null,!0),(s||a)&&cr(e,"blur","$forceUpdate()")}(e,r,o);else{if(!oe.isReservedTag(i))return zr(e,r,o),!1}return!0},text:function(e,t){t.value&&rr(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&rr(e,"innerHTML","_s(".concat(t.value,")"),t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Sr,mustUseProp:function(e,t,n){return"value"===n&&Bn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},canBeLeftOpenTag:Or,isReservedTag:function(e){return Yn(e)||Kn(e)},getTagNamespace:function(e){return Kn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(jo)},Lo=B((function(e){return D("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Mo(e,t){e&&(Po=Lo(t.staticKeys||""),To=t.isReservedTag||J,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||L(e.tag)||!To(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(Po)))}(t),1===t.type){if(!To(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Fo=/\([^)]*?\);*$/,Vo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Bo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Uo={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"]},Ho=function(e){return"if(".concat(e,")return null;")},Wo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ho("$event.target !== $event.currentTarget"),ctrl:Ho("!$event.ctrlKey"),shift:Ho("!$event.shiftKey"),alt:Ho("!$event.altKey"),meta:Ho("!$event.metaKey"),left:Ho("'button' in $event && $event.button !== 0"),middle:Ho("'button' in $event && $event.button !== 1"),right:Ho("'button' in $event && $event.button !== 2")};function zo(e,t){var n=t?"nativeOn:":"on:",r="",o="";for(var i in e){var a=Yo(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 Yo(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Yo(e)})).join(","),"]");var t=Vo.test(e.value),n=Ro.test(e.value),r=Vo.test(e.value.replace(Fo,""));if(e.modifiers){var o="",i="",a=[],s=function(){if(Wo[c])i+=Wo[c],Bo[c]&&a.push(c);else if("exact"===c){var t=e.modifiers;i+=Ho(["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(Ko).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 Ko(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=Bo[e],r=Uo[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Go={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:X},qo=w((function e(t){g(this,e),this.options=t,this.warn=t.warn||tr,this.transforms=nr(t.modules,"transformCode"),this.dataGenFns=nr(t.modules,"genData"),this.directives=q(q({},Go),t.directives);var n=t.isReservedTag||J;this.maybeComponent=function(e){return!!e.component||!n(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}));function Xo(e,t){var n=new qo(t),r=e?"script"===e.tag?"null":Jo(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function Jo(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Zo(e,t);if(e.once&&!e.onceProcessed)return Qo(e,t);if(e.for&&!e.forProcessed)return ti(e,t);if(e.if&&!e.ifProcessed)return ei(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ii(e,t),o="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),i=e.attrs||e.dynamicAttrs?ci((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:H(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:ii(t,n,!0);return"_c(".concat(e,",").concat(ni(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=ni(e,t));var o=e.inlineTemplate?null:ii(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=Xo(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(ci(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function ri(e){return 1===e.type&&("slot"===e.tag||e.children.some(ri))}function oi(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return ei(e,t,oi,"null");if(e.for&&!e.forProcessed)return ti(e,t,oi);var r="_empty_"===e.slotScope?"":String(e.slotScope),o="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(ii(e,t)||"undefined",":undefined"):ii(e,t)||"undefined":Jo(e,t),"}"),i=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(o).concat(i,"}")}function ii(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||Jo)(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 Mi(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:!bi||void 0===bi.config.trimWhitespace||bi.config.trimWhitespace?e.trim().replace(/Â/g," "):e.replace(/Â/g," ")}var Vi=Symbol.for("View"),Bi=Symbol.for("Image"),Ui=Symbol.for("ListView"),Hi=Symbol.for("ListViewItem"),Wi=Symbol.for("Text"),zi=Symbol.for("TextInput"),Yi=Symbol.for("WebView"),Ki=Symbol.for("VideoPlayer"),Gi={[Vi]:"View",[Bi]:"Image",[Ui]:"ListView",[Hi]:"ListViewItem",[Wi]:"Text",[zi]:"TextInput",[Yi]:"WebView",[Ki]:"VideoPlayer"};function qi(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 Xi(e){for(var t=1;t255?255:t},Ca=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},Ia=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},ja=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Ia(o,r,e+1/3),a=Ia(o,r,e),s=Ia(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8},Pa=function(e){return(parseFloat(e)%360+360)%360/360},Ta=function(e){var t=parseFloat(e,10);return t<0?0:t>100?1:t/100};function Da(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=Aa.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Oa,e)?Oa[e]:(t=Aa.rgb.exec(e),Array.isArray(t)?(Na(t[1])<<24|Na(t[2])<<16|Na(t[3])<<8|255)>>>0:(t=Aa.rgba.exec(e))?(Na(t[1])<<24|Na(t[2])<<16|Na(t[3])<<8|Ca(t[4]))>>>0:(t=Aa.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Aa.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Aa.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Aa.hsl.exec(e))?(255|ja(Pa(t[1]),Ta(t[2]),Ta(t[3])))>>>0:(t=Aa.hsla.exec(e))?(ja(Pa(t[1]),Ta(t[2]),Ta(t[3]))|Ca(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var La={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"},Ma=0,Ra=1,Fa={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},Va={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};function Ba(e){return!!Fa[e]}function Ua(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}var Ha="addEventListener",Wa="removeEventListener";function za(){var e=Cc.Localization;return!!e&&1===e.direction}var Ya=new Map;function Ka(e,t){Ya.set(t,e)}function Ga(e){Ya.delete(e)}function qa(e){return Ya.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){"number"==typeof t?Ga(t):t&&(Ga(t.nodeId),t.childNodes&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}function Ja(){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)?\\s*"},ts={};function ns(e,t,n){var r="";Qa&&(r="gy"),ts[e]||(ts[e]=new RegExp(es[e],r));var o,i=ts[e];if(Qa)i.lastIndex=n,o=i.exec(t);else{if(t=t.slice(n,t.length),!(o=i.exec(t)))return{result:null,regexp:i};i.lastIndex=n+o[0].length}return{result:o,regexp:i}}function rs(e,t){return function(e,t){var n=ns("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=ns("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=ns("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 os(e,t){var n=rs(e,t);if(!n)return null;for(var r=n.end,o=[];n;){o.push(n.value),n=rs(e,r=n.end)}return{start:t,end:r,value:o}}function is(e,t){var n=ns("combinatorRegEx",e,t),r=n.result,o=n.regexp;return r?{start:t,end:Qa?o.lastIndex:t,value:r[1]||" "}:null}function as(e){return e?" ".concat(e," "):""}var ss=function(){function e(){g(this,e)}return w(e,[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(t||this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(t||this)}}]),e}(),cs=function(e){c(n,e);var t=l(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{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:"trackChanges",value:function(){return null}}]),n}(ss),us=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),r.head=e.reduce((function(e,t){return!e||t.rarity>e.rarity?t:e}),null),r.dynamic=e.some((function(e){return e.dynamic})),r.selectors=e,r}return w(n,[{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.lookupSort(e,t||this)}},{key:"removeSort",value:function(e,t){this.head.removeSort(e,t||this)}}]),n}(cs),ls=function(e){c(n,e);var t=l(n);function n(){var e;return g(this,n),(e=t.call(this)).specificity=0,e.rarity=0,e.dynamic=!1,e}return w(n,[{key:"toString",value:function(){return"*".concat(as(this.combinator))}},{key:"match",value:function(){return!0}}]),n}(cs),fs=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=65536,r.rarity=3,r.dynamic=!1,r.id=e,r}return w(n,[{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,t||this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,t||this)}}]),n}(cs),ds=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=1,r.rarity=1,r.dynamic=!1,r.cssType=e,r}return w(n,[{key:"toString",value:function(){return"".concat(this.cssType).concat(as(this.combinator))}},{key:"match",value:function(e){return!!e&&e.tagName===this.cssType}},{key:"lookupSort",value:function(e,t){e.sortByType(this.cssType,t||this)}},{key:"removeSort",value:function(e,t){e.removeByType(this.cssType,t||this)}}]),n}(cs),ps=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=256,r.rarity=2,r.dynamic=!1,r.className=e,r}return w(n,[{key:"toString",value:function(){return".".concat(this.className).concat(as(this.combinator))}},{key:"match",value:function(e){return!!e&&(e.classList&&e.classList.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)}}]),n}(cs),hs=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=256,r.rarity=0,r.dynamic=!0,r.cssPseudoClass=e,r}return w(n,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(as(this.combinator))}},{key:"match",value:function(e){return!!e&&(e.cssPseudoClasses&&e.cssPseudoClasses.has(this.cssPseudoClass))}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}]),n}(cs),vs=function(e,t){var n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0},ms=function(e){c(n,e);var t=l(n);function n(e,r,o){var i;return g(this,n),(i=t.call(this)).specificity=256,i.rarity=0,i.dynamic=!0,i.attribute=e,i.test=r,i.value=o,r?o?(i.match=function(t){if(!t||!t.attributes)return!1;var n="".concat(vs(t,e));if("="===r)return n===o;if("^="===r)return n.startsWith(o);if("$="===r)return n.endsWith(o);if("*="===r)return-1!==n.indexOf(o);if("~="===r){var i=n.split(" ");return i&&-1!==i.indexOf(o)}return"|="===r&&(n===o||n.startsWith("".concat(o,"-")))},i):(i.match=function(){return!1},f(i)):(i.match=function(t){return!(!t||!t.attributes)&&!Ri(vs(t,e))},f(i))}return w(n,[{key:"toString",value:function(){return"[".concat(this.attribute).concat(as(this.test)).concat(this.test&&this.value||"","]").concat(as(this.combinator))}},{key:"match",value:function(){return!1}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}]),n}(cs),ys=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).specificity=0,r.rarity=4,r.dynamic=!1,r.combinator=void 0,r.err=e,r}return w(n,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}},{key:"lookupSort",value:function(){return null}},{key:"removeSort",value:function(){return null}}]),n}(cs),gs=function(){function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return w(e,[{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)}))}}]),e}(),bs=function(){function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return w(e,[{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)}))}}]),e}(),ws=function(e){c(n,e);var t=l(n);function n(e){var r;g(this,n),r=t.call(this);var o=[void 0," ",">","+","~"],i=[],a=[],s=[],c=v(e),u=c.length-1;r.specificity=0,r.dynamic=!1;for(var l=u;l>=0;l--){var f=c[l];if(-1===o.indexOf(f.combinator))throw console.error('Unsupported combinator "'.concat(f.combinator,'".')),new Error('Unsupported combinator "'.concat(f.combinator,'".'));void 0!==f.combinator&&" "!==f.combinator||s.push(a=[i=[]]),">"===f.combinator&&a.push(i=[]),r.specificity+=f.specificity,f.dynamic&&(r.dynamic=!0),i.push(f)}return r.groups=s.map((function(e){return new gs(e.map((function(e){return new bs(e)})))})),r.last=c[u],r}return w(n,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e){return!!e&&this.groups.every((function(t,n){if(0===n)return!!(e=t.match(e));for(var r=e;r=r.parentNode;)if(e=t.match(r))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){if(!this.dynamic)return this.match(e);var n=[],r=this.groups.every((function(t,r){if(0===r){var o=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=o)}for(var i=e;i=i.parentNode;){var a=t.mayMatch(i);if(a)return n.push({left:i,right:null}),e=a,!0}return!1}));if(!r)return!1;if(!t)return r;for(var o=0;o0&&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=Ba(o)?Fa[o]:Ua(o),i===Ra&&t.removeEventListener(n,r,a),i===Ma&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Ls(e,t){0}function Ms(t){if(Ps)if(Ps=!1,0!==Ts.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=xi();return e.map((function(e){var n=e.declarations.filter(Os).map(xs(t)),r=e.selectors.map(As);return new _s(r,n,e.hash)}))}(e.__HIPPY_VUE_STYLES__);Is?Is.append(t):Is=new Ss(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 Fs(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];Ti(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(Ti(o))t[n]=o(r);else{var i=o.name,a=o.propsValue,s=o.jointKey;Ti(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 Vs(e,t){"TextInput"===e.meta.component.name&&za()&&(t.textAlign||(t.textAlign="right"))}function Bs(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=Mi(n.backgroundImage)))}function Us(e){var t=Object.create(null);try{Rs().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 Hs(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 Ws(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 zs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var r=Us(t);r=Cs(Cs({},r),t.style),Ei()(t,r),t.meta.component.defaultNativeStyle&&(r=Cs(Cs({},t.meta.component.defaultNativeStyle),r));var o={id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,name:t.meta.component.name,props:Cs(Cs({},Fs(t)),{},{style:r}),tagName:t.tagName};Hs(o),Bs(t,o,r),Vs(t,r);var i=Ws(t),a=void 0,s=[o,n];return[s,i,a]}function Ys(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=h(zs(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 Ks(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}function Gs(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=Ks(e,a)&&!e.isMounted,c=e.isMounted&&!t.isMounted;if(s||c){var u=Ys(i,s?e:t,(function(e){e.isMounted||(e.isMounted=!0),Ka(e,e.nodeId)}),n),l=h(u,3),f=l[0],d=l[1],p=l[2];Ts.push({type:js.createNode,nodes:f,eventNodes:d,printedNodes:p}),Ms(r)}}}}function qs(e){if(e.isMounted){var t=Oi(),n=h(zs(t.$options.rootViewId,e),3),r=n[0],o=n[1];n[2];r&&(Ts.push({type:js.updateNode,nodes:[r],eventNodes:[o],printedNodes:[]}),Ms(t))}}function Xs(e){if(e.isMounted){var t=Oi(),n=h(Ys(t.$options.rootViewId,e),3),r=n[0],o=n[1],i=n[2];Ts.push({type:js.updateNode,nodes:r,eventNodes:o,printedNodes:i}),Ms(t)}}var Js,Zs,Qs=new Set,ec=!1,tc={exitApp:function(){Cc.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:function(e){return ec||(ec=!0,tc.initEventListener()),Cc.callNative("DeviceEventModule","setListenBackPress",!0),Qs.add(e),{remove:function(){tc.removeListener(e)}}},removeListener:function(e){Qs.delete(e),0===Qs.size&&Cc.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener:function(){Js||(Js=Oi()),Js.$on("hardwareBackPress",(function(){var e=!0;Array.from(Qs).reverse().every((function(t){return"function"!=typeof t||!t()||(e=!1,!1)})),e&&tc.exitApp()}))}},nc={exitApp:function(){},addListener:function(){return{remove:function(){}}},removeListener:function(){},initEventListener:function(){}},rc="android"===Hippy.device.platform.OS?tc:nc,oc=new Map,ic=function(){function e(t,n){g(this,e),this.eventName=t,this.listener=n}return w(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(ac(this.eventName,this.listener),this.listener=void 0)}}]),e}();function ac(e,t){if(t instanceof ic)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=oc.get(t);r&&(Zs||(Zs=Oi()),Zs.$off(n,r),oc.delete(t),oc.size<1&&Cc.callNative("NetInfo","removeListener",n))}}var sc=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"==typeof t){var n=e;return"change"===n&&(n="networkStatusDidChange"),0===oc.size&&Cc.callNative("NetInfo","addListener",n),Zs||(Zs=Oi()),Zs.$on(n,t),oc.set(t,t),new ic(n,t)}},removeEventListener:ac,fetch:function(){return Cc.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))},NetInfoRevoker:ic});function cc(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 uc(e){for(var t=1;t1&&void 0!==arguments[1]||Cc.Platform;if(Number.isInteger(e))return e;var t=$c.COLOR_PARSER||($c.COLOR_PARSER=Object.create(null));return t[e]||(t[e]=Da(e)),t[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:rc,ImageLoader:{getSize:function(e){return mc.call(this,"ImageLoaderModule","getSize",e)},prefetch:function(e){vc.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:sc,getElemCss:Us},Ic=function(){function e(t){g(this,e),this.type=t,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}return w(e,[{key:"canceled",get:function(){return this.isCanceled}},{key:"stopPropagation",value:function(){this.bubbles=!1}},{key:"preventDefault",value:function(){this.cancelable&&(this.isCanceled=!0)}},{key:"initEvent",value:function(e){var t=!(arguments.length>1&&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}(),jc=function(){function e(t){g(this,e),this.element=t,this.observers={}}return w(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&&!Ti(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=e.type,n=this.observers[t];if(n)for(var r=n.length-1;r>=0;r-=1){var o=n[r];o.options&&o.options.once&&n.splice(r,1),o.options&&o.options.thisArg?o.callback.apply(o.options.thisArg,[e]):o.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&&Q(e.options,n):e.callback===t}))}}]),e}(),Pc=["%c[event]%c","color: green","color: auto"];var Tc={receiveNativeEvent:function(e){if(Ai.apply(void 0,Pc.concat(["receiveNativeEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=h(e,2),n=t[0],r=t[1],o=Oi();o&&o.$emit(n,r)}},receiveComponentEvent:function(e,t){if(Ai.apply(void 0,Pc.concat(["receiveComponentEvent",e])),e&&t){var n=e.id,r=e.currentId,o=e.nativeName,i=e.originalName,a=e.params,s=void 0===a?{}:a,c=e.eventPhase,u=qa(r),l=qa(n);if(u&&l)try{if([Va.AT_TARGET,Va.BUBBLING_PHASE].indexOf(c)>-1){var f=new Ic(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 Ni.apply(void 0,Pc.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Ni.apply(void 0,Pc.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Tc);var Dc=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Dc=e.__GLOBAL__.nodeId);var Lc=function(){function e(){g(this,e),this._ownerDocument=null,this._meta=null,this._isMounted=!1,this.nodeId=((Dc+=1)%10==0&&(Dc+=1),Dc%10==0&&(Dc+=1),Dc),this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null}return w(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=Ja(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?Gs(this,e):Gs(this,e,{refId:r.nodeId,relativeToRef:Za})}},{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=Ja(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?Gs(this,e):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.meta&&Ti(e.meta.removeChild)&&e.meta.removeChild(e,t),t&&!t.meta.skipAddToDom&&(!n||n.refId!==t.nodeId)){t.isMounted=!1;var r=Oi(),o=r.$options.rootViewId,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},a=[[i,n]],s=[];Ts.push({printedNodes:s,type:js.moveNode,nodes:a,eventNodes:[]}),Ms(r)}}(this,e,{refId:o.nodeId,relativeToRef:Za})}},{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),Gs(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=null,e.nextSibling=null;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=[];Ts.push({printedNodes:a,type:js.deleteNode,nodes:i,eventNodes:[]}),Ms(n)}}(0,e)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t]+)>/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"!=_(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Mc.apply(this,arguments)}var Rc={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Fc="turn",Vc="rad",Bc="deg";function Uc(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=Mc(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(Array.isArray(n)){var r="180",o=h(n,3),i=o[0],a=o[1],s=o[2];return a&&s?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bc,n=parseFloat(e),r=e||"",o=e.split("."),i=h(o,2),a=i[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Fc:r="".concat((360*n).toFixed(2));break;case Vc:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,s):i&&void 0!==Rc[i]&&(r=Rc[i]),r}}function Hc(e){var t=h((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:Cc.parseColor(n)}:void 0:{color:Cc.parseColor(n)}}function Wc(e,t,n){delete n[e],zc(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=Uc(e);if(n)r.angle=n;else{r.angle="180";var o=Hc(e);o&&a.push(o)}}else{var i=Hc(e);i&&a.push(i)}})),r.colorStopList=a}else{var s=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(s&&s.length>1){var c=h(s,2);r=c[1]}}return[o,r]}function zc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}var Yc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function Kc(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,{[Yc[e]]:t}),["textShadowOffset",n.textShadowOffset]}function Gc(e,t,n){void 0===t&&(delete n[e],zc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[Yc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function qc(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"class":var i=new Set(o.split(" ").filter((function(e){return e.trim()})));if(Di(this.classList,i))return;return this.classList=i,void(!n.notToNative&&Xs(this));case"id":if(o===this.id)return;return this.id=o,void(!n.notToNative&&Xs(this));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof o)try{o=o.toString()}catch(e){"Property ".concat(r," must be string:").concat(e.message)}n&&n.textUpdate||(o=Fi(o)),o=Pi(o);break;case"numberOfRows":if("ios"!==Cc.Platform)return;break;case"caretColor":case"caret-color":r="caret-color",o=Cc.parseColor(o);break;case"break-strategy":r="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":r="placeholderTextColor",o=Cc.parseColor(o);break;case"underlineColorAndroid":case"underline-color-android":r="underlineColorAndroid",o=Cc.parseColor(o);break;case"nativeBackgroundAndroid":var a=o;void 0!==a.color&&(a.color=Cc.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)}catch(e){0}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyles",value:function(e){var t=this;e&&"object"===_(e)&&0!==Object.keys(e).length&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),qs(this))}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.beforeLoadStyle({property:e,value:t}),o=r.value,i=r.property;if(void 0===t)return Gc(i,o,this.style),void(n||qs(this));switch(i){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=Wc(i,o,this.style),s=h(a,2);i=s[0],o=s[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=Kc(i,o,this.style),u=h(c,2);i=u[0],o=u[1];break;case"textShadowOffset":var l=o||{},f=l.x,d=void 0===f?0:f,p=l.width,v=void 0===p?0:p,m=l.y,y=void 0===m?0:m,g=l.height,b=void 0===g?0:g;o={width:d||v,height:y||b};break;default:Object.prototype.hasOwnProperty.call(La,i)&&(i=La[i]),"string"==typeof o&&(o=o.trim(),o=i.toLowerCase().indexOf("color")>=0?Cc.parseColor(o):Li(o,"px")?parseFloat(o.slice(0,o.length-2)):ji(o))}null!=o&&this.style[i]!==o&&(this.style[i]=o,n||qs(this))}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"repaintWithChildren",value:function(){Xs(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:"appendChild",value:function(e){e&&e.meta.symbol===Wi&&this.setText(e.text,{notToNative:!0}),a(p(n.prototype),"appendChild",this).call(this,e)}},{key:"insertBefore",value:function(e,t){e&&e.meta.symbol===Wi&&this.setText(e.text,{notToNative:!0}),a(p(n.prototype),"insertBefore",this).call(this,e,t)}},{key:"moveChild",value:function(e,t){e&&e.meta.symbol===Wi&&this.setText(e.text,{notToNative:!0}),a(p(n.prototype),"moveChild",this).call(this,e,t)}},{key:"removeChild",value:function(e){e&&e.meta.symbol===Wi&&this.setText("",{notToNative:!0}),a(p(n.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(Ci(e));if(this.meta.component){var n=this.meta.component.eventNamesMap;n&&n[e]&&(t=n[e])}return t}},{key:"addEventListener",value:function(e,t,n){var r=this;if(this._emitter||(this._emitter=new jc(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){this.attributes.scrollEventThrottle=200}if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(Ha,e,t,n);e=o.eventNames,t=o.callback,n=o.options}this._emitter.addEventListener(e,t,n),qc(e,(function(e){var t,n,o=r.getNativeEventName(e);r.events[o]?r.events[o]&&r.events[o].type!==Ma&&(r.events[o].type=Ma):r.events[o]={name:o,type:Ma,listener:(t=o,n=e,function(e){var r=e.id,o=e.currentId,i=e.params,a=e.eventPhase;Tc.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:o,params:i,eventPhase:a},e)}),isCapture:!1}})),qs(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(Wa,e,t,n);e=o.eventNames,t=o.callback,n=o.options}var i=this._emitter.removeEventListener(e,t,n);return qc(e,(function(e){var t=r.getNativeEventName(e);r.events[t]&&(r.events[t].type=Ra)})),qs(this),i}},{key:"dispatchEvent",value:function(e,t,n){if(!(e instanceof Ic))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}},{key:"getBoundingClientRect",value:function(){return Cc.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;"number"==typeof e&&"number"==typeof t&&(!1===n&&(n=0),Cc.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:n}]))}},{key:"scrollTo",value:function(e,t,n){var r=n;if("object"===_(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){Cc.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Cc.callUIFunction(this,"setHotspot",[e,t])}}]),n}(Lc),Jc=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this,"comment")).text=e,r._meta={symbol:Wi,skipAddToDom:!0},r}return w(n)}(Xc),Zc=function(e){c(n,e);var t=l(n);function n(e){var r;return g(this,n),(r=t.call(this)).text=e,r._meta={symbol:Wi,skipAddToDom:!0},r}return w(n,[{key:"setText",value:function(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}]),n}(Lc),Qc=function(e){c(n,e);var t=l(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{key:"getValue",value:function(){var e=this;return new Promise((function(t){return Cc.callUIFunction(e,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){Cc.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Cc.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Cc.callUIFunction(this,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){return Cc.callUIFunction(e,"isFocused",(function(e){return t(e.value)}))}))}},{key:"clear",value:function(){Cc.callUIFunction(this,"clear",[])}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}}]),n}(Xc),eu=function(e){c(n,e);var t=l(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{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&&Cc.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&&Cc.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}]),n}(Xc),tu=function(e){c(n,e);var t=l(n);function n(){var e;return g(this,n),(e=t.call(this)).documentElement=new Xc("document"),e.createComment=e.constructor.createComment,e.createElement=e.constructor.createElement,e.createElementNS=e.constructor.createElementNS,e.createTextNode=e.constructor.createTextNode,e}return w(n,null,[{key:"createComment",value:function(e){return new Jc(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new Qc(e);case"ul":return new eu(e);default:return new Xc(e)}}},{key:"createElementNS",value:function(e,t){return new Xc("".concat(e,":").concat(t))}},{key:"createTextNode",value:function(e){return new Zc(e)}},{key:"createEvent",value:function(e){return new Ic(e)}}]),n}(Lc),nu={create:function(e,t){ru(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ru(e,!0),ru(t))},destroy:function(e){ru(e,!0)}};function ru(e,t){var n=e.data.ref;if(O(n)){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?R(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 ou=new Ne("",{},[]),iu=["create","activate","update","remove","destroy"];function au(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&O(e.data)===O(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=O(n=e.data)&&O(n=n.attrs)&&n.type,o=O(n=t.data)&&O(n=n.attrs)&&n.type;return r===o||Gn(r)&&Gn(o)}(e,t)||x(e.isAsyncPlaceholder)&&S(t.asyncFactory.error))}function su(e,t,n){var r,o,i={};for(r=t;r<=n;++r)O(o=e[r].key)&&(i[o]=r);return i}var cu={create:uu,update:uu,destroy:function(e){uu(e,ou)}};function uu(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===ou,a=t===ou,s=fu(e.data.directives,e.context),c=fu(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,pu(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(pu(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 r=e.elm;if(t&&(r=t),r){var o=e.data&&e.data.attrs||{};o.__ob__&&(o=q({},o),e.data.attrs=o),Object.keys(o).forEach((function(e){r.setAttribute(e,o[e],{notToNative:!!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.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($u(e),t,!!n.notToNative)}));var i=e.data.style;if(i){var a=i.__ob__;Array.isArray(i)&&(i=Au(i),e.data.style=i),a&&(i=q({},i),e.data.style=i),Object.keys(i).forEach((function(e){r.setStyle($u(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=Un(e),a=o._transitionClasses;a&&(i=Wn(i,zn(a))),i!==o._prevClass&&(o.setAttribute("class",i,{notToNative:!!n.notToNative}),o._prevClass=i)}}}}(t,e,{notToNative:!0}))}var Pu=function(e){var t,n,r={},o=e.modules,i=e.nodeOps;for(t=0;td?h(e,S(n[y+1])?null:n[y+1].elm,n,f,y,r):f>y&&m(t,l,d)}(u,p,v,n,c):O(v)?(O(e.text)&&i.setTextContent(u,""),h(u,null,v,0,v.length-1,n)):O(p)?m(p,0,p.length-1):O(e.text)&&i.setTextContent(u,""):e.text!==t.text&&i.setTextContent(u,t.text),O(d)&&O(l=d.hook)&&O(l=l.postpatch)&&l(e,t)}}}function w(e,t,n){if(x(n)&&O(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:Iu.concat(hu)});function Tu(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}var Du=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})},Lu={inserted:function(e,t){"ios"===Cc.Platform&&Du!==Tu&&(Du=Tu),"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 Ic("input");r.value=n,e.dispatchEvent(r)})))},update:function(e,t){var n=t.value,r=t.oldValue;e.value=n,Du(e,n,r)}};function Mu(e,t,n,r){t?(n.data.show=!0,e.setStyle("display",r)):e.setStyle("display","none")}var Ru={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,Mu(e,r,n,o)},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&Mu(e,r,n,e.__vOriginalDisplay)},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Fu=Object.freeze({__proto__:null,model:Lu,show:Ru}),Vu=['%c[Hippy-Vue "3.0.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Bu=new tu;Pn.$document=Bu,Pn.prototype.$document=Bu,Pn.$Document=tu,Pn.$Event=Ic,Pn.config.mustUseProp=function(e,t,n){var r=_a(e);return!!r.mustUseProp&&r.mustUseProp(t,n)},Pn.config.isReservedTag=ma,Pn.config.isUnknownElement=function(e){return t=e,!ya.has(ba(t));var t},Pn.compile=hi,Pn.registerElement=wa,q(Pn.options.directives,Fu),Pn.prototype.__patch__=Pu,Pn.prototype.$mount=function(e,t){var n=this.$options;if(!n.render){var r=n.template;if(r&&"string"!=typeof r)return Se("invalid template option: ".concat(r),this),this;if(r){var o=hi(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=Ce),dn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Sn(e,r,X,{before:function(){e._isMounted&&!e._isDestroyed&&dn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,dn(e,"mounted")),e}(this,e,t)},Pn.prototype.$start=function(e,t){var n,r=this;Si(this),Ti(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,_i=n),ya.forEach((function(e){Pn.component(e.meta.component.name,e.meta.component)})),Ec.regist(this.$options.appName,(function(n){var o=n.__instanceId__;(r.$options.$superProps=n,r.$options.rootViewId=o,Ai.apply(void 0,Vu.concat(["Start",r.$options.appName,"with rootViewId",o,n])),r.$el)&&(r.$destroy(),Si(new(Pn.extend(r.$options))(r.$options)));if(Ti(t)&&t(r,n),r.$mount(),"ios"===Cc.Platform){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iPhone,n={};if(t&&t.statusBar&&(n=t.statusBar),n.disabled)return null;var r=new Xc("div"),o=Cc.Dimensions.screen.statusBarHeight;Cc.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 Xc("img");s.setStyle("width",Cc.Dimensions.screen.width),s.setStyle("height",o),s.setAttribute("src",e.statusBarOpts.backgroundImage),r.appendChild(s)}return r.addEventListener("layout",(function(){Cc.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))}Ti(e)&&e(r,n)}))};var Uu=1;Pn.component=function(e,t){return t?(N(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},Pn.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=Uu+=1,s.options=Xe(t.options,e),s.super=t,s.options.props&&(i=(o=s).options.props,Object.keys(i).forEach((function(e){return xn(o.prototype,"_props",e)}))),s.options.computed&&function(e){var t=e.options.computed;Object.keys(t).forEach((function(n){return An(e.prototype,n,t[n])}))}(s),s.extend=t.extend,s.mixin=t.mixin,s.use=t.use,ne.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},Pn.Native=Cc,Pn.getApp=Oi,Pn.use((function(){Object.keys(pa).forEach((function(e){wa(e,pa[e])}))})),oe.devtools&&be&&be.emit("init",Pn);Pn.config._setBeforeRenderToNative=function(e,t){Ti(e)&&(1===t?ki=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};var Hu=new Proxy(Pn,{construct:function(e,t){var n=i(e,v(t));return n}});function Wu(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}var zu,Yu=function(){function e(t,n,r){var o=this;g(this,e),zu=Oi(),this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var i=function(e){for(var t=1;t0?i["Sec-WebSocket-Protocol"]=n.join(","):"string"==typeof n&&(i["Sec-WebSocket-Protocol"]=n);var a={headers:i,url:t};Cc.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(o.webSocketId=e.id)}))}return w(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Cc.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(_(e)));Cc.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"===_(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];Ti(n)&&n(e.data)}}}}]),e}();e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=Yu,Hu.config.silent=!1,Hu.config.trimWhitespace=!0,function(e){bi=e}(Hu)}.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/vendor.ios.js b/framework/examples/ios-demo/res/vue3/vendor.ios.js index e4c935e060c..45a23657e45 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";n.r(t),function(e,r){n.d(t,"BackAndroid",(function(){return tn})),n.d(t,"ContentSizeEvent",(function(){return Dn})),n.d(t,"EventBus",(function(){return Se})),n.d(t,"ExposureEvent",(function(){return zn})),n.d(t,"FocusEvent",(function(){return Un})),n.d(t,"HIPPY_DEBUG_ADDRESS",(function(){return ke})),n.d(t,"HIPPY_GLOBAL_DISPOSE_STYLE_NAME",(function(){return Te})),n.d(t,"HIPPY_GLOBAL_STYLE_NAME",(function(){return Ne})),n.d(t,"HIPPY_STATIC_PROTOCOL",(function(){return Ee})),n.d(t,"HIPPY_VUE_VERSION",(function(){return Ce})),n.d(t,"HippyEvent",(function(){return Ln})),n.d(t,"HippyKeyboardEvent",(function(){return Bn})),n.d(t,"HippyLayoutEvent",(function(){return Fn})),n.d(t,"HippyLoadResourceEvent",(function(){return Vn})),n.d(t,"HippyTouchEvent",(function(){return Mn})),n.d(t,"IS_PROD",(function(){return xe})),n.d(t,"ListViewEvent",(function(){return Hn})),n.d(t,"NATIVE_COMPONENT_MAP",(function(){return je})),n.d(t,"Native",(function(){return Jt})),n.d(t,"ViewPagerEvent",(function(){return $n})),n.d(t,"_setBeforeRenderToNative",(function(){return Fr})),n.d(t,"createApp",(function(){return Mr})),n.d(t,"eventIsKeyboardEvent",(function(){return Wn})),n.d(t,"getTagComponent",(function(){return on})),n.d(t,"parseCSS",(function(){return le})),n.d(t,"registerElement",(function(){return rn})),n.d(t,"setScreenSize",(function(){return Ir})),n.d(t,"translateColor",(function(){return J}));var i=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),o=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js"),a=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"),u=["mode","valueType","startValue","toValue"],c=["transform"],s=["transform"];function l(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 f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(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 d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,i){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),u=new j(i||[]);return r(a,"_invoke",{value:_(e,n,u)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function v(){}function h(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(E([])));g&&g!==t&&n.call(g,o)&&(y=g);var b=h.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,u){var c=l(e[i],e,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==N(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function _(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===f)continue;return u}}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=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(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,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(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 i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function v(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 h(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){v(o,r,i,a,u,"next",e)}function u(e){v(o,r,i,a,u,"throw",e)}a(void 0)}))}}function y(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 m(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=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(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 b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(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)},T.apply(this,arguments)}function C(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 P(e,t){return function(e){if(Array.isArray(e))return e} /*! - * @hippy/vue v3.0.0 - * (Using Vue v3.2.37 and Hippy-Vue-Next v3.0.0) - * Build at: Thu Jun 29 2023 16:20:44 GMT+0800 (中国标准时间) + * @hippy/vue v3.0.1 + * (Using Vue v3.2.37 and Hippy-Vue-Next v3.0.1) + * Build at: Mon Aug 07 2023 19:38:19 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -21,4 +21,4 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e)||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 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}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n255?255:t},W=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},Y=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},G=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Y(i,r,e+1/3),a=Y(i,r,e),u=Y(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8},K=function(e){return(parseFloat(e)%360+360)%360/360},q=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function J(e){var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=z.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(B,e)?B[e]:(t=z.rgb.exec(e),Array.isArray(t)?(H(t[1])<<24|H(t[2])<<16|H(t[3])<<8|255)>>>0:(t=z.rgba.exec(e))?(H(t[1])<<24|H(t[2])<<16|H(t[3])<<8|W(t[4]))>>>0:(t=z.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=z.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=z.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=z.hsl.exec(e))?(255|G(K(t[1]),q(t[2]),q(t[3])))>>>0:(t=z.hsla.exec(e))?(G(K(t[1]),q(t[2]),q(t[3]))|W(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var X={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},Z={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Q="turn",ee="rad",te="deg",ne=/\/\*[\s\S]{0,1000}?\*\//gm;var re=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ie(e){if("number"==typeof e)return e;if(re.test(e))try{return parseFloat(e)}catch(e){}return e}function oe(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 ae(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=T(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";var r="180",i=P(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]:te,n=parseFloat(e),r=e||"",i=e.split("."),o=P(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 ee:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,u):o&&void 0!==Z[o]&&(r=Z[o]),r}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.replace(/\s+/g," ").trim(),n=t.split(/\s+(?![^(]*?\))/),r=P(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:J(i)}:null:{color:J(i)}}function ce(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=ae(e);if(r)n.angle=r;else{n.angle="180";var i=ue(e);i&&o.push(i)}}else{var a=ue(e);a&&o.push(a)}})),n.colorStopList=o}else{var a=/(?:\(['"]?).{0,500}?(?:['"]?\))/.exec(t);if(a&&a.length>1){var u=P(a,2);n=u[1]}}return[r,n]}function se(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){se(e,r)})):n&&"object"===N(n)&&se(n,r)})),n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t}),e}function le(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=x(x({},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=L()||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(ne,""),r=V(n),i=X[r]||r,a=o(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/),c=a?a[0].trim().replace(ne,""):"";switch(i){case"backgroundImage":var l=P(ce(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=P(r,3)[2];if(i)n=P(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 oe(e)})),h=P(v,1)[0],y=P(v,2)[1];y||(y=h),c={x:h,y:y};break;case"collapsable":c=Boolean(c);break;default:c=ie(c);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find((function(e){return i.toLowerCase().indexOf(e)>-1}))&&(c=oe(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 w(){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 _(){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 S(){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 j(){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 E(){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 N(){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 T(){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 C(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 A=C("import"),I=C("charset"),R=C("namespace");function L(){return"@"!==e[0]?null:w()||k()||j()||_()||A()||I()||R()||N()||E()||S()||T()}return se(p(),null)}function fe(e,t){if(e===t)return!0;var n=ve(e),r=ve(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=me(e),r=me(t),n||r)return e===t;if(n=pe(e),r=pe(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;for(var n=!0,r=0;n&&r1?r-1:0),o=1;oe.rarity?t:e}),null),r.dynamic=e.some((function(e){return e.dynamic})),r.selectors=e,r}return _(n,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(nt(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 ot&&this.head.lookupSort(e,null!=t?t:this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof ot&&this.head.removeSort(e,null!=t?t:this)}}]),n}(ot),ut=function(e){C(n,e);var t=m(n);function n(){var e;return O(this,n),(e=t.call(this)).specificity=0,e.rarity=0,e.dynamic=!1,e}return _(n,[{key:"toString",value:function(){return"*".concat(nt(this.combinator))}},{key:"match",value:function(){return!0}}]),n}(ot),ct=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=65536,r.rarity=3,r.dynamic=!1,r.id=e,r}return _(n,[{key:"toString",value:function(){return"#".concat(this.id).concat(nt(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)}}]),n}(ot),st=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=1,r.rarity=1,r.dynamic=!1,r.cssType=e,r}return _(n,[{key:"toString",value:function(){return"".concat(this.cssType).concat(nt(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)}}]),n}(ot),lt=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=256,r.rarity=2,r.dynamic=!1,r.className=e,r}return _(n,[{key:"toString",value:function(){return".".concat(this.className).concat(nt(this.combinator))}},{key:"match",value:function(e){return!!e&&!(!e.classList.size||!e.classList.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)}}]),n}(ot),ft=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=256,r.rarity=0,r.dynamic=!0,r.cssPseudoClass=e,r}return _(n,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(nt(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)}}]),n}(ot),dt=function(e,t){var n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0},pt=function(e){C(n,e);var t=m(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return O(this,n),(r=t.call(this)).attribute="",r.test="",r.value="",r.specificity=256,r.rarity=0,r.dynamic=!0,r.attribute=e,r.test=i,r.value=o,i?o?(r.match=function(t){if(!t||!t.attributes)return!1;var n="".concat(dt(t,e));if("="===i)return n===o;if("^="===i)return n.startsWith(o);if("$="===i)return n.endsWith(o);if("*="===i)return-1!==n.indexOf(o);if("~="===i){var r=n.split(" ");return-1!==(null==r?void 0:r.indexOf(o))}return"|="===i&&(n===o||n.startsWith("".concat(o,"-")))},r):(r.match=function(){return!1},g(r)):(r.match=function(t){return!(!t||!t.attributes)&&!Xe(dt(t,e))},g(r))}return _(n,[{key:"toString",value:function(){return"[".concat(this.attribute).concat(nt(this.test)).concat(this.test&&this.value||"","]").concat(nt(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)}}]),n}(ot),vt=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=0,r.rarity=4,r.dynamic=!1,r.combinator=void 0,r.error=e,r}return _(n,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}},{key:"lookupSort",value:function(){return null}},{key:"removeSort",value:function(){return null}}]),n}(ot),ht=function(){function e(t){O(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return _(e,[{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)}))}}]),e}(),yt=function(){function e(t){O(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return _(e,[{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)}))}}]),e}(),mt=function(e){C(n,e);var t=m(n);function n(e){var r;O(this,n),r=t.call(this);var i=[void 0," ",">","+","~"],o=[],a=[],u=[],c=S(e),s=c.length-1;r.specificity=0,r.dynamic=!1;for(var l=s;l>=0;l--){var f=c[l];if(-1===i.indexOf(f.combinator))throw console.error('Unsupported combinator "'.concat(f.combinator,'".')),new Error('Unsupported combinator "'.concat(f.combinator,'".'));void 0!==f.combinator&&" "!==f.combinator||u.push(a=[o=[]]),">"===f.combinator&&a.push(o=[]),r.specificity+=f.specificity,f.dynamic&&(r.dynamic=!0),o.push(f)}return r.groups=u.map((function(e){return new ht(e.map((function(e){return new yt(e)})))})),r.last=c[s],r}return _(n,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e){return!!e&&this.groups.every((function(t,n){if(0===n)return!!(e=t.match(e));if(null==e?void 0:e.parentNode)for(var r=e.parentNode;r;){if(e=t.match(r))return!0;r=r.parentNode}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){if(!this.dynamic)return this.match(e);var n=[],r=this.groups.every((function(t,r){if(0===r){var i=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=i)}for(var o=e;o=o.parentNode;){var a=t.mayMatch(o);if(a)return n.push({left:o,right:null}),e=a,!0}return!1}));if(!r)return!1;if(!t)return r;for(var i=0;i)?\\s*"},wt={};function _t(e,t,n){var r="";bt&&(r="gy"),wt[e]||(wt[e]=new RegExp(Ot[e],r));var i,o=wt[e];if(bt)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 St(e,t){var n,r;return null!==(r=null!==(n=function(e,t){var n=_t("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=_t("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=_t("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 kt(e,t){var n=St(e,t);if(!n)return null;for(var r=n.end,i=[];n;){i.push(n.value),n=St(e,r=n.end)}return{start:t,end:r,value:i}}function xt(e,t){var n=_t("combinatorRegEx",e,t),r=n.result,i=n.regexp;return r?{start:t,end:bt?i.lastIndex:t,value:r[1]||" "}:null}function jt(e){return"declaration"===e.type}function Et(e){return function(t){var n=e(t);if(!xe&&!n)throw new Error("beforeLoadStyle hook must returns the processed style object");return n}}function Nt(e){switch(e.type){case"*":return new ut;case"#":return new ct(e.identifier);case"":return new st(e.identifier.replace(/-/,"").toLowerCase());case".":return new lt(e.identifier);case":":return new ft(e.identifier);case"[]":return e.test?new pt(e.property,e.test,e.value):new pt(e.property);default:return null}}function Tt(e){return 0===e.length?new vt(new Error("Empty simple selector sequence.")):1===e.length?Nt(e[0]):new at(e.map(Nt))}function Ct(e){try{var t=function(e,t){var n=t,r=_t("whiteSpaceRegEx",e,t),i=r.result,o=r.regexp;i&&(n=o.lastIndex);var a,u=[],c=!0,s=[void 0,void 0];return(bt?[e]:e.split(" ")).forEach((function(e){if(!bt){if(""===e)return;n=0}do{var t=kt(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=xt(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 vt(new Error("Empty selector."));if(1===e.length)return Tt(e[0][0]);var t,n=[],r=y(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=Tt(i[0]),a=i[1];a&&o&&(o.combinator=a),n.push(o)}}catch(e){r.e(e)}finally{r.f()}return new mt(n)}(t.value):new vt(new Error("Empty selector"))}catch(e){return new vt(e)}}function At(){var e=r[Ne];if(!rt||e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=$e();return e.map((function(e){var n=e.declarations.filter(jt).map(Et(t)),r=e.selectors.map(Ct);return new gt(r,n,e.hash)}))}(e);rt?rt.append(t):rt=new tt(t),r[Ne]=void 0}return r[Te]&&(r[Te].forEach((function(e){rt.delete(e)})),r[Te]=void 0),rt}var Pt=["%c[native]%c","color: red","color: auto"],It={},Rt=r.Hippy,Lt=Rt.bridge,Mt=Lt.callNative,Ft=Lt.callNativeWithPromise,Vt=Lt.callNativeWithCallbackId,Bt=Rt.device,Dt=Bt.platform,Ut=Dt.OS,$t=Dt.Localization,zt=void 0===$t?{}:$t,Ht=Bt.screen.scale,Wt=Rt.device,Yt=Rt.document,Gt=Rt.register,Kt=function(){var e=h(p().mark((function e(t,n){var r,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1},t.isMounted&&t.nodeId){e.next=3;break}return e.abrupt("return",Promise.resolve(r));case 3:return i=t.nodeId,Le.apply(void 0,Pt.concat(["callUIFunction",{nodeId:i,funcName:n,params:[]}])),e.abrupt("return",new Promise((function(e){return Yt.callUIFunction(i,n,[],(function(t){if(!t||"object"!==N(t)||void 0===i)return e(r);var n=t.x,o=t.y,a=t.height,u=t.width;return e({top:o,left:n,width:u,height:a,bottom:o+a,right:n+u})}))})));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),qt=new Map,Jt={Localization:zt,hippyNativeDocument:Yt,hippyNativeRegister:Gt,Platform:Ut,PixelRatio:Ht,ConsoleModule:r.ConsoleModule||r.console,callNative:Mt,callNativeWithPromise:Ft,callNativeWithCallbackId:Vt,AsyncStorage:r.Hippy.asyncStorage,callUIFunction:function(){for(var e=arguments.length,t=new Array(e),n=0;n0||t.didTimeout)&&function e(t){var n;"number"==typeof t?Kn(t):t&&(Kn(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)})))}(e)},n={timeout:50},r.requestIdleCallback?r.requestIdleCallback(t,n):setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1)}function Xn(){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 Fn(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 Ln(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 Me.apply(void 0,Qn.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Me.apply(void 0,Qn.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};r.__GLOBAL__&&(r.__GLOBAL__.jsModuleList.EventDispatcher=er);var tr,nr=function(){function e(){O(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&&fe(e.options,n):e.callback===t}))}}]),e}();!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE"}(tr||(tr={}));var rr,ir=!1,or=[],ar=["%c[native]%c","color: red","color: auto"];function ur(){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=Nn(i)?jn[i]:Tn(i),o===xn&&t.removeEventListener(n,r,a),o===kn&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function cr(e,t){Re()&&Le.apply(void 0,ar.concat([t,e]))}function sr(){ir||(ir=!0,0!==or.length?Object(i.nextTick)().then((function(){var e=function(e){var t,n=[],r=y(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}(or),t=In().rootViewId,n=new r.Hippy.SceneBuilder(t);e.forEach((function(e){switch(e.type){case tr.CREATE:cr(e.printedNodes,"createNode"),n.create(e.nodes),ur(e.eventNodes,n);break;case tr.UPDATE:cr(e.printedNodes,"updateNode"),n.update(e.nodes),ur(e.eventNodes,n);break;case tr.DELETE:cr(e.printedNodes,"deleteNode"),n.delete(e.nodes);break;case tr.MOVE:cr(e.printedNodes,"moveNode"),n.move(e.nodes)}})),n.build(),ir=!1,or=[]})):ir=!1)}function lr(e){var t=P(e,3),n=t[0],r=t[1],i=t[2];or.push({type:tr.CREATE,nodes:n,eventNodes:r,printedNodes:i}),sr()}function fr(e){var t=P(e,3),n=t[0],r=t[2];n&&(or.push({type:tr.MOVE,nodes:n,eventNodes:[],printedNodes:r}),sr())}function dr(e){var t=P(e,3),n=t[0],r=t[1],i=t[2];n&&(or.push({type:tr.UPDATE,nodes:n,eventNodes:r,printedNodes:i}),sr())}function pr(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=2]="TextNode",e[e.CommentNode=3]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rr||(rr={}));var vr=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).isMounted=!1,r.events={},r.childNodes=[],r.parentNode=null,r.prevSibling=null,r.nextSibling=null,r.tagComponent=null,r.nodeId=n.getUniqueNodeId(),r.nodeType=e,r.isNeedInsertToNative=function(e){return e===rr.ElementNode}(e),r}return _(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:"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=Xn(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:Zn}):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=Xn(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:Zn}):this.insertChildNativeNode(n)}}else this.appendChild(n)}},{key:"appendChild",value:function(e){var t=e;if(!t)throw new Error("No child to append");this.lastChild!==t&&(t.parentNode&&t.parentNode!==this&&t.parentNode.removeChild(t),t.isMounted&&this.removeChild(t),t.parentNode=this,this.lastChild&&(t.prevSibling=this.lastChild,this.lastChild.nextSibling=t),this.childNodes.push(t),this.insertChildNativeNode(t))}},{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=y(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,o=i.convertToNativeNodes(!0,t);i.eachNode((function(e){var t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Gn(t,t.nodeId)})),lr(o)}}}},{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;fr(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=P(t,3),r=n[0],i=n[2],r&&(or.push({type:tr.DELETE,nodes:r,eventNodes:[],printedNodes:i}),sr()))}}},{key:"updateNativeNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isMounted){var t=this.convertToNativeNodes(e,{});dr(t)}}},{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=P(e.convertToNativeNodes(!1,r),3),n=t[0],i=t[1],c=t[2];Array.isArray(n)&&n.length&&o.push.apply(o,S(n)),Array.isArray(i)&&i.length&&a.push.apply(a,S(i)),Array.isArray(c)&&c.length&&u.push.apply(u,S(c))})),[o,a,u]}if(!this.component)throw new Error("tagName is not supported yet");var c=In(),s=c.rootViewId,l=null!=i?i:{},f=x({id:this.nodeId,pId:null!==(n=null===(t=this.parentNode)||void 0===t?void 0:t.nodeId)&&void 0!==n?n:s},l),d=pr(this),p=void 0;if(!xe){var v={};d&&Array.isArray(d.eventList)&&d.eventList.forEach((function(e){var t=e.name,n=e.listener;e.type===kn&&Object.assign(v,{[t]:n})})),Object.assign(p={},f,r),p.listeners=v}var h=[f,r];return[[h],[d],[p]]}}],[{key:"getUniqueNodeId",value:function(){return(Ae+=1)%10==0&&(Ae+=1),Ae}}]),n}(nr),hr=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this,rr.TextNode)).text=e,r}return _(n,[{key:"setText",value:function(e){this.text=e,this.parentNode&&this.nodeType===rr.ElementNode&&this.parentNode.setText(e)}}]),n}(vr);function yr(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 mr(e,t){var n=t;e.component.name===je.TextInput&&Sn()&&(n.textAlign||(n.textAlign="right"))}function gr(e,t,n){var r=t,i=n;e.component.name===je.View&&("scroll"===i.overflowX&&"scroll"===i.overflowY&&Me("overflow-x and overflow-y for View can not work together"),"scroll"===i.overflowY?r.name="ScrollView":"scroll"===i.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),i.flexDirection=Sn()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&Me("Only one child node is acceptable for View with overflow"),e.childNodes.length&&e.nodeType===rr.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),i.backgroundImage&&(i.backgroundImage=Ke(i.backgroundImage)))}function br(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,i=n.length;r2&&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(r.split(" ").filter((function(e){return e.trim()})));if(Ye(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){Me("Property ".concat(i," must be string:").concat(e.message))}n&&n.textUpdate||(r=Qe(r)),r=We(r);break;case"numberOfRows":if(!Jt.isIOS())return;break;case"caretColor":case"caret-color":i="caret-color",r=Jt.parseColor(r);break;case"break-strategy":i="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":i="placeholderTextColor",r=Jt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":i="underlineColorAndroid",r=Jt.parseColor(r);break;case"nativeBackgroundAndroid":var a=r;void 0!==a.color&&(a.color=Jt.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){if(!xe)throw e}}},{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=ce(i,o),u=P(a,2);i=u[0],o=u[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=yr(i,o,this.style),s=P(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(X,i)&&(i=X[i]),"string"==typeof o&&(o=o.trim(),o=i.toLowerCase().indexOf("color")>=0?Jt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):De(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),Jt.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(Ve(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,t,r){var i=this,o=e,a=t,u=r;if("scroll"!==o||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200),"function"==typeof this.polyfillNativeEvents){var c=this.polyfillNativeEvents(An,o,a,u);o=c.eventNames,a=c.callback,u=c.options}f(b(n.prototype),"addEventListener",this).call(this,o,a,u),br(o,(function(e){var t,n,r=i.getNativeEventName(e);i.events[r]?i.events[r]&&i.events[r].type!==kn&&(i.events[r].type=kn):i.events[r]={name:r,type:kn,listener:(t=r,n=e,function(e){var r=e.id,i=e.currentId,o=e.params,a=e.eventPhase;er.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:i,params:o,eventPhase:a},e)}),isCapture:!1}})),this.updateNativeNode()}},{key:"removeEventListener",value:function(e,t,r){var i=this,o=e,a=t,u=r;if("function"==typeof this.polyfillNativeEvents){var c=this.polyfillNativeEvents(Pn,o,a,u);o=c.eventNames,a=c.callback,u=c.options}f(b(n.prototype),"removeEventListener",this).call(this,o,a,u),br(o,(function(e){var t=i.getNativeEventName(e);i.events[t]&&(i.events[t].type=xn)})),this.updateNativeNode()}},{key:"dispatchEvent",value:function(e,t,n){var r=e;r.currentTarget=this,r.target||(r.target=t||this,Wn(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}},{key:"convertToNativeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return f(b(n.prototype),"convertToNativeNodes",this).call(this,!0,t);var r=this.getNativeStyles();He()(this,r),this.component.defaultNativeStyle&&(r=x(x({},this.component.defaultNativeStyle),r));var i={name:this.component.name,props:x(x({},this.getNativeProps()),{},{style:r}),tagName:this.tagName};return xe||i.props&&(i.props.attributes=this.getNodeAttributes()),mr(this,r),gr(this,i,r),f(b(n.prototype),"convertToNativeNodes",this).call(this,!1,t,i)}},{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){Jt.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Jt.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=Object(o.toRaw)(e.style[n]);void 0!==r&&(t[n]=r)})),t}},{key:"getNativeStyles",value:function(){var e=this,t={};return At().query(this).selectors.forEach((function(n){var r,i;Ze(n,e)&&(null===(i=null===(r=n.ruleSet)||void 0===r?void 0:r.declarations)||void 0===i?void 0:i.length)&&n.ruleSet.declarations.forEach((function(e){e&&(t[e.property]=e.value)}))})),t=n.parseRem(x(x({},t),this.getInlineStyle()))}},{key:"hackNativeProps",value:function(e){var t=e;"img"===this.tagName&&Jt.isIOS()&&(t.source=[{uri:t.src}],t.src=void 0)}},{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]=he(i)?i(e):Object(o.toRaw)(i)}})),Object.keys(this.attributes).forEach((function(n){var r,i=Object(o.toRaw)(e.getAttribute(n));if(e.component.attributeMaps&&e.component.attributeMaps[n]){var a=e.component.attributeMaps[n];if(ye(a))t[a]=Object(o.toRaw)(i);else if(he(a))t[n]=Object(o.toRaw)(a(i));else{var u=a.name,c=a.propsValue,s=a.jointKey;he(c)&&(i=c(i)),s?(t[s]=null!==(r=t[s])&&void 0!==r?r:{},Object.assign(t[s],{[u]:Object(o.toRaw)(i)})):t[u]=Object(o.toRaw)(i)}}else t[n]=Object(o.toRaw)(i)}));var r=this.component.nativeProps;return r&&Object.keys(r).forEach((function(e){t[e]=Object(o.toRaw)(r[e])})),this.hackNativeProps(t),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]=S(o):o instanceof Set?r[i]=new Set(S(o)):o instanceof Map?r[i]=new Map(S(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=x({id:this.id,hippyNodeId:"".concat(this.nodeId),class:n},t);return delete r.text,delete r.value,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(Ve(n));e[o]=!!t[n]}}))}return e}},{key:"hackSpecialIssue",value:function(){this.fixVShowDirectiveIssue()}},{key:"fixVShowDirectiveIssue",value:function(){var e,t=this;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=void 0===n?"flex":n,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=In().ratioBaseWidth;return 100*t*(Jt.Dimensions.screen.width/n)}(e[n])})):t=e,t}}]),n}(vr);var wr={install:function(e){!function(e){var t={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function n(e,t){return"color"===e&&["number","string"].indexOf(N(t))>=0?Jt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function f(e){var i=e.mode,o=void 0===i?"timing":i,c=e.valueType,s=e.startValue,f=e.toValue,d=l(e,u),p=x(x({},t),d);void 0!==c&&(p.valueType=e.valueType),p.startValue=n(p.valueType,s),p.toValue=n(p.valueType,f),p.repeatCount=a(p.repeatCount),p.mode=o;var v=new r.Hippy.Animation(p),h=v.getId();return{animation:v,animationId:h}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new r.Hippy.AnimationSet({children:e,repeatCount:t}),i=n.getId();return{animation:n,animationId:i}}function p(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,u=d(i.map((function(e){var n=f(x(x({},e),{},{repeatCount:0})),r=n.animationId,i=n.animation;return Object.assign(t,{[r]:i}),{animationId:r,follow:!0}})),a(o)),c=u.animationId,s=u.animation;n[r]={animationId:c},Object.assign(t,{[c]:s})}else{var l=f(e[r]),p=l.animationId,v=l.animation;Object.assign(t,{[p]:v}),n[r]={animationId:p}}})),n}function v(e){var t=e.transform,n=l(e,c),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}e.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[qe("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()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=l(e,s);this.animationIdsMap={};var r=p(n,this.animationIdsMap);if(t){var i=p(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=Object(o.toRaw)(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[qe(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=Object(o.toRaw)(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[qe(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=Object(o.toRaw)(e.animationIdsMap[t]);null==n||n.start()})))},resume:function(){var e=this;v(this.style).forEach((function(t){var n=Object(o.toRaw)(e.animationIdsMap[t]);null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&v(this.style).forEach((function(t){var n=Object(o.toRaw)(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=Object(o.toRaw)(e.animationIdsMap[t]);null==n||n.destroy()}))}},render:function(){return Object(i.h)(this.tag,x({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}(e),rn("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){var t=Jt.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=P(n,2),o=r[0],a=r[1];rn("hi-pull-".concat(a),{component:{name:"Pull".concat(o,"View"),processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"on".concat(o,"Released"):case"on".concat(o,"Pulling"):Object.assign(n,t)}return n}}}),e.component("pull-".concat(a),{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(){var e=this.$attrs,t=e.onReleased,n=e.onPulling,r=e.onIdle,u={onLayout:this.onLayout};return"function"==typeof t&&(u["on".concat(o,"Released")]=this["on".concat(o,"Released")]),"function"!=typeof n&&"function"!=typeof r||(u["on".concat(o,"Pulling")]=this["on".concat(o,"Pulling")]),Object(i.h)("hi-pull-".concat(a),x(x({},u),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})}))}(e),function(e){rn("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),rn("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){Jt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){Jt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(){return Object(i.h)("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render:function(){var e=Object(i.h)("div",null,this.$slots.default?this.$slots.default():null);return Object(i.h)("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){rn("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}}}),rn("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){Jt.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=Je.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return Object(i.h)("hi-waterfall",x(x({},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:""}},render:function(){return Object(i.h)("hi-waterfall-item",{type:this.type},this.$slots.default?this.$slots.default():null)}})}(e),function(e){rn("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}}}),rn("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}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(e){Jt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation:function(e){Jt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render:function(){var e=Je.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return Object(i.h)("hi-swiper",x(x({},e),{},{ref:"swiper",initialPage:this.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render:function(){return Object(i.h)("swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}},_r=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this,e)).text=e,r.isNeedInsertToNative=!1,r}return _(n)}(Or),Sr=function(e){C(i,e);var t,n,r=m(i);function i(){return O(this,i),r.apply(this,arguments)}return _(i,[{key:"showInputMenu",value:function(){}},{key:"hideInputMenu",value:function(){}},{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:(n=h(p().mark((function e(){var t=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Jt.callUIFunction(t,"getValue",(function(t){return e(t.text)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"setValue",value:function(e){Jt.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Jt.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Jt.callUIFunction(this,"blurTextInput",[])}},{key:"clear",value:function(){Jt.callUIFunction(this,"clear",[])}},{key:"isFocused",value:(t=h(p().mark((function e(){var t=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Jt.callUIFunction(t,"isFocused",(function(t){return e(t.value)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),i}(Or),kr=function(e){C(n,e);var t=m(n);function n(){return O(this,n),t.apply(this,arguments)}return _(n,[{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];Jt.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&&Jt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}]),n}(Or),xr=function(e){C(n,e);var t=m(n);function n(){return O(this,n),t.call(this,rr.DocumentNode)}return _(n,null,[{key:"createComment",value:function(e){return new _r(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new Sr(e);case"ul":return new kr(e);default:return new Or(e)}}},{key:"createTextNode",value:function(e){return new hr(e)}}]),n}(vr);var jr={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),Jn(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return xr.createElement(e)},createComment:function(e){return xr.createComment(e)},createText:function(e){return xr.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};var Er=/(?:Once|Passive|Capture)$/;function Nr(e){var t,n=e,r={};if(Er.test(n))for(var i=n.match(Er);i;)n=n.slice(0,n.length-i[0].length),r[i[0].toLowerCase()]=!0,i=n.match(Er);return n=":"===n[2]?n.slice(3):n.slice(2),[(t=n,"".concat(t.charAt(0).toLowerCase()).concat(t.slice(1))),r]}function Tr(e,t){var n=function e(n){Object(i.callWithAsyncErrorHandling)(e.value,t,5,[n])};return n.value=e,n}function Cr(e,t,n,r,i,o,u){switch(t){case"class":!function(e,t){var n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":!function(e,t,n){var r=e,i={};if(t&&!n)r.removeStyle();else{if(ye(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach((function(e){var t=n[e];Xe(t)||(i[Object(a.camelize)(e)]=t)})),r.removeStyle(!0),r.setStyles(i))}}(e,n,r);break;default:!function(e){return de.test(e)}(t)?function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r):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=Nr(t),l=P(s,2),f=l[0],d=l[1];if(r){u[t]=Tr(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,u)}}var Ar=!1,Pr=function(){function e(t,n,r){var i=this;O(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=x({},r);if(Ar||(Ar=!0,Se.$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};Jt.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code?i.webSocketId=e.id:Me("Fail to create websocket connection",e)}))}return _(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Jt.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)));Jt.callNative("websocket","send",{id:this.webSocketId,data:e})}else Me("WebSocket is not connected")}},{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,Se.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach((function(t){he(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=qe(e);this.webSocketCallbacks[n]=this.listeners[e]}}}]),e}();function Ir(e){var t;if(e.width&&e.height){var n=(null===(t=null==r?void 0:r.Hippy)||void 0===t?void 0:t.device).screen;n&&(n.width=e.width,n.height=e.height)}}r.WebSocket=Pr;var Rr=['%c[Hippy-Vue-Next "3.0.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Lr(e,t){if(Jt.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 Or("div"),a=Jt.Dimensions.screen.statusBarHeight;Jt.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 Or("img");c.setStyle("width",Jt.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(){Jt.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 Mr=function(e,t){var n,r,o,a=Object(i.createRenderer)(x({patchProp:Cr},jr)).createApp(e);a.use(_n),a.use(wr),"function"==typeof(null===(n=null==t?void 0:t.styleOptions)||void 0===n?void 0:n.beforeLoadStyle)&&(r=t.styleOptions.beforeLoadStyle,Ue=r),t.silent&&(o=t.silent,Pe=o),function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Ie=e}(t.trimWhitespace);var u=a.mount;return a.mount=function(e){Rn("rootContainer",e);var n=function(e){var t=xr.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),r=u(n,!1,!1);return Rn("instance",r),Lr(t,r),r},a.$start=function(){var e=h(p().mark((function e(n){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){Jt.hippyNativeRegister.regist(t.appName,(function(r){var i,o,u=r.__instanceId__;Le.apply(void 0,Rr.concat(["Start",t.appName,"with rootViewId",u,r]));var c,s=In();(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},Cn=c;var l={superProps:r,rootViewId:u};he(n)?n(l):e(l)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a},Fr=function(e,t){he(e)&&(1===t?ze=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))}}.call(this,n("./node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.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 p})),n.d(t,"ITERATE_KEY",(function(){return x})),n.d(t,"ReactiveEffect",(function(){return E})),n.d(t,"computed",(function(){return st})),n.d(t,"customRef",(function(){return rt})),n.d(t,"deferredComputed",(function(){return ht})),n.d(t,"effect",(function(){return T})),n.d(t,"effectScope",(function(){return v})),n.d(t,"enableTracking",(function(){return R})),n.d(t,"getCurrentScope",(function(){return y})),n.d(t,"isProxy",(function(){return De})),n.d(t,"isReactive",(function(){return Fe})),n.d(t,"isReadonly",(function(){return Ve})),n.d(t,"isRef",(function(){return Ge})),n.d(t,"isShallow",(function(){return Be})),n.d(t,"markRaw",(function(){return $e})),n.d(t,"onScopeDispose",(function(){return m})),n.d(t,"pauseTracking",(function(){return I})),n.d(t,"proxyRefs",(function(){return tt})),n.d(t,"reactive",(function(){return Pe})),n.d(t,"readonly",(function(){return Re})),n.d(t,"ref",(function(){return Ke})),n.d(t,"resetTracking",(function(){return L})),n.d(t,"shallowReactive",(function(){return Ie})),n.d(t,"shallowReadonly",(function(){return Le})),n.d(t,"shallowRef",(function(){return qe})),n.d(t,"stop",(function(){return C})),n.d(t,"toRaw",(function(){return Ue})),n.d(t,"toRef",(function(){return at})),n.d(t,"toRefs",(function(){return it})),n.d(t,"track",(function(){return M})),n.d(t,"trigger",(function(){return V})),n.d(t,"triggerRef",(function(){return Ze})),n.d(t,"unref",(function(){return Qe}));var r,i=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function a(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)||u(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 u(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}function c(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];l(this,e),this.active=!0,this.effects=[],this.cleanups=[],!t&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}return d(e,[{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 y(){return r}function m(e){r&&r.cleanups.push(e)}var g,b=function(e){var t=new Set(e);return t.w=0,t.n=0,t},O=function(e){return(e.w&k)>0},w=function(e){return(e.n&k)>0},_=new WeakMap,S=0,k=1,x=Symbol(""),j=Symbol(""),E=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;l(this,e),this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,h(this,r)}return d(e,[{key:"run",value:function(){if(!this.active)return this.fn();for(var e=g,t=A;e;){if(e===this)return;e=e.parent}try{return this.parent=g,g=this,A=!0,k=1<<++S,S<=30?function(e){var t=e.deps;if(t.length)for(var n=0;n=r)&&l.push(e)}));else switch(void 0!==n&&l.push(s.get(n)),t){case"add":Object(i.isArray)(e)?Object(i.isIntegerKey)(n)&&l.push(s.get("length")):(l.push(s.get(x)),Object(i.isMap)(e)&&l.push(s.get(j)));break;case"delete":Object(i.isArray)(e)||(l.push(s.get(x)),Object(i.isMap)(e)&&l.push(s.get(j)));break;case"set":Object(i.isMap)(e)&&l.push(s.get(x))}if(1===l.length)l[0]&&B(l[0]);else{var f,d=[],p=o(l);try{for(p.s();!(f=p.n()).done;){var v=f.value;v&&d.push.apply(d,a(v))}}catch(e){p.e(e)}finally{p.f()}B(b(d))}}}function B(e,t){var n,r=Object(i.isArray)(e)?e:a(e),u=o(r);try{for(u.s();!(n=u.n()).done;){var c=n.value;c.computed&&D(c,t)}}catch(e){u.e(e)}finally{u.f()}var s,l=o(r);try{for(l.s();!(s=l.n()).done;){var f=s.value;f.computed||D(f,t)}}catch(e){l.e(e)}finally{l.f()}}function D(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}var U=Object(i.makeMap)("__proto__,__v_isRef,__isVue"),$=new Set(Object.getOwnPropertyNames(Symbol).filter((function(e){return"arguments"!==e&&"caller"!==e})).map((function(e){return Symbol[e]})).filter(i.isSymbol)),z=q(),H=q(!1,!0),W=q(!0),Y=q(!0,!0),G=K();function K(){var e={};return["includes","indexOf","lastIndexOf"].forEach((function(t){e[t]=function(){for(var e=Ue(this),n=0,r=this.length;n0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?Ae:Ce:t?Te:Ne).get(n))return n;var a=Object(i.isArray)(n);if(!e&&a&&Object(i.hasOwn)(G,r))return Reflect.get(G,r,o);var u=Reflect.get(n,r,o);return(Object(i.isSymbol)(r)?$.has(r):U(r))?u:(e||M(n,0,r),t?u:Ge(u)?a&&Object(i.isIntegerKey)(r)?u:u.value:Object(i.isObject)(u)?e?Re(u):Pe(u):u)}}var J=Z(),X=Z(!0);function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,o){var a=t[n];if(Ve(a)&&Ge(a)&&!Ge(r))return!1;if(!e&&!Ve(r)&&(Be(r)||(r=Ue(r),a=Ue(a)),!Object(i.isArray)(t)&&Ge(a)&&!Ge(r)))return a.value=r,!0;var u=Object(i.isArray)(t)&&Object(i.isIntegerKey)(n)?Number(n)2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Ue(e=e.__v_raw),o=Ue(t);n||(t!==o&&M(i,0,t),M(i,0,o));var a=ie(i),u=a.has,c=r?re:n?He:ze;return u.call(i,t)?c(e.get(t)):u.call(i,o)?c(e.get(o)):void(e!==i&&e.get(t))}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=Ue(n),i=Ue(e);return t||(e!==i&&M(r,0,e),M(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&M(Ue(e),0,x),Reflect.get(e,"size",e)}function ce(e){e=Ue(e);var t=Ue(this);return ie(t).has.call(t,e)||(t.add(e),V(t,"add",e,e)),this}function se(e,t){t=Ue(t);var n=Ue(this),r=ie(n),o=r.has,a=r.get,u=o.call(n,e);u||(e=Ue(e),u=o.call(n,e));var c=a.call(n,e);return n.set(e,t),u?Object(i.hasChanged)(t,c)&&V(n,"set",e,t):V(n,"add",e,t),this}function le(e){var t=Ue(this),n=ie(t),r=n.has,i=n.get,o=r.call(t,e);o||(e=Ue(e),o=r.call(t,e));i&&i.call(t,e);var a=t.delete(e);return o&&V(t,"delete",e,void 0),a}function fe(){var e=Ue(this),t=0!==e.size,n=e.clear();return t&&V(e,"clear",void 0,void 0),n}function de(e,t){return function(n,r){var i=this,o=i.__v_raw,a=Ue(o),u=t?re:e?He:ze;return!e&&M(a,0,x),o.forEach((function(e,t){return n.call(r,u(e),u(t),i)}))}}function pe(e,t,n){return function(){var r=this.__v_raw,o=Ue(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?re:t?He:ze;return!t&&M(o,0,c?j:x),{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 ve(e){return function(){return"delete"!==e&&this}}function he(){var e={get:function(e){return oe(this,e)},get size(){return ue(this)},has:ae,add:ce,set:se,delete:le,clear:fe,forEach:de(!1,!1)},t={get:function(e){return oe(this,e,!1,!0)},get size(){return ue(this)},has:ae,add:ce,set:se,delete:le,clear:fe,forEach:de(!1,!0)},n={get:function(e){return oe(this,e,!0)},get size(){return ue(this,!0)},has:function(e){return ae.call(this,e,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:de(!0,!1)},r={get:function(e){return oe(this,e,!0,!0)},get size(){return ue(this,!0)},has:function(e){return ae.call(this,e,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:de(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((function(i){e[i]=pe(i,!1,!1),n[i]=pe(i,!0,!1),t[i]=pe(i,!1,!0),r[i]=pe(i,!0,!0)})),[e,n,t,r]}var ye,me,ge=(me=4,function(e){if(Array.isArray(e))return e}(ye=he())||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}}(ye,me)||u(ye,me)||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.")}()),be=ge[0],Oe=ge[1],we=ge[2],_e=ge[3];function Se(e,t){var n=t?e?_e:we:e?Oe:be;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 ke={get:Se(!1,!1)},xe={get:Se(!1,!0)},je={get:Se(!0,!1)},Ee={get:Se(!0,!0)};var Ne=new WeakMap,Te=new WeakMap,Ce=new WeakMap,Ae=new WeakMap;function Pe(e){return Ve(e)?e:Me(e,!1,Q,ke,Ne)}function Ie(e){return Me(e,!1,te,xe,Te)}function Re(e){return Me(e,!0,ee,je,Ce)}function Le(e){return Me(e,!0,ne,Ee,Ae)}function Me(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 Fe(e){return Ve(e)?Fe(e.__v_raw):!(!e||!e.__v_isReactive)}function Ve(e){return!(!e||!e.__v_isReadonly)}function Be(e){return!(!e||!e.__v_isShallow)}function De(e){return Fe(e)||Ve(e)}function Ue(e){var t=e&&e.__v_raw;return t?Ue(t):e}function $e(e){return Object(i.def)(e,"__v_skip",!0),e}var ze=function(e){return Object(i.isObject)(e)?Pe(e):e},He=function(e){return Object(i.isObject)(e)?Re(e):e};function We(e){A&&g&&F((e=Ue(e)).dep||(e.dep=b()))}function Ye(e,t){(e=Ue(e)).dep&&B(e.dep)}function Ge(e){return!(!e||!0!==e.__v_isRef)}function Ke(e){return Je(e,!1)}function qe(e){return Je(e,!0)}function Je(e,t){return Ge(e)?e:new Xe(e,t)}var Xe=function(){function e(t,n){l(this,e),this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ue(t),this._value=n?t:ze(t)}return d(e,[{key:"value",get:function(){return We(this),this._value},set:function(e){e=this.__v_isShallow?e:Ue(e),Object(i.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:ze(e),Ye(this))}}]),e}();function Ze(e){Ye(e)}function Qe(e){return Ge(e)?e.value:e}var et={get:function(e,t,n){return Qe(Reflect.get(e,t,n))},set:function(e,t,n,r){var i=e[t];return Ge(i)&&!Ge(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tt(e){return Fe(e)?e:new Proxy(e,et)}var nt=function(){function e(t){var n=this;l(this,e),this.dep=void 0,this.__v_isRef=!0;var r=t((function(){return We(n)}),(function(){return Ye(n)})),i=r.get,o=r.set;this._get=i,this._set=o}return d(e,[{key:"value",get:function(){return this._get()},set:function(e){this._set(e)}}]),e}();function rt(e){return new nt(e)}function it(e){var t=Object(i.isArray)(e)?new Array(e.length):{};for(var n in e)t[n]=at(e,n);return t}var ot=function(){function e(t,n,r){l(this,e),this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}return d(e,[{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}}]),e}();function at(e,t,n){var r=e[t];return Ge(r)?r:new ot(e,t,n)}var ut,ct=function(){function e(t,n,r,i){var o=this;l(this,e),this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new E(t,(function(){o._dirty||(o._dirty=!0,Ye(o))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}return d(e,[{key:"value",get:function(){var e=Ue(this);return We(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value},set:function(e){this._setter(e)}}]),e}();function st(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 ct(n,r,a||!r,o);return u}var lt=Promise.resolve(),ft=[],dt=!1,pt=function(){for(var e=0;e=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);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(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(_r(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,n,r){var i;try{i=r?e.apply(void 0,c(r)):e()}catch(e){m(e,t,n)}return i}function y(e,t,n,r){if(Object(i.isFunction)(e)){var o=h(e,t,n,r);return o&&Object(i.isPromise)(o)&&o.catch((function(e){m(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=n;o;){var c=o.ec;if(c)for(var s=0;s>>1;D(w[r])1&&void 0!==arguments[1]?arguments[1]:null;if(S.length){for(A=t,k=c(new Set(S)),S.length=0,x=0;x1?t-1:0),r=1;r2?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=te(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),r.set(e,u),u):(r.set(e,null),null)}function ne(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 re=null,ie=null;function oe(e){var t=re;return re=e,ie=e&&e.type.__scopeId||null,t}function ae(e){ie=e}function ue(){ie=null}var ce=function(e){return se};function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re;if(!t)return e;if(e._n)return e;var n=function n(){n._d&&An(-1);var r=oe(t),i=e.apply(void 0,arguments);return oe(r),n._d&&An(1),__VUE_PROD_DEVTOOLS__&&J(t),i};return n._n=!0,n._c=!0,n._d=!0,n}function le(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,g=e.setupState,b=e.ctx,O=e.inheritAttrs,w=oe(e);try{if(4&o.shapeFlag){var _=c||u;t=qn(v.call(_,_,h,s,g,y,b)),n=d}else{var S=r;0,t=qn(S.length>1?S(s,{attrs:d,slots:f,emit:p}):S(s,null)),n=r.props?d:de(d)}}catch(n){jn.length=0,m(n,e,1),t=$n(kn)}var k=t;if(n&&!1!==O){var x=Object.keys(n),j=k.shapeFlag;if(x.length)if(7&j)l&&x.some(i.isModelListener)&&(n=pe(n,l)),k=Wn(k,n);else;}return o.dirs&&((k=Wn(k)).dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&(k.transition=o.transition),t=k,oe(w),t}function fe(e){for(var t,n=0;n0?(ge(e,"onPending"),ge(e,"onFallback"),s(null,e.ssFallback,t,n,r,null,o,a),_e(f,e.ssFallback)):f.resolve()}(t,n,r,i,o,a,u,c,s):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,Mn(p,y)?(s(y,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():m&&(s(h,v,n,r,i,null,o,a,u),_e(d,v))):(d.pendingId++,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),_e(d,v))):h&&Mn(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&&Mn(p,h))s(h,p,n,r,i,d,o,a,u),_e(d,p);else if(ge(t,"onPending"),d.pendingBranch=p,d.pendingId++,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=be(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();return l},create:be,normalize:function(e){var t=e.shapeFlag,n=e.children,r=32&t;e.ssContent=Oe(r?n.default:n),e.ssFallback=r?Oe(n.fallback):$n(kn)}};function ge(e,t){var n=e.props&&e.props[t];Object(i.isFunction)(n)&&n()}function be(e,t,n,r,o,a,u,s,l,f){var d=arguments.length>10&&void 0!==arguments[10]&&arguments[10];var p=f.p,v=f.m,h=f.um,y=f.n,g=f.o,b=g.parentNode,O=g.remove,w=Object(i.toNumber)(e.props&&e.props.timeout),_={vnode:e,parent:t,parentComponent:n,isSVG:u,container:r,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:"number"==typeof w?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=_.vnode,n=_.activeBranch,r=_.pendingBranch,i=_.pendingId,o=_.effects,a=_.parentComponent,u=_.container;if(_.isHydrating)_.isHydrating=!1;else if(!e){var s=n&&r.transition&&"out-in"===r.transition.mode;s&&(n.transition.afterLeave=function(){i===_.pendingId&&v(r,u,l,0)});var l=_.anchor;n&&(l=y(n),h(n,a,_,!0)),s||v(r,u,l,0)}_e(_,r),_.pendingBranch=null,_.isInFallback=!1;for(var f=_.parent,d=!1;f;){if(f.pendingBranch){var p;(p=f.effects).push.apply(p,c(o)),d=!0;break}f=f.parent}d||F(o),_.effects=[],ge(t,"onResolve")},fallback:function(e){if(_.pendingBranch){var t=_.vnode,n=_.activeBranch,r=_.parentComponent,i=_.container,o=_.isSVG;ge(t,"onFallback");var a=y(n),u=function(){_.isInFallback&&(p(null,e,i,a,r,null,o,s,l),_e(_,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),_.isInFallback=!0,h(n,r,null,!0),c||u()}},move:function(e,t,n){_.activeBranch&&v(_.activeBranch,e,t,n),_.container=e},next:function(){return _.activeBranch&&y(_.activeBranch)},registerDep:function(e,t){var n=!!_.pendingBranch;n&&_.deps++;var r=e.vnode.el;e.asyncDep.catch((function(t){m(t,e,0)})).then((function(i){if(!e.isUnmounted&&!_.isUnmounted&&_.pendingId===e.suspenseId){e.asyncResolved=!0;var o=e.vnode;0,pr(e,i,!1),r&&(o.el=r);var a=!r&&e.subTree.el;t(e,o,b(r||e.subTree.el),r?null:y(e.subTree),_,u,l),a&&O(a),he(e,o.el),n&&0==--_.deps&&_.resolve()}}))},unmount:function(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function Oe(e){var t;if(Object(i.isFunction)(e)){var n=Cn&&e._c;n&&(e._d=!1,Nn()),e=e(),n&&(e._d=!0,t=En,Tn())}if(Object(i.isArray)(e)){var r=fe(e);0,e=r}return e=qn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((function(t){return t!==e}))),e}function we(e,t){var n;t&&t.pendingBranch?Object(i.isArray)(e)?(n=t.effects).push.apply(n,c(e)):t.effects.push(e):F(e)}function _e(e,t){e.activeBranch=t;var n=e.vnode,r=e.parentComponent,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,he(r,i))}function Se(e,t){if(rr){var n=rr.provides,r=rr.parent&&rr.parent.provides;r===n&&(n=rr.provides=Object.create(r)),n[e]=t}else 0}function ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=rr||re;if(r){var o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Object(i.isFunction)(t)?t.call(r.proxy):t}else 0}function xe(e,t){return Ce(e,null,t)}function je(e,t){return Ce(e,null,{flush:"post"})}function Ee(e,t){return Ce(e,null,{flush:"sync"})}var Ne={};function Te(e,t,n){return Ce(e,t,n)}function Ce(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;n.onTrack,n.onTrigger;var c,s,l=rr,f=!1,d=!1;if(Object(r.isRef)(e)?(c=function(){return e.value},f=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(c=function(){return e},a=!0):Object(i.isArray)(e)?(d=!0,f=e.some((function(e){return Object(r.isReactive)(e)||Object(r.isShallow)(e)})),c=function(){return e.map((function(e){return Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?Ie(e):Object(i.isFunction)(e)?h(e,l,2):void 0}))}):c=Object(i.isFunction)(e)?t?function(){return h(e,l,2)}:function(){if(!l||!l.isUnmounted)return s&&s(),y(e,l,3,[v])}:i.NOOP,t&&a){var p=c;c=function(){return Ie(p())}}var v=function(e){s=O.onStop=function(){h(e,l,4)}};if(lr)return v=i.NOOP,t?o&&y(t,l,3,[c(),d?[]:void 0,v]):c(),i.NOOP;var m,g=d?[]:Ne,b=function(){if(O.active)if(t){var e=O.run();(a||f||(d?e.some((function(e,t){return Object(i.hasChanged)(e,g[t])})):Object(i.hasChanged)(e,g)))&&(s&&s(),y(t,l,3,[e,g===Ne?void 0:g,v]),g=e)}else O.run()};b.allowRecurse=!!t,m="sync"===u?b:"post"===u?function(){return ln(b,l&&l.suspense)}:function(){return M(b)};var O=new r.ReactiveEffect(c,m);return t?o?b():g=O.run():"post"===u?ln(O.run.bind(O),l&&l.suspense):O.run(),function(){O.stop(),l&&l.scope&&Object(i.remove)(l.scope.effects,O)}}function Ae(e,t,n){var r,o=this.proxy,a=Object(i.isString)(e)?e.includes(".")?Pe(o,e):function(){return o[e]}:e.bind(o,o);Object(i.isFunction)(t)?r=t:(r=t.handler,n=t);var u=rr;or(this);var c=Ce(a,r.bind(o),n);return u?or(u):ar(),c}function Pe(e,t){var n=t.split(".");return function(){for(var t=e,r=0;r1){var s,l=u(t);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(f.type!==kn){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=De(c);if(!v)return Be(c);var h=Ve(v,d,a,o);Ue(v,h);var y=o.subTree,m=y&&De(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!==kn&&(!Mn(v,m)||g)){var w=Ve(m,d,a,o);if(Ue(m,w),"out-in"===p)return a.isLeaving=!0,w.afterLeave=function(){a.isLeaving=!1,o.update()},Be(c);"in-out"===p&&v.type!==kn&&(w.delayLeave=function(e,t,n){Fe(a,m)[String(m.key)]=m,e._leaveCb=function(){t(),e._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=n})}return c}}}};function Fe(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,m=t.onLeaveCancelled,g=t.onBeforeAppear,b=t.onAppear,O=t.onAfterAppear,w=t.onAppearCancelled,_=String(e.key),S=Fe(n,e),k=function(e,t){e&&y(e,r,9,t)},x=function(e,t){var n=t[1];k(e,t),Object(i.isArray)(e)?e.every((function(e){return e.length<=1}))&&n():e.length<=1&&n()},j={mode:a,persisted:c,beforeEnter:function(t){var r=s;if(!n.isMounted){if(!o)return;r=g||s}t._leaveCb&&t._leaveCb(!0);var i=S[_];i&&Mn(e,i)&&i.el._leaveCb&&i.el._leaveCb(),k(r,[t])},enter:function(e){var t=l,r=f,i=d;if(!n.isMounted){if(!o)return;t=b||l,r=O||f,i=w||d}var a=!1,u=e._enterCb=function(t){a||(a=!0,k(t?i:r,[e]),j.delayedLeave&&j.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,u]):u()},leave:function(t,r){var i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();k(p,[t]);var o=!1,a=t._leaveCb=function(n){o||(o=!0,r(),k(n?m:h,[t]),t._leaveCb=void 0,S[i]===e&&delete S[i])};S[i]=e,v?x(v,[t,a]):a()},clone:function(e){return Ve(e,t,n,r)}};return j}function Be(e){if(Ge(e))return(e=Wn(e)).children=null,e}function De(e){return Ge(e)?e.children?e.children[0]:void 0:e}function Ue(e,t){6&e.shapeFlag&&e.component?Ue(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(!(Ln(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;var i=tt(r),o=i.type,a=wr(He(i)?i.type.__asyncResolved||{}:o),l=e.include,f=e.exclude,d=e.max;if(l&&(!a||!qe(l,a))||f&&a&&qe(f,a))return s=i,r;var p=null==i.key?o:i.key,v=u.get(p);return i.el&&(i=Wn(i),128&r.shapeFlag&&(r.ssContent=i)),b=p,v?(i.el=v.el,i.component=v.component,i.transition&&Ue(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,ye(r.type)?r:i}}};function qe(e,t){return Object(i.isArray)(e)?e.some((function(e){return qe(e,t)})):Object(i.isString)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Je(e,t){Ze(e,"a",t)}function Xe(e,t){Ze(e,"da",t)}function Ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rr,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(nt(t,r,n),n)for(var i=n.parent;i&&i.parent;)Ge(i.parent.vnode)&&Qe(r,t,n,i),i=i.parent}function Qe(e,t,n,r){var o=nt(t,e,r,!0);st((function(){Object(i.remove)(r[t],o)}),n)}function et(e){var t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function tt(e){return 128&e.shapeFlag?e.ssContent:e}function nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rr,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)(),or(n);for(var i=arguments.length,o=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:rr;return(!lr||"sp"===e)&&nt(e,t,n)}},it=rt("bm"),ot=rt("m"),at=rt("bu"),ut=rt("u"),ct=rt("bum"),st=rt("um"),lt=rt("sp"),ft=rt("rtg"),dt=rt("rtc");function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rr;nt("ec",e,t)}function vt(e,t){var n=re;if(null===n)return e;for(var r=gr(n)||n.proxy,o=e.dirs||(e.dirs=[]),u=0;u3&&void 0!==arguments[3]&&arguments[3],r=re||rr;if(r){var o=r.type;if("components"===e){var a=wr(o,!1);if(a&&(a===t||a===Object(i.camelize)(t)||a===Object(i.capitalize)(Object(i.camelize)(t))))return o}var u=wt(r[e]||o[e],t)||wt(r.appContext[e],t);return!u&&n?o:u}}function wt(e,t){return e&&(e[t]||e[Object(i.camelize)(t)]||e[Object(i.capitalize)(Object(i.camelize)(t))])}function _t(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(re.isCE||re.parent&&He(re.parent)&&re.parent.isCE)return $n("slot","default"===t?null:{name:t},r&&r());var o=e[t];o&&o._c&&(o._d=!1),Nn();var a=o&&xt(o(n)),u=Rn(_n,{key:n.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 xt(e){return e.some((function(e){return!Ln(e)||e.type!==kn&&!(e.type===_n&&!xt(e.children))}))?e:null}function jt(e){var t={};for(var n in e)t[Object(i.toHandlerKey)(n)]=e[n];return t}var Et=function e(t){return t?ur(t)?gr(t)||t.proxy:e(t.parent):null},Nt=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 Et(e.parent)},$root:function(e){return Et(e.root)},$emit:function(e){return e.emit},$options:function(e){return __VUE_OPTIONS_API__?Lt(e):e.type},$forceUpdate:function(e){return e.f||(e.f=function(){return I(e.update)})},$nextTick:function(e){return e.n||(e.n=P.bind(e.proxy))},$watch:function(e){return __VUE_OPTIONS_API__?Ae.bind(e):i.NOOP}}),Tt={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(u!==i.EMPTY_OBJ&&Object(i.hasOwn)(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__&&!At||(l[t]=0)}}var v,h,y=Nt[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 a!==i.EMPTY_OBJ&&Object(i.hasOwn)(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)||a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t)||(n=l[0])&&Object(i.hasOwn)(n,t)||Object(i.hasOwn)(c,t)||Object(i.hasOwn)(Nt,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 Ct=Object(i.extend)({},Tt,{get:function(e,t){if(t!==Symbol.unscopables)return Tt.get(e,t,e)},has:function(e,t){var n="_"!==t[0]&&!Object(i.isGloballyWhitelisted)(t);return n}});var At=!0;function Pt(e){var t=Lt(e),n=e.proxy,o=e.ctx;At=!1,t.beforeCreate&&It(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),w=t.render,_=t.renderTracked,S=t.renderTriggered,k=t.errorCaptured,x=t.serverPrefetch,j=t.expose,E=t.inheritAttrs,N=t.components,T=t.directives;t.filters;if(f&&function(e,t){arguments.length>2&&void 0!==arguments[2]||i.NOOP;var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object(i.isArray)(e)&&(e=Bt(e));var o=function(){var o,u=e[a];o=Object(i.isObject)(u)?"default"in u?ke(u.from||a,u.default,!0):ke(u.from||a):ke(u),Object(r.isRef)(o)&&n?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:function(){return o.value},set:function(e){return o.value=e}}):t[a]=o};for(var a in e)o()}(f,o,null,e.appContext.config.unwrapInjectedRef),c)for(var C in c){var A=c[C];Object(i.isFunction)(A)&&(o[C]=A.bind(n))}if(a){0;var P=a.call(n,n);if(Object(i.isObject)(P))e.data=Object(r.reactive)(P);else;}if(At=!0,u){var I=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=kr({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)I(R)}if(s)for(var L in s)Rt(s[L],o,n,L);if(l){var M=Object(i.isFunction)(l)?l.call(n):l;Reflect.ownKeys(M).forEach((function(e){Se(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&&It(d,e,"c"),F(it,p),F(ot,v),F(at,h),F(ut,y),F(Je,m),F(Xe,g),F(pt,k),F(dt,_),F(ft,S),F(ct,b),F(st,O),F(lt,x),Object(i.isArray)(j))if(j.length){var V=e.exposed||(e.exposed={});j.forEach((function(e){Object.defineProperty(V,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})}))}else e.exposed||(e.exposed={});w&&e.render===i.NOOP&&(e.render=w),null!=E&&(e.inheritAttrs=E),N&&(e.components=N),T&&(e.directives=T)}function It(e,t,n){y(Object(i.isArray)(e)?e.map((function(e){return e.bind(t.proxy)})):e.bind(t.proxy),t,n)}function Rt(e,t,n,r){var o=r.includes(".")?Pe(n,r):function(){return n[r]};if(Object(i.isString)(e)){var a=t[e];Object(i.isFunction)(a)&&Te(o,a)}else if(Object(i.isFunction)(e))Te(o,e.bind(n));else if(Object(i.isObject)(e))if(Object(i.isArray)(e))e.forEach((function(e){return Rt(e,t,n,r)}));else{var u=Object(i.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(i.isFunction)(u)&&Te(o,u,e)}else 0}function Lt(e){var t,n=e.type,r=n.mixins,i=n.extends,o=e.appContext,a=o.mixins,u=o.optionsCache,c=o.config.optionMergeStrategies,s=u.get(n);return s?t=s:a.length||r||i?(t={},a.length&&a.forEach((function(e){return Mt(t,e,c,!0)})),Mt(t,n,c)):t=n,u.set(n,t),t}function Mt(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&&Mt(e,o,n,!0),i&&i.forEach((function(t){return Mt(e,t,n,!0)})),t)if(r&&"expose"===a);else{var u=Ft[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Ft={data:Vt,props:Ut,emits:Ut,methods:Ut,computed:Ut,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:Ut,directives:Ut,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]=Dt(e[r],t[r]);return n},provide:Vt,inject:function(e,t){return Ut(Bt(e),Bt(t))}};function Vt(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 Bt(e){if(Object(i.isArray)(e)){for(var t={},n=0;n3&&void 0!==arguments[3]&&arguments[3],a={},u={};for(var c in Object(i.def)(u,Vn,1),e.propsDefaults=Object.create(null),zt(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 zt(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:ne(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(Wt(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 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 w=[s,l];return r.set(e,w),w}function Yt(e){return"$"!==e[0]}function Gt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Kt(e,t){return Gt(e)===Gt(t)}function qt(e,t){return Object(i.isArray)(t)?t.findIndex((function(t){return Kt(t,e)})):Object(i.isFunction)(t)&&Kt(t,e)?0:-1}var Jt=function(e){return"_"===e[0]||"$stable"===e},Xt=function(e){return Object(i.isArray)(e)?e.map(qn):[qn(e)]},Zt=function(e,t,n){var r=e._ctx,o=function(){if(Jt(a))return"continue";var n=e[a];if(Object(i.isFunction)(n))t[a]=function(e,t,n){if(t._n)return t;var r=se((function(){return Xt(t.apply(void 0,arguments))}),n);return r._c=!1,r}(0,n,r);else if(null!=n){0;var o=Xt(n);t[a]=function(){return o}}};for(var a in e)o()},Qt=function(e,t){var n=Xt(t);e.slots.default=function(){return n}},en=function(e,t){if(32&e.vnode.shapeFlag){var n=t._;n?(e.slots=Object(r.toRaw)(t),Object(i.def)(t,"_",n)):Zt(t,e.slots={})}else e.slots={},t&&Qt(e,t);Object(i.def)(e.slots,Vn,1)};function tn(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var nn=0;function rn(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object(i.isFunction)(n)||(n=Object.assign({},n)),null==r||Object(i.isObject)(r)||(r=null);var o=tn(),a=new Set,u=!1,c=o.app={_uid:nn++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Ur,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;r4&&void 0!==arguments[4]&&arguments[4];if(Object(i.isArray)(e))e.forEach((function(e,r){return on(e,t&&(Object(i.isArray)(t)?t[r]:t),n,o,a)}));else if(!He(o)||a){var u=4&o.shapeFlag?gr(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))h(l,s,12,[c,d]);else{var v=Object(i.isString)(l),y=Object(r.isRef)(l);if(v||y){var m=function(){if(e.f){var t=v?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)):y&&(l.value=c,e.k&&(d[e.k]=c))};c?(m.id=-1,ln(m,n)):m()}else 0}}}var an=!1,un=function(e){return/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName},cn=function(e){return 8===e.nodeType};function sn(e){var t=e.mt,n=e.p,r=e.o,o=r.patchProp,a=r.createText,u=r.nextSibling,c=r.parentNode,s=r.remove,l=r.insert,f=r.createComment,d=function n(r,i,o,s,f){var d=arguments.length>5&&void 0!==arguments[5]&&arguments[5],g=cn(r)&&"["===r.data,b=function(){return y(r,i,o,s,f,g)},O=i.type,w=i.ref,_=i.shapeFlag,S=i.patchFlag,k=r.nodeType;i.el=r,-2===S&&(d=!1,i.dynamicChildren=null);var x=null;switch(O){case Sn:3!==k?""===i.children?(l(i.el=a(""),c(r),r),x=r):x=b():(r.data!==i.children&&(an=!0,r.data=i.children),x=u(r));break;case kn:x=8!==k||g?b():u(r);break;case xn:if(1===k||3===k){x=r;for(var j=!i.children.length,E=0;E3&&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],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&&!Mn(e,t)&&(r=ae(e),ee(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 Sn:x(e,t,n,r);break;case kn:j(e,t,n,r);break;case xn:null==e&&E(t,n,r,a);break;case _n:D(e,t,n,r,i,o,a,u,c);break;default:1&f?C(e,t,n,r,i,o,a,u,c):6&f?U(e,t,n,r,i,o,a,u,c):(64&f||128&f)&&s.process(e,t,n,r,i,o,a,u,c,ce)}null!=l&&i&&on(l,e&&e.ref,o,t||e,!t)}},x=function(e,t,n,r){if(null==e)c(t.el=d(t.children),n,r);else{var i=t.el=e.el;t.children!==e.children&&v(i,t.children)}},j=function(e,t,n,r){null==e?c(t.el=p(t.children||""),n,r):t.el=e.el},E=function(e,t,n,r){var i=a(S(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=m(i),c(i,t,n),i=r;c(o,t,n)},T=function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=m(n),s(n),n=t;s(r)},C=function(e,t,n,r,i,o,a,u,c){a=a||"svg"===t.type,null==e?A(t,n,r,i,o,a,u,c):L(e,t,i,o,a,u,c)},A=function(e,t,n,r,o,a,u,s){var d,p,v=e.type,y=e.props,m=e.shapeFlag,g=e.transition,b=e.patchFlag,w=e.dirs;if(e.el&&void 0!==O&&-1===b)d=e.el=O(e.el);else{if(d=e.el=f(e.type,a,y&&y.is,y),8&m?h(d,e.children):16&m&&R(e.children,d,null,r,o,a&&"foreignObject"!==v,u,s),w&&ht(e,null,r,"created"),y){for(var _ in y)"value"===_||Object(i.isReservedProp)(_)||l(d,_,null,y[_],a,e.children,r,o,oe);"value"in y&&l(d,"value",null,y.value),(p=y.onVnodeBeforeMount)&&Qn(p,r,e)}P(d,e,e.scopeId,u,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1})),w&&ht(e,null,r,"beforeMount");var S=(!o||o&&!o.pendingBranch)&&g&&!g.persisted;S&&g.beforeEnter(d),c(d,t,n),((p=y&&y.onVnodeMounted)||S||w)&&ln((function(){p&&Qn(p,r,e),S&&g.enter(d),w&&ht(e,null,r,"mounted")}),o)},P=function e(t,n,r,i,o){if(r&&b(t,r),i)for(var a=0;a8&&void 0!==arguments[8]?arguments[8]:0,s=c;s0){if(16&s)F(c,t,v,y,n,r,o);else if(2&s&&v.class!==y.class&&l(c,"class",null,y.class,o),4&s&&l(c,"style",v.style,y.style,o),8&s)for(var g=t.dynamicProps,b=0;b0&&64&p&&v&&e.dynamicChildren?(M(e.dynamicChildren,v,n,i,o,a,u),(null!=t.key||i&&t===i.subTree)&&hn(e,t,!0)):G(e,t,n,f,i,o,a,u,s)},U=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):$(t,n,r,i,o,a,c):z(e,t,c)},$=function(e,t,n,r,i,o,a){var u=e.component=nr(e,r,i);if(Ge(e)&&(u.ctx.renderer=ce),fr(u),u.asyncDep){if(i&&i.registerDep(u,H),!e.el){var c=u.subTree=$n(kn);j(null,c,t,n)}}else H(u,e,t,n,i,o,a)},z=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||ve(r,a,s):!!a);if(1024&c)return!0;if(16&c)return r?ve(r,a,s):!!a;if(8&c)for(var l=t.dynamicProps,f=0;f_&&w.splice(i,1),o.update()}else t.el=e.el,o.vnode=t},H=function(e,t,n,o,a,c,s){var l=e.effect=new r.ReactiveEffect((function(){if(e.isMounted){var r,l=e.next,f=e.bu,d=e.u,p=e.parent,v=e.vnode,h=l;0,vn(e,!1),l?(l.el=v.el,W(e,l,s)):l=v,f&&Object(i.invokeArrayFns)(f),(r=l.props&&l.props.onVnodeBeforeUpdate)&&Qn(r,p,l,v),vn(e,!0);var m=le(e);0;var g=e.subTree;e.subTree=m,k(g,m,y(g.el),ae(g),e,a,c),l.el=m.el,null===h&&he(e,m.el),d&&ln(d,a),(r=l.props&&l.props.onVnodeUpdated)&&ln((function(){return Qn(r,p,l,v)}),a),__VUE_PROD_DEVTOOLS__&&J(e)}else{var b,O=t,w=O.el,_=O.props,S=e.bm,x=e.m,j=e.parent,E=He(t);if(vn(e,!1),S&&Object(i.invokeArrayFns)(S),!E&&(b=_&&_.onVnodeBeforeMount)&&Qn(b,j,t),vn(e,!0),w&&u){var N=function(){e.subTree=le(e),u(w,e.subTree,e,a,null)};E?t.type.__asyncLoader().then((function(){return!e.isUnmounted&&N()})):N()}else{0;var T=e.subTree=le(e);0,k(null,T,n,o,e,a,c),t.el=T.el}if(x&&ln(x,a),!E&&(b=_&&_.onVnodeMounted)){var C=t;ln((function(){return Qn(b,j,C)}),a)}(256&t.shapeFlag||j&&He(j.vnode)&&256&j.vnode.shapeFlag)&&e.a&&ln(e.a,a),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&q(e),t=n=o=null}}),(function(){return I(f)}),e.scope),f=e.update=function(){return l.run()};f.id=e.uid,vn(e,!0),f()},W=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 zt(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]=Ht(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 Z(s,f,n,r,i,o,a,u,c);if(256&d)return void K(s,f,n,r,i,o,a,u,c)}8&p?(16&l&&oe(s,i,o),f!==s&&h(n,f)):16&l?16&p?Z(s,f,n,r,i,o,a,u,c):oe(s,i,o,!0):(8&l&&h(n,""),16&p&&R(f,n,r,i,o,a,u,c))},K=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?oe(e,o,a,!0,!1,p):R(t,n,r,o,a,u,c,s,p)},Z=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?Jn(t[l]):qn(t[l]);if(!Mn(v,h))break;k(v,h,n,null,o,a,u,c,s),l++}for(;l<=d&&l<=p;){var y=e[d],m=t[p]=s?Jn(t[p]):qn(t[p]);if(!Mn(y,m))break;k(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;)ee(e[l],o,a,!0),l++;else{var O,w=l,_=l,S=new Map;for(l=_;l<=p;l++){var x=t[l]=s?Jn(t[l]):qn(t[l]);null!=x.key&&S.set(x.key,l)}var j=0,E=p-_+1,N=!1,T=0,C=new Array(E);for(l=0;l=E)ee(A,o,a,!0);else{var P=void 0;if(null!=A.key)P=S.get(A.key);else for(O=_;O<=p;O++)if(0===C[O-_]&&Mn(A,t[O])){P=O;break}void 0===P?ee(A,o,a,!0):(C[P-_]=l+1,P>=T?T=P:N=!0,k(A,t[P],n,null,o,a,u,c,s),j++)}}var I=N?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}(C):i.EMPTY_ARR;for(O=I.length-1,l=E-1;l>=0;l--){var R=_+l,L=t[R],M=R+14&&void 0!==arguments[4]?arguments[4]:null,a=t.el,u=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)u.move(t,n,r,ce);else if(u!==_n)if(u!==xn){var d=2!==i&&1&f&&s;if(d)if(0===i)s.beforeEnter(a),c(a,n,r),ln((function(){return s.enter(a)}),o);else{var p=s.leave,v=s.delayLeave,h=s.afterLeave,y=function(){return c(a,n,r)},m=function(){p(a,(function(){y(),h&&h()}))};v?v(a,y,m):m()}else c(a,n,r)}else N(t,n,r);else{c(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&&on(u,null,n,e,!0),256&l)t.ctx.deactivate(e);else{var p,v=1&l&&d,h=!He(e);if(h&&(p=a&&a.onVnodeBeforeUnmount)&&Qn(p,t,e),6&l)ie(e.component,n,r);else{if(128&l)return void e.suspense.unmount(n,r);v&&ht(e,null,t,"beforeUnmount"),64&l?e.type.remove(e,t,n,i,ce,r):s&&(o!==_n||f>0&&64&f)?oe(s,t,n,!1,!0):(o===_n&&384&f||!i&&16&l)&&oe(c,t,n),r&&te(e)}(h&&(p=a&&a.onVnodeUnmounted)||v)&&ln((function(){p&&Qn(p,t,e),v&&ht(e,null,t,"unmounted")}),n)}},te=function(e){var t=e.type,n=e.el,r=e.anchor,i=e.transition;if(t!==_n)if(t!==xn){var o=function(){s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var a=i.leave,u=i.delayLeave,c=function(){return a(n,o)};u?u(e.el,o,c):c()}else o()}else T(e);else re(n,r)},re=function(e,t){for(var n;e!==t;)n=m(e),s(e),e=n;s(t)},ie=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,ee(u,e,t,n)),c&&ln(c,t),ln((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()),__VUE_PROD_DEVTOOLS__&&X(e)},oe=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||mn(f))&&16&s)for(var p=0;p0&&void 0!==arguments[0]&&arguments[0];jn.push(En=e?null:[])}function Tn(){jn.pop(),En=jn[jn.length-1]||null}var Cn=1;function An(e){Cn+=e}function Pn(e){return e.dynamicChildren=Cn>0?En||i.EMPTY_ARR:null,Tn(),Cn>0&&En&&En.push(e),e}function In(e,t,n,r,i,o){return Pn(Un(e,t,n,r,i,o,!0))}function Rn(e,t,n,r,i){return Pn($n(e,t,n,r,i,!0))}function Ln(e){return!!e&&!0===e.__v_isVNode}function Mn(e,t){return e.type===t.type&&e.key===t.key}function Fn(e){e}var Vn="__vInternal",Bn=function(e){var t=e.key;return null!=t?t:null},Dn=function(e){var t=e.ref,n=e.ref_key,o=e.ref_for;return null!=t?Object(i.isString)(t)||Object(r.isRef)(t)||Object(i.isFunction)(t)?{i:re,r:t,k:n,f:!!o}:t:null};function Un(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===_n?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&&Bn(t),ref:t&&Dn(t),scopeId:ie,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};return c?(Xn(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=Object(i.isString)(n)?8:16),Cn>0&&!u&&En&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&En.push(s),s}var $n=zn;function zn(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!==mt||(e=kn),Ln(e)){var c=Wn(e,t,!0);return n&&Xn(c,n),Cn>0&&!u&&En&&(6&c.shapeFlag?En[En.indexOf(e)]=c:En.push(c)),c.patchFlag|=-2,c}if(Sr(e)&&(e=e.__vccOpts),t){var s=t=Hn(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:ye(e)?128:yn(e)?64:Object(i.isObject)(e)?4:Object(i.isFunction)(e)?2:0;return Un(e,t,n,o,a,d,u,!0)}function Hn(e){return e?Object(r.isProxy)(e)||Vn in e?Object(i.extend)({},e):e:null}function Wn(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?Zn(r||{},t):r,s={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Bn(c),ref:t&&t.ref?n&&o?Object(i.isArray)(o)?o.concat(Dn(t)):[o,Dn(t)]:Dn(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!==_n?-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&&Wn(e.ssContent),ssFallback:e.ssFallback&&Wn(e.ssFallback),el:e.el,anchor:e.anchor};return s}function Yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return $n(Sn,null,e,t)}function Gn(e,t){var n=$n(xn,null,e);return n.staticCount=t,n}function Kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(Nn(),Rn(kn,null,e)):$n(kn,null,e)}function qn(e){return null==e||"boolean"==typeof e?$n(kn):Object(i.isArray)(e)?$n(_n,null,e.slice()):"object"===o(e)?Jn(e):$n(Sn,null,String(e))}function Jn(e){return null===e.el||e.memo?e:Wn(e)}function Xn(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),Xn(e,a()),a._c&&(a._d=!0)))}n=32;var u=t._;u||Vn in t?3===u&&re&&(1===re.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=re}else Object(i.isFunction)(t)?(t={default:t,_ctx:re},n=32):(t=String(t),64&r?(n=16,t=[Yn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zn(){for(var e={},t=0;t3&&void 0!==arguments[3]?arguments[3]:null;y(e,t,7,[n,r])}var er=tn(),tr=0;function nr(e,t,n){var o=e.type,a=(t?t.appContext:e.appContext)||er,u={uid:tr++,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:Wt(o,a),emitsOptions:te(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,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=ee.bind(null,u),e.ce&&e.ce(u),u}var rr=null,ir=function(){return rr||re},or=function(e){rr=e,e.scope.on()},ar=function(){rr&&rr.scope.off(),rr=null};function ur(e){return 4&e.vnode.shapeFlag}var cr,sr,lr=!1;function fr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];lr=t;var n=e.vnode,r=n.props,i=n.children,o=ur(e);$t(e,r,o,t),en(e,i);var a=o?dr(e,t):void 0;return lr=!1,a}function dr(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=Object(r.markRaw)(new Proxy(e.ctx,Tt));var o=n.setup;if(o){var a=e.setupContext=o.length>1?mr(e):null;or(e),Object(r.pauseTracking)();var u=h(o,e,0,[e.props,a]);if(Object(r.resetTracking)(),ar(),Object(i.isPromise)(u)){if(u.then(ar,ar),t)return u.then((function(n){pr(e,n,t)})).catch((function(t){m(t,e,0)}));e.asyncDep=u}else pr(e,u,t)}else yr(e,t)}function pr(e,t,n){Object(i.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(i.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Object(r.proxyRefs)(t)),yr(e,n)}function vr(e){cr=e,sr=function(e){e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ct))}}var hr=function(){return!cr};function yr(e,t,n){var o=e.type;if(!e.render){if(!t&&cr&&!o.render){var a=o.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=cr(a,d)}}e.render=o.render||i.NOOP,sr&&sr(e)}__VUE_OPTIONS_API__&&(or(e),Object(r.pauseTracking)(),Pt(e),Object(r.resetTracking)(),ar())}function mr(e){var t;return{get attrs(){return t||(t=function(e){return 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 gr(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 Nt?Nt[n](e):void 0}}))}var br=/(?:^|[-_])(\w)/g,Or=function(e){return e.replace(br,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};function wr(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 _r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=wr(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?Or(r):n?"App":"Anonymous"}function Sr(e){return Object(i.isFunction)(e)&&"__vccOpts"in e}var kr=function(e,t){return Object(r.computed)(e,t,lr)};function xr(){return null}function jr(){return null}function Er(e){0}function Nr(e,t){return null}function Tr(){return Ar().slots}function Cr(){return Ar().attrs}function Ar(){var e=ir();return e.setupContext||(e.setupContext=mr(e))}function Pr(e,t){var n=Object(i.isArray)(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var r in t){var o=n[r];o?Object(i.isArray)(o)||Object(i.isFunction)(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(n[r]={default:t[r]})}return n}function Ir(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 Rr(e){var t=ir();var n=e();return ar(),Object(i.isPromise)(n)&&(n=n.catch((function(e){throw or(t),e}))),[n,function(){return or(t)}]}function Lr(e,t,n){var r=arguments.length;return 2===r?Object(i.isObject)(t)&&!Object(i.isArray)(t)?Ln(t)?$n(e,null,[t]):$n(e,t):$n(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Ln(n)&&(n=[n]),$n(e,t,n))}var Mr=Symbol(""),Fr=function(){var e=ke(Mr);return e||d("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e};function Vr(){return void 0}function Br(e,t,n,r){var i=n[r];if(i&&Dr(i,e))return i;var o=t();return o.memo=e.slice(),n[r]=o}function Dr(e,t){var n=e.memo;if(n.length!=t.length)return!1;for(var r=0;r0&&En&&En.push(e),!0}var Ur="3.2.37",$r={createComponentInstance:nr,setupComponent:fr,renderComponentRoot:le,setCurrentRenderingInstance:oe,isVNode:Ln,normalizeVNode:qn},zr=null,Hr=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){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)}function i(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 o(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)||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 a(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);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")}var p="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",v=c(p),h=c(p+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function y(e){return!!e||""===e}var m=/[>/="'\u0009\u000a\u000c\u0020]/,g={};function b(e){if(g.hasOwnProperty(e))return g[e];var t=m.test(e);return t&&console.error("unsafe attribute name: ".concat(e)),g[e]=!t}var O={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},w=c("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),_=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,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"),S=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,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function k(e){if(ee(e)){for(var t={},n=0;n1&&(t[n[0].trim()]=n[1].trim())}})),t}function N(e){var t="";if(!e||oe(e))return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:Oe(n);(oe(r)||"number"==typeof r&&w(i))&&(t+="".concat(i,":").concat(r,";"))}return t}function T(e){var t="";if(oe(e))t=e;else if(ee(e))for(var n=0;n]/;function L(e){var t=""+e,n=R.exec(t);if(!n)return t;var r,i,o="",a=0;for(i=n.index;i||--!>|")]=o,e}),{})}:ne(n)?{["Set(".concat(n.size,")")]:o(n.values())}:!ue(n)||ee(n)||de(n)?n:String(n)},z={},H=[],W=function(){},Y=function(){return!1},G=/^on[^a-z]/,K=function(e){return G.test(e)},q=function(e){return e.startsWith("onUpdate:")},J=Object.assign,X=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},Z=Object.prototype.hasOwnProperty,Q=function(e,t){return Z.call(e,t)},ee=Array.isArray,te=function(e){return"[object Map]"===le(e)},ne=function(e){return"[object Set]"===le(e)},re=function(e){return"[object Date]"===le(e)},ie=function(e){return"function"==typeof e},oe=function(e){return"string"==typeof e},ae=function(e){return"symbol"===r(e)},ue=function(e){return null!==e&&"object"===r(e)},ce=function(e){return ue(e)&&ie(e.then)&&ie(e.catch)},se=Object.prototype.toString,le=function(e){return se.call(e)},fe=function(e){return le(e).slice(8,-1)},de=function(e){return"[object Object]"===le(e)},pe=function(e){return oe(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},ve=c(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),he=c("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ye=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},me=/-(\w)/g,ge=ye((function(e){return e.replace(me,(function(e,t){return t?t.toUpperCase():""}))})),be=/\B([A-Z])/g,Oe=ye((function(e){return e.replace(be,"-$1").toLowerCase()})),we=ye((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),_e=ye((function(e){return e?"on".concat(we(e)):""})),Se=function(e,t){return!Object.is(e,t)},ke=function(e,t){for(var n=0;n1)for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n255?255:t},W=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},Y=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},G=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Y(i,r,e+1/3),a=Y(i,r,e),u=Y(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8},K=function(e){return(parseFloat(e)%360+360)%360/360},q=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function J(e){var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=z.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(B,e)?B[e]:(t=z.rgb.exec(e),Array.isArray(t)?(H(t[1])<<24|H(t[2])<<16|H(t[3])<<8|255)>>>0:(t=z.rgba.exec(e))?(H(t[1])<<24|H(t[2])<<16|H(t[3])<<8|W(t[4]))>>>0:(t=z.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=z.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=z.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=z.hsl.exec(e))?(255|G(K(t[1]),q(t[2]),q(t[3])))>>>0:(t=z.hsla.exec(e))?(G(K(t[1]),q(t[2]),q(t[3]))|W(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var X={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},Z={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Q="turn",ee="rad",te="deg",ne=/\/\*[\s\S]{0,1000}?\*\//gm;var re=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ie(e){if("number"==typeof e)return e;if(re.test(e))try{return parseFloat(e)}catch(e){}return e}function oe(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 ae(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=T(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";var r="180",i=P(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]:te,n=parseFloat(e),r=e||"",i=e.split("."),o=P(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 ee:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,u):o&&void 0!==Z[o]&&(r=Z[o]),r}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.replace(/\s+/g," ").trim(),n=t.split(/\s+(?![^(]*?\))/),r=P(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:J(i)}:null:{color:J(i)}}function ce(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=ae(e);if(r)n.angle=r;else{n.angle="180";var i=ue(e);i&&o.push(i)}}else{var a=ue(e);a&&o.push(a)}})),n.colorStopList=o}else{var a=/(?:\(['"]?).{0,500}?(?:['"]?\))/.exec(t);if(a&&a.length>1){var u=P(a,2);n=u[1]}}return[r,n]}function se(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){se(e,r)})):n&&"object"===N(n)&&se(n,r)})),n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t}),e}function le(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=x(x({},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=L()||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(ne,""),r=V(n),i=X[r]||r,a=o(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/),c=a?a[0].trim().replace(ne,""):"";switch(i){case"backgroundImage":var l=P(ce(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=P(r,3)[2];if(i)n=P(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 oe(e)})),h=P(v,1)[0],y=P(v,2)[1];y||(y=h),c={x:h,y:y};break;case"collapsable":c=Boolean(c);break;default:c=ie(c);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find((function(e){return i.toLowerCase().indexOf(e)>-1}))&&(c=oe(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 w(){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 _(){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 S(){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 j(){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 E(){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 N(){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 T(){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 C(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 A=C("import"),I=C("charset"),R=C("namespace");function L(){return"@"!==e[0]?null:w()||k()||j()||_()||A()||I()||R()||N()||E()||S()||T()}return se(p(),null)}function fe(e,t){if(e===t)return!0;var n=ve(e),r=ve(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=me(e),r=me(t),n||r)return e===t;if(n=pe(e),r=pe(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;for(var n=!0,r=0;n&&r1?r-1:0),o=1;oe.rarity?t:e}),null),r.dynamic=e.some((function(e){return e.dynamic})),r.selectors=e,r}return _(n,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(nt(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 ot&&this.head.lookupSort(e,null!=t?t:this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof ot&&this.head.removeSort(e,null!=t?t:this)}}]),n}(ot),ut=function(e){C(n,e);var t=m(n);function n(){var e;return O(this,n),(e=t.call(this)).specificity=0,e.rarity=0,e.dynamic=!1,e}return _(n,[{key:"toString",value:function(){return"*".concat(nt(this.combinator))}},{key:"match",value:function(){return!0}}]),n}(ot),ct=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=65536,r.rarity=3,r.dynamic=!1,r.id=e,r}return _(n,[{key:"toString",value:function(){return"#".concat(this.id).concat(nt(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)}}]),n}(ot),st=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=1,r.rarity=1,r.dynamic=!1,r.cssType=e,r}return _(n,[{key:"toString",value:function(){return"".concat(this.cssType).concat(nt(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)}}]),n}(ot),lt=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=256,r.rarity=2,r.dynamic=!1,r.className=e,r}return _(n,[{key:"toString",value:function(){return".".concat(this.className).concat(nt(this.combinator))}},{key:"match",value:function(e){return!!e&&!(!e.classList.size||!e.classList.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)}}]),n}(ot),ft=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=256,r.rarity=0,r.dynamic=!0,r.cssPseudoClass=e,r}return _(n,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(nt(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)}}]),n}(ot),dt=function(e,t){var n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0},pt=function(e){C(n,e);var t=m(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return O(this,n),(r=t.call(this)).attribute="",r.test="",r.value="",r.specificity=256,r.rarity=0,r.dynamic=!0,r.attribute=e,r.test=i,r.value=o,i?o?(r.match=function(t){if(!t||!t.attributes)return!1;var n="".concat(dt(t,e));if("="===i)return n===o;if("^="===i)return n.startsWith(o);if("$="===i)return n.endsWith(o);if("*="===i)return-1!==n.indexOf(o);if("~="===i){var r=n.split(" ");return-1!==(null==r?void 0:r.indexOf(o))}return"|="===i&&(n===o||n.startsWith("".concat(o,"-")))},r):(r.match=function(){return!1},g(r)):(r.match=function(t){return!(!t||!t.attributes)&&!Xe(dt(t,e))},g(r))}return _(n,[{key:"toString",value:function(){return"[".concat(this.attribute).concat(nt(this.test)).concat(this.test&&this.value||"","]").concat(nt(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)}}]),n}(ot),vt=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).specificity=0,r.rarity=4,r.dynamic=!1,r.combinator=void 0,r.error=e,r}return _(n,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}},{key:"lookupSort",value:function(){return null}},{key:"removeSort",value:function(){return null}}]),n}(ot),ht=function(){function e(t){O(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return _(e,[{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)}))}}]),e}(),yt=function(){function e(t){O(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return _(e,[{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)}))}}]),e}(),mt=function(e){C(n,e);var t=m(n);function n(e){var r;O(this,n),r=t.call(this);var i=[void 0," ",">","+","~"],o=[],a=[],u=[],c=S(e),s=c.length-1;r.specificity=0,r.dynamic=!1;for(var l=s;l>=0;l--){var f=c[l];if(-1===i.indexOf(f.combinator))throw console.error('Unsupported combinator "'.concat(f.combinator,'".')),new Error('Unsupported combinator "'.concat(f.combinator,'".'));void 0!==f.combinator&&" "!==f.combinator||u.push(a=[o=[]]),">"===f.combinator&&a.push(o=[]),r.specificity+=f.specificity,f.dynamic&&(r.dynamic=!0),o.push(f)}return r.groups=u.map((function(e){return new ht(e.map((function(e){return new yt(e)})))})),r.last=c[s],r}return _(n,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e){return!!e&&this.groups.every((function(t,n){if(0===n)return!!(e=t.match(e));if(null==e?void 0:e.parentNode)for(var r=e.parentNode;r;){if(e=t.match(r))return!0;r=r.parentNode}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){if(!this.dynamic)return this.match(e);var n=[],r=this.groups.every((function(t,r){if(0===r){var i=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=i)}for(var o=e;o=o.parentNode;){var a=t.mayMatch(o);if(a)return n.push({left:o,right:null}),e=a,!0}return!1}));if(!r)return!1;if(!t)return r;for(var i=0;i)?\\s*"},wt={};function _t(e,t,n){var r="";bt&&(r="gy"),wt[e]||(wt[e]=new RegExp(Ot[e],r));var i,o=wt[e];if(bt)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 St(e,t){var n,r;return null!==(r=null!==(n=function(e,t){var n=_t("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=_t("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=_t("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 kt(e,t){var n=St(e,t);if(!n)return null;for(var r=n.end,i=[];n;){i.push(n.value),n=St(e,r=n.end)}return{start:t,end:r,value:i}}function xt(e,t){var n=_t("combinatorRegEx",e,t),r=n.result,i=n.regexp;return r?{start:t,end:bt?i.lastIndex:t,value:r[1]||" "}:null}function jt(e){return"declaration"===e.type}function Et(e){return function(t){var n=e(t);if(!xe&&!n)throw new Error("beforeLoadStyle hook must returns the processed style object");return n}}function Nt(e){switch(e.type){case"*":return new ut;case"#":return new ct(e.identifier);case"":return new st(e.identifier.replace(/-/,"").toLowerCase());case".":return new lt(e.identifier);case":":return new ft(e.identifier);case"[]":return e.test?new pt(e.property,e.test,e.value):new pt(e.property);default:return null}}function Tt(e){return 0===e.length?new vt(new Error("Empty simple selector sequence.")):1===e.length?Nt(e[0]):new at(e.map(Nt))}function Ct(e){try{var t=function(e,t){var n=t,r=_t("whiteSpaceRegEx",e,t),i=r.result,o=r.regexp;i&&(n=o.lastIndex);var a,u=[],c=!0,s=[void 0,void 0];return(bt?[e]:e.split(" ")).forEach((function(e){if(!bt){if(""===e)return;n=0}do{var t=kt(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=xt(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 vt(new Error("Empty selector."));if(1===e.length)return Tt(e[0][0]);var t,n=[],r=y(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=Tt(i[0]),a=i[1];a&&o&&(o.combinator=a),n.push(o)}}catch(e){r.e(e)}finally{r.f()}return new mt(n)}(t.value):new vt(new Error("Empty selector"))}catch(e){return new vt(e)}}function At(){var e=r[Ne];if(!rt||e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=$e();return e.map((function(e){var n=e.declarations.filter(jt).map(Et(t)),r=e.selectors.map(Ct);return new gt(r,n,e.hash)}))}(e);rt?rt.append(t):rt=new tt(t),r[Ne]=void 0}return r[Te]&&(r[Te].forEach((function(e){rt.delete(e)})),r[Te]=void 0),rt}var Pt=["%c[native]%c","color: red","color: auto"],It={},Rt=r.Hippy,Lt=Rt.bridge,Mt=Lt.callNative,Ft=Lt.callNativeWithPromise,Vt=Lt.callNativeWithCallbackId,Bt=Rt.device,Dt=Bt.platform,Ut=Dt.OS,$t=Dt.Localization,zt=void 0===$t?{}:$t,Ht=Bt.screen.scale,Wt=Rt.device,Yt=Rt.document,Gt=Rt.register,Kt=function(){var e=h(p().mark((function e(t,n){var r,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1},t.isMounted&&t.nodeId){e.next=3;break}return e.abrupt("return",Promise.resolve(r));case 3:return i=t.nodeId,Le.apply(void 0,Pt.concat(["callUIFunction",{nodeId:i,funcName:n,params:[]}])),e.abrupt("return",new Promise((function(e){return Yt.callUIFunction(i,n,[],(function(t){if(!t||"object"!==N(t)||void 0===i)return e(r);var n=t.x,o=t.y,a=t.height,u=t.width;return e({top:o,left:n,width:u,height:a,bottom:o+a,right:n+u})}))})));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),qt=new Map,Jt={Localization:zt,hippyNativeDocument:Yt,hippyNativeRegister:Gt,Platform:Ut,PixelRatio:Ht,ConsoleModule:r.ConsoleModule||r.console,callNative:Mt,callNativeWithPromise:Ft,callNativeWithCallbackId:Vt,AsyncStorage:r.Hippy.asyncStorage,callUIFunction:function(){for(var e=arguments.length,t=new Array(e),n=0;n0||t.didTimeout)&&function e(t){var n;"number"==typeof t?Kn(t):t&&(Kn(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)})))}(e)},n={timeout:50},r.requestIdleCallback?r.requestIdleCallback(t,n):setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1)}function Xn(){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 Fn(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 Ln(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 Me.apply(void 0,Qn.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Me.apply(void 0,Qn.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};r.__GLOBAL__&&(r.__GLOBAL__.jsModuleList.EventDispatcher=er);var tr,nr=function(){function e(){O(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&&fe(e.options,n):e.callback===t}))}}]),e}();!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE"}(tr||(tr={}));var rr,ir=!1,or=[],ar=["%c[native]%c","color: red","color: auto"];function ur(){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=Nn(i)?jn[i]:Tn(i),o===xn&&t.removeEventListener(n,r,a),o===kn&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function cr(e,t){Re()&&Le.apply(void 0,ar.concat([t,e]))}function sr(){ir||(ir=!0,0!==or.length?Object(i.nextTick)().then((function(){var e=function(e){var t,n=[],r=y(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}(or),t=In().rootViewId,n=new r.Hippy.SceneBuilder(t);e.forEach((function(e){switch(e.type){case tr.CREATE:cr(e.printedNodes,"createNode"),n.create(e.nodes),ur(e.eventNodes,n);break;case tr.UPDATE:cr(e.printedNodes,"updateNode"),n.update(e.nodes),ur(e.eventNodes,n);break;case tr.DELETE:cr(e.printedNodes,"deleteNode"),n.delete(e.nodes);break;case tr.MOVE:cr(e.printedNodes,"moveNode"),n.move(e.nodes)}})),n.build(),ir=!1,or=[]})):ir=!1)}function lr(e){var t=P(e,3),n=t[0],r=t[1],i=t[2];or.push({type:tr.CREATE,nodes:n,eventNodes:r,printedNodes:i}),sr()}function fr(e){var t=P(e,3),n=t[0],r=t[2];n&&(or.push({type:tr.MOVE,nodes:n,eventNodes:[],printedNodes:r}),sr())}function dr(e){var t=P(e,3),n=t[0],r=t[1],i=t[2];n&&(or.push({type:tr.UPDATE,nodes:n,eventNodes:r,printedNodes:i}),sr())}function pr(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=2]="TextNode",e[e.CommentNode=3]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rr||(rr={}));var vr=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this)).isMounted=!1,r.events={},r.childNodes=[],r.parentNode=null,r.prevSibling=null,r.nextSibling=null,r.tagComponent=null,r.nodeId=n.getUniqueNodeId(),r.nodeType=e,r.isNeedInsertToNative=function(e){return e===rr.ElementNode}(e),r}return _(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:"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=Xn(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:Zn}):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=Xn(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:Zn}):this.insertChildNativeNode(n)}}else this.appendChild(n)}},{key:"appendChild",value:function(e){var t=e;if(!t)throw new Error("No child to append");this.lastChild!==t&&(t.parentNode&&t.parentNode!==this&&t.parentNode.removeChild(t),t.isMounted&&this.removeChild(t),t.parentNode=this,this.lastChild&&(t.prevSibling=this.lastChild,this.lastChild.nextSibling=t),this.childNodes.push(t),this.insertChildNativeNode(t))}},{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=y(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,o=i.convertToNativeNodes(!0,t);i.eachNode((function(e){var t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Gn(t,t.nodeId)})),lr(o)}}}},{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;fr(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=P(t,3),r=n[0],i=n[2],r&&(or.push({type:tr.DELETE,nodes:r,eventNodes:[],printedNodes:i}),sr()))}}},{key:"updateNativeNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isMounted){var t=this.convertToNativeNodes(e,{});dr(t)}}},{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=P(e.convertToNativeNodes(!1,r),3),n=t[0],i=t[1],c=t[2];Array.isArray(n)&&n.length&&o.push.apply(o,S(n)),Array.isArray(i)&&i.length&&a.push.apply(a,S(i)),Array.isArray(c)&&c.length&&u.push.apply(u,S(c))})),[o,a,u]}if(!this.component)throw new Error("tagName is not supported yet");var c=In(),s=c.rootViewId,l=null!=i?i:{},f=x({id:this.nodeId,pId:null!==(n=null===(t=this.parentNode)||void 0===t?void 0:t.nodeId)&&void 0!==n?n:s},l),d=pr(this),p=void 0;if(!xe){var v={};d&&Array.isArray(d.eventList)&&d.eventList.forEach((function(e){var t=e.name,n=e.listener;e.type===kn&&Object.assign(v,{[t]:n})})),Object.assign(p={},f,r),p.listeners=v}var h=[f,r];return[[h],[d],[p]]}}],[{key:"getUniqueNodeId",value:function(){return(Ae+=1)%10==0&&(Ae+=1),Ae}}]),n}(nr),hr=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this,rr.TextNode)).text=e,r}return _(n,[{key:"setText",value:function(e){this.text=e,this.parentNode&&this.nodeType===rr.ElementNode&&this.parentNode.setText(e)}}]),n}(vr);function yr(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 mr(e,t){var n=t;e.component.name===je.TextInput&&Sn()&&(n.textAlign||(n.textAlign="right"))}function gr(e,t,n){var r=t,i=n;e.component.name===je.View&&("scroll"===i.overflowX&&"scroll"===i.overflowY&&Me("overflow-x and overflow-y for View can not work together"),"scroll"===i.overflowY?r.name="ScrollView":"scroll"===i.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),i.flexDirection=Sn()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&Me("Only one child node is acceptable for View with overflow"),e.childNodes.length&&e.nodeType===rr.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),i.backgroundImage&&(i.backgroundImage=Ke(i.backgroundImage)))}function br(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,i=n.length;r2&&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(r.split(" ").filter((function(e){return e.trim()})));if(Ye(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){Me("Property ".concat(i," must be string:").concat(e.message))}n&&n.textUpdate||(r=Qe(r)),r=We(r);break;case"numberOfRows":if(!Jt.isIOS())return;break;case"caretColor":case"caret-color":i="caret-color",r=Jt.parseColor(r);break;case"break-strategy":i="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":i="placeholderTextColor",r=Jt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":i="underlineColorAndroid",r=Jt.parseColor(r);break;case"nativeBackgroundAndroid":var a=r;void 0!==a.color&&(a.color=Jt.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){if(!xe)throw e}}},{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=ce(i,o),u=P(a,2);i=u[0],o=u[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=yr(i,o,this.style),s=P(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(X,i)&&(i=X[i]),"string"==typeof o&&(o=o.trim(),o=i.toLowerCase().indexOf("color")>=0?Jt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):De(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),Jt.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(Ve(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,t,r){var i=this,o=e,a=t,u=r;if("scroll"!==o||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200),"function"==typeof this.polyfillNativeEvents){var c=this.polyfillNativeEvents(An,o,a,u);o=c.eventNames,a=c.callback,u=c.options}f(b(n.prototype),"addEventListener",this).call(this,o,a,u),br(o,(function(e){var t,n,r=i.getNativeEventName(e);i.events[r]?i.events[r]&&i.events[r].type!==kn&&(i.events[r].type=kn):i.events[r]={name:r,type:kn,listener:(t=r,n=e,function(e){var r=e.id,i=e.currentId,o=e.params,a=e.eventPhase;er.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:i,params:o,eventPhase:a},e)}),isCapture:!1}})),this.updateNativeNode()}},{key:"removeEventListener",value:function(e,t,r){var i=this,o=e,a=t,u=r;if("function"==typeof this.polyfillNativeEvents){var c=this.polyfillNativeEvents(Pn,o,a,u);o=c.eventNames,a=c.callback,u=c.options}f(b(n.prototype),"removeEventListener",this).call(this,o,a,u),br(o,(function(e){var t=i.getNativeEventName(e);i.events[t]&&(i.events[t].type=xn)})),this.updateNativeNode()}},{key:"dispatchEvent",value:function(e,t,n){var r=e;r.currentTarget=this,r.target||(r.target=t||this,Wn(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}},{key:"convertToNativeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return f(b(n.prototype),"convertToNativeNodes",this).call(this,!0,t);var r=this.getNativeStyles();He()(this,r),this.component.defaultNativeStyle&&(r=x(x({},this.component.defaultNativeStyle),r));var i={name:this.component.name,props:x(x({},this.getNativeProps()),{},{style:r}),tagName:this.tagName};return xe||i.props&&(i.props.attributes=this.getNodeAttributes()),mr(this,r),gr(this,i,r),f(b(n.prototype),"convertToNativeNodes",this).call(this,!1,t,i)}},{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){Jt.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Jt.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=Object(o.toRaw)(e.style[n]);void 0!==r&&(t[n]=r)})),t}},{key:"getNativeStyles",value:function(){var e=this,t={};return At().query(this).selectors.forEach((function(n){var r,i;Ze(n,e)&&(null===(i=null===(r=n.ruleSet)||void 0===r?void 0:r.declarations)||void 0===i?void 0:i.length)&&n.ruleSet.declarations.forEach((function(e){e&&(t[e.property]=e.value)}))})),t=n.parseRem(x(x({},t),this.getInlineStyle()))}},{key:"hackNativeProps",value:function(e){var t=e;"img"===this.tagName&&Jt.isIOS()&&(t.source=[{uri:t.src}],t.src=void 0)}},{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]=he(i)?i(e):Object(o.toRaw)(i)}})),Object.keys(this.attributes).forEach((function(n){var r,i=Object(o.toRaw)(e.getAttribute(n));if(e.component.attributeMaps&&e.component.attributeMaps[n]){var a=e.component.attributeMaps[n];if(ye(a))t[a]=Object(o.toRaw)(i);else if(he(a))t[n]=Object(o.toRaw)(a(i));else{var u=a.name,c=a.propsValue,s=a.jointKey;he(c)&&(i=c(i)),s?(t[s]=null!==(r=t[s])&&void 0!==r?r:{},Object.assign(t[s],{[u]:Object(o.toRaw)(i)})):t[u]=Object(o.toRaw)(i)}}else t[n]=Object(o.toRaw)(i)}));var r=this.component.nativeProps;return r&&Object.keys(r).forEach((function(e){t[e]=Object(o.toRaw)(r[e])})),this.hackNativeProps(t),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]=S(o):o instanceof Set?r[i]=new Set(S(o)):o instanceof Map?r[i]=new Map(S(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=x({id:this.id,hippyNodeId:"".concat(this.nodeId),class:n},t);return delete r.text,delete r.value,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(Ve(n));e[o]=!!t[n]}}))}return e}},{key:"hackSpecialIssue",value:function(){this.fixVShowDirectiveIssue()}},{key:"fixVShowDirectiveIssue",value:function(){var e,t=this;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=void 0===n?"flex":n,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=In().ratioBaseWidth;return 100*t*(Jt.Dimensions.screen.width/n)}(e[n])})):t=e,t}}]),n}(vr);var wr={install:function(e){!function(e){var t={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function n(e,t){return"color"===e&&["number","string"].indexOf(N(t))>=0?Jt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function f(e){var i=e.mode,o=void 0===i?"timing":i,c=e.valueType,s=e.startValue,f=e.toValue,d=l(e,u),p=x(x({},t),d);void 0!==c&&(p.valueType=e.valueType),p.startValue=n(p.valueType,s),p.toValue=n(p.valueType,f),p.repeatCount=a(p.repeatCount),p.mode=o;var v=new r.Hippy.Animation(p),h=v.getId();return{animation:v,animationId:h}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new r.Hippy.AnimationSet({children:e,repeatCount:t}),i=n.getId();return{animation:n,animationId:i}}function p(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,u=d(i.map((function(e){var n=f(x(x({},e),{},{repeatCount:0})),r=n.animationId,i=n.animation;return Object.assign(t,{[r]:i}),{animationId:r,follow:!0}})),a(o)),c=u.animationId,s=u.animation;n[r]={animationId:c},Object.assign(t,{[c]:s})}else{var l=f(e[r]),p=l.animationId,v=l.animation;Object.assign(t,{[p]:v}),n[r]={animationId:p}}})),n}function v(e){var t=e.transform,n=l(e,c),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}e.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[qe("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()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=l(e,s);this.animationIdsMap={};var r=p(n,this.animationIdsMap);if(t){var i=p(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=Object(o.toRaw)(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[qe(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=Object(o.toRaw)(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[qe(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=Object(o.toRaw)(e.animationIdsMap[t]);null==n||n.start()})))},resume:function(){var e=this;v(this.style).forEach((function(t){var n=Object(o.toRaw)(e.animationIdsMap[t]);null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&v(this.style).forEach((function(t){var n=Object(o.toRaw)(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=Object(o.toRaw)(e.animationIdsMap[t]);null==n||n.destroy()}))}},render:function(){return Object(i.h)(this.tag,x({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}(e),rn("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){var t=Jt.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=P(n,2),o=r[0],a=r[1];rn("hi-pull-".concat(a),{component:{name:"Pull".concat(o,"View"),processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"on".concat(o,"Released"):case"on".concat(o,"Pulling"):Object.assign(n,t)}return n}}}),e.component("pull-".concat(a),{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(){var e=this.$attrs,t=e.onReleased,n=e.onPulling,r=e.onIdle,u={onLayout:this.onLayout};return"function"==typeof t&&(u["on".concat(o,"Released")]=this["on".concat(o,"Released")]),"function"!=typeof n&&"function"!=typeof r||(u["on".concat(o,"Pulling")]=this["on".concat(o,"Pulling")]),Object(i.h)("hi-pull-".concat(a),x(x({},u),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})}))}(e),function(e){rn("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),rn("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){Jt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){Jt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(){return Object(i.h)("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render:function(){var e=Object(i.h)("div",null,this.$slots.default?this.$slots.default():null);return Object(i.h)("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){rn("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}}}),rn("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){Jt.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=Je.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return Object(i.h)("hi-waterfall",x(x({},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:""}},render:function(){return Object(i.h)("hi-waterfall-item",{type:this.type},this.$slots.default?this.$slots.default():null)}})}(e),function(e){rn("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}}}),rn("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}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(e){Jt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation:function(e){Jt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render:function(){var e=Je.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return Object(i.h)("hi-swiper",x(x({},e),{},{ref:"swiper",initialPage:this.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render:function(){return Object(i.h)("swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}},_r=function(e){C(n,e);var t=m(n);function n(e){var r;return O(this,n),(r=t.call(this,e)).text=e,r.isNeedInsertToNative=!1,r}return _(n)}(Or),Sr=function(e){C(i,e);var t,n,r=m(i);function i(){return O(this,i),r.apply(this,arguments)}return _(i,[{key:"showInputMenu",value:function(){}},{key:"hideInputMenu",value:function(){}},{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:(n=h(p().mark((function e(){var t=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Jt.callUIFunction(t,"getValue",(function(t){return e(t.text)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"setValue",value:function(e){Jt.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Jt.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Jt.callUIFunction(this,"blurTextInput",[])}},{key:"clear",value:function(){Jt.callUIFunction(this,"clear",[])}},{key:"isFocused",value:(t=h(p().mark((function e(){var t=this;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Jt.callUIFunction(t,"isFocused",(function(t){return e(t.value)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),i}(Or),kr=function(e){C(n,e);var t=m(n);function n(){return O(this,n),t.apply(this,arguments)}return _(n,[{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];Jt.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&&Jt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}]),n}(Or),xr=function(e){C(n,e);var t=m(n);function n(){return O(this,n),t.call(this,rr.DocumentNode)}return _(n,null,[{key:"createComment",value:function(e){return new _r(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new Sr(e);case"ul":return new kr(e);default:return new Or(e)}}},{key:"createTextNode",value:function(e){return new hr(e)}}]),n}(vr);var jr={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),Jn(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return xr.createElement(e)},createComment:function(e){return xr.createComment(e)},createText:function(e){return xr.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};var Er=/(?:Once|Passive|Capture)$/;function Nr(e){var t,n=e,r={};if(Er.test(n))for(var i=n.match(Er);i;)n=n.slice(0,n.length-i[0].length),r[i[0].toLowerCase()]=!0,i=n.match(Er);return n=":"===n[2]?n.slice(3):n.slice(2),[(t=n,"".concat(t.charAt(0).toLowerCase()).concat(t.slice(1))),r]}function Tr(e,t){var n=function e(n){Object(i.callWithAsyncErrorHandling)(e.value,t,5,[n])};return n.value=e,n}function Cr(e,t,n,r,i,o,u){switch(t){case"class":!function(e,t){var n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":!function(e,t,n){var r=e,i={};if(t&&!n)r.removeStyle();else{if(ye(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach((function(e){var t=n[e];Xe(t)||(i[Object(a.camelize)(e)]=t)})),r.removeStyle(!0),r.setStyles(i))}}(e,n,r);break;default:!function(e){return de.test(e)}(t)?function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r):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=Nr(t),l=P(s,2),f=l[0],d=l[1];if(r){u[t]=Tr(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,u)}}var Ar=!1,Pr=function(){function e(t,n,r){var i=this;O(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=x({},r);if(Ar||(Ar=!0,Se.$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};Jt.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code?i.webSocketId=e.id:Me("Fail to create websocket connection",e)}))}return _(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Jt.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)));Jt.callNative("websocket","send",{id:this.webSocketId,data:e})}else Me("WebSocket is not connected")}},{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,Se.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach((function(t){he(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=qe(e);this.webSocketCallbacks[n]=this.listeners[e]}}}]),e}();function Ir(e){var t;if(e.width&&e.height){var n=(null===(t=null==r?void 0:r.Hippy)||void 0===t?void 0:t.device).screen;n&&(n.width=e.width,n.height=e.height)}}r.WebSocket=Pr;var Rr=['%c[Hippy-Vue-Next "3.0.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Lr(e,t){if(Jt.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 Or("div"),a=Jt.Dimensions.screen.statusBarHeight;Jt.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 Or("img");c.setStyle("width",Jt.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(){Jt.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 Mr=function(e,t){var n,r,o,a=Object(i.createRenderer)(x({patchProp:Cr},jr)).createApp(e);a.use(_n),a.use(wr),"function"==typeof(null===(n=null==t?void 0:t.styleOptions)||void 0===n?void 0:n.beforeLoadStyle)&&(r=t.styleOptions.beforeLoadStyle,Ue=r),t.silent&&(o=t.silent,Pe=o),function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Ie=e}(t.trimWhitespace);var u=a.mount;return a.mount=function(e){Rn("rootContainer",e);var n=function(e){var t=xr.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),r=u(n,!1,!1);return Rn("instance",r),Lr(t,r),r},a.$start=function(){var e=h(p().mark((function e(n){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){Jt.hippyNativeRegister.regist(t.appName,(function(r){var i,o,u=r.__instanceId__;Le.apply(void 0,Rr.concat(["Start",t.appName,"with rootViewId",u,r]));var c,s=In();(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},Cn=c;var l={superProps:r,rootViewId:u};he(n)?n(l):e(l)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a},Fr=function(e,t){he(e)&&(1===t?ze=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))}}.call(this,n("./node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.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 p})),n.d(t,"ITERATE_KEY",(function(){return x})),n.d(t,"ReactiveEffect",(function(){return E})),n.d(t,"computed",(function(){return st})),n.d(t,"customRef",(function(){return rt})),n.d(t,"deferredComputed",(function(){return ht})),n.d(t,"effect",(function(){return T})),n.d(t,"effectScope",(function(){return v})),n.d(t,"enableTracking",(function(){return R})),n.d(t,"getCurrentScope",(function(){return y})),n.d(t,"isProxy",(function(){return De})),n.d(t,"isReactive",(function(){return Fe})),n.d(t,"isReadonly",(function(){return Ve})),n.d(t,"isRef",(function(){return Ge})),n.d(t,"isShallow",(function(){return Be})),n.d(t,"markRaw",(function(){return $e})),n.d(t,"onScopeDispose",(function(){return m})),n.d(t,"pauseTracking",(function(){return I})),n.d(t,"proxyRefs",(function(){return tt})),n.d(t,"reactive",(function(){return Pe})),n.d(t,"readonly",(function(){return Re})),n.d(t,"ref",(function(){return Ke})),n.d(t,"resetTracking",(function(){return L})),n.d(t,"shallowReactive",(function(){return Ie})),n.d(t,"shallowReadonly",(function(){return Le})),n.d(t,"shallowRef",(function(){return qe})),n.d(t,"stop",(function(){return C})),n.d(t,"toRaw",(function(){return Ue})),n.d(t,"toRef",(function(){return at})),n.d(t,"toRefs",(function(){return it})),n.d(t,"track",(function(){return M})),n.d(t,"trigger",(function(){return V})),n.d(t,"triggerRef",(function(){return Ze})),n.d(t,"unref",(function(){return Qe}));var r,i=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function a(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)||u(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 u(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}function c(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];l(this,e),this.active=!0,this.effects=[],this.cleanups=[],!t&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}return d(e,[{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 y(){return r}function m(e){r&&r.cleanups.push(e)}var g,b=function(e){var t=new Set(e);return t.w=0,t.n=0,t},O=function(e){return(e.w&k)>0},w=function(e){return(e.n&k)>0},_=new WeakMap,S=0,k=1,x=Symbol(""),j=Symbol(""),E=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;l(this,e),this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,h(this,r)}return d(e,[{key:"run",value:function(){if(!this.active)return this.fn();for(var e=g,t=A;e;){if(e===this)return;e=e.parent}try{return this.parent=g,g=this,A=!0,k=1<<++S,S<=30?function(e){var t=e.deps;if(t.length)for(var n=0;n=r)&&l.push(e)}));else switch(void 0!==n&&l.push(s.get(n)),t){case"add":Object(i.isArray)(e)?Object(i.isIntegerKey)(n)&&l.push(s.get("length")):(l.push(s.get(x)),Object(i.isMap)(e)&&l.push(s.get(j)));break;case"delete":Object(i.isArray)(e)||(l.push(s.get(x)),Object(i.isMap)(e)&&l.push(s.get(j)));break;case"set":Object(i.isMap)(e)&&l.push(s.get(x))}if(1===l.length)l[0]&&B(l[0]);else{var f,d=[],p=o(l);try{for(p.s();!(f=p.n()).done;){var v=f.value;v&&d.push.apply(d,a(v))}}catch(e){p.e(e)}finally{p.f()}B(b(d))}}}function B(e,t){var n,r=Object(i.isArray)(e)?e:a(e),u=o(r);try{for(u.s();!(n=u.n()).done;){var c=n.value;c.computed&&D(c,t)}}catch(e){u.e(e)}finally{u.f()}var s,l=o(r);try{for(l.s();!(s=l.n()).done;){var f=s.value;f.computed||D(f,t)}}catch(e){l.e(e)}finally{l.f()}}function D(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}var U=Object(i.makeMap)("__proto__,__v_isRef,__isVue"),$=new Set(Object.getOwnPropertyNames(Symbol).filter((function(e){return"arguments"!==e&&"caller"!==e})).map((function(e){return Symbol[e]})).filter(i.isSymbol)),z=q(),H=q(!1,!0),W=q(!0),Y=q(!0,!0),G=K();function K(){var e={};return["includes","indexOf","lastIndexOf"].forEach((function(t){e[t]=function(){for(var e=Ue(this),n=0,r=this.length;n0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?Ae:Ce:t?Te:Ne).get(n))return n;var a=Object(i.isArray)(n);if(!e&&a&&Object(i.hasOwn)(G,r))return Reflect.get(G,r,o);var u=Reflect.get(n,r,o);return(Object(i.isSymbol)(r)?$.has(r):U(r))?u:(e||M(n,0,r),t?u:Ge(u)?a&&Object(i.isIntegerKey)(r)?u:u.value:Object(i.isObject)(u)?e?Re(u):Pe(u):u)}}var J=Z(),X=Z(!0);function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,o){var a=t[n];if(Ve(a)&&Ge(a)&&!Ge(r))return!1;if(!e&&!Ve(r)&&(Be(r)||(r=Ue(r),a=Ue(a)),!Object(i.isArray)(t)&&Ge(a)&&!Ge(r)))return a.value=r,!0;var u=Object(i.isArray)(t)&&Object(i.isIntegerKey)(n)?Number(n)2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Ue(e=e.__v_raw),o=Ue(t);n||(t!==o&&M(i,0,t),M(i,0,o));var a=ie(i),u=a.has,c=r?re:n?He:ze;return u.call(i,t)?c(e.get(t)):u.call(i,o)?c(e.get(o)):void(e!==i&&e.get(t))}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=Ue(n),i=Ue(e);return t||(e!==i&&M(r,0,e),M(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&M(Ue(e),0,x),Reflect.get(e,"size",e)}function ce(e){e=Ue(e);var t=Ue(this);return ie(t).has.call(t,e)||(t.add(e),V(t,"add",e,e)),this}function se(e,t){t=Ue(t);var n=Ue(this),r=ie(n),o=r.has,a=r.get,u=o.call(n,e);u||(e=Ue(e),u=o.call(n,e));var c=a.call(n,e);return n.set(e,t),u?Object(i.hasChanged)(t,c)&&V(n,"set",e,t):V(n,"add",e,t),this}function le(e){var t=Ue(this),n=ie(t),r=n.has,i=n.get,o=r.call(t,e);o||(e=Ue(e),o=r.call(t,e));i&&i.call(t,e);var a=t.delete(e);return o&&V(t,"delete",e,void 0),a}function fe(){var e=Ue(this),t=0!==e.size,n=e.clear();return t&&V(e,"clear",void 0,void 0),n}function de(e,t){return function(n,r){var i=this,o=i.__v_raw,a=Ue(o),u=t?re:e?He:ze;return!e&&M(a,0,x),o.forEach((function(e,t){return n.call(r,u(e),u(t),i)}))}}function pe(e,t,n){return function(){var r=this.__v_raw,o=Ue(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?re:t?He:ze;return!t&&M(o,0,c?j:x),{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 ve(e){return function(){return"delete"!==e&&this}}function he(){var e={get:function(e){return oe(this,e)},get size(){return ue(this)},has:ae,add:ce,set:se,delete:le,clear:fe,forEach:de(!1,!1)},t={get:function(e){return oe(this,e,!1,!0)},get size(){return ue(this)},has:ae,add:ce,set:se,delete:le,clear:fe,forEach:de(!1,!0)},n={get:function(e){return oe(this,e,!0)},get size(){return ue(this,!0)},has:function(e){return ae.call(this,e,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:de(!0,!1)},r={get:function(e){return oe(this,e,!0,!0)},get size(){return ue(this,!0)},has:function(e){return ae.call(this,e,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:de(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((function(i){e[i]=pe(i,!1,!1),n[i]=pe(i,!0,!1),t[i]=pe(i,!1,!0),r[i]=pe(i,!0,!0)})),[e,n,t,r]}var ye,me,ge=(me=4,function(e){if(Array.isArray(e))return e}(ye=he())||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}}(ye,me)||u(ye,me)||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.")}()),be=ge[0],Oe=ge[1],we=ge[2],_e=ge[3];function Se(e,t){var n=t?e?_e:we:e?Oe:be;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 ke={get:Se(!1,!1)},xe={get:Se(!1,!0)},je={get:Se(!0,!1)},Ee={get:Se(!0,!0)};var Ne=new WeakMap,Te=new WeakMap,Ce=new WeakMap,Ae=new WeakMap;function Pe(e){return Ve(e)?e:Me(e,!1,Q,ke,Ne)}function Ie(e){return Me(e,!1,te,xe,Te)}function Re(e){return Me(e,!0,ee,je,Ce)}function Le(e){return Me(e,!0,ne,Ee,Ae)}function Me(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 Fe(e){return Ve(e)?Fe(e.__v_raw):!(!e||!e.__v_isReactive)}function Ve(e){return!(!e||!e.__v_isReadonly)}function Be(e){return!(!e||!e.__v_isShallow)}function De(e){return Fe(e)||Ve(e)}function Ue(e){var t=e&&e.__v_raw;return t?Ue(t):e}function $e(e){return Object(i.def)(e,"__v_skip",!0),e}var ze=function(e){return Object(i.isObject)(e)?Pe(e):e},He=function(e){return Object(i.isObject)(e)?Re(e):e};function We(e){A&&g&&F((e=Ue(e)).dep||(e.dep=b()))}function Ye(e,t){(e=Ue(e)).dep&&B(e.dep)}function Ge(e){return!(!e||!0!==e.__v_isRef)}function Ke(e){return Je(e,!1)}function qe(e){return Je(e,!0)}function Je(e,t){return Ge(e)?e:new Xe(e,t)}var Xe=function(){function e(t,n){l(this,e),this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ue(t),this._value=n?t:ze(t)}return d(e,[{key:"value",get:function(){return We(this),this._value},set:function(e){e=this.__v_isShallow?e:Ue(e),Object(i.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:ze(e),Ye(this))}}]),e}();function Ze(e){Ye(e)}function Qe(e){return Ge(e)?e.value:e}var et={get:function(e,t,n){return Qe(Reflect.get(e,t,n))},set:function(e,t,n,r){var i=e[t];return Ge(i)&&!Ge(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tt(e){return Fe(e)?e:new Proxy(e,et)}var nt=function(){function e(t){var n=this;l(this,e),this.dep=void 0,this.__v_isRef=!0;var r=t((function(){return We(n)}),(function(){return Ye(n)})),i=r.get,o=r.set;this._get=i,this._set=o}return d(e,[{key:"value",get:function(){return this._get()},set:function(e){this._set(e)}}]),e}();function rt(e){return new nt(e)}function it(e){var t=Object(i.isArray)(e)?new Array(e.length):{};for(var n in e)t[n]=at(e,n);return t}var ot=function(){function e(t,n,r){l(this,e),this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}return d(e,[{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}}]),e}();function at(e,t,n){var r=e[t];return Ge(r)?r:new ot(e,t,n)}var ut,ct=function(){function e(t,n,r,i){var o=this;l(this,e),this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new E(t,(function(){o._dirty||(o._dirty=!0,Ye(o))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}return d(e,[{key:"value",get:function(){var e=Ue(this);return We(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value},set:function(e){this._setter(e)}}]),e}();function st(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 ct(n,r,a||!r,o);return u}var lt=Promise.resolve(),ft=[],dt=!1,pt=function(){for(var e=0;e=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);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(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(_r(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,n,r){var i;try{i=r?e.apply(void 0,c(r)):e()}catch(e){m(e,t,n)}return i}function y(e,t,n,r){if(Object(i.isFunction)(e)){var o=h(e,t,n,r);return o&&Object(i.isPromise)(o)&&o.catch((function(e){m(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=n;o;){var c=o.ec;if(c)for(var s=0;s>>1;D(w[r])1&&void 0!==arguments[1]?arguments[1]:null;if(S.length){for(A=t,k=c(new Set(S)),S.length=0,x=0;x1?t-1:0),r=1;r2?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=te(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),r.set(e,u),u):(r.set(e,null),null)}function ne(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 re=null,ie=null;function oe(e){var t=re;return re=e,ie=e&&e.type.__scopeId||null,t}function ae(e){ie=e}function ue(){ie=null}var ce=function(e){return se};function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re;if(!t)return e;if(e._n)return e;var n=function n(){n._d&&An(-1);var r=oe(t),i=e.apply(void 0,arguments);return oe(r),n._d&&An(1),__VUE_PROD_DEVTOOLS__&&J(t),i};return n._n=!0,n._c=!0,n._d=!0,n}function le(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,g=e.setupState,b=e.ctx,O=e.inheritAttrs,w=oe(e);try{if(4&o.shapeFlag){var _=c||u;t=qn(v.call(_,_,h,s,g,y,b)),n=d}else{var S=r;0,t=qn(S.length>1?S(s,{attrs:d,slots:f,emit:p}):S(s,null)),n=r.props?d:de(d)}}catch(n){jn.length=0,m(n,e,1),t=$n(kn)}var k=t;if(n&&!1!==O){var x=Object.keys(n),j=k.shapeFlag;if(x.length)if(7&j)l&&x.some(i.isModelListener)&&(n=pe(n,l)),k=Wn(k,n);else;}return o.dirs&&((k=Wn(k)).dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&(k.transition=o.transition),t=k,oe(w),t}function fe(e){for(var t,n=0;n0?(ge(e,"onPending"),ge(e,"onFallback"),s(null,e.ssFallback,t,n,r,null,o,a),_e(f,e.ssFallback)):f.resolve()}(t,n,r,i,o,a,u,c,s):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,Mn(p,y)?(s(y,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():m&&(s(h,v,n,r,i,null,o,a,u),_e(d,v))):(d.pendingId++,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),_e(d,v))):h&&Mn(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&&Mn(p,h))s(h,p,n,r,i,d,o,a,u),_e(d,p);else if(ge(t,"onPending"),d.pendingBranch=p,d.pendingId++,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=be(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();return l},create:be,normalize:function(e){var t=e.shapeFlag,n=e.children,r=32&t;e.ssContent=Oe(r?n.default:n),e.ssFallback=r?Oe(n.fallback):$n(kn)}};function ge(e,t){var n=e.props&&e.props[t];Object(i.isFunction)(n)&&n()}function be(e,t,n,r,o,a,u,s,l,f){var d=arguments.length>10&&void 0!==arguments[10]&&arguments[10];var p=f.p,v=f.m,h=f.um,y=f.n,g=f.o,b=g.parentNode,O=g.remove,w=Object(i.toNumber)(e.props&&e.props.timeout),_={vnode:e,parent:t,parentComponent:n,isSVG:u,container:r,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:"number"==typeof w?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=_.vnode,n=_.activeBranch,r=_.pendingBranch,i=_.pendingId,o=_.effects,a=_.parentComponent,u=_.container;if(_.isHydrating)_.isHydrating=!1;else if(!e){var s=n&&r.transition&&"out-in"===r.transition.mode;s&&(n.transition.afterLeave=function(){i===_.pendingId&&v(r,u,l,0)});var l=_.anchor;n&&(l=y(n),h(n,a,_,!0)),s||v(r,u,l,0)}_e(_,r),_.pendingBranch=null,_.isInFallback=!1;for(var f=_.parent,d=!1;f;){if(f.pendingBranch){var p;(p=f.effects).push.apply(p,c(o)),d=!0;break}f=f.parent}d||F(o),_.effects=[],ge(t,"onResolve")},fallback:function(e){if(_.pendingBranch){var t=_.vnode,n=_.activeBranch,r=_.parentComponent,i=_.container,o=_.isSVG;ge(t,"onFallback");var a=y(n),u=function(){_.isInFallback&&(p(null,e,i,a,r,null,o,s,l),_e(_,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),_.isInFallback=!0,h(n,r,null,!0),c||u()}},move:function(e,t,n){_.activeBranch&&v(_.activeBranch,e,t,n),_.container=e},next:function(){return _.activeBranch&&y(_.activeBranch)},registerDep:function(e,t){var n=!!_.pendingBranch;n&&_.deps++;var r=e.vnode.el;e.asyncDep.catch((function(t){m(t,e,0)})).then((function(i){if(!e.isUnmounted&&!_.isUnmounted&&_.pendingId===e.suspenseId){e.asyncResolved=!0;var o=e.vnode;0,pr(e,i,!1),r&&(o.el=r);var a=!r&&e.subTree.el;t(e,o,b(r||e.subTree.el),r?null:y(e.subTree),_,u,l),a&&O(a),he(e,o.el),n&&0==--_.deps&&_.resolve()}}))},unmount:function(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function Oe(e){var t;if(Object(i.isFunction)(e)){var n=Cn&&e._c;n&&(e._d=!1,Nn()),e=e(),n&&(e._d=!0,t=En,Tn())}if(Object(i.isArray)(e)){var r=fe(e);0,e=r}return e=qn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((function(t){return t!==e}))),e}function we(e,t){var n;t&&t.pendingBranch?Object(i.isArray)(e)?(n=t.effects).push.apply(n,c(e)):t.effects.push(e):F(e)}function _e(e,t){e.activeBranch=t;var n=e.vnode,r=e.parentComponent,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,he(r,i))}function Se(e,t){if(rr){var n=rr.provides,r=rr.parent&&rr.parent.provides;r===n&&(n=rr.provides=Object.create(r)),n[e]=t}else 0}function ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=rr||re;if(r){var o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Object(i.isFunction)(t)?t.call(r.proxy):t}else 0}function xe(e,t){return Ce(e,null,t)}function je(e,t){return Ce(e,null,{flush:"post"})}function Ee(e,t){return Ce(e,null,{flush:"sync"})}var Ne={};function Te(e,t,n){return Ce(e,t,n)}function Ce(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;n.onTrack,n.onTrigger;var c,s,l=rr,f=!1,d=!1;if(Object(r.isRef)(e)?(c=function(){return e.value},f=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(c=function(){return e},a=!0):Object(i.isArray)(e)?(d=!0,f=e.some((function(e){return Object(r.isReactive)(e)||Object(r.isShallow)(e)})),c=function(){return e.map((function(e){return Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?Ie(e):Object(i.isFunction)(e)?h(e,l,2):void 0}))}):c=Object(i.isFunction)(e)?t?function(){return h(e,l,2)}:function(){if(!l||!l.isUnmounted)return s&&s(),y(e,l,3,[v])}:i.NOOP,t&&a){var p=c;c=function(){return Ie(p())}}var v=function(e){s=O.onStop=function(){h(e,l,4)}};if(lr)return v=i.NOOP,t?o&&y(t,l,3,[c(),d?[]:void 0,v]):c(),i.NOOP;var m,g=d?[]:Ne,b=function(){if(O.active)if(t){var e=O.run();(a||f||(d?e.some((function(e,t){return Object(i.hasChanged)(e,g[t])})):Object(i.hasChanged)(e,g)))&&(s&&s(),y(t,l,3,[e,g===Ne?void 0:g,v]),g=e)}else O.run()};b.allowRecurse=!!t,m="sync"===u?b:"post"===u?function(){return ln(b,l&&l.suspense)}:function(){return M(b)};var O=new r.ReactiveEffect(c,m);return t?o?b():g=O.run():"post"===u?ln(O.run.bind(O),l&&l.suspense):O.run(),function(){O.stop(),l&&l.scope&&Object(i.remove)(l.scope.effects,O)}}function Ae(e,t,n){var r,o=this.proxy,a=Object(i.isString)(e)?e.includes(".")?Pe(o,e):function(){return o[e]}:e.bind(o,o);Object(i.isFunction)(t)?r=t:(r=t.handler,n=t);var u=rr;or(this);var c=Ce(a,r.bind(o),n);return u?or(u):ar(),c}function Pe(e,t){var n=t.split(".");return function(){for(var t=e,r=0;r1){var s,l=u(t);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(f.type!==kn){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=De(c);if(!v)return Be(c);var h=Ve(v,d,a,o);Ue(v,h);var y=o.subTree,m=y&&De(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!==kn&&(!Mn(v,m)||g)){var w=Ve(m,d,a,o);if(Ue(m,w),"out-in"===p)return a.isLeaving=!0,w.afterLeave=function(){a.isLeaving=!1,o.update()},Be(c);"in-out"===p&&v.type!==kn&&(w.delayLeave=function(e,t,n){Fe(a,m)[String(m.key)]=m,e._leaveCb=function(){t(),e._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=n})}return c}}}};function Fe(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,m=t.onLeaveCancelled,g=t.onBeforeAppear,b=t.onAppear,O=t.onAfterAppear,w=t.onAppearCancelled,_=String(e.key),S=Fe(n,e),k=function(e,t){e&&y(e,r,9,t)},x=function(e,t){var n=t[1];k(e,t),Object(i.isArray)(e)?e.every((function(e){return e.length<=1}))&&n():e.length<=1&&n()},j={mode:a,persisted:c,beforeEnter:function(t){var r=s;if(!n.isMounted){if(!o)return;r=g||s}t._leaveCb&&t._leaveCb(!0);var i=S[_];i&&Mn(e,i)&&i.el._leaveCb&&i.el._leaveCb(),k(r,[t])},enter:function(e){var t=l,r=f,i=d;if(!n.isMounted){if(!o)return;t=b||l,r=O||f,i=w||d}var a=!1,u=e._enterCb=function(t){a||(a=!0,k(t?i:r,[e]),j.delayedLeave&&j.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,u]):u()},leave:function(t,r){var i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();k(p,[t]);var o=!1,a=t._leaveCb=function(n){o||(o=!0,r(),k(n?m:h,[t]),t._leaveCb=void 0,S[i]===e&&delete S[i])};S[i]=e,v?x(v,[t,a]):a()},clone:function(e){return Ve(e,t,n,r)}};return j}function Be(e){if(Ge(e))return(e=Wn(e)).children=null,e}function De(e){return Ge(e)?e.children?e.children[0]:void 0:e}function Ue(e,t){6&e.shapeFlag&&e.component?Ue(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(!(Ln(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;var i=tt(r),o=i.type,a=wr(He(i)?i.type.__asyncResolved||{}:o),l=e.include,f=e.exclude,d=e.max;if(l&&(!a||!qe(l,a))||f&&a&&qe(f,a))return s=i,r;var p=null==i.key?o:i.key,v=u.get(p);return i.el&&(i=Wn(i),128&r.shapeFlag&&(r.ssContent=i)),b=p,v?(i.el=v.el,i.component=v.component,i.transition&&Ue(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,ye(r.type)?r:i}}};function qe(e,t){return Object(i.isArray)(e)?e.some((function(e){return qe(e,t)})):Object(i.isString)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Je(e,t){Ze(e,"a",t)}function Xe(e,t){Ze(e,"da",t)}function Ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rr,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(nt(t,r,n),n)for(var i=n.parent;i&&i.parent;)Ge(i.parent.vnode)&&Qe(r,t,n,i),i=i.parent}function Qe(e,t,n,r){var o=nt(t,e,r,!0);st((function(){Object(i.remove)(r[t],o)}),n)}function et(e){var t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function tt(e){return 128&e.shapeFlag?e.ssContent:e}function nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rr,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)(),or(n);for(var i=arguments.length,o=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:rr;return(!lr||"sp"===e)&&nt(e,t,n)}},it=rt("bm"),ot=rt("m"),at=rt("bu"),ut=rt("u"),ct=rt("bum"),st=rt("um"),lt=rt("sp"),ft=rt("rtg"),dt=rt("rtc");function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rr;nt("ec",e,t)}function vt(e,t){var n=re;if(null===n)return e;for(var r=gr(n)||n.proxy,o=e.dirs||(e.dirs=[]),u=0;u3&&void 0!==arguments[3]&&arguments[3],r=re||rr;if(r){var o=r.type;if("components"===e){var a=wr(o,!1);if(a&&(a===t||a===Object(i.camelize)(t)||a===Object(i.capitalize)(Object(i.camelize)(t))))return o}var u=wt(r[e]||o[e],t)||wt(r.appContext[e],t);return!u&&n?o:u}}function wt(e,t){return e&&(e[t]||e[Object(i.camelize)(t)]||e[Object(i.capitalize)(Object(i.camelize)(t))])}function _t(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(re.isCE||re.parent&&He(re.parent)&&re.parent.isCE)return $n("slot","default"===t?null:{name:t},r&&r());var o=e[t];o&&o._c&&(o._d=!1),Nn();var a=o&&xt(o(n)),u=Rn(_n,{key:n.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 xt(e){return e.some((function(e){return!Ln(e)||e.type!==kn&&!(e.type===_n&&!xt(e.children))}))?e:null}function jt(e){var t={};for(var n in e)t[Object(i.toHandlerKey)(n)]=e[n];return t}var Et=function e(t){return t?ur(t)?gr(t)||t.proxy:e(t.parent):null},Nt=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 Et(e.parent)},$root:function(e){return Et(e.root)},$emit:function(e){return e.emit},$options:function(e){return __VUE_OPTIONS_API__?Lt(e):e.type},$forceUpdate:function(e){return e.f||(e.f=function(){return I(e.update)})},$nextTick:function(e){return e.n||(e.n=P.bind(e.proxy))},$watch:function(e){return __VUE_OPTIONS_API__?Ae.bind(e):i.NOOP}}),Tt={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(u!==i.EMPTY_OBJ&&Object(i.hasOwn)(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__&&!At||(l[t]=0)}}var v,h,y=Nt[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 a!==i.EMPTY_OBJ&&Object(i.hasOwn)(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)||a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t)||(n=l[0])&&Object(i.hasOwn)(n,t)||Object(i.hasOwn)(c,t)||Object(i.hasOwn)(Nt,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 Ct=Object(i.extend)({},Tt,{get:function(e,t){if(t!==Symbol.unscopables)return Tt.get(e,t,e)},has:function(e,t){var n="_"!==t[0]&&!Object(i.isGloballyWhitelisted)(t);return n}});var At=!0;function Pt(e){var t=Lt(e),n=e.proxy,o=e.ctx;At=!1,t.beforeCreate&&It(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),w=t.render,_=t.renderTracked,S=t.renderTriggered,k=t.errorCaptured,x=t.serverPrefetch,j=t.expose,E=t.inheritAttrs,N=t.components,T=t.directives;t.filters;if(f&&function(e,t){arguments.length>2&&void 0!==arguments[2]||i.NOOP;var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object(i.isArray)(e)&&(e=Bt(e));var o=function(){var o,u=e[a];o=Object(i.isObject)(u)?"default"in u?ke(u.from||a,u.default,!0):ke(u.from||a):ke(u),Object(r.isRef)(o)&&n?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:function(){return o.value},set:function(e){return o.value=e}}):t[a]=o};for(var a in e)o()}(f,o,null,e.appContext.config.unwrapInjectedRef),c)for(var C in c){var A=c[C];Object(i.isFunction)(A)&&(o[C]=A.bind(n))}if(a){0;var P=a.call(n,n);if(Object(i.isObject)(P))e.data=Object(r.reactive)(P);else;}if(At=!0,u){var I=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=kr({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)I(R)}if(s)for(var L in s)Rt(s[L],o,n,L);if(l){var M=Object(i.isFunction)(l)?l.call(n):l;Reflect.ownKeys(M).forEach((function(e){Se(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&&It(d,e,"c"),F(it,p),F(ot,v),F(at,h),F(ut,y),F(Je,m),F(Xe,g),F(pt,k),F(dt,_),F(ft,S),F(ct,b),F(st,O),F(lt,x),Object(i.isArray)(j))if(j.length){var V=e.exposed||(e.exposed={});j.forEach((function(e){Object.defineProperty(V,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})}))}else e.exposed||(e.exposed={});w&&e.render===i.NOOP&&(e.render=w),null!=E&&(e.inheritAttrs=E),N&&(e.components=N),T&&(e.directives=T)}function It(e,t,n){y(Object(i.isArray)(e)?e.map((function(e){return e.bind(t.proxy)})):e.bind(t.proxy),t,n)}function Rt(e,t,n,r){var o=r.includes(".")?Pe(n,r):function(){return n[r]};if(Object(i.isString)(e)){var a=t[e];Object(i.isFunction)(a)&&Te(o,a)}else if(Object(i.isFunction)(e))Te(o,e.bind(n));else if(Object(i.isObject)(e))if(Object(i.isArray)(e))e.forEach((function(e){return Rt(e,t,n,r)}));else{var u=Object(i.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(i.isFunction)(u)&&Te(o,u,e)}else 0}function Lt(e){var t,n=e.type,r=n.mixins,i=n.extends,o=e.appContext,a=o.mixins,u=o.optionsCache,c=o.config.optionMergeStrategies,s=u.get(n);return s?t=s:a.length||r||i?(t={},a.length&&a.forEach((function(e){return Mt(t,e,c,!0)})),Mt(t,n,c)):t=n,u.set(n,t),t}function Mt(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&&Mt(e,o,n,!0),i&&i.forEach((function(t){return Mt(e,t,n,!0)})),t)if(r&&"expose"===a);else{var u=Ft[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Ft={data:Vt,props:Ut,emits:Ut,methods:Ut,computed:Ut,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:Ut,directives:Ut,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]=Dt(e[r],t[r]);return n},provide:Vt,inject:function(e,t){return Ut(Bt(e),Bt(t))}};function Vt(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 Bt(e){if(Object(i.isArray)(e)){for(var t={},n=0;n3&&void 0!==arguments[3]&&arguments[3],a={},u={};for(var c in Object(i.def)(u,Vn,1),e.propsDefaults=Object.create(null),zt(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 zt(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:ne(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(Wt(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 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 w=[s,l];return r.set(e,w),w}function Yt(e){return"$"!==e[0]}function Gt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Kt(e,t){return Gt(e)===Gt(t)}function qt(e,t){return Object(i.isArray)(t)?t.findIndex((function(t){return Kt(t,e)})):Object(i.isFunction)(t)&&Kt(t,e)?0:-1}var Jt=function(e){return"_"===e[0]||"$stable"===e},Xt=function(e){return Object(i.isArray)(e)?e.map(qn):[qn(e)]},Zt=function(e,t,n){var r=e._ctx,o=function(){if(Jt(a))return"continue";var n=e[a];if(Object(i.isFunction)(n))t[a]=function(e,t,n){if(t._n)return t;var r=se((function(){return Xt(t.apply(void 0,arguments))}),n);return r._c=!1,r}(0,n,r);else if(null!=n){0;var o=Xt(n);t[a]=function(){return o}}};for(var a in e)o()},Qt=function(e,t){var n=Xt(t);e.slots.default=function(){return n}},en=function(e,t){if(32&e.vnode.shapeFlag){var n=t._;n?(e.slots=Object(r.toRaw)(t),Object(i.def)(t,"_",n)):Zt(t,e.slots={})}else e.slots={},t&&Qt(e,t);Object(i.def)(e.slots,Vn,1)};function tn(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var nn=0;function rn(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object(i.isFunction)(n)||(n=Object.assign({},n)),null==r||Object(i.isObject)(r)||(r=null);var o=tn(),a=new Set,u=!1,c=o.app={_uid:nn++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Ur,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;r4&&void 0!==arguments[4]&&arguments[4];if(Object(i.isArray)(e))e.forEach((function(e,r){return on(e,t&&(Object(i.isArray)(t)?t[r]:t),n,o,a)}));else if(!He(o)||a){var u=4&o.shapeFlag?gr(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))h(l,s,12,[c,d]);else{var v=Object(i.isString)(l),y=Object(r.isRef)(l);if(v||y){var m=function(){if(e.f){var t=v?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)):y&&(l.value=c,e.k&&(d[e.k]=c))};c?(m.id=-1,ln(m,n)):m()}else 0}}}var an=!1,un=function(e){return/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName},cn=function(e){return 8===e.nodeType};function sn(e){var t=e.mt,n=e.p,r=e.o,o=r.patchProp,a=r.createText,u=r.nextSibling,c=r.parentNode,s=r.remove,l=r.insert,f=r.createComment,d=function n(r,i,o,s,f){var d=arguments.length>5&&void 0!==arguments[5]&&arguments[5],g=cn(r)&&"["===r.data,b=function(){return y(r,i,o,s,f,g)},O=i.type,w=i.ref,_=i.shapeFlag,S=i.patchFlag,k=r.nodeType;i.el=r,-2===S&&(d=!1,i.dynamicChildren=null);var x=null;switch(O){case Sn:3!==k?""===i.children?(l(i.el=a(""),c(r),r),x=r):x=b():(r.data!==i.children&&(an=!0,r.data=i.children),x=u(r));break;case kn:x=8!==k||g?b():u(r);break;case xn:if(1===k||3===k){x=r;for(var j=!i.children.length,E=0;E3&&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],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&&!Mn(e,t)&&(r=ae(e),ee(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 Sn:x(e,t,n,r);break;case kn:j(e,t,n,r);break;case xn:null==e&&E(t,n,r,a);break;case _n:D(e,t,n,r,i,o,a,u,c);break;default:1&f?C(e,t,n,r,i,o,a,u,c):6&f?U(e,t,n,r,i,o,a,u,c):(64&f||128&f)&&s.process(e,t,n,r,i,o,a,u,c,ce)}null!=l&&i&&on(l,e&&e.ref,o,t||e,!t)}},x=function(e,t,n,r){if(null==e)c(t.el=d(t.children),n,r);else{var i=t.el=e.el;t.children!==e.children&&v(i,t.children)}},j=function(e,t,n,r){null==e?c(t.el=p(t.children||""),n,r):t.el=e.el},E=function(e,t,n,r){var i=a(S(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=m(i),c(i,t,n),i=r;c(o,t,n)},T=function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=m(n),s(n),n=t;s(r)},C=function(e,t,n,r,i,o,a,u,c){a=a||"svg"===t.type,null==e?A(t,n,r,i,o,a,u,c):L(e,t,i,o,a,u,c)},A=function(e,t,n,r,o,a,u,s){var d,p,v=e.type,y=e.props,m=e.shapeFlag,g=e.transition,b=e.patchFlag,w=e.dirs;if(e.el&&void 0!==O&&-1===b)d=e.el=O(e.el);else{if(d=e.el=f(e.type,a,y&&y.is,y),8&m?h(d,e.children):16&m&&R(e.children,d,null,r,o,a&&"foreignObject"!==v,u,s),w&&ht(e,null,r,"created"),y){for(var _ in y)"value"===_||Object(i.isReservedProp)(_)||l(d,_,null,y[_],a,e.children,r,o,oe);"value"in y&&l(d,"value",null,y.value),(p=y.onVnodeBeforeMount)&&Qn(p,r,e)}P(d,e,e.scopeId,u,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1})),w&&ht(e,null,r,"beforeMount");var S=(!o||o&&!o.pendingBranch)&&g&&!g.persisted;S&&g.beforeEnter(d),c(d,t,n),((p=y&&y.onVnodeMounted)||S||w)&&ln((function(){p&&Qn(p,r,e),S&&g.enter(d),w&&ht(e,null,r,"mounted")}),o)},P=function e(t,n,r,i,o){if(r&&b(t,r),i)for(var a=0;a8&&void 0!==arguments[8]?arguments[8]:0,s=c;s0){if(16&s)F(c,t,v,y,n,r,o);else if(2&s&&v.class!==y.class&&l(c,"class",null,y.class,o),4&s&&l(c,"style",v.style,y.style,o),8&s)for(var g=t.dynamicProps,b=0;b0&&64&p&&v&&e.dynamicChildren?(M(e.dynamicChildren,v,n,i,o,a,u),(null!=t.key||i&&t===i.subTree)&&hn(e,t,!0)):G(e,t,n,f,i,o,a,u,s)},U=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):$(t,n,r,i,o,a,c):z(e,t,c)},$=function(e,t,n,r,i,o,a){var u=e.component=nr(e,r,i);if(Ge(e)&&(u.ctx.renderer=ce),fr(u),u.asyncDep){if(i&&i.registerDep(u,H),!e.el){var c=u.subTree=$n(kn);j(null,c,t,n)}}else H(u,e,t,n,i,o,a)},z=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||ve(r,a,s):!!a);if(1024&c)return!0;if(16&c)return r?ve(r,a,s):!!a;if(8&c)for(var l=t.dynamicProps,f=0;f_&&w.splice(i,1),o.update()}else t.el=e.el,o.vnode=t},H=function(e,t,n,o,a,c,s){var l=e.effect=new r.ReactiveEffect((function(){if(e.isMounted){var r,l=e.next,f=e.bu,d=e.u,p=e.parent,v=e.vnode,h=l;0,vn(e,!1),l?(l.el=v.el,W(e,l,s)):l=v,f&&Object(i.invokeArrayFns)(f),(r=l.props&&l.props.onVnodeBeforeUpdate)&&Qn(r,p,l,v),vn(e,!0);var m=le(e);0;var g=e.subTree;e.subTree=m,k(g,m,y(g.el),ae(g),e,a,c),l.el=m.el,null===h&&he(e,m.el),d&&ln(d,a),(r=l.props&&l.props.onVnodeUpdated)&&ln((function(){return Qn(r,p,l,v)}),a),__VUE_PROD_DEVTOOLS__&&J(e)}else{var b,O=t,w=O.el,_=O.props,S=e.bm,x=e.m,j=e.parent,E=He(t);if(vn(e,!1),S&&Object(i.invokeArrayFns)(S),!E&&(b=_&&_.onVnodeBeforeMount)&&Qn(b,j,t),vn(e,!0),w&&u){var N=function(){e.subTree=le(e),u(w,e.subTree,e,a,null)};E?t.type.__asyncLoader().then((function(){return!e.isUnmounted&&N()})):N()}else{0;var T=e.subTree=le(e);0,k(null,T,n,o,e,a,c),t.el=T.el}if(x&&ln(x,a),!E&&(b=_&&_.onVnodeMounted)){var C=t;ln((function(){return Qn(b,j,C)}),a)}(256&t.shapeFlag||j&&He(j.vnode)&&256&j.vnode.shapeFlag)&&e.a&&ln(e.a,a),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&q(e),t=n=o=null}}),(function(){return I(f)}),e.scope),f=e.update=function(){return l.run()};f.id=e.uid,vn(e,!0),f()},W=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 zt(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]=Ht(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 Z(s,f,n,r,i,o,a,u,c);if(256&d)return void K(s,f,n,r,i,o,a,u,c)}8&p?(16&l&&oe(s,i,o),f!==s&&h(n,f)):16&l?16&p?Z(s,f,n,r,i,o,a,u,c):oe(s,i,o,!0):(8&l&&h(n,""),16&p&&R(f,n,r,i,o,a,u,c))},K=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?oe(e,o,a,!0,!1,p):R(t,n,r,o,a,u,c,s,p)},Z=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?Jn(t[l]):qn(t[l]);if(!Mn(v,h))break;k(v,h,n,null,o,a,u,c,s),l++}for(;l<=d&&l<=p;){var y=e[d],m=t[p]=s?Jn(t[p]):qn(t[p]);if(!Mn(y,m))break;k(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;)ee(e[l],o,a,!0),l++;else{var O,w=l,_=l,S=new Map;for(l=_;l<=p;l++){var x=t[l]=s?Jn(t[l]):qn(t[l]);null!=x.key&&S.set(x.key,l)}var j=0,E=p-_+1,N=!1,T=0,C=new Array(E);for(l=0;l=E)ee(A,o,a,!0);else{var P=void 0;if(null!=A.key)P=S.get(A.key);else for(O=_;O<=p;O++)if(0===C[O-_]&&Mn(A,t[O])){P=O;break}void 0===P?ee(A,o,a,!0):(C[P-_]=l+1,P>=T?T=P:N=!0,k(A,t[P],n,null,o,a,u,c,s),j++)}}var I=N?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}(C):i.EMPTY_ARR;for(O=I.length-1,l=E-1;l>=0;l--){var R=_+l,L=t[R],M=R+14&&void 0!==arguments[4]?arguments[4]:null,a=t.el,u=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)u.move(t,n,r,ce);else if(u!==_n)if(u!==xn){var d=2!==i&&1&f&&s;if(d)if(0===i)s.beforeEnter(a),c(a,n,r),ln((function(){return s.enter(a)}),o);else{var p=s.leave,v=s.delayLeave,h=s.afterLeave,y=function(){return c(a,n,r)},m=function(){p(a,(function(){y(),h&&h()}))};v?v(a,y,m):m()}else c(a,n,r)}else N(t,n,r);else{c(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&&on(u,null,n,e,!0),256&l)t.ctx.deactivate(e);else{var p,v=1&l&&d,h=!He(e);if(h&&(p=a&&a.onVnodeBeforeUnmount)&&Qn(p,t,e),6&l)ie(e.component,n,r);else{if(128&l)return void e.suspense.unmount(n,r);v&&ht(e,null,t,"beforeUnmount"),64&l?e.type.remove(e,t,n,i,ce,r):s&&(o!==_n||f>0&&64&f)?oe(s,t,n,!1,!0):(o===_n&&384&f||!i&&16&l)&&oe(c,t,n),r&&te(e)}(h&&(p=a&&a.onVnodeUnmounted)||v)&&ln((function(){p&&Qn(p,t,e),v&&ht(e,null,t,"unmounted")}),n)}},te=function(e){var t=e.type,n=e.el,r=e.anchor,i=e.transition;if(t!==_n)if(t!==xn){var o=function(){s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var a=i.leave,u=i.delayLeave,c=function(){return a(n,o)};u?u(e.el,o,c):c()}else o()}else T(e);else re(n,r)},re=function(e,t){for(var n;e!==t;)n=m(e),s(e),e=n;s(t)},ie=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,ee(u,e,t,n)),c&&ln(c,t),ln((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()),__VUE_PROD_DEVTOOLS__&&X(e)},oe=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||mn(f))&&16&s)for(var p=0;p0&&void 0!==arguments[0]&&arguments[0];jn.push(En=e?null:[])}function Tn(){jn.pop(),En=jn[jn.length-1]||null}var Cn=1;function An(e){Cn+=e}function Pn(e){return e.dynamicChildren=Cn>0?En||i.EMPTY_ARR:null,Tn(),Cn>0&&En&&En.push(e),e}function In(e,t,n,r,i,o){return Pn(Un(e,t,n,r,i,o,!0))}function Rn(e,t,n,r,i){return Pn($n(e,t,n,r,i,!0))}function Ln(e){return!!e&&!0===e.__v_isVNode}function Mn(e,t){return e.type===t.type&&e.key===t.key}function Fn(e){e}var Vn="__vInternal",Bn=function(e){var t=e.key;return null!=t?t:null},Dn=function(e){var t=e.ref,n=e.ref_key,o=e.ref_for;return null!=t?Object(i.isString)(t)||Object(r.isRef)(t)||Object(i.isFunction)(t)?{i:re,r:t,k:n,f:!!o}:t:null};function Un(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===_n?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&&Bn(t),ref:t&&Dn(t),scopeId:ie,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};return c?(Xn(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=Object(i.isString)(n)?8:16),Cn>0&&!u&&En&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&En.push(s),s}var $n=zn;function zn(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!==mt||(e=kn),Ln(e)){var c=Wn(e,t,!0);return n&&Xn(c,n),Cn>0&&!u&&En&&(6&c.shapeFlag?En[En.indexOf(e)]=c:En.push(c)),c.patchFlag|=-2,c}if(Sr(e)&&(e=e.__vccOpts),t){var s=t=Hn(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:ye(e)?128:yn(e)?64:Object(i.isObject)(e)?4:Object(i.isFunction)(e)?2:0;return Un(e,t,n,o,a,d,u,!0)}function Hn(e){return e?Object(r.isProxy)(e)||Vn in e?Object(i.extend)({},e):e:null}function Wn(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?Zn(r||{},t):r,s={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Bn(c),ref:t&&t.ref?n&&o?Object(i.isArray)(o)?o.concat(Dn(t)):[o,Dn(t)]:Dn(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!==_n?-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&&Wn(e.ssContent),ssFallback:e.ssFallback&&Wn(e.ssFallback),el:e.el,anchor:e.anchor};return s}function Yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return $n(Sn,null,e,t)}function Gn(e,t){var n=$n(xn,null,e);return n.staticCount=t,n}function Kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(Nn(),Rn(kn,null,e)):$n(kn,null,e)}function qn(e){return null==e||"boolean"==typeof e?$n(kn):Object(i.isArray)(e)?$n(_n,null,e.slice()):"object"===o(e)?Jn(e):$n(Sn,null,String(e))}function Jn(e){return null===e.el||e.memo?e:Wn(e)}function Xn(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),Xn(e,a()),a._c&&(a._d=!0)))}n=32;var u=t._;u||Vn in t?3===u&&re&&(1===re.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=re}else Object(i.isFunction)(t)?(t={default:t,_ctx:re},n=32):(t=String(t),64&r?(n=16,t=[Yn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zn(){for(var e={},t=0;t3&&void 0!==arguments[3]?arguments[3]:null;y(e,t,7,[n,r])}var er=tn(),tr=0;function nr(e,t,n){var o=e.type,a=(t?t.appContext:e.appContext)||er,u={uid:tr++,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:Wt(o,a),emitsOptions:te(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,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=ee.bind(null,u),e.ce&&e.ce(u),u}var rr=null,ir=function(){return rr||re},or=function(e){rr=e,e.scope.on()},ar=function(){rr&&rr.scope.off(),rr=null};function ur(e){return 4&e.vnode.shapeFlag}var cr,sr,lr=!1;function fr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];lr=t;var n=e.vnode,r=n.props,i=n.children,o=ur(e);$t(e,r,o,t),en(e,i);var a=o?dr(e,t):void 0;return lr=!1,a}function dr(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=Object(r.markRaw)(new Proxy(e.ctx,Tt));var o=n.setup;if(o){var a=e.setupContext=o.length>1?mr(e):null;or(e),Object(r.pauseTracking)();var u=h(o,e,0,[e.props,a]);if(Object(r.resetTracking)(),ar(),Object(i.isPromise)(u)){if(u.then(ar,ar),t)return u.then((function(n){pr(e,n,t)})).catch((function(t){m(t,e,0)}));e.asyncDep=u}else pr(e,u,t)}else yr(e,t)}function pr(e,t,n){Object(i.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(i.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Object(r.proxyRefs)(t)),yr(e,n)}function vr(e){cr=e,sr=function(e){e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ct))}}var hr=function(){return!cr};function yr(e,t,n){var o=e.type;if(!e.render){if(!t&&cr&&!o.render){var a=o.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=cr(a,d)}}e.render=o.render||i.NOOP,sr&&sr(e)}__VUE_OPTIONS_API__&&(or(e),Object(r.pauseTracking)(),Pt(e),Object(r.resetTracking)(),ar())}function mr(e){var t;return{get attrs(){return t||(t=function(e){return 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 gr(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 Nt?Nt[n](e):void 0}}))}var br=/(?:^|[-_])(\w)/g,Or=function(e){return e.replace(br,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};function wr(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 _r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=wr(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?Or(r):n?"App":"Anonymous"}function Sr(e){return Object(i.isFunction)(e)&&"__vccOpts"in e}var kr=function(e,t){return Object(r.computed)(e,t,lr)};function xr(){return null}function jr(){return null}function Er(e){0}function Nr(e,t){return null}function Tr(){return Ar().slots}function Cr(){return Ar().attrs}function Ar(){var e=ir();return e.setupContext||(e.setupContext=mr(e))}function Pr(e,t){var n=Object(i.isArray)(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var r in t){var o=n[r];o?Object(i.isArray)(o)||Object(i.isFunction)(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(n[r]={default:t[r]})}return n}function Ir(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 Rr(e){var t=ir();var n=e();return ar(),Object(i.isPromise)(n)&&(n=n.catch((function(e){throw or(t),e}))),[n,function(){return or(t)}]}function Lr(e,t,n){var r=arguments.length;return 2===r?Object(i.isObject)(t)&&!Object(i.isArray)(t)?Ln(t)?$n(e,null,[t]):$n(e,t):$n(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Ln(n)&&(n=[n]),$n(e,t,n))}var Mr=Symbol(""),Fr=function(){var e=ke(Mr);return e||d("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e};function Vr(){return void 0}function Br(e,t,n,r){var i=n[r];if(i&&Dr(i,e))return i;var o=t();return o.memo=e.slice(),n[r]=o}function Dr(e,t){var n=e.memo;if(n.length!=t.length)return!1;for(var r=0;r0&&En&&En.push(e),!0}var Ur="3.2.37",$r={createComponentInstance:nr,setupComponent:fr,renderComponentRoot:le,setCurrentRenderingInstance:oe,isVNode:Ln,normalizeVNode:qn},zr=null,Hr=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){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)}function i(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 o(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)||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 a(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);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")}var p="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",v=c(p),h=c(p+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function y(e){return!!e||""===e}var m=/[>/="'\u0009\u000a\u000c\u0020]/,g={};function b(e){if(g.hasOwnProperty(e))return g[e];var t=m.test(e);return t&&console.error("unsafe attribute name: ".concat(e)),g[e]=!t}var O={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},w=c("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),_=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,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"),S=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,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function k(e){if(ee(e)){for(var t={},n=0;n1&&(t[n[0].trim()]=n[1].trim())}})),t}function N(e){var t="";if(!e||oe(e))return t;for(var n in e){var r=e[n],i=n.startsWith("--")?n:Oe(n);(oe(r)||"number"==typeof r&&w(i))&&(t+="".concat(i,":").concat(r,";"))}return t}function T(e){var t="";if(oe(e))t=e;else if(ee(e))for(var n=0;n]/;function L(e){var t=""+e,n=R.exec(t);if(!n)return t;var r,i,o="",a=0;for(i=n.index;i||--!>|")]=o,e}),{})}:ne(n)?{["Set(".concat(n.size,")")]:o(n.values())}:!ue(n)||ee(n)||de(n)?n:String(n)},z={},H=[],W=function(){},Y=function(){return!1},G=/^on[^a-z]/,K=function(e){return G.test(e)},q=function(e){return e.startsWith("onUpdate:")},J=Object.assign,X=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},Z=Object.prototype.hasOwnProperty,Q=function(e,t){return Z.call(e,t)},ee=Array.isArray,te=function(e){return"[object Map]"===le(e)},ne=function(e){return"[object Set]"===le(e)},re=function(e){return"[object Date]"===le(e)},ie=function(e){return"function"==typeof e},oe=function(e){return"string"==typeof e},ae=function(e){return"symbol"===r(e)},ue=function(e){return null!==e&&"object"===r(e)},ce=function(e){return ue(e)&&ie(e.then)&&ie(e.catch)},se=Object.prototype.toString,le=function(e){return se.call(e)},fe=function(e){return le(e).slice(8,-1)},de=function(e){return"[object Object]"===le(e)},pe=function(e){return oe(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},ve=c(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),he=c("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ye=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},me=/-(\w)/g,ge=ye((function(e){return e.replace(me,(function(e,t){return t?t.toUpperCase():""}))})),be=/\B([A-Z])/g,Oe=ye((function(e){return e.replace(be,"-$1").toLowerCase()})),we=ye((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),_e=ye((function(e){return e?"on".concat(we(e)):""})),Se=function(e,t){return!Object.is(e,t)},ke=function(e,t){for(var n=0;n1)for(var n=1;n renderManager; + /** * Create A HippyBridge instance * diff --git a/framework/ios/base/bridge/HippyBridge.mm b/framework/ios/base/bridge/HippyBridge.mm index abb5ed04536..94cf5f30d6b 100644 --- a/framework/ios/base/bridge/HippyBridge.mm +++ b/framework/ios/base/bridge/HippyBridge.mm @@ -74,7 +74,7 @@ NSString *const HippyJavaScriptDidLoadNotification = @"HippyJavaScriptDidLoadNotification"; NSString *const HippyJavaScriptDidFailToLoadNotification = @"HippyJavaScriptDidFailToLoadNotification"; NSString *const HippyDidInitializeModuleNotification = @"HippyDidInitializeModuleNotification"; -NSString *const HippySDKVersion = @"3.0.0"; +NSString *const HippySDKVersion = @"3.0.1"; typedef NS_ENUM(NSUInteger, HippyBridgeFields) { HippyBridgeFieldRequestModuleIDs = 0, diff --git a/framework/ios/base/executors/HippyJSExecutor.mm b/framework/ios/base/executors/HippyJSExecutor.mm index 090270e1e54..bf289863925 100644 --- a/framework/ios/base/executors/HippyJSExecutor.mm +++ b/framework/ios/base/executors/HippyJSExecutor.mm @@ -354,8 +354,7 @@ - (void)invalidate { if (!enginekey) { return; } - // TODO(etkmao): delay is temporarily used for testing jsc crash - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + dispatch_async(dispatch_get_main_queue(), ^{ [[HippyJSEnginesMapper defaultInstance] removeEngineResourceForKey:enginekey]; }); } diff --git a/framework/voltron/example/assets/jsbundle/react/vendor.android.js b/framework/voltron/example/assets/jsbundle/react/vendor.android.js index 072541819f3..2823cd1722b 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} /*! - * @hippy/react v3.0.0 - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * @hippy/react v3.0.1 + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -20,7 +20,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage: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.0.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.0.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();e&&(I.push(o.a.createElement(bn,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0)}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=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.0.1"]%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.0.1";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();e&&(I.push(o.a.createElement(bn,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0)}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){ /** @license React v0.26.2 * react-reconciler.production.min.js * diff --git a/framework/voltron/example/assets/jsbundle/vue2/index.android.js b/framework/voltron/example/assets/jsbundle/vue2/index.android.js index 9b185722fc8..6bec4c389d8 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,i=t[0],s=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 i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function i(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let s;function n(){return s}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return(c="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 d(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var o=a.call(e,t||"default");if("object"!==c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}function p(e,t,a){return(t=d(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function u(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function y(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}a.d(t,"a",(function(){return he})), /*! - * @hippy/vue-router v3.0.0 - * (Using Vue v2.6.14 and Hippy-Vue v3.0.0) - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * @hippy/vue-router v3.0.1 + * (Using Vue v2.6.14 and Hippy-Vue v3.0.1) + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. diff --git a/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js b/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js index cbddb41e94c..d38b15c071b 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){ /*! - * @hippy/vue-native-components v3.0.0 - * (Using Vue v2.6.14 and Hippy-Vue v3.0.0) - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * @hippy/vue-native-components v3.0.1 + * (Using Vue v2.6.14 and Hippy-Vue v3.0.1) + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -24,9 +24,9 @@ var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports; */ 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 r(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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,"string");return"symbol"===o(t)?t:String(t)}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"AnimationComponent",(function(){return p})),n.d(t,"DialogComponent",(function(){return m})),n.d(t,"ListRefreshComponent",(function(){return v})),n.d(t,"PullsComponents",(function(){return w})),n.d(t,"SwiperComponent",(function(){return b})),n.d(t,"WaterfallComponent",(function(){return S})),n.d(t,"default",(function(){return O}));const a=["mode","valueType","startValue","toValue"],c=["transform"],l=["transform"];function u(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 d(e){for(var t=1;t=0?t.Native.parseColor(n):n}function r(t){const{mode:r="timing",valueType:c,startValue:l,toValue:u}=t,p=s(t,a),f=d(d({},n),p);void 0!==c&&(f.valueType=t.valueType),f.startValue=o(f.valueType,l),f.toValue=o(f.valueType,u),f.repeatCount=i(f.repeatCount),f.mode=r;const h=new e.Hippy.Animation(f),m=h.getId();return{animation:h,animationId:m}}function i(e){return"loop"===e?-1:e}function u(t,n={}){const o={};return Object.keys(t).forEach(s=>{if(Array.isArray(t[s])){const a=t[s],{repeatCount:c}=a[a.length-1],l=a.map(e=>{const{animationId:t,animation:o}=r(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:u,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(l,i(c));o[s]={animationId:u},Object.assign(n,{[u]:d})}else{const e=t[s],{animationId:i,animation:a}=r(e);Object.assign(n,{[i]:a}),o[s]={animationId:i}}}),o}function p(e){const{transform:t}=e,n=s(e,c);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=s(e.actions,l);this.animationIdsMap={};const o=u(n,this.animationIdsMap);if(t){const e=u(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=p(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&t.start()}))},resume(){p(this.style).forEach(e=>{const t=this.animationIdsMap[e];t&&t.resume()})},pause(){if(!this.$alreadyStarted)return;p(this.style).forEach(e=>{const t=this.animationIdsMap[e];t&&t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;p(this.style).forEach(e=>{const t=this.animationIdsMap[e];t&&t.destroy()})}},template:'\n \n \n \n '})}function f(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 h(e){for(var t=1;t{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+y(o)]?t[e]=this["on"+y(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+y(e)]?t[e]=this["on"+y(e)]:t[e]=t=>this.$emit(e,t))}),t}function v(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:g.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function b(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:g.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function w(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 _(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 $(e){for(var t=1;t({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: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(e){return e("hi-waterfall-item",{on:$({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const O={install(e){p(e),m(e),v(e),b(e),w(e),S(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){n.d(t,"default",(function(){return Qc})); /*! - * @hippy/vue v3.0.0 + * @hippy/vue v3.0.1 * (Using Vue v2.6.14) - * Build at: Thu Jun 29 2023 16:20:43 GMT+0800 (中国标准时间) + * Build at: Mon Aug 07 2023 19:38:18 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -46,4 +46,4 @@ function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterat * See the License for the specific language governing permissions and * limitations under the License. */ -const i=Object.freeze({});function s(e){return null==e}function a(e){return null!=e}function c(e){return!0===e}function l(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return null!==e&&"object"==typeof e}const d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function f(e){return"[object RegExp]"===d.call(e)}function h(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function y(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function g(e){const t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const b=v("slot,component",!0),w=v("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const $=Object.prototype.hasOwnProperty;function S(e,t){return $.call(e,t)}function O(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const x=/-(\w)/g,k=O(e=>e.replace(x,(e,t)=>t?t.toUpperCase():"")),E=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=/\B([A-Z])/g,C=O(e=>e.replace(N,"-$1").toLowerCase());const I=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 A(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 P(e,t){for(const n in t)e[n]=t[n];return e}function T(e,t,n){}const j=(e,t,n)=>!1,D=e=>e;function L(e,t){if(e===t)return!0;const n=u(e),o=u(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)=>L(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=>L(e[n],t[n]))}}catch(e){return!1}}function M(e,t){for(let n=0;n!1,ne=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){return"function"==typeof e&&/native code/.test(e.toString())}const re="undefined"!=typeof Symbol&&oe(Symbol)&&"undefined"!=typeof Reflect&&oe(Reflect.ownKeys);let ie;ie="undefined"!=typeof Set&&oe(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 se=T;let ae=0;class ce{constructor(){this.id=ae++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){_(this.subs,e)}depend(){ce.target&&ce.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new pe;return t.text=e,t.isComment=!0,t};function he(e){return new pe(void 0,void 0,void 0,String(e))}function me(e){const 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}const ye=Array.prototype,ge=Object.create(ye);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=ye[e];W(ge,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 ve=Object.getOwnPropertyNames(ge);let be=!0;function we(e){be=e}class _e{constructor(e){this.value=e,this.dep=new ce,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(Y?function(e,t){e.__proto__=t}(e,ge):function(e,t,n){for(let o=0,r=n.length;o{Ee[e]=Ie}),R.forEach((function(e){Ee[e+"s"]=Ae})),Ee.watch=function(e,t,n,o){if(e===Q&&(e=void 0),t===Q&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};P(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},Ee.props=Ee.methods=Ee.inject=Ee.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return P(r,e),t&&P(r,t),r},Ee.provide=Ce;const Pe=function(e,t){return void 0===t?e:t};function Te(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=k(i),o[s]={type:null});else if(p(n))for(const e in n)i=n[e],s=k(e),o[s]=p(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&&!S(r,"default"))s=!1;else if(""===s||s===C(e)){const e=Re(String,r.type);(e<0||aVe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ve(e,o,r)}return i}function Ue(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(t){t!==e&&He(t,null,"config.errorHandler")}He(e,t,n)}function He(e,t,n){if(!K&&!G||"undefined"==typeof console)throw e;console.error(e)}const We=[];let ze,Ye=!1;function Ke(){Ye=!1;const e=We.slice(0);We.length=0;for(let t=0;t{e.then(Ke),Z&&setTimeout(T)}}else if(J||"undefined"==typeof MutationObserver||!oe(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ze=void 0!==o&&oe(o)?()=>{o(Ke)}:()=>{setTimeout(Ke,0)};else{let e=1;const t=new MutationObserver(Ke),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),ze=()=>{e=(e+1)%2,n.data=String(e)}}function Ge(e,t){let n;if(We.push(()=>{if(e)try{e.call(t)}catch(e){Ve(e,t,"nextTick")}else n&&n(t)}),Ye||(Ye=!0,ze()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const qe=new ie;function Xe(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!u(t)||Object.isFrozen(t)||t instanceof pe)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,qe),qe.clear()}const Je=O(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 Ze(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Be(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),ot(i[0])&&ot(d)&&(o[u]=he(d.text+i[0].text),i.shift()),o.push.apply(o,i)):l(i)?ot(d)?o[u]=he(d.text+i):""!==i&&o.push(he(i)):ot(i)&&ot(d)?o[u]=he(d.text+i.text):(c(t._isVList)&&a(i.tag)&&s(i.key)&&a(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function ot(e){return a(e)&&a(e.text)&&!1===e.isComment}function rt(e,t){if(e){const n=Object.create(null),o=re?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,s=e?!!e.$stable:!r,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&n&&n!==i&&a===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=lt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=ut(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),W(o,"$stable",s),W(o,"$key",a),W(o,"$hasNormal",r),o}function lt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:nt(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!at(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function ut(e,t){return()=>e[t]}function dt(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||ct(e.scopedSlots,this.$slots=it(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ct(e.scopedSlots,this.slots())}}),l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ct(e.scopedSlots,this.$slots)),s._scopeId?this._c=(e,t,n,r)=>{const i=Tt(a,e,t,n,r,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=(e,t,n,o)=>Tt(a,e,t,n,o,u)}function Et(e,t,n,o,r){const i=me(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Nt(e,t){for(const n in t)e[k(n)]=t[n]}xt(kt.prototype);const Ct={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Ct.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;a(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Bt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const s=o.data.scopedSlots,a=e.$scopedSlots,c=!!(s&&!s.$stable||a!==i&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key),l=!!(r||e.$options._renderChildren||c);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||i,e.$listeners=n||i,t&&e.$options.props){we(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;r_(o,n));const l=e=>{for(let e=0,t=o.length;e{e.resolved=Lt(n,t),r?o.length=0:l(!0)}),p=F(t=>{a(e.errorComp)&&(e.error=!0,l(!0))}),f=e(d,p);return u(f)&&(m(f)?s(e.resolved)&&f.then(d,p):m(f.component)&&(f.component.then(d,p),a(f.error)&&(e.errorComp=Lt(f.error,t)),a(f.loading)&&(e.loadingComp=Lt(f.loading,t),0===f.delay?e.loading=!0:i=setTimeout(()=>{i=null,s(e.resolved)&&s(e.error)&&(e.loading=!0,l(!1))},f.delay||200)),a(f.timeout)&&(c=setTimeout(()=>{c=null,s(e.resolved)&&p(null)},f.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(d,l))))return function(e,t,n,o,r){const i=fe();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(d,t,n,o,r);t=t||{},un(e),a(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;a(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const p=function(e,t,n){const o=t.options.props;if(s(o))return;const r={},{attrs:i,props:c}=e;if(a(i)||a(c))for(const e in o){const t=C(e);0,tt(r,c,e,t,!0)||tt(r,i,e,t,!1)}return r}(t,e);if(c(e.options.functional))return function(e,t,n,o,r){const s=e.options,c={},l=s.props;if(a(l))for(const e in l)c[e]=De(e,l,t||i);else a(n.attrs)&&Nt(c,n.attrs),a(n.props)&&Nt(c,n.props);const u=new kt(n,c,r,o,e),d=s.render.call(null,u._c,u);if(d instanceof pe)return Et(d,n,u.parent,s,u);if(Array.isArray(d)){const e=nt(d)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Tt(e,t,n,o,r,i){return(Array.isArray(n)||l(n))&&(r=o,o=n,n=void 0),c(i)&&(r=2),function(e,t,n,o,r){if(a(n)&&a(n.__ob__))return fe();a(n)&&a(n.is)&&(t=n.is);if(!t)return fe();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=nt(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(Jt=()=>e.now())}function Zt(){let e,t;for(Jt(),qt=!0,zt.sort((e,t)=>e.id-t.id),Xt=0;XtXt&&zt[t].id>e.id;)t--;zt.splice(t+1,0,e)}else zt.push(e);Gt||(Gt=!0,Ge(Zt))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||u(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Be(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||_(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const tn={enumerable:!0,configurable:!0,get:T,set:T};function nn(e,t,n){tn.get=function(){return this[t][n]},tn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,tn)}function on(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&&we(!1);for(const i in t){r.push(i);const s=De(i,t,n,e);Se(o,i,s),i in e||nn(e,"_props",i)}we(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?T:I(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{de()}}(t,e):t||{},p(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&&S(o,t)||H(t)||nn(e,"_data",t)}$e(t,!0)}(e):$e(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 en(e,i||T,T,rn),o in e||sn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==Q&&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:!!f(e)&&e.test(t)}function mn(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)&&yn(n,e,o,r)}}}function yn(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,_(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=ln++,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=Te(un(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&&Vt(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=it(t._renderChildren,o),e.$scopedSlots=i,e._c=(t,n,o,r)=>Tt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Tt(e,t,n,o,r,!0);const r=n&&n.data;Se(e,"$attrs",r&&r.attrs||i,null,!0),Se(e,"$listeners",t._parentListeners||i,null,!0)}(t),Wt(t,"beforeCreate"),function(e){const t=rt(e.$options.inject,e);t&&(we(!1),Object.keys(t).forEach(n=>{Se(e,n,t[n])}),we(!0))}(t),on(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Wt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),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=Oe,e.prototype.$delete=xe,e.prototype.$watch=function(e,t,n){const o=this;if(p(t))return cn(o,e,t,n);(n=n||{}).user=!0;const r=new en(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ue(),Be(t,o,[r.value],o,e),de()}return function(){r.teardown()}}}(dn),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?A(n):n;const o=A(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Bt=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;Wt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(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),Wt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(dn),function(e){xt(e.prototype),e.prototype.$nextTick=function(e){return Ge(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ct(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Dt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ve(t,e,"render"),o=e._vnode}finally{Dt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof pe||(o=fe()),o.parent=n,o}}(dn);const gn=[String,RegExp,Array];var vn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:gn,exclude:gn,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:fn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&yn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)yn(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{mn(this,t=>hn(e,t))}),this.$watch("exclude",e=>{mn(this,t=>!hn(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tB};Object.defineProperty(e,"config",t),e.util={warn:se,extend:P,mergeOptions:Te,defineReactive:Se},e.set=Oe,e.delete=xe,e.nextTick=Ge,e.observable=e=>($e(e),e),e.options=Object.create(null),R.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,P(e.options.components,vn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=A(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=Te(this.options,e),this}}(e),pn(e),function(e){R.forEach(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:te}),Object.defineProperty(dn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:kt}),dn.version="2.6.14",v("style,class");const bn=v("input,textarea,option,select,progress");function wn(e){let t=e.data,n=e,o=e;for(;a(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=_n(o.data,t));for(;a(n=n.parent);)n&&n.data&&(t=_n(t,n.data));return function(e,t){if(a(e)||a(t))return $n(e,Sn(t));return""}(t.staticClass,t.class)}function _n(e,t){return{staticClass:$n(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function $n(e,t){return e?t?e+" "+t:e:t||""}function Sn(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&&En.test(t)||(l=!0)}}else void 0===r?(f=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(f,o).trim()),f=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==f&&h(),i)for(o=0;o{const t=e[0].replace(An,"\\$&"),n=e[1].replace(An,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Tn(e,t){console.error("[Vue compiler]: "+e)}function jn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Dn(e,t,n,o,r){(e.props||(e.props=[])).push(Wn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Ln(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Wn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Mn(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Wn({name:t,value:n},o))}function Fn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Wn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function Rn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Vn(e,t,n,o,r,s,a,c){let l;(o=o||i).right?c?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(c?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=Rn("!",t,c)),o.once&&(delete o.once,t=Rn("~",t,c)),o.passive&&(delete o.passive,t=Rn("&",t,c)),o.native?(delete o.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});const u=Wn({value:n.trim(),dynamic:c},a);o!==i&&(u.modifiers=o);const d=l[t];Array.isArray(d)?r?d.unshift(u):d.push(u):l[t]=d?r?[u,d]:[d,u]:u,e.plain=!1}function Bn(e,t,n){const o=Un(e,":"+t)||Un(e,"v-bind:"+t);if(null!=o)return Nn(o);if(!1!==n){const n=Un(e,t);if(null!=n)return JSON.stringify(n)}}function Un(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 Kn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Un(e,"style");n&&(e.staticStyle=JSON.stringify(Yn(n)));const o=Bn(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 Gn=function(e){return e};const qn=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Xn=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Jn=v("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"),Zn=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Qn=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,eo=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${U.source}]*`,to=`((?:${eo}\\:)?${eo})`,no=new RegExp("^<"+to),oo=/^\s*(\/?)>/,ro=new RegExp(`^<\\/${to}[^>]*>`),io=/^]+>/i,so=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},po=/&(?:lt|gt|quot|amp|#39);/g,fo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,ho=v("pre,textarea",!0),mo=(e,t)=>e&&ho(e)&&"\n"===t[0];function yo(e,t){const n=t?fo:po;return e.replace(n,e=>uo[e])}function go(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=vo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function vo(e,t){const n=function(e){if(e=e.trim(),bo=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,$o),key:'"'+e.slice($o+1)+'"'}:{exp:e,key:null};wo=e,$o=So=Oo=0;for(;!ko();)_o=xo(),Eo(_o)?Co(_o):91===_o&&No(_o);return{exp:e.slice(0,So),key:e.slice(So+1,Oo)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let bo,wo,_o,$o,So,Oo;function xo(){return wo.charCodeAt(++$o)}function ko(){return $o>=bo}function Eo(e){return 34===e||39===e}function No(e){let t=1;for(So=$o;!ko();)if(Eo(e=xo()))Co(e);else if(91===e&&t++,93===e&&t--,0===t){Oo=$o;break}}function Co(e){const t=e;for(;!ko()&&(e=xo())!==t;);}const Io=/^@|^v-on:/,Ao=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Po=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,To=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,jo=/^\(|\)$/g,Do=/^\[.*\]$/,Lo=/:(.*)$/,Mo=/^:|^\.|^v-bind:/,Fo=/^\./,Ro=/\.[^.\]]+(?=[^\]]*$)/g,Vo=/^v-slot(:|$)|^#/,Bo=/[\r\n]/,Uo=/[ \f\t\r\n]+/g,Ho=O(Gn);let Wo,zo,Yo,Ko,Go,qo,Xo,Jo,Zo;function Qo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:sr(t),rawAttrsMap:{},parent:n,children:[]}}function er(e,t){Wo=t.warn||Tn,qo=t.isPreTag||j,Xo=t.mustUseProp||j,Jo=t.getTagNamespace||j;const n=t.isReservedTag||j;Zo=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Yo=jn(t.modules,"transformNode"),Ko=jn(t.modules,"preTransformNode"),Go=jn(t.modules,"postTransformNode"),zo=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=tr(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&or(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&&or(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),qo(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,co(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),mo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,p(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(so.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(ao.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(io);if(n){l(n[0].length);continue}const o=e.match(ro);if(o){const e=c;l(o[0].length),p(o[1],e,c);continue}const r=u();if(r){d(r),mo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(ro.test(o)||no.test(o)||so.test(o)||ao.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(no);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(oo))&&(r=e.match(Qn)||e.match(Zn));)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&&Jn(s)&&p(a),i(s)&&a===s&&p(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))}p()}(e,{warn:Wo,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 p=a&&a.ns||Jo(e);J&&"svg"===p&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=Nn(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=Bn(n,"name")),function(e){let t;(t=Bn(e,"is"))&&(e.component=t);null!=Un(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function sr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Vn(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&&(${vo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${vo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${vo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Bn(e,"value")||"null";r=o?`_n(${r})`:r,Dn(e,"checked",`_q(${t},${r})`),Vn(e,"change",vo(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=vo(t,l);a&&(u="if($event.target.composing)return;"+u);Dn(e,"value",`(${t})`),Vn(e,c,u,null,!0),(s||i)&&Vn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!B.isReservedTag(i))return go(e,o,r),!1}return!0},text:function(e,t){t.value&&Dn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Dn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:qn,mustUseProp:(e,t,n)=>"value"===n&&bn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:Xn,isReservedTag:e=>On(e)||xn(e),getTagNamespace:function(e){return xn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(ur)};let fr,hr;const mr=O((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function yr(e,t){e&&(fr=mr(t.staticKeys||""),hr=t.isReservedTag||j,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||b(e.tag)||!hr(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(fr)))}(t),1===t.type){if(!hr(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,vr=/\([^)]*?\);*$/,br=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,wr={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},_r={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"]},$r=e=>`if(${e})return null;`,Sr={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:$r("$event.target !== $event.currentTarget"),ctrl:$r("!$event.ctrlKey"),shift:$r("!$event.shiftKey"),alt:$r("!$event.altKey"),meta:$r("!$event.metaKey"),left:$r("'button' in $event && $event.button !== 0"),middle:$r("'button' in $event && $event.button !== 1"),right:$r("'button' in $event && $event.button !== 2")};function Or(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=xr(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 xr(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>xr(e)).join(",")}]`;const t=br.test(e.value),n=gr.test(e.value),o=br.test(e.value.replace(vr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Sr[t])i+=Sr[t],wr[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=$r(["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(kr).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 kr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=wr[e],o=_r[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Er={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:T};class Nr{constructor(e){this.options=e,this.warn=e.warn||Tn,this.transforms=jn(e.modules,"transformCode"),this.dataGenFns=jn(e.modules,"genData"),this.directives=P(P({},Er),e.directives);const t=e.isReservedTag||j;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Cr(e,t){const n=new Nr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Ir(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Ir(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ar(e,t);if(e.once&&!e.onceProcessed)return Pr(e,t);if(e.for&&!e.forProcessed)return jr(e,t);if(e.if&&!e.ifProcessed)return Tr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Fr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Br((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:k(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:Fr(t,n,!0);return`_c(${e},${Dr(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Dr(e,t));const r=e.inlineTemplate?null:Fr(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||Lr(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=>Mr(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=Cr(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}",${Br(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Lr(e){return 1===e.type&&("slot"===e.tag||e.children.some(Lr))}function Mr(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Tr(e,t,Mr,"null");if(e.for&&!e.forProcessed)return jr(e,t,Mr);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Fr(e,t)||"undefined"}:undefined`:Fr(e,t)||"undefined":Ir(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Fr(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||Ir)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;oRr(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||Vr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function Rr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Vr(e,t){return 1===e.type?Ir(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:Ur(JSON.stringify(e.text))})`}(e)}function Br(e){let t="",n="";for(let o=0;oHr(e,c)),t[i]=a}}const zr=(Yr=function(e,t){const n=er(e.trim(),t);!1!==t.optimize&&yr(n,t);const o=Cr(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=P(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=Yr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Wr(t)}});var Yr;const{compile:Kr,compileToFunctions:Gr}=zr(pr);function qr(e){return(qr="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 Xr(e){var t=function(e,t){if("object"!==qr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==qr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qr(t)?t:String(t)}function Jr(e,t,n){return(t=Xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zr=`http://127.0.0.1:${r.env.PORT}/`;let Qr,ei,ti=e=>e,ni=()=>{};function oi(e){Qr=e}function ri(){return Qr}function ii(){return ti}const si=F(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ai(...e){ei&&ei.config.silent&&si()}function ci(e){return e.charAt(0).toUpperCase()+e.slice(1)}const li=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ui(e){return"[object Function]"===Object.prototype.toString.call(e)}function di(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function pi(e){return null==e}const fi=Symbol.for("View"),hi=Symbol.for("Image"),mi=Symbol.for("ListView"),yi=Symbol.for("ListViewItem"),gi=Symbol.for("Text"),vi=Symbol.for("TextInput"),bi=Symbol.for("WebView"),wi=Symbol.for("VideoPlayer"),_i={[fi]:"View",[hi]:"Image",[mi]:"ListView",[yi]:"ListViewItem",[gi]:"Text",[vi]:"TextInput",[bi]:"WebView",[wi]:"VideoPlayer"};function $i(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 Si(e){for(var t=1;t{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const xi={number:"numeric",text:"default",search:"web-search"},ki={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:fi,component:{name:_i[fi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:Si({},ki),processEventData(e,t,n){switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=n.contentOffset&&n.contentOffset.x,e.offsetY=n.contentOffset&&n.contentOffset.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}}},Ni={symbol:fi,component:Si(Si({},Ei.component),{},{name:_i[fi],defaultNativeStyle:{}})},Ci={symbol:fi,component:{name:_i[fi]}},Ii={symbol:hi,component:Si(Si({},Ei.component),{},{name:_i[hi],defaultNativeStyle:{backgroundColor:0},attributeMaps:Si({placeholder:{name:"defaultSource",propsValue(e){const t=di(e);return t&&t.indexOf(Zr)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>di(e)},ki),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}})},Ai={symbol:mi,component:{name:_i[mi],defaultNativeStyle:{flex:1},attributeMaps:Si({},ki),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=n.contentOffset&&n.contentOffset.x,e.offsetY=n.contentOffset&&n.contentOffset.y;break;case"onDelete":e.index=n.index}return e}}},Pi={symbol:yi,component:{name:_i[yi],attributeMaps:Si({},ki),eventNamesMap:Oi([["disappear","onDisappear"]])}},Ti={symbol:fi,component:Si(Si({},Ei.component),{},{name:_i[gi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},ji=Ti,Di=Ti,Li={component:Si(Si({},Ti.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Mi={symbol:vi,component:{name:_i[vi],attributeMaps:Si({type:{name:"keyboardType",propsValue(e){const t=xi[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ki),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}}},Fi={symbol:vi,component:{name:_i[vi],defaultNativeProps:Si(Si({},Mi.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:Si(Si({},Mi.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Mi.component.defaultNativeStyle,eventNamesMap:Mi.component.eventNamesMap,processEventData:Mi.component.processEventData}},Ri={symbol:bi,component:{name:_i[bi],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 Vi=Object.freeze({__proto__:null,button:Ni,div:Ei,form:Ci,img:Ii,input:Mi,label:ji,li:Pi,p:Di,span:Ti,a:Li,textarea:Fi,ul:Ai,iframe:Ri});function Bi(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 Ui(e){for(var t=1;te(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===ci(k(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 o&&o.meta&&(n=o.meta),n}function qi(e,t){return(qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xi(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&&qi(e,t)}const Ji={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},Zi=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,Qi="[-+]?\\d*\\.?\\d+",es={rgb:new RegExp("rgb"+Zi(Qi,Qi,Qi)),rgba:new RegExp("rgba"+Zi(Qi,Qi,Qi,Qi)),hsl:new RegExp("hsl"+Zi(Qi,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Zi(Qi,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Qi)),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})$/},ts=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ns=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},os=(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},rs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=os(r,o,e+1/3),s=os(r,o,e),a=os(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},is=e=>(parseFloat(e)%360+360)%360/360,ss=e=>{const t=parseFloat(e,10);return t<0?0:t>100?1:t/100};function as(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=es.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Ji,e)?Ji[e]:(t=es.rgb.exec(e),Array.isArray(t)?(ts(t[1])<<24|ts(t[2])<<16|ts(t[3])<<8|255)>>>0:(t=es.rgba.exec(e),t?(ts(t[1])<<24|ts(t[2])<<16|ts(t[3])<<8|ns(t[4]))>>>0:(t=es.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=es.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=es.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=es.hsl.exec(e),t?(255|rs(is(t[1]),ss(t[2]),ss(t[3])))>>>0:(t=es.hsla.exec(e),t?(rs(is(t[1]),ss(t[2]),ss(t[3]))|ns(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const cs={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"},ls=0,us=1,ds={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},ps={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const fs="addEventListener",hs="removeEventListener";function ms(){const e=Ua.Localization;return!!e&&1===e.direction}const ys=new Map;function gs(e){ys.delete(e)}function vs(e){return ys.get(e)||null}function bs(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?gs(t):t&&(gs(t.nodeId),t.childNodes&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}function ws(e=[],t=0){let n=e[t];for(let o=t;o{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ss={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*"},Os={};function xs(e,t,n){let o="";$s&&(o="gy"),Os[e]||(Os[e]=new RegExp(Ss[e],o));const r=Os[e];let i;if($s)r.lastIndex=n,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+i[0].length}return{result:i,regexp:r}}function ks(e,t){return function(e,t){const{result:n,regexp:o}=xs("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=xs("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}=xs("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 Es(e,t){let n=ks(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=ks(e,o);return{start:t,end:o,value:r}}function Ns(e,t){const{result:n,regexp:o}=xs("combinatorRegEx",e,t);if(!n)return null;let r;r=$s?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}function Cs(e){return e?` ${e} `:""}class Is{lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}}class As extends Is{accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}trackChanges(){return null}}class Ps extends As{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Cs(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.lookupSort(e,t||this)}removeSort(e,t){this.head.removeSort(e,t||this)}}class Ts extends As{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+Cs(this.combinator)}match(){return!0}}class js extends As{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Cs(this.combinator)}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,t||this)}removeSort(e,t){e.removeById(this.id,t||this)}}class Ds extends As{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${Cs(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,t||this)}removeSort(e,t){e.removeByType(this.cssType,t||this)}}class Ls extends As{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Cs(this.combinator)}`}match(e){return!!e&&(e.classList&&e.classList.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 Ms extends As{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Cs(this.combinator)}`}match(e){return!!e&&(e.cssPseudoClasses&&e.cssPseudoClasses.has(this.cssPseudoClass))}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const Fs=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Rs extends As{constructor(e,t,n){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?o=>{if(!o||!o.attributes)return!1;const r=""+Fs(o,e);if("="===t)return r===n;if("^="===t)return r.startsWith(n);if("$="===t)return r.endsWith(n);if("*="===t)return-1!==r.indexOf(n);if("~="===t){const e=r.split(" ");return e&&-1!==e.indexOf(n)}return"|="===t&&(r===n||r.startsWith(n+"-"))}:()=>!1:t=>!(!t||!t.attributes)&&!pi(Fs(t,e))}toString(){return`[${this.attribute}${Cs(this.test)}${this.test&&this.value||""}]${Cs(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Vs extends As{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Bs{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,o)=>{0!==o&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class Us{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,o)=>{0!==o&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class Hs extends Is{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],o=[];const r=[],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||r.push(o=[n=[]]),">"===s.combinator&&o.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=r.map(e=>new Bs(e.map(e=>new Us(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e){return!!e&&this.groups.every((t,n)=>{if(0===n)return!!(e=t.match(e));let o=e;for(;o=o.parentNode;)if(e=t.match(o))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);const n=[],o=this.groups.every((t,o)=>{if(0===o){const o=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=o)}let r=e;for(;r=r.parentNode;){const o=t.mayMatch(r);if(o)return n.push({left:r,right:null}),e=o,!0}return!1});if(!o)return!1;if(!t)return o;for(let e=0;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 zs{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 Ys{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.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 zs;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=>t.sel.ruleSet.hash===e.ruleSet.hash);-1!==t&&this.universal.splice(t)}addToMap(e,t,n){this.position+=1;const o=e[t];o?o.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>e.sel.ruleSet.hash===n.ruleSet.hash);-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function Ks(e){return"declaration"===e.type}function Gs(e){switch(e.type){case"*":return new Ts;case"#":return new js(e.identifier);case"":return new Ds(e.identifier.replace(/-/,"").toLowerCase());case".":return new Ls(e.identifier);case":":return new Ms(e.identifier);case"[]":return e.test?new Rs(e.property,e.test,e.value):new Rs(e.property);default:return null}}function qs(e){return 0===e.length?new Vs(new Error("Empty simple selector sequence.")):1===e.length?Gs(e[0]):new Ps(e.map(Gs))}function Xs(e){try{const t=function(e,t){let n=t;const{result:o,regexp:r}=xs("whiteSpaceRegEx",e,t);o&&(n=r.lastIndex);const i=[];let s,a,c=!0,l=[];return a=$s?[e]:e.split(" "),a.forEach(e=>{if(!$s){if(""===e)return;n=0}do{const t=Es(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=Ns(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 Vs(new Error("Empty selector."));if(1===e.length)return qs(e[0][0]);const t=[];for(let n=0;ne);const Qs={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let ea,ta=!0,na=[];function oa(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!!ds[e]}(o)?ds[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===us&&t.removeEventListener(n,s,i),r===ls&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function ra(e,t){0}function ia(t){if(!ta)return;if(ta=!1,0===na.length)return void(ta=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case Qs.createNode:ra(e.printedNodes),n.create(e.nodes),oa(e.eventNodes,n);break;case Qs.updateNode:ra(e.printedNodes),n.update(e.nodes),oa(e.eventNodes,n);break;case Qs.deleteNode:ra(e.printedNodes),n.delete(e.nodes);break;case Qs.moveNode:ra(e.printedNodes),n.move(e.nodes)}}),n.build(),ta=!0,na=[]})}function sa(){if(!ea||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ii();return e.map(e=>{const n=e.declarations.filter(Ks).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Xs);return new Ws(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);ea?ea.append(t):ea=new Ys(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{ea.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),ea}function aa(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];ui(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(ui(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;ui(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 ca(e){const t=Object.create(null);try{sa().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 la(e,t,n={}){if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let o=ca(t);o=Zs(Zs({},o),t.style),ni(t,o),t.meta.component.defaultNativeStyle&&(o=Zs(Zs({},t.meta.component.defaultNativeStyle),o));const r={id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,name:t.meta.component.name,props:Zs(Zs({},aa(t)),{},{style:o}),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))}}(r),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=ms()?"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)))}(t,r,o),function(e,t){"TextInput"===e.meta.component.name&&ms()&&(t.textAlign||(t.textAlign="right"))}(t,o);const i=function(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}(t);let s=void 0;return[[r,n],i,s]}function ua(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=la(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 da(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ri();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]=ua(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,ys.set(n,t)},n);na.push({type:Qs.createNode,nodes:i,eventNodes:a,printedNodes:c}),ia(o)}}function pa(e){if(!e.isMounted)return;const t=ri(),{$options:{rootViewId:n}}=t,[o,r,i]=la(n,e);o&&(na.push({type:Qs.updateNode,nodes:[o],eventNodes:[r],printedNodes:[]}),ia(t))}function fa(e){if(!e.isMounted)return;const t=ri(),{$options:{rootViewId:n}}=t,[o,r,i]=ua(n,e);na.push({type:Qs.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ia(t)}const ha=new Set;let ma,ya=!1;const ga={exitApp(){Ua.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ya||(ya=!0,ga.initEventListener()),Ua.callNative("DeviceEventModule","setListenBackPress",!0),ha.add(e),{remove(){ga.removeListener(e)}}),removeListener(e){ha.delete(e),0===ha.size&&Ua.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ma||(ma=ri()),ma.$on("hardwareBackPress",()=>{let e=!0;Array.from(ha).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&ga.exitApp()})}},va={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ba="android"===Hippy.device.platform.OS?ga:va;let wa;const _a=new Map;class $a{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Sa(this.eventName,this.listener),this.listener=void 0)}}function Sa(e,t){if(t instanceof $a)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=_a.get(t);o&&(wa||(wa=ri()),wa.$off(n,o),_a.delete(t),_a.size<1&&Ua.callNative("NetInfo","removeListener",n))}var Oa=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===_a.size&&Ua.callNative("NetInfo","addListener",n),wa||(wa=ri()),wa.$on(n,t),_a.set(t,t),new $a(n,t)},removeEventListener:Sa,fetch:function(){return Ua.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:$a});function xa(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 ka(e){for(var t=1;tMa.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})}))},Ua={callNative:Ia,callNativeWithPromise:Aa,callNativeWithCallbackId:Pa,UIManagerModule:Ma,ConsoleModule:e.ConsoleModule||e.console,on:Ea,off:Na,emit:Ca,PixelRatio:Da,Platform:Ta,Localization:ja,version:"3.0.0",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return Aa.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()}Ia.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return Aa.call(this,"ClipboardModule","getString")},setString(e){Ia.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!a(Ra.isIPhoneX)){let e=!1;"ios"===Ua.Platform&&(e=20!==Ua.Dimensions.screen.statusBarHeight),Ra.isIPhoneX=e}return Ra.isIPhoneX},get screenIsVertical(){return Ua.Dimensions.window.widthBa(e,"measureInWindow"),measureInAppWindow:e=>"android"===Ua.Platform?Ba(e,"measureInWindow"):Ba(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`));ai(...Va,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Ma.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error(e&&e.errMsg||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=void 0,c=void 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:Ua.Platform}){if(Number.isInteger(e))return e;const n=Ra.COLOR_PARSER||(Ra.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=as(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:ba,ImageLoader:{getSize(e){return Aa.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Ia.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Oa,getElemCss:ca};class Ha{constructor(e){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 Wa{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&&!ui(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){const{type:t}=e,n=this.observers[t];if(n)for(let t=n.length-1;t>=0;t-=1){const o=n[t];o.options&&o.options.once&&n.splice(t,1),o.options&&o.options.thisArg?o.callback.apply(o.options.thisArg,[e]):o.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&&L(e.options,n):e.callback===t)}}const za=["%c[event]%c","color: green","color: auto"];const Ya={receiveNativeEvent(e){if(ai(...za,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)return;const[t,n]=e,o=ri();o&&o.$emit(t,n)},receiveComponentEvent(e,t){if(ai(...za,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:o,nativeName:r,originalName:i,params:s={},eventPhase:a}=e,c=vs(o),l=vs(n);if(c&&l)try{if([ps.AT_TARGET,ps.BUBBLING_PHASE].indexOf(a)>-1){const e=new Ha(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=Ya);let Ka=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ka=e.__GLOBAL__.nodeId);class Ga{constructor(){this._ownerDocument=null,this._meta=null,this._isMounted=!1,this.nodeId=(Ka+=1,Ka%10==0&&(Ka+=1),Ka%10==0&&(Ka+=1),Ka),this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null}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=ws(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?da(this,e):da(this,e,{refId:o.nodeId,relativeToRef:_s})}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=ws(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?da(this,e):function(e,t,n={}){if(e&&e.meta&&ui(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;t.isMounted=!1;const o=ri(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];na.push({printedNodes:a,type:Qs.moveNode,nodes:s,eventNodes:[]}),ia(o)}(this,e,{refId:r.nodeId,relativeToRef:_s})}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),da(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=null,e.nextSibling=null;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=ri(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];na.push({printedNodes:s,type:Qs.deleteNode,nodes:i,eventNodes:[]}),ia(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}function qa(){qa=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)),qi(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)},qa.apply(this,arguments)}const Xa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Ja="turn",Za="rad",Qa="deg";function ec(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=qa(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,i,s]=n;return i&&s?o=function(e,t=Qa){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Ja:o=""+(360*n).toFixed(2);break;case Za:o=""+(180/Math.PI*n).toFixed(2)}return o}(i,s):r&&void 0!==Xa[r]&&(o=Xa[r]),o}function tc(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:Ua.parseColor(n)}:void 0:{color:Ua.parseColor(n)}}function nc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}const oc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function rc(e,t,n){void 0===t&&(delete n[e],nc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[oc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function ic(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&&fa(this))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&fa(this));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!ei||void 0===ei.config.trimWhitespace||ei.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"numberOfRows":if("ios"!==Ua.Platform)return;break;case"caretColor":case"caret-color":o="caret-color",r=Ua.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=Ua.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=Ua.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=Ua.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&&pa(this)}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)}),pa(this))}setStyle(e,t,n=!1){let{value:o,property:r}=this.beforeLoadStyle({property:e,value:t});if(void 0===t)return rc(r,o,this.style),void(n||pa(this));switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=function(e,t,n){delete n[e],nc(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=ec(e);if(t)o.angle=t;else{o.angle="180";const t=tc(e);t&&n.push(t)}}else{const t=tc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(r,o,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[oc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=o||{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(cs,r)&&(r=cs[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?Ua.parseColor(o):function(e,t,n){if(String.prototype.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}(o,"px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&li.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||pa(this))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){fa(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}appendChild(e){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e&&e.meta.symbol===gi&&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"+ci(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;n&&n[e]&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Wa(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(fs,e,t,n)),this._emitter.addEventListener(e,t,n),ic(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ls&&(this.events[t].type=ls):this.events[t]={name:t,type:ls,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};Ya.receiveComponentEvent(a,e)}),isCapture:!1}}),pa(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(hs,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return ic(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=us)}),pa(this),o}dispatchEvent(e,t,n){if(!(e instanceof Ha))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return Ua.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){"number"==typeof e&&"number"==typeof t&&(!1===n&&(n=0),Ua.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:n}]))}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){Ua.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){Ua.callUIFunction(this,"setHotspot",[e,t])}}class ac extends sc{constructor(e){super("comment"),this.text=e,this._meta={symbol:gi,skipAddToDom:!0}}}class cc extends Ga{constructor(e){super(),this.text=e,this._meta={symbol:gi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}class lc extends sc{getValue(){return new Promise(e=>Ua.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){Ua.callUIFunction(this,"setValue",[e])}focus(){Ua.callUIFunction(this,"focusTextInput",[])}blur(){Ua.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>Ua.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){Ua.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class uc extends sc{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Ua.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Ua.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class dc extends Ga{constructor(){super(),this.documentElement=new sc("document"),this.createComment=this.constructor.createComment,this.createElement=this.constructor.createElement,this.createElementNS=this.constructor.createElementNS,this.createTextNode=this.constructor.createTextNode}static createComment(e){return new ac(e)}static createElement(e){switch(e){case"input":case"textarea":return new lc(e);case"ul":return new uc(e);default:return new sc(e)}}static createElementNS(e,t){return new sc(`${e}:${t}`)}static createTextNode(e){return new cc(e)}static createEvent(e){return new Ha(e)}}var pc={create(e,t){fc(t)},update(e,t){e.data.ref!==t.data.ref&&(fc(e,!0),fc(t))},destroy(e){fc(e,!0)}};function fc(e,t){const n=e.data.ref;if(!a(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[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 hc=new pe("",{},[]),mc=["create","activate","update","remove","destroy"];function yc(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;let n;const o=a(n=e.data)&&a(n=n.attrs)&&n.type,r=a(n=t.data)&&a(n=n.attrs)&&n.type;return o===r||kn(o)&&kn(r)}(e,t)||c(e.isAsyncPlaceholder)&&s(t.asyncFactory.error))}function gc(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,a(r)&&(i[r]=o);return i}var vc={create:bc,update:bc,destroy:function(e){bc(e,hc)}};function bc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===hc,o=t===hc,r=_c(e.data.directives,e.context),i=_c(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,Sc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Sc(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 kc={create:xc,update:xc};function Ec(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=wn(t);const s=n._transitionClasses;s&&(i=$n(i,Sn(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Nc={create:Ec,update:Ec};let Cc;function Ic(e,t,n,o){(o||Cc).removeEventListener(e)}function Ac(e,t,n,o,r){n||Cc.addEventListener(e,t)}function Pc(e,t,n){const o=Cc;return function(){const n=t(...arguments);null!==n&&Ic(e,0,0,o)}}function Tc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Cc=t.elm,Qe(n,o,Ac,Ic,Pc,t.context)}var jc={create:Tc,update:Tc};function Dc(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 Lc(e){for(var t=1;t{const r=e[o],i=t[o];!pi(r)&&pi(i)&&(n[Mc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];pi(i)||i===r||(n[Mc(o)]=i)}),n}function Vc(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=Rc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Fc(r),t.data.style=r),i&&(r=P({},r),t.data.style=r);const s=Rc(o,r);t.elm.setStyles(Lc(Lc({},n),s))}var Bc=[kc,Nc,jc,{create:Vc,update:Vc}];function Uc(e,t){let n=!1;if(3===e.nodeId)n=!0;else if(t&&t.data&&t.data.attrs&&t.data.attrs.id){const e=ri();if(e){const{$options:{rootView:o}}=e;n=t.data.attrs.id===o.slice(1-o.length)}}n&&(function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;let r=e.data&&e.data.attrs||{};r.__ob__&&(r=P({},r),e.data.attrs=r),Object.keys(r).forEach(e=>{o.setAttribute(e,r[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(Mc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Fc(i),e.data.style=i),t&&(i=P({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Mc(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=wn(e);const s=r._transitionClasses;s&&(i=$n(i,Sn(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const Hc=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(p=s(n[v+1])?null:n[v+1].elm,b(e,p,n,h,v,o)):h>v&&_(t,f,m)}(p,y,g,n,u):a(g)?(a(e.text)&&i.setTextContent(p,""),b(p,null,g,0,g.length-1,n)):a(y)?_(y,0,y.length-1):a(e.text)&&i.setTextContent(p,""):e.text!==t.text&&i.setTextContent(p,t.text),a(h)&&a(f=h.hook)&&a(f=f.postpatch)&&f(e,t)}function x(e,t,n){if(c(n)&&a(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),bs(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:Bc.concat(Oc)});function Wc(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let zc=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const Yc={inserted(e,t){"ios"===Ua.Platform&&zc!==Wc&&(zc=Wc),"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 Ha("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,zc(e,t,n)}};function Kc(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const Gc={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,Kc(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&Kc(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var qc=Object.freeze({__proto__:null,model:Yc,show:Gc});const Xc=['%c[Hippy-Vue "3.0.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Jc=new dc;dn.$document=Jc,dn.prototype.$document=Jc,dn.$Document=dc,dn.$Event=Ha,dn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},dn.config.isReservedTag=Hi,dn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},dn.compile=Gr,dn.registerElement=Ki,P(dn.options.directives,qc),dn.prototype.__patch__=Hc,dn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return se("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=Gr(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=fe),Wt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new en(e,o,T,{before(){e._isMounted&&!e._isDestroyed&&Wt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Wt(e,"mounted")),e}(this,e,t)},dn.prototype.$start=function(e,t){var n;oi(this),ui(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ti=n),Wi.forEach(e=>{dn.component(e.meta.component.name,e.meta.component)}),Fa.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ai(...Xc,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();oi(new(dn.extend(this.$options))(this.$options))}if(ui(t)&&t(this,n),this.$mount(),"ios"===Ua.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if(t&&t.statusBar&&(n=t.statusBar),n.disabled)return null;const o=new sc("div"),{statusBarHeight:r}=Ua.Dimensions.screen;Ua.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 sc("img");t.setStyle("width",Ua.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{Ua.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))}ui(e)&&e(this,n)})};let Zc=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||{};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,Zc+=1,i.cid=Zc,i.options=Te(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>nn(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>sn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,R.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=P({},i.options),o[n]=i,i},dn.Native=Ua,dn.getApp=ri,dn.use((function(){Object.keys(Vi).forEach(e=>{Ki(e,Vi[e])})})),B.devtools&&ne&&ne.emit("init",dn);dn.config._setBeforeRenderToNative=(e,t)=>{ui(e)&&(1===t?ni=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const Qc=new Proxy(dn,{construct(e,t){const n=new e(...t);return n}});function el(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}let tl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){tl=ri(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=function(e){for(var t=1;t0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};Ua.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,Ua.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);Ua.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,tl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];ui(n)&&n(e.data)}},Qc.config.silent=!1,Qc.config.trimWhitespace=!0,function(e){ei=e}(Qc)}.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 p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=a(p);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 +const i=Object.freeze({});function s(e){return null==e}function a(e){return null!=e}function c(e){return!0===e}function l(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return null!==e&&"object"==typeof e}const d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function f(e){return"[object RegExp]"===d.call(e)}function h(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function y(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function g(e){const t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const b=v("slot,component",!0),w=v("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const $=Object.prototype.hasOwnProperty;function S(e,t){return $.call(e,t)}function O(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const x=/-(\w)/g,k=O(e=>e.replace(x,(e,t)=>t?t.toUpperCase():"")),E=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=/\B([A-Z])/g,C=O(e=>e.replace(N,"-$1").toLowerCase());const I=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 A(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 P(e,t){for(const n in t)e[n]=t[n];return e}function T(e,t,n){}const j=(e,t,n)=>!1,D=e=>e;function L(e,t){if(e===t)return!0;const n=u(e),o=u(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)=>L(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=>L(e[n],t[n]))}}catch(e){return!1}}function M(e,t){for(let n=0;n!1,ne=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){return"function"==typeof e&&/native code/.test(e.toString())}const re="undefined"!=typeof Symbol&&oe(Symbol)&&"undefined"!=typeof Reflect&&oe(Reflect.ownKeys);let ie;ie="undefined"!=typeof Set&&oe(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 se=T;let ae=0;class ce{constructor(){this.id=ae++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){_(this.subs,e)}depend(){ce.target&&ce.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new pe;return t.text=e,t.isComment=!0,t};function he(e){return new pe(void 0,void 0,void 0,String(e))}function me(e){const 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}const ye=Array.prototype,ge=Object.create(ye);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=ye[e];W(ge,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 ve=Object.getOwnPropertyNames(ge);let be=!0;function we(e){be=e}class _e{constructor(e){this.value=e,this.dep=new ce,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(Y?function(e,t){e.__proto__=t}(e,ge):function(e,t,n){for(let o=0,r=n.length;o{Ee[e]=Ie}),R.forEach((function(e){Ee[e+"s"]=Ae})),Ee.watch=function(e,t,n,o){if(e===Q&&(e=void 0),t===Q&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};P(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},Ee.props=Ee.methods=Ee.inject=Ee.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return P(r,e),t&&P(r,t),r},Ee.provide=Ce;const Pe=function(e,t){return void 0===t?e:t};function Te(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=k(i),o[s]={type:null});else if(p(n))for(const e in n)i=n[e],s=k(e),o[s]=p(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&&!S(r,"default"))s=!1;else if(""===s||s===C(e)){const e=Re(String,r.type);(e<0||aVe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ve(e,o,r)}return i}function Ue(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(t){t!==e&&He(t,null,"config.errorHandler")}He(e,t,n)}function He(e,t,n){if(!K&&!G||"undefined"==typeof console)throw e;console.error(e)}const We=[];let ze,Ye=!1;function Ke(){Ye=!1;const e=We.slice(0);We.length=0;for(let t=0;t{e.then(Ke),Z&&setTimeout(T)}}else if(J||"undefined"==typeof MutationObserver||!oe(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ze=void 0!==o&&oe(o)?()=>{o(Ke)}:()=>{setTimeout(Ke,0)};else{let e=1;const t=new MutationObserver(Ke),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),ze=()=>{e=(e+1)%2,n.data=String(e)}}function Ge(e,t){let n;if(We.push(()=>{if(e)try{e.call(t)}catch(e){Ve(e,t,"nextTick")}else n&&n(t)}),Ye||(Ye=!0,ze()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const qe=new ie;function Xe(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!u(t)||Object.isFrozen(t)||t instanceof pe)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,qe),qe.clear()}const Je=O(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 Ze(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Be(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),ot(i[0])&&ot(d)&&(o[u]=he(d.text+i[0].text),i.shift()),o.push.apply(o,i)):l(i)?ot(d)?o[u]=he(d.text+i):""!==i&&o.push(he(i)):ot(i)&&ot(d)?o[u]=he(d.text+i.text):(c(t._isVList)&&a(i.tag)&&s(i.key)&&a(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function ot(e){return a(e)&&a(e.text)&&!1===e.isComment}function rt(e,t){if(e){const n=Object.create(null),o=re?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,s=e?!!e.$stable:!r,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&n&&n!==i&&a===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=lt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=ut(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),W(o,"$stable",s),W(o,"$key",a),W(o,"$hasNormal",r),o}function lt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:nt(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!at(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function ut(e,t){return()=>e[t]}function dt(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||ct(e.scopedSlots,this.$slots=it(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ct(e.scopedSlots,this.slots())}}),l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ct(e.scopedSlots,this.$slots)),s._scopeId?this._c=(e,t,n,r)=>{const i=Tt(a,e,t,n,r,u);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=(e,t,n,o)=>Tt(a,e,t,n,o,u)}function Et(e,t,n,o,r){const i=me(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Nt(e,t){for(const n in t)e[k(n)]=t[n]}xt(kt.prototype);const Ct={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Ct.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;a(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Bt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const s=o.data.scopedSlots,a=e.$scopedSlots,c=!!(s&&!s.$stable||a!==i&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key),l=!!(r||e.$options._renderChildren||c);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||i,e.$listeners=n||i,t&&e.$options.props){we(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;r_(o,n));const l=e=>{for(let e=0,t=o.length;e{e.resolved=Lt(n,t),r?o.length=0:l(!0)}),p=F(t=>{a(e.errorComp)&&(e.error=!0,l(!0))}),f=e(d,p);return u(f)&&(m(f)?s(e.resolved)&&f.then(d,p):m(f.component)&&(f.component.then(d,p),a(f.error)&&(e.errorComp=Lt(f.error,t)),a(f.loading)&&(e.loadingComp=Lt(f.loading,t),0===f.delay?e.loading=!0:i=setTimeout(()=>{i=null,s(e.resolved)&&s(e.error)&&(e.loading=!0,l(!1))},f.delay||200)),a(f.timeout)&&(c=setTimeout(()=>{c=null,s(e.resolved)&&p(null)},f.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(d,l))))return function(e,t,n,o,r){const i=fe();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(d,t,n,o,r);t=t||{},un(e),a(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;a(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const p=function(e,t,n){const o=t.options.props;if(s(o))return;const r={},{attrs:i,props:c}=e;if(a(i)||a(c))for(const e in o){const t=C(e);0,tt(r,c,e,t,!0)||tt(r,i,e,t,!1)}return r}(t,e);if(c(e.options.functional))return function(e,t,n,o,r){const s=e.options,c={},l=s.props;if(a(l))for(const e in l)c[e]=De(e,l,t||i);else a(n.attrs)&&Nt(c,n.attrs),a(n.props)&&Nt(c,n.props);const u=new kt(n,c,r,o,e),d=s.render.call(null,u._c,u);if(d instanceof pe)return Et(d,n,u.parent,s,u);if(Array.isArray(d)){const e=nt(d)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Tt(e,t,n,o,r,i){return(Array.isArray(n)||l(n))&&(r=o,o=n,n=void 0),c(i)&&(r=2),function(e,t,n,o,r){if(a(n)&&a(n.__ob__))return fe();a(n)&&a(n.is)&&(t=n.is);if(!t)return fe();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=nt(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(Jt=()=>e.now())}function Zt(){let e,t;for(Jt(),qt=!0,zt.sort((e,t)=>e.id-t.id),Xt=0;XtXt&&zt[t].id>e.id;)t--;zt.splice(t+1,0,e)}else zt.push(e);Gt||(Gt=!0,Ge(Zt))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||u(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Be(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||_(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const tn={enumerable:!0,configurable:!0,get:T,set:T};function nn(e,t,n){tn.get=function(){return this[t][n]},tn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,tn)}function on(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&&we(!1);for(const i in t){r.push(i);const s=De(i,t,n,e);Se(o,i,s),i in e||nn(e,"_props",i)}we(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?T:I(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{de()}}(t,e):t||{},p(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&&S(o,t)||H(t)||nn(e,"_data",t)}$e(t,!0)}(e):$e(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 en(e,i||T,T,rn),o in e||sn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==Q&&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:!!f(e)&&e.test(t)}function mn(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)&&yn(n,e,o,r)}}}function yn(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,_(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=ln++,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=Te(un(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&&Vt(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=it(t._renderChildren,o),e.$scopedSlots=i,e._c=(t,n,o,r)=>Tt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Tt(e,t,n,o,r,!0);const r=n&&n.data;Se(e,"$attrs",r&&r.attrs||i,null,!0),Se(e,"$listeners",t._parentListeners||i,null,!0)}(t),Wt(t,"beforeCreate"),function(e){const t=rt(e.$options.inject,e);t&&(we(!1),Object.keys(t).forEach(n=>{Se(e,n,t[n])}),we(!0))}(t),on(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Wt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),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=Oe,e.prototype.$delete=xe,e.prototype.$watch=function(e,t,n){const o=this;if(p(t))return cn(o,e,t,n);(n=n||{}).user=!0;const r=new en(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ue(),Be(t,o,[r.value],o,e),de()}return function(){r.teardown()}}}(dn),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?A(n):n;const o=A(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Bt=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;Wt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(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),Wt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(dn),function(e){xt(e.prototype),e.prototype.$nextTick=function(e){return Ge(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ct(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Dt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ve(t,e,"render"),o=e._vnode}finally{Dt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof pe||(o=fe()),o.parent=n,o}}(dn);const gn=[String,RegExp,Array];var vn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:gn,exclude:gn,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:fn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&yn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)yn(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{mn(this,t=>hn(e,t))}),this.$watch("exclude",e=>{mn(this,t=>!hn(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tB};Object.defineProperty(e,"config",t),e.util={warn:se,extend:P,mergeOptions:Te,defineReactive:Se},e.set=Oe,e.delete=xe,e.nextTick=Ge,e.observable=e=>($e(e),e),e.options=Object.create(null),R.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,P(e.options.components,vn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=A(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=Te(this.options,e),this}}(e),pn(e),function(e){R.forEach(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:te}),Object.defineProperty(dn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:kt}),dn.version="2.6.14",v("style,class");const bn=v("input,textarea,option,select,progress");function wn(e){let t=e.data,n=e,o=e;for(;a(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=_n(o.data,t));for(;a(n=n.parent);)n&&n.data&&(t=_n(t,n.data));return function(e,t){if(a(e)||a(t))return $n(e,Sn(t));return""}(t.staticClass,t.class)}function _n(e,t){return{staticClass:$n(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function $n(e,t){return e?t?e+" "+t:e:t||""}function Sn(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&&En.test(t)||(l=!0)}}else void 0===r?(f=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(f,o).trim()),f=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==f&&h(),i)for(o=0;o{const t=e[0].replace(An,"\\$&"),n=e[1].replace(An,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Tn(e,t){console.error("[Vue compiler]: "+e)}function jn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Dn(e,t,n,o,r){(e.props||(e.props=[])).push(Wn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Ln(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Wn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Mn(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Wn({name:t,value:n},o))}function Fn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Wn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function Rn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Vn(e,t,n,o,r,s,a,c){let l;(o=o||i).right?c?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(c?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=Rn("!",t,c)),o.once&&(delete o.once,t=Rn("~",t,c)),o.passive&&(delete o.passive,t=Rn("&",t,c)),o.native?(delete o.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});const u=Wn({value:n.trim(),dynamic:c},a);o!==i&&(u.modifiers=o);const d=l[t];Array.isArray(d)?r?d.unshift(u):d.push(u):l[t]=d?r?[u,d]:[d,u]:u,e.plain=!1}function Bn(e,t,n){const o=Un(e,":"+t)||Un(e,"v-bind:"+t);if(null!=o)return Nn(o);if(!1!==n){const n=Un(e,t);if(null!=n)return JSON.stringify(n)}}function Un(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 Kn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Un(e,"style");n&&(e.staticStyle=JSON.stringify(Yn(n)));const o=Bn(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 Gn=function(e){return e};const qn=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Xn=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Jn=v("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"),Zn=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Qn=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,eo=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${U.source}]*`,to=`((?:${eo}\\:)?${eo})`,no=new RegExp("^<"+to),oo=/^\s*(\/?)>/,ro=new RegExp(`^<\\/${to}[^>]*>`),io=/^]+>/i,so=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},po=/&(?:lt|gt|quot|amp|#39);/g,fo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,ho=v("pre,textarea",!0),mo=(e,t)=>e&&ho(e)&&"\n"===t[0];function yo(e,t){const n=t?fo:po;return e.replace(n,e=>uo[e])}function go(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=vo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function vo(e,t){const n=function(e){if(e=e.trim(),bo=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,$o),key:'"'+e.slice($o+1)+'"'}:{exp:e,key:null};wo=e,$o=So=Oo=0;for(;!ko();)_o=xo(),Eo(_o)?Co(_o):91===_o&&No(_o);return{exp:e.slice(0,So),key:e.slice(So+1,Oo)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let bo,wo,_o,$o,So,Oo;function xo(){return wo.charCodeAt(++$o)}function ko(){return $o>=bo}function Eo(e){return 34===e||39===e}function No(e){let t=1;for(So=$o;!ko();)if(Eo(e=xo()))Co(e);else if(91===e&&t++,93===e&&t--,0===t){Oo=$o;break}}function Co(e){const t=e;for(;!ko()&&(e=xo())!==t;);}const Io=/^@|^v-on:/,Ao=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Po=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,To=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,jo=/^\(|\)$/g,Do=/^\[.*\]$/,Lo=/:(.*)$/,Mo=/^:|^\.|^v-bind:/,Fo=/^\./,Ro=/\.[^.\]]+(?=[^\]]*$)/g,Vo=/^v-slot(:|$)|^#/,Bo=/[\r\n]/,Uo=/[ \f\t\r\n]+/g,Ho=O(Gn);let Wo,zo,Yo,Ko,Go,qo,Xo,Jo,Zo;function Qo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:sr(t),rawAttrsMap:{},parent:n,children:[]}}function er(e,t){Wo=t.warn||Tn,qo=t.isPreTag||j,Xo=t.mustUseProp||j,Jo=t.getTagNamespace||j;const n=t.isReservedTag||j;Zo=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Yo=jn(t.modules,"transformNode"),Ko=jn(t.modules,"preTransformNode"),Go=jn(t.modules,"postTransformNode"),zo=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=tr(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&or(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&&or(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),qo(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,co(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),mo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,p(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(so.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(ao.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(io);if(n){l(n[0].length);continue}const o=e.match(ro);if(o){const e=c;l(o[0].length),p(o[1],e,c);continue}const r=u();if(r){d(r),mo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(ro.test(o)||no.test(o)||so.test(o)||ao.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(no);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(oo))&&(r=e.match(Qn)||e.match(Zn));)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&&Jn(s)&&p(a),i(s)&&a===s&&p(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))}p()}(e,{warn:Wo,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 p=a&&a.ns||Jo(e);J&&"svg"===p&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=Nn(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=Bn(n,"name")),function(e){let t;(t=Bn(e,"is"))&&(e.component=t);null!=Un(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function sr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Vn(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&&(${vo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${vo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${vo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Bn(e,"value")||"null";r=o?`_n(${r})`:r,Dn(e,"checked",`_q(${t},${r})`),Vn(e,"change",vo(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=vo(t,l);a&&(u="if($event.target.composing)return;"+u);Dn(e,"value",`(${t})`),Vn(e,c,u,null,!0),(s||i)&&Vn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!B.isReservedTag(i))return go(e,o,r),!1}return!0},text:function(e,t){t.value&&Dn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Dn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:qn,mustUseProp:(e,t,n)=>"value"===n&&bn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:Xn,isReservedTag:e=>On(e)||xn(e),getTagNamespace:function(e){return xn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(ur)};let fr,hr;const mr=O((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function yr(e,t){e&&(fr=mr(t.staticKeys||""),hr=t.isReservedTag||j,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||b(e.tag)||!hr(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(fr)))}(t),1===t.type){if(!hr(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,vr=/\([^)]*?\);*$/,br=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,wr={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},_r={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"]},$r=e=>`if(${e})return null;`,Sr={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:$r("$event.target !== $event.currentTarget"),ctrl:$r("!$event.ctrlKey"),shift:$r("!$event.shiftKey"),alt:$r("!$event.altKey"),meta:$r("!$event.metaKey"),left:$r("'button' in $event && $event.button !== 0"),middle:$r("'button' in $event && $event.button !== 1"),right:$r("'button' in $event && $event.button !== 2")};function Or(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=xr(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 xr(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>xr(e)).join(",")}]`;const t=br.test(e.value),n=gr.test(e.value),o=br.test(e.value.replace(vr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Sr[t])i+=Sr[t],wr[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=$r(["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(kr).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 kr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=wr[e],o=_r[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Er={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:T};class Nr{constructor(e){this.options=e,this.warn=e.warn||Tn,this.transforms=jn(e.modules,"transformCode"),this.dataGenFns=jn(e.modules,"genData"),this.directives=P(P({},Er),e.directives);const t=e.isReservedTag||j;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Cr(e,t){const n=new Nr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Ir(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Ir(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ar(e,t);if(e.once&&!e.onceProcessed)return Pr(e,t);if(e.for&&!e.forProcessed)return jr(e,t);if(e.if&&!e.ifProcessed)return Tr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Fr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Br((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:k(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:Fr(t,n,!0);return`_c(${e},${Dr(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Dr(e,t));const r=e.inlineTemplate?null:Fr(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||Lr(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=>Mr(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=Cr(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}",${Br(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Lr(e){return 1===e.type&&("slot"===e.tag||e.children.some(Lr))}function Mr(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Tr(e,t,Mr,"null");if(e.for&&!e.forProcessed)return jr(e,t,Mr);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Fr(e,t)||"undefined"}:undefined`:Fr(e,t)||"undefined":Ir(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Fr(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||Ir)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;oRr(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||Vr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function Rr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Vr(e,t){return 1===e.type?Ir(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:Ur(JSON.stringify(e.text))})`}(e)}function Br(e){let t="",n="";for(let o=0;oHr(e,c)),t[i]=a}}const zr=(Yr=function(e,t){const n=er(e.trim(),t);!1!==t.optimize&&yr(n,t);const o=Cr(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=P(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=Yr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Wr(t)}});var Yr;const{compile:Kr,compileToFunctions:Gr}=zr(pr);function qr(e){return(qr="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 Xr(e){var t=function(e,t){if("object"!==qr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==qr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qr(t)?t:String(t)}function Jr(e,t,n){return(t=Xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zr=`http://127.0.0.1:${r.env.PORT}/`;let Qr,ei,ti=e=>e,ni=()=>{};function oi(e){Qr=e}function ri(){return Qr}function ii(){return ti}const si=F(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ai(...e){ei&&ei.config.silent&&si()}function ci(e){return e.charAt(0).toUpperCase()+e.slice(1)}const li=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ui(e){return"[object Function]"===Object.prototype.toString.call(e)}function di(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function pi(e){return null==e}const fi=Symbol.for("View"),hi=Symbol.for("Image"),mi=Symbol.for("ListView"),yi=Symbol.for("ListViewItem"),gi=Symbol.for("Text"),vi=Symbol.for("TextInput"),bi=Symbol.for("WebView"),wi=Symbol.for("VideoPlayer"),_i={[fi]:"View",[hi]:"Image",[mi]:"ListView",[yi]:"ListViewItem",[gi]:"Text",[vi]:"TextInput",[bi]:"WebView",[wi]:"VideoPlayer"};function $i(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 Si(e){for(var t=1;t{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const xi={number:"numeric",text:"default",search:"web-search"},ki={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:fi,component:{name:_i[fi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:Si({},ki),processEventData(e,t,n){switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=n.contentOffset&&n.contentOffset.x,e.offsetY=n.contentOffset&&n.contentOffset.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}}},Ni={symbol:fi,component:Si(Si({},Ei.component),{},{name:_i[fi],defaultNativeStyle:{}})},Ci={symbol:fi,component:{name:_i[fi]}},Ii={symbol:hi,component:Si(Si({},Ei.component),{},{name:_i[hi],defaultNativeStyle:{backgroundColor:0},attributeMaps:Si({placeholder:{name:"defaultSource",propsValue(e){const t=di(e);return t&&t.indexOf(Zr)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>di(e)},ki),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}})},Ai={symbol:mi,component:{name:_i[mi],defaultNativeStyle:{flex:1},attributeMaps:Si({},ki),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=n.contentOffset&&n.contentOffset.x,e.offsetY=n.contentOffset&&n.contentOffset.y;break;case"onDelete":e.index=n.index}return e}}},Pi={symbol:yi,component:{name:_i[yi],attributeMaps:Si({},ki),eventNamesMap:Oi([["disappear","onDisappear"]])}},Ti={symbol:fi,component:Si(Si({},Ei.component),{},{name:_i[gi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},ji=Ti,Di=Ti,Li={component:Si(Si({},Ti.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Mi={symbol:vi,component:{name:_i[vi],attributeMaps:Si({type:{name:"keyboardType",propsValue(e){const t=xi[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ki),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}}},Fi={symbol:vi,component:{name:_i[vi],defaultNativeProps:Si(Si({},Mi.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:Si(Si({},Mi.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Mi.component.defaultNativeStyle,eventNamesMap:Mi.component.eventNamesMap,processEventData:Mi.component.processEventData}},Ri={symbol:bi,component:{name:_i[bi],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 Vi=Object.freeze({__proto__:null,button:Ni,div:Ei,form:Ci,img:Ii,input:Mi,label:ji,li:Pi,p:Di,span:Ti,a:Li,textarea:Fi,ul:Ai,iframe:Ri});function Bi(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 Ui(e){for(var t=1;te(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===ci(k(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 o&&o.meta&&(n=o.meta),n}function qi(e,t){return(qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xi(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&&qi(e,t)}const Ji={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},Zi=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,Qi="[-+]?\\d*\\.?\\d+",es={rgb:new RegExp("rgb"+Zi(Qi,Qi,Qi)),rgba:new RegExp("rgba"+Zi(Qi,Qi,Qi,Qi)),hsl:new RegExp("hsl"+Zi(Qi,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Zi(Qi,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Qi)),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})$/},ts=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ns=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},os=(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},rs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=os(r,o,e+1/3),s=os(r,o,e),a=os(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},is=e=>(parseFloat(e)%360+360)%360/360,ss=e=>{const t=parseFloat(e,10);return t<0?0:t>100?1:t/100};function as(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=es.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Ji,e)?Ji[e]:(t=es.rgb.exec(e),Array.isArray(t)?(ts(t[1])<<24|ts(t[2])<<16|ts(t[3])<<8|255)>>>0:(t=es.rgba.exec(e),t?(ts(t[1])<<24|ts(t[2])<<16|ts(t[3])<<8|ns(t[4]))>>>0:(t=es.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=es.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=es.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=es.hsl.exec(e),t?(255|rs(is(t[1]),ss(t[2]),ss(t[3])))>>>0:(t=es.hsla.exec(e),t?(rs(is(t[1]),ss(t[2]),ss(t[3]))|ns(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const cs={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"},ls=0,us=1,ds={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},ps={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const fs="addEventListener",hs="removeEventListener";function ms(){const e=Ua.Localization;return!!e&&1===e.direction}const ys=new Map;function gs(e){ys.delete(e)}function vs(e){return ys.get(e)||null}function bs(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?gs(t):t&&(gs(t.nodeId),t.childNodes&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}function ws(e=[],t=0){let n=e[t];for(let o=t;o{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ss={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*"},Os={};function xs(e,t,n){let o="";$s&&(o="gy"),Os[e]||(Os[e]=new RegExp(Ss[e],o));const r=Os[e];let i;if($s)r.lastIndex=n,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+i[0].length}return{result:i,regexp:r}}function ks(e,t){return function(e,t){const{result:n,regexp:o}=xs("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=xs("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}=xs("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 Es(e,t){let n=ks(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=ks(e,o);return{start:t,end:o,value:r}}function Ns(e,t){const{result:n,regexp:o}=xs("combinatorRegEx",e,t);if(!n)return null;let r;r=$s?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}function Cs(e){return e?` ${e} `:""}class Is{lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}}class As extends Is{accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}trackChanges(){return null}}class Ps extends As{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Cs(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.lookupSort(e,t||this)}removeSort(e,t){this.head.removeSort(e,t||this)}}class Ts extends As{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+Cs(this.combinator)}match(){return!0}}class js extends As{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Cs(this.combinator)}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,t||this)}removeSort(e,t){e.removeById(this.id,t||this)}}class Ds extends As{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${Cs(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,t||this)}removeSort(e,t){e.removeByType(this.cssType,t||this)}}class Ls extends As{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Cs(this.combinator)}`}match(e){return!!e&&(e.classList&&e.classList.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 Ms extends As{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Cs(this.combinator)}`}match(e){return!!e&&(e.cssPseudoClasses&&e.cssPseudoClasses.has(this.cssPseudoClass))}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const Fs=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Rs extends As{constructor(e,t,n){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?o=>{if(!o||!o.attributes)return!1;const r=""+Fs(o,e);if("="===t)return r===n;if("^="===t)return r.startsWith(n);if("$="===t)return r.endsWith(n);if("*="===t)return-1!==r.indexOf(n);if("~="===t){const e=r.split(" ");return e&&-1!==e.indexOf(n)}return"|="===t&&(r===n||r.startsWith(n+"-"))}:()=>!1:t=>!(!t||!t.attributes)&&!pi(Fs(t,e))}toString(){return`[${this.attribute}${Cs(this.test)}${this.test&&this.value||""}]${Cs(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Vs extends As{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Bs{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,o)=>{0!==o&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class Us{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,o)=>{0!==o&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class Hs extends Is{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],o=[];const r=[],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||r.push(o=[n=[]]),">"===s.combinator&&o.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=r.map(e=>new Bs(e.map(e=>new Us(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e){return!!e&&this.groups.every((t,n)=>{if(0===n)return!!(e=t.match(e));let o=e;for(;o=o.parentNode;)if(e=t.match(o))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);const n=[],o=this.groups.every((t,o)=>{if(0===o){const o=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=o)}let r=e;for(;r=r.parentNode;){const o=t.mayMatch(r);if(o)return n.push({left:r,right:null}),e=o,!0}return!1});if(!o)return!1;if(!t)return o;for(let e=0;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 zs{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 Ys{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.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 zs;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=>t.sel.ruleSet.hash===e.ruleSet.hash);-1!==t&&this.universal.splice(t)}addToMap(e,t,n){this.position+=1;const o=e[t];o?o.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>e.sel.ruleSet.hash===n.ruleSet.hash);-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function Ks(e){return"declaration"===e.type}function Gs(e){switch(e.type){case"*":return new Ts;case"#":return new js(e.identifier);case"":return new Ds(e.identifier.replace(/-/,"").toLowerCase());case".":return new Ls(e.identifier);case":":return new Ms(e.identifier);case"[]":return e.test?new Rs(e.property,e.test,e.value):new Rs(e.property);default:return null}}function qs(e){return 0===e.length?new Vs(new Error("Empty simple selector sequence.")):1===e.length?Gs(e[0]):new Ps(e.map(Gs))}function Xs(e){try{const t=function(e,t){let n=t;const{result:o,regexp:r}=xs("whiteSpaceRegEx",e,t);o&&(n=r.lastIndex);const i=[];let s,a,c=!0,l=[];return a=$s?[e]:e.split(" "),a.forEach(e=>{if(!$s){if(""===e)return;n=0}do{const t=Es(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=Ns(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 Vs(new Error("Empty selector."));if(1===e.length)return qs(e[0][0]);const t=[];for(let n=0;ne);const Qs={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let ea,ta=!0,na=[];function oa(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!!ds[e]}(o)?ds[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===us&&t.removeEventListener(n,s,i),r===ls&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function ra(e,t){0}function ia(t){if(!ta)return;if(ta=!1,0===na.length)return void(ta=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case Qs.createNode:ra(e.printedNodes),n.create(e.nodes),oa(e.eventNodes,n);break;case Qs.updateNode:ra(e.printedNodes),n.update(e.nodes),oa(e.eventNodes,n);break;case Qs.deleteNode:ra(e.printedNodes),n.delete(e.nodes);break;case Qs.moveNode:ra(e.printedNodes),n.move(e.nodes)}}),n.build(),ta=!0,na=[]})}function sa(){if(!ea||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ii();return e.map(e=>{const n=e.declarations.filter(Ks).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Xs);return new Ws(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);ea?ea.append(t):ea=new Ys(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{ea.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),ea}function aa(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];ui(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(ui(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;ui(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 ca(e){const t=Object.create(null);try{sa().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 la(e,t,n={}){if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let o=ca(t);o=Zs(Zs({},o),t.style),ni(t,o),t.meta.component.defaultNativeStyle&&(o=Zs(Zs({},t.meta.component.defaultNativeStyle),o));const r={id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,name:t.meta.component.name,props:Zs(Zs({},aa(t)),{},{style:o}),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))}}(r),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=ms()?"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)))}(t,r,o),function(e,t){"TextInput"===e.meta.component.name&&ms()&&(t.textAlign||(t.textAlign="right"))}(t,o);const i=function(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}(t);let s=void 0;return[[r,n],i,s]}function ua(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=la(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 da(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ri();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]=ua(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,ys.set(n,t)},n);na.push({type:Qs.createNode,nodes:i,eventNodes:a,printedNodes:c}),ia(o)}}function pa(e){if(!e.isMounted)return;const t=ri(),{$options:{rootViewId:n}}=t,[o,r,i]=la(n,e);o&&(na.push({type:Qs.updateNode,nodes:[o],eventNodes:[r],printedNodes:[]}),ia(t))}function fa(e){if(!e.isMounted)return;const t=ri(),{$options:{rootViewId:n}}=t,[o,r,i]=ua(n,e);na.push({type:Qs.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ia(t)}const ha=new Set;let ma,ya=!1;const ga={exitApp(){Ua.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ya||(ya=!0,ga.initEventListener()),Ua.callNative("DeviceEventModule","setListenBackPress",!0),ha.add(e),{remove(){ga.removeListener(e)}}),removeListener(e){ha.delete(e),0===ha.size&&Ua.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ma||(ma=ri()),ma.$on("hardwareBackPress",()=>{let e=!0;Array.from(ha).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&ga.exitApp()})}},va={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ba="android"===Hippy.device.platform.OS?ga:va;let wa;const _a=new Map;class $a{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Sa(this.eventName,this.listener),this.listener=void 0)}}function Sa(e,t){if(t instanceof $a)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=_a.get(t);o&&(wa||(wa=ri()),wa.$off(n,o),_a.delete(t),_a.size<1&&Ua.callNative("NetInfo","removeListener",n))}var Oa=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===_a.size&&Ua.callNative("NetInfo","addListener",n),wa||(wa=ri()),wa.$on(n,t),_a.set(t,t),new $a(n,t)},removeEventListener:Sa,fetch:function(){return Ua.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:$a});function xa(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 ka(e){for(var t=1;tMa.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})}))},Ua={callNative:Ia,callNativeWithPromise:Aa,callNativeWithCallbackId:Pa,UIManagerModule:Ma,ConsoleModule:e.ConsoleModule||e.console,on:Ea,off:Na,emit:Ca,PixelRatio:Da,Platform:Ta,Localization:ja,version:"3.0.1",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return Aa.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()}Ia.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return Aa.call(this,"ClipboardModule","getString")},setString(e){Ia.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!a(Ra.isIPhoneX)){let e=!1;"ios"===Ua.Platform&&(e=20!==Ua.Dimensions.screen.statusBarHeight),Ra.isIPhoneX=e}return Ra.isIPhoneX},get screenIsVertical(){return Ua.Dimensions.window.widthBa(e,"measureInWindow"),measureInAppWindow:e=>"android"===Ua.Platform?Ba(e,"measureInWindow"):Ba(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`));ai(...Va,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Ma.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error(e&&e.errMsg||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=void 0,c=void 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:Ua.Platform}){if(Number.isInteger(e))return e;const n=Ra.COLOR_PARSER||(Ra.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=as(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:ba,ImageLoader:{getSize(e){return Aa.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Ia.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Oa,getElemCss:ca};class Ha{constructor(e){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 Wa{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&&!ui(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){const{type:t}=e,n=this.observers[t];if(n)for(let t=n.length-1;t>=0;t-=1){const o=n[t];o.options&&o.options.once&&n.splice(t,1),o.options&&o.options.thisArg?o.callback.apply(o.options.thisArg,[e]):o.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&&L(e.options,n):e.callback===t)}}const za=["%c[event]%c","color: green","color: auto"];const Ya={receiveNativeEvent(e){if(ai(...za,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)return;const[t,n]=e,o=ri();o&&o.$emit(t,n)},receiveComponentEvent(e,t){if(ai(...za,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:o,nativeName:r,originalName:i,params:s={},eventPhase:a}=e,c=vs(o),l=vs(n);if(c&&l)try{if([ps.AT_TARGET,ps.BUBBLING_PHASE].indexOf(a)>-1){const e=new Ha(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=Ya);let Ka=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ka=e.__GLOBAL__.nodeId);class Ga{constructor(){this._ownerDocument=null,this._meta=null,this._isMounted=!1,this.nodeId=(Ka+=1,Ka%10==0&&(Ka+=1),Ka%10==0&&(Ka+=1),Ka),this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null}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=ws(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?da(this,e):da(this,e,{refId:o.nodeId,relativeToRef:_s})}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=ws(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?da(this,e):function(e,t,n={}){if(e&&e.meta&&ui(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;t.isMounted=!1;const o=ri(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];na.push({printedNodes:a,type:Qs.moveNode,nodes:s,eventNodes:[]}),ia(o)}(this,e,{refId:r.nodeId,relativeToRef:_s})}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),da(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=null,e.nextSibling=null;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=ri(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];na.push({printedNodes:s,type:Qs.deleteNode,nodes:i,eventNodes:[]}),ia(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}function qa(){qa=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)),qi(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)},qa.apply(this,arguments)}const Xa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Ja="turn",Za="rad",Qa="deg";function ec(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=qa(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,i,s]=n;return i&&s?o=function(e,t=Qa){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Ja:o=""+(360*n).toFixed(2);break;case Za:o=""+(180/Math.PI*n).toFixed(2)}return o}(i,s):r&&void 0!==Xa[r]&&(o=Xa[r]),o}function tc(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:Ua.parseColor(n)}:void 0:{color:Ua.parseColor(n)}}function nc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}const oc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function rc(e,t,n){void 0===t&&(delete n[e],nc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[oc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function ic(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&&fa(this))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&fa(this));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!ei||void 0===ei.config.trimWhitespace||ei.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"numberOfRows":if("ios"!==Ua.Platform)return;break;case"caretColor":case"caret-color":o="caret-color",r=Ua.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=Ua.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=Ua.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=Ua.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&&pa(this)}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)}),pa(this))}setStyle(e,t,n=!1){let{value:o,property:r}=this.beforeLoadStyle({property:e,value:t});if(void 0===t)return rc(r,o,this.style),void(n||pa(this));switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=function(e,t,n){delete n[e],nc(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=ec(e);if(t)o.angle=t;else{o.angle="180";const t=tc(e);t&&n.push(t)}}else{const t=tc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(r,o,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[oc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=o||{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(cs,r)&&(r=cs[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?Ua.parseColor(o):function(e,t,n){if(String.prototype.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}(o,"px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&li.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||pa(this))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){fa(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}appendChild(e){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e&&e.meta.symbol===gi&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e&&e.meta.symbol===gi&&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"+ci(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;n&&n[e]&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Wa(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(fs,e,t,n)),this._emitter.addEventListener(e,t,n),ic(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ls&&(this.events[t].type=ls):this.events[t]={name:t,type:ls,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};Ya.receiveComponentEvent(a,e)}),isCapture:!1}}),pa(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(hs,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return ic(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=us)}),pa(this),o}dispatchEvent(e,t,n){if(!(e instanceof Ha))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return Ua.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){"number"==typeof e&&"number"==typeof t&&(!1===n&&(n=0),Ua.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:n}]))}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){Ua.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){Ua.callUIFunction(this,"setHotspot",[e,t])}}class ac extends sc{constructor(e){super("comment"),this.text=e,this._meta={symbol:gi,skipAddToDom:!0}}}class cc extends Ga{constructor(e){super(),this.text=e,this._meta={symbol:gi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}class lc extends sc{getValue(){return new Promise(e=>Ua.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){Ua.callUIFunction(this,"setValue",[e])}focus(){Ua.callUIFunction(this,"focusTextInput",[])}blur(){Ua.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>Ua.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){Ua.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class uc extends sc{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Ua.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Ua.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class dc extends Ga{constructor(){super(),this.documentElement=new sc("document"),this.createComment=this.constructor.createComment,this.createElement=this.constructor.createElement,this.createElementNS=this.constructor.createElementNS,this.createTextNode=this.constructor.createTextNode}static createComment(e){return new ac(e)}static createElement(e){switch(e){case"input":case"textarea":return new lc(e);case"ul":return new uc(e);default:return new sc(e)}}static createElementNS(e,t){return new sc(`${e}:${t}`)}static createTextNode(e){return new cc(e)}static createEvent(e){return new Ha(e)}}var pc={create(e,t){fc(t)},update(e,t){e.data.ref!==t.data.ref&&(fc(e,!0),fc(t))},destroy(e){fc(e,!0)}};function fc(e,t){const n=e.data.ref;if(!a(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[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 hc=new pe("",{},[]),mc=["create","activate","update","remove","destroy"];function yc(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;let n;const o=a(n=e.data)&&a(n=n.attrs)&&n.type,r=a(n=t.data)&&a(n=n.attrs)&&n.type;return o===r||kn(o)&&kn(r)}(e,t)||c(e.isAsyncPlaceholder)&&s(t.asyncFactory.error))}function gc(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,a(r)&&(i[r]=o);return i}var vc={create:bc,update:bc,destroy:function(e){bc(e,hc)}};function bc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===hc,o=t===hc,r=_c(e.data.directives,e.context),i=_c(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,Sc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Sc(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 kc={create:xc,update:xc};function Ec(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=wn(t);const s=n._transitionClasses;s&&(i=$n(i,Sn(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Nc={create:Ec,update:Ec};let Cc;function Ic(e,t,n,o){(o||Cc).removeEventListener(e)}function Ac(e,t,n,o,r){n||Cc.addEventListener(e,t)}function Pc(e,t,n){const o=Cc;return function(){const n=t(...arguments);null!==n&&Ic(e,0,0,o)}}function Tc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Cc=t.elm,Qe(n,o,Ac,Ic,Pc,t.context)}var jc={create:Tc,update:Tc};function Dc(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 Lc(e){for(var t=1;t{const r=e[o],i=t[o];!pi(r)&&pi(i)&&(n[Mc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];pi(i)||i===r||(n[Mc(o)]=i)}),n}function Vc(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=Rc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Fc(r),t.data.style=r),i&&(r=P({},r),t.data.style=r);const s=Rc(o,r);t.elm.setStyles(Lc(Lc({},n),s))}var Bc=[kc,Nc,jc,{create:Vc,update:Vc}];function Uc(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;let r=e.data&&e.data.attrs||{};r.__ob__&&(r=P({},r),e.data.attrs=r),Object.keys(r).forEach(e=>{o.setAttribute(e,r[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(Mc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Fc(i),e.data.style=i),t&&(i=P({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Mc(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=wn(e);const s=r._transitionClasses;s&&(i=$n(i,Sn(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const Hc=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(p=s(n[v+1])?null:n[v+1].elm,b(e,p,n,h,v,o)):h>v&&_(t,f,m)}(p,y,g,n,u):a(g)?(a(e.text)&&i.setTextContent(p,""),b(p,null,g,0,g.length-1,n)):a(y)?_(y,0,y.length-1):a(e.text)&&i.setTextContent(p,""):e.text!==t.text&&i.setTextContent(p,t.text),a(h)&&a(f=h.hook)&&a(f=f.postpatch)&&f(e,t)}function x(e,t,n){if(c(n)&&a(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),bs(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:Bc.concat(Oc)});function Wc(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let zc=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const Yc={inserted(e,t){"ios"===Ua.Platform&&zc!==Wc&&(zc=Wc),"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 Ha("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,zc(e,t,n)}};function Kc(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const Gc={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,Kc(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&Kc(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var qc=Object.freeze({__proto__:null,model:Yc,show:Gc});const Xc=['%c[Hippy-Vue "3.0.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Jc=new dc;dn.$document=Jc,dn.prototype.$document=Jc,dn.$Document=dc,dn.$Event=Ha,dn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},dn.config.isReservedTag=Hi,dn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},dn.compile=Gr,dn.registerElement=Ki,P(dn.options.directives,qc),dn.prototype.__patch__=Hc,dn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return se("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=Gr(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=fe),Wt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new en(e,o,T,{before(){e._isMounted&&!e._isDestroyed&&Wt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Wt(e,"mounted")),e}(this,e,t)},dn.prototype.$start=function(e,t){var n;oi(this),ui(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ti=n),Wi.forEach(e=>{dn.component(e.meta.component.name,e.meta.component)}),Fa.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ai(...Xc,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();oi(new(dn.extend(this.$options))(this.$options))}if(ui(t)&&t(this,n),this.$mount(),"ios"===Ua.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if(t&&t.statusBar&&(n=t.statusBar),n.disabled)return null;const o=new sc("div"),{statusBarHeight:r}=Ua.Dimensions.screen;Ua.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 sc("img");t.setStyle("width",Ua.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{Ua.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))}ui(e)&&e(this,n)})};let Zc=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||{};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,Zc+=1,i.cid=Zc,i.options=Te(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>nn(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>sn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,R.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=P({},i.options),o[n]=i,i},dn.Native=Ua,dn.getApp=ri,dn.use((function(){Object.keys(Vi).forEach(e=>{Ki(e,Vi[e])})})),B.devtools&&ne&&ne.emit("init",dn);dn.config._setBeforeRenderToNative=(e,t)=>{ui(e)&&(1===t?ni=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const Qc=new Proxy(dn,{construct(e,t){const n=new e(...t);return n}});function el(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}let tl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){tl=ri(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=function(e){for(var t=1;t0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};Ua.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,Ua.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);Ua.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,tl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];ui(n)&&n(e.data)}},Qc.config.silent=!1,Qc.config.trimWhitespace=!0,function(e){ei=e}(Qc)}.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 p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=a(p);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/vendor.android.js b/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js index 12fcaed9931..d227a1f7cb0 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";n.r(t),function(e,r){n.d(t,"BackAndroid",(function(){return _t})),n.d(t,"ContentSizeEvent",(function(){return rn})),n.d(t,"EventBus",(function(){return ee})),n.d(t,"ExposureEvent",(function(){return cn})),n.d(t,"FocusEvent",(function(){return on})),n.d(t,"HIPPY_DEBUG_ADDRESS",(function(){return te})),n.d(t,"HIPPY_GLOBAL_DISPOSE_STYLE_NAME",(function(){return se})),n.d(t,"HIPPY_GLOBAL_STYLE_NAME",(function(){return ie})),n.d(t,"HIPPY_STATIC_PROTOCOL",(function(){return oe})),n.d(t,"HIPPY_VUE_VERSION",(function(){return ce})),n.d(t,"HippyEvent",(function(){return Zt})),n.d(t,"HippyKeyboardEvent",(function(){return nn})),n.d(t,"HippyLayoutEvent",(function(){return en})),n.d(t,"HippyLoadResourceEvent",(function(){return tn})),n.d(t,"HippyTouchEvent",(function(){return Qt})),n.d(t,"IS_PROD",(function(){return ne})),n.d(t,"ListViewEvent",(function(){return an})),n.d(t,"NATIVE_COMPONENT_MAP",(function(){return re})),n.d(t,"Native",(function(){return gt})),n.d(t,"ViewPagerEvent",(function(){return sn})),n.d(t,"_setBeforeRenderToNative",(function(){return Kn})),n.d(t,"createApp",(function(){return Yn})),n.d(t,"eventIsKeyboardEvent",(function(){return ln})),n.d(t,"getTagComponent",(function(){return xt})),n.d(t,"parseCSS",(function(){return D})),n.d(t,"registerElement",(function(){return St})),n.d(t,"setScreenSize",(function(){return zn})),n.d(t,"translateColor",(function(){return T}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),i=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js"),s=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");const c=["mode","valueType","startValue","toValue"],a=["transform"],l=["transform"];function u(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 d(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 f(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)},h.apply(this,arguments)}function m(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&&g(e,t)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)} +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";n.r(t),function(e,r){n.d(t,"BackAndroid",(function(){return wt})),n.d(t,"ContentSizeEvent",(function(){return on})),n.d(t,"EventBus",(function(){return ee})),n.d(t,"ExposureEvent",(function(){return an})),n.d(t,"FocusEvent",(function(){return sn})),n.d(t,"HIPPY_DEBUG_ADDRESS",(function(){return te})),n.d(t,"HIPPY_GLOBAL_DISPOSE_STYLE_NAME",(function(){return se})),n.d(t,"HIPPY_GLOBAL_STYLE_NAME",(function(){return ie})),n.d(t,"HIPPY_STATIC_PROTOCOL",(function(){return oe})),n.d(t,"HIPPY_VUE_VERSION",(function(){return ce})),n.d(t,"HippyEvent",(function(){return Qt})),n.d(t,"HippyKeyboardEvent",(function(){return rn})),n.d(t,"HippyLayoutEvent",(function(){return tn})),n.d(t,"HippyLoadResourceEvent",(function(){return nn})),n.d(t,"HippyTouchEvent",(function(){return en})),n.d(t,"IS_PROD",(function(){return ne})),n.d(t,"ListViewEvent",(function(){return ln})),n.d(t,"NATIVE_COMPONENT_MAP",(function(){return re})),n.d(t,"Native",(function(){return vt})),n.d(t,"ViewPagerEvent",(function(){return cn})),n.d(t,"_setBeforeRenderToNative",(function(){return Gn})),n.d(t,"createApp",(function(){return Kn})),n.d(t,"eventIsKeyboardEvent",(function(){return un})),n.d(t,"getTagComponent",(function(){return jt})),n.d(t,"parseCSS",(function(){return D})),n.d(t,"registerElement",(function(){return xt})),n.d(t,"setScreenSize",(function(){return Hn})),n.d(t,"translateColor",(function(){return T}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),i=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js"),s=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");const c=["mode","valueType","startValue","toValue"],a=["transform"],l=["transform"];function u(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 d(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 f(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)},h.apply(this,arguments)}function m(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&&g(e,t)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)} /*! - * @hippy/vue v3.0.0 - * (Using Vue v3.2.37 and Hippy-Vue-Next v3.0.0) - * Build at: Thu Jun 29 2023 16:20:44 GMT+0800 (中国标准时间) + * @hippy/vue v3.0.1 + * (Using Vue v3.2.37 and Hippy-Vue-Next v3.0.1) + * Build at: Mon Aug 07 2023 19:38:19 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -21,4 +21,4 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const v=/-(\w)/g,b=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),y={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},O=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,_="[-+]?\\d*\\.?\\d+",w={rgb:new RegExp("rgb"+O(_,_,_)),rgba:new RegExp("rgba"+O(_,_,_,_)),hsl:new RegExp("hsl"+O(_,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+O(_,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",_)),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})$/},S=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},x=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},j=(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},E=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=j(o,r,e+1/3),s=j(o,r,e),c=j(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},N=e=>(parseFloat(e)%360+360)%360/360,k=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function T(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=w.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(y,e)?y[e]:(t=w.rgb.exec(e),Array.isArray(t)?(S(t[1])<<24|S(t[2])<<16|S(t[3])<<8|255)>>>0:(t=w.rgba.exec(e),t?(S(t[1])<<24|S(t[2])<<16|S(t[3])<<8|x(t[4]))>>>0:(t=w.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=w.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=w.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=w.hsl.exec(e),t?(255|E(N(t[1]),k(t[2]),k(t[3])))>>>0:(t=w.hsla.exec(e),t?(E(N(t[1]),k(t[2]),k(t[3]))|x(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const C={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},P={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},I="turn",A="rad",R="deg",M=/\/\*[\s\S]{0,1000}?\*\//gm;const L=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function F(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 V(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=h(/^([+-]?(?=(\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=R){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case I:r=""+(360*n).toFixed(2);break;case A:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==P[o]&&(r=P[o]),r}function $(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:T(n)}:null:{color:T(n)}}function B(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=V(e);if(t)n.angle=t;else{n.angle="180";const t=$(e);t&&o.push(t)}}else{const t=$(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?).{0,500}?(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}function D(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 l(o){const i=f(f({},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 u(){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 l("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 d(e=[]){let t;const n=e||[];for(;t=u();)!1!==t&&n.push(t);return n}function p(){let t;const n=[];for(s(),d(n);e.length&&"}"!==e.charAt(0)&&(t=E()||O());)t&&(n.push(t),d(n));return n}function h(){return i(/^{\s*/)}function m(){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 v(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return l("property missing ':'");const n=t.replace(M,""),r=b(n);let o=(()=>{const e=C[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(M,""):"";switch(o){case"backgroundImage":[o,a]=B(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 l("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>F(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(L.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=F(a))}const u=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),u}function y(){let e,t=[];if(!h())return l("missing '{'");for(d(t);e=v();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),d(t));return m()?t:l("missing '}'")}function O(){const e=c(),t=g();return t?(d(),e({type:"rule",selectors:t,declarations:y()})):l("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:y()}):null}function w(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=w("import"),x=w("charset"),j=w("namespace");function E(){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 l("@keyframes missing name");const r=t[1];if(!h())return l("@keyframes missing '{'");let o,s=d();for(;o=_();)s.push(o),s=s.concat(d());return m()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):l("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!h())return l("@media missing '{'");const r=d().concat(p());return m()?e({type:"media",media:n,rules:r}):l("@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(!h())return l("@supports missing '{'");const r=d().concat(p());return m()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}()||S()||x()||j()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!h())return l("@document missing '{'");const o=d().concat(p());return m()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!h())return l("@page missing '{'");let n,r=d();for(;n=v();)r.push(n),r=r.concat(d());return m()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!h())return l("@host missing '{'");const t=d().concat(p());return m()?e({type:"host",rules:t}):l("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!h())return l("@font-face missing '{'");let t,n=d();for(;t=v();)n.push(t),n=n.concat(d());return m()?e({type:"font-face",declarations:n}):l("@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=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)}function U(e,t){if(e===t)return!0;let n=W(e),r=W(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=G(e),r=G(t),n||r)return e===t;if(n=H(e),r=H(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r"[object Date]"===X(e),Y=e=>"function"==typeof e,K=e=>"string"==typeof e,G=e=>"symbol"==typeof e,q=e=>null!==e&&"object"==typeof e,J=Object.prototype.toString,X=e=>J.call(e),Z=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1));let Q=Object.create(null);const ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{ee.$on(e,t,n)}):(Q[e]||(Q[e]=[]),Q[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=(Q[e]||[]).slice(),r=n.length;for(let e=0;e{ee.$off(e,t)}),ee;const n=Q[e];if(!n)return ee;if(!t)return Q[e]=null,ee;let r;const o=n.length;for(let e=0;ee;let be=(e,t)=>{};function ye(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 Oe(e){let t=e;return/^assets/.test(t)&&(t=ne?`${oe}./${t}`:`${te}${t}`),t}function _e(e){return"on"+Z(e)}function we(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=_e(e[0]),r=_e(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Se(e){return null==e}function xe(e,t){return!(!t||!e)&&e.match(t)}class je{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 Ee{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){const{tagName:t,id:n,classList:r}=e,o=[this.universal,this.id[n],this.type[t]];r.size&&r.forEach(e=>o.push(this.class[e]));const i=o.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new je;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}removeById(e,t){Ee.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){Ee.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){Ee.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 Ne(e){return e?" "+e:""}class ke{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class Te extends ke{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 Ce extends Te{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Te&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Ne(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 Te&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof Te&&this.head.removeSort(e,null!=t?t:this)}}class Pe extends Te{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+Ne(this.combinator)}match(){return!0}}class Ie extends Te{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Ne(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 Ae extends Te{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${Ne(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 Re extends Te{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Ne(this.combinator)}`}match(e){return!!e&&!(!e.classList.size||!e.classList.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 Me extends Te{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Ne(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const Le=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Fe extends Te{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||!r.attributes)return!1;const o=""+Le(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||!t.attributes)&&!Se(Le(t,e))}toString(){return`[${this.attribute}${Ne(this.test)}${this.test&&this.value||""}]${Ne(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Ve extends Te{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 $e{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 Be{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 De extends ke{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 $e(e.map(e=>new Be(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e){return!!e&&this.groups.every((t,n)=>{if(0===n)return!!(e=t.match(e));if(null==e?void 0:e.parentNode){let n=e.parentNode;for(;n;){if(e=t.match(n))return!0;n=n.parentNode}}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);const n=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=r)}let o=e;for(;o=o.parentNode;){const r=t.mayMatch(o);if(r)return n.push({left:o,right:null}),e=r,!0}return!1});if(!r)return!1;if(!t)return r;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 ze=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),He={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*"},We={};function Ye(e,t,n){let r="";ze&&(r="gy"),We[e]||(We[e]=new RegExp(He[e],r));const o=We[e];let i;if(ze)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 Ke(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=Ye("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}=Ye("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}=Ye("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 Ge(e,t){let n=Ke(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=Ke(e,r);return{start:t,end:r,value:o}}function qe(e,t){const{result:n,regexp:r}=Ye("combinatorRegEx",e,t);if(!n)return null;let o;o=ze?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}function Je(e){return"declaration"===e.type}function Xe(e){switch(e.type){case"*":return new Pe;case"#":return new Ie(e.identifier);case"":return new Ae(e.identifier.replace(/-/,"").toLowerCase());case".":return new Re(e.identifier);case":":return new Me(e.identifier);case"[]":return e.test?new Fe(e.property,e.test,e.value):new Fe(e.property);default:return null}}function Ze(e){return 0===e.length?new Ve(new Error("Empty simple selector sequence.")):1===e.length?Xe(e[0]):new Ce(e.map(Xe))}function Qe(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=Ye("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=ze?[e]:e.split(" "),c.forEach(e=>{if(!ze){if(""===e)return;n=0}do{const t=Ge(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=qe(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 Ve(new Error("Empty selector."));if(1===e.length)return Ze(e[0][0]);const t=[];for(const n of e){const e=Ze(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new De(t)}(t.value):new Ve(new Error("Empty selector"))}catch(e){return new Ve(e)}}function et(e=[]){const t=ve;return e.map(e=>{const n=e.declarations.filter(Je).map(function(e){return t=>{const n=e(t);if(!ne&&!n)throw new Error("beforeLoadStyle hook must returns the processed style object");return n}}(t)),r=e.selectors.map(Qe);return new Ue(r,n,e.hash)})}let tt;function nt(){const e=r[ie];if(!tt||e){const t=et(e);tt?tt.append(t):tt=new Ee(t),r[ie]=void 0}return r[se]&&(r[se].forEach(e=>{tt.delete(e)}),r[se]=void 0),tt}const rt=["%c[native]%c","color: red","color: auto"],ot={},{bridge:{callNative:it,callNativeWithPromise:st,callNativeWithCallbackId:ct},device:{platform:{OS:at,Localization:lt={}},screen:{scale:ut}},device:dt,document:ft,register:pt}=r.Hippy,ht=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 fe(...rt,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>ft.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})}))},mt=new Map,gt={Localization:lt,hippyNativeDocument:ft,hippyNativeRegister:pt,Platform:at,PixelRatio:ut,ConsoleModule:r.ConsoleModule||r.console,callNative:it,callNativeWithPromise:st,callNativeWithCallbackId:ct,AsyncStorage:r.Hippy.asyncStorage,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=[]),fe(...rt,"callUIFunction",{nodeId:o,funcName:n,params:i}),ft.callUIFunction(o,n,i,s)},Clipboard:{getString(){return gt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){gt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return gt.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()),gt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return gt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){gt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=dt,{statusBarHeight:t}=e;return{window:dt.window,screen:f(f({},e),{},{statusBarHeight:t})}},get Device(){var e;return void 0===ot.Device&&(gt.isIOS()?(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.Device)?ot.Device=r.__HIPPYNATIVEGLOBAL__.Device:ot.Device="iPhone":gt.isAndroid()?ot.Device="Android device":ot.Device="Unknown device"),ot.Device},get screenIsVertical(){return gt.Dimensions.window.width"android"===gt.Platform,isIOS:()=>"ios"===gt.Platform,measureInWindow:e=>ht(e,"measureInWindow"),measureInAppWindow:e=>gt.isAndroid()?ht(e,"measureInWindow"):ht(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`));fe(...rt,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),ft.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:()=>gt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===mt.size&>.callNative("NetInfo","addListener",n),ee.$on(n,t),mt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(gt.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"),mt.size<=1&>.callNative("NetInfo","removeListener",n);const r=mt.get(t);r&&(ee.$off(n,r),mt.delete(t),mt.size<1&>.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===ot.isIPhoneX){let e=!1;gt.isIOS()&&(e=20!==gt.Dimensions.screen.statusBarHeight),ot.isIPhoneX=e}return ot.isIPhoneX},get OnePixel(){if(void 0===ot.OnePixel){const e=gt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),ot.OnePixel=t}return ot.OnePixel},get APILevel(){var e,t;return gt.isAndroid()?(null===(t=null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.Platform)||void 0===t?void 0:t.APILevel)?r.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(pe("Vue.Native.APILevel needs higher Android SDK version to retrieve"),null):(pe("Vue.Native.APIVersion is available in Android only"),null)},get OSVersion(){var e;return gt.isIOS()&&(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.OSVersion)?r.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var e,t;return gt.isIOS()&&(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.OSVersion)?null===(t=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=ot.COLOR_PARSER)&&void 0!==t?t:ot.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=T(e)),n[e]},getElemCss(e){const t=Object.create(null);try{nt().query(e).selectors.forEach(n=>{xe(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){pe("getDomCss Error:",e)}return t},version:ce},vt=new Set;let bt=!1;const yt={exitApp(){gt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(bt||(bt=!0,yt.initEventListener()),gt.callNative("DeviceEventModule","setListenBackPress",!0),vt.add(e),{remove(){yt.removeListener(e)}}),removeListener(e){vt.delete(e),0===vt.size&>.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(vt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&yt.exitApp()})}},Ot={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},_t=gt.isAndroid()?yt:Ot,wt=new Map;function St(e,t){if(!e)throw new Error("tagName can not be empty");const n=he(e);wt.has(n)||wt.set(n,t.component)}function xt(e){const t=he(e);return wt.get(t)}const jt=new Map,Et={number:"numeric",text:"default",search:"web-search"},Nt={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"}},kt={component:{name:re.View,eventNamesMap:ye([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:f({},Nt),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}}},Tt={component:{name:re.View,attributeMaps:kt.component.attributeMaps,eventNamesMap:kt.component.eventNamesMap,processEventData:kt.component.processEventData}},Ct={component:{name:re.View}},Pt={component:{name:re.Image,eventNamesMap:kt.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:f({placeholder:{name:"defaultSource",propsValue(e){const t=Oe(e);return(null==t?void 0:t.indexOf(te))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&pe(`img placeholder ${t} recommend to use base64 image or local path image`),t}},src:e=>Oe(e)},Nt)}},It={component:{name:re.ListView,defaultNativeStyle:{flex:1},attributeMaps:f({},Nt),eventNamesMap:ye("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}}},At={component:{name:re.ListViewItem,attributeMaps:f({},Nt),eventNamesMap:ye([["disappear","onDisappear"]])}},Rt={component:{name:re.Text,attributeMaps:kt.component.attributeMaps,eventNamesMap:kt.component.eventNamesMap,processEventData:kt.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},Mt=Rt,Lt=Rt,Ft={component:f(f({},Rt.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(pe("href attribute can't apply effect in native with url: "+e),""):e}}})},Vt={component:{name:re.TextInput,attributeMaps:f({type:{name:"keyboardType",propsValue(e){const t=Et[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Nt),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:ye([["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}}},$t={component:{name:re.TextInput,defaultNativeProps:f(f({},Vt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:f(f({},Vt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Vt.component.defaultNativeStyle,eventNamesMap:Vt.component.eventNamesMap,processEventData:Vt.component.processEventData}},Bt={component:{name:re.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}}};jt.set("div",kt),jt.set("button",Tt),jt.set("form",Ct),jt.set("img",Pt),jt.set("ul",It),jt.set("li",At),jt.set("span",Rt),jt.set("label",Mt),jt.set("p",Lt),jt.set("a",Ft),jt.set("input",Vt),jt.set("textarea",$t),jt.set("iframe",Bt);var Dt={install(){jt.forEach((e,t)=>{St(t,e)})}};function Ut(){const{Localization:e}=gt;return!!e&&1===e.direction}const zt=0,Ht=1,Wt={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},Yt={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Kt="addEventListener",Gt="removeEventListener";let qt;function Jt(){return qt}function Xt(e,t){qt[e]=t}class Zt{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 Qt extends Zt{}class en extends Zt{}class tn extends Zt{}class nn extends Zt{}class rn extends Zt{}class on extends Zt{}class sn extends Zt{}class cn extends Zt{}class an extends Zt{}function ln(e){return"string"==typeof e.value}const un=new Map;function dn(e,t){un.set(t,e)}function fn(e){un.delete(e)}function pn(e){return un.get(e)||null}function hn(e){var t,n;t=t=>{(t.timeRemaining()>0||t.didTimeout)&&function e(t){var n;"number"==typeof t?fn(t):t&&(fn(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(e)},n={timeout:50},r.requestIdleCallback?r.requestIdleCallback(t,n):setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1)}function mn(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new en(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 Zt(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 pe(...vn,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};r.__GLOBAL__&&(r.__GLOBAL__.jsModuleList.EventDispatcher=bn);class yn{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&U(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 On;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE"}(On||(On={}));let _n=!1,wn=[];const Sn=["%c[native]%c","color: red","color: auto"];function xn(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!!Wt[e]}(r)?Wt[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ht&&t.removeEventListener(n,s,i),o===zt&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function jn(e,t){de()&&fe(...Sn,t,e)}function En(){_n||(_n=!0,0!==wn.length?Object(o.nextTick)().then(()=>{const e=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}(wn),{rootViewId:t}=Jt(),n=new r.Hippy.SceneBuilder(t);e.forEach(e=>{switch(e.type){case On.CREATE:jn(e.printedNodes,"createNode"),n.create(e.nodes),xn(e.eventNodes,n);break;case On.UPDATE:jn(e.printedNodes,"updateNode"),n.update(e.nodes),xn(e.eventNodes,n);break;case On.DELETE:jn(e.printedNodes,"deleteNode"),n.delete(e.nodes);break;case On.MOVE:jn(e.printedNodes,"moveNode"),n.move(e.nodes)}}),n.build(),_n=!1,wn=[]}):_n=!1)}var Nn;!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=2]="TextNode",e[e.CommentNode=3]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(Nn||(Nn={}));class kn extends yn{constructor(e){super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=kn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===Nn.ElementNode}(e)}static getUniqueNodeId(){return ae+=1,ae%10==0&&(ae+=1),ae}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}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=mn(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:gn}):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=mn(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:gn}):this.insertChildNativeNode(n)}appendChild(e){const t=e;if(!t)throw new Error("No child to append");this.lastChild!==t&&(t.parentNode&&t.parentNode!==this&&t.parentNode.removeChild(t),t.isMounted&&this.removeChild(t),t.parentNode=this,this.lastChild&&(t.prevSibling=this.lastChild,this.lastChild.nextSibling=t),this.childNodes.push(t),this.insertChildNativeNode(t))}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,o=r.convertToNativeNodes(!0,t);r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),dn(t,t.nodeId)}),function([e,t,n]){wn.push({type:On.CREATE,nodes:e,eventNodes:t,printedNodes:n}),En()}(o)}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(wn.push({type:On.MOVE,nodes:e,eventNodes:[],printedNodes:t}),En())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(wn.push({type:On.DELETE,nodes:e,eventNodes:[],printedNodes:t}),En())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(wn.push({type:On.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),En())}(this.convertToNativeNodes(e,{}))}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}=Jt(),s=null!=n?n:{},c=f({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=function(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}(this);let l=void 0;if(!ne){const e={};a&&Array.isArray(a.eventList)&&a.eventList.forEach(t=>{const{name:n,listener:r,type:o}=t;o===zt&&Object.assign(e,{[n]:r})}),Object.assign(l={},c,t),l.listeners=e}return[[[c,t]],[a],[l]]}}class Tn extends kn{constructor(e){super(Nn.TextNode),this.text=e}setText(e){this.text=e,this.parentNode&&this.nodeType===Nn.ElementNode&&this.parentNode.setText(e)}}function Cn(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;ee,this.tagName=e.toLowerCase(),this.classList=new Set,this.attributes={},this.style={},this.events={},this.hackSpecialIssue()}static parseRem(e){let t={};const n=Object.keys(e);return n.length?n.forEach(n=>{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}=Jt(),{width:r}=gt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=xt(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Jt();return super.isRootNode()||this.id===e}appendChild(e){e instanceof Tn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){e instanceof Tn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof Tn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof Tn&&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(r.split(" ").filter(e=>e.trim()));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){pe(`Property ${o} must be string:${e.message}`)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===ue||ue?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(!gt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=gt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=gt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=gt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=gt.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){if(!ne)throw e}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]=B(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(C,r)&&(r=C[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?gt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(ge.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),gt.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"+me(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;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Kt,r,o,i)),super.addEventListener(r,o,i),Cn(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==zt&&(this.events[t].type=zt):this.events[t]={name:t,type:zt,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};bn.receiveComponentEvent(c,e)}),isCapture:!1}}),this.updateNativeNode()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Gt,r,o,i)),super.removeEventListener(r,o,i),Cn(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ht)}),this.updateNativeNode()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,ln(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();be(this,n),this.component.defaultNativeStyle&&(n=f(f({},this.component.defaultNativeStyle),n));const r={name:this.component.name,props:f(f({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return ne||r.props&&(r.props.attributes=this.getNodeAttributes()),function(e,t){const n=t;e.component.name===re.TextInput&&Ut()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===re.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&pe("overflow-x and overflow-y for View can not work together"),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=Ut()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&pe("Only one child node is acceptable for View with overflow"),e.childNodes.length&&e.nodeType===Nn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Oe(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){gt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){gt.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=Object(i.toRaw)(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return nt().query(this).selectors.forEach(t=>{var n,r;xe(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&&(e[t.property]=t.value)})}),e=Pn.parseRem(f(f({},e),this.getInlineStyle())),e}hackNativeProps(e){const t=e;"img"===this.tagName&>.isIOS()&&(t.source=[{uri:t.src}],t.src=void 0)}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]=Y(r)?r(this):Object(i.toRaw)(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=Object(i.toRaw)(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=Object(i.toRaw)(r));const o=this.component.attributeMaps[t];if(K(o))return void(e[o]=Object(i.toRaw)(r));if(Y(o))return void(e[t]=Object(i.toRaw)(o(r)));const{name:s,propsValue:c,jointKey:a}=o;Y(c)&&(r=c(r)),a?(e[a]=null!==(n=e[a])&&void 0!==n?n:{},Object.assign(e[a],{[s]:Object(i.toRaw)(r)})):e[s]=Object(i.toRaw)(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=Object(i.toRaw)(n[t])}),this.hackNativeProps(e),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=f({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,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"+me(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){let e;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>e,set:t=>{e=void 0===t?"flex":t,this.updateNativeNode()}})}}function In(e){const t={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function n(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?gt.parseColor(t):t}function s(e){return"loop"===e?-1:e}function d(e){const{mode:o="timing",valueType:i,startValue:a,toValue:l}=e,d=u(e,c),p=f(f({},t),d);void 0!==i&&(p.valueType=e.valueType),p.startValue=n(p.valueType,a),p.toValue=n(p.valueType,l),p.repeatCount=s(p.repeatCount),p.mode=o;const h=new r.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function p(e,t={}){const n={};return Object.keys(e).forEach(o=>{if(Array.isArray(e[o])){const i=e[o],{repeatCount:c}=i[i.length-1],a=i.map(e=>{const{animationId:n,animation:r}=d(f(f({},e),{},{repeatCount:0}));return Object.assign(t,{[n]:r}),{animationId:n,follow:!0}}),{animationId:l,animation:u}=function(e,t=0){const n=new r.Hippy.AnimationSet({children:e,repeatCount:t}),o=n.getId();return{animation:n,animationId:o}}(a,s(c));n[o]={animationId:l},Object.assign(t,{[l]:u})}else{const r=e[o],{animationId:i,animation:s}=d(r);Object.assign(t,{[i]:s}),n[o]={animationId:i}}}),n}function h(e){const{transform:t}=e,n=u(e,a);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}e.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[_e("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()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=u(e.actions,l);this.animationIdsMap={};const r=p(n,this.animationIdsMap);if(t){const e=p(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=Object(i.toRaw)(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[_e(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[_e(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=h(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.start()}))},resume(){h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return Object(o.h)(this.tag,f({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}var An={install(e){In(e),St("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=gt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{St("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:i}=this.$attrs,s={onLayout:this.onLayout};return"function"==typeof e&&(s[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof i||(s[`on${n}Pulling`]=this[`on${n}Pulling`]),Object(o.h)("hi-pull-"+r,f(f({},s),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){St("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),St("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){gt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){gt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return Object(o.h)("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=Object(o.h)("div",null,this.$slots.default?this.$slots.default():null);return Object(o.h)("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){St("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}}}),St("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){gt.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=we.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return Object(o.h)("hi-waterfall",f(f({},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:""}},render(){return Object(o.h)("hi-waterfall-item",{type:this.type},this.$slots.default?this.$slots.default():null)}})}(e),function(e){St("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}}}),St("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}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){gt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){gt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=we.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return Object(o.h)("hi-swiper",f(f({},e),{},{ref:"swiper",initialPage:this.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return Object(o.h)("swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class Rn extends Pn{constructor(e){super(e),this.text=e,this.isNeedInsertToNative=!1}}class Mn extends Pn{showInputMenu(){}hideInputMenu(){}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=>gt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){gt.callUIFunction(this,"setValue",[e])}focus(){gt.callUIFunction(this,"focusTextInput",[])}blur(){gt.callUIFunction(this,"blurTextInput",[])}clear(){gt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>gt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class Ln extends Pn{scrollToIndex(e=0,t=0,n=!0){gt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&>.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class Fn extends kn{static createComment(e){return new Rn(e)}static createElement(e){switch(e){case"input":case"textarea":return new Mn(e);case"ul":return new Ln(e);default:return new Pn(e)}}static createTextNode(e){return new Tn(e)}constructor(){super(Nn.DocumentNode)}}const Vn={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),hn(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return Fn.createElement(e)},createComment:function(e){return Fn.createComment(e)},createText:function(e){return Fn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const $n=/(?:Once|Passive|Capture)$/;function Bn(e,t,n,r,i=null){var s;const c=e,a=null!==(s=c._vei)&&void 0!==s?s:c._vei={},l=a[t];if(r&&l)l.value=r;else{const[e,n]=function(e){let t=e;const n={};if($n.test(t)){let e=t.match($n);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match($n)}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){a[t]=function(e,t){const n=e=>{Object(o.callWithAsyncErrorHandling)(n.value,t,5,[e])};return n.value=e,n}(r,i);const s=a[t];c.addEventListener(e,s,n)}else c.removeEventListener(e,l,n),a[t]=void 0}}function Dn(e,t,n,r,o,i,c){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":!function(e,t,n){const r=e,o={};if(t&&!n)r.removeStyle();else{if(K(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];Se(t)||(o[Object(s.camelize)(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}(e,n,r);break;default:(e=>z.test(e))(t)?Bn(e,t,0,r,c):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let Un=!1;function zn(e){var t;if(e.width&&e.height){const{screen:n}=null===(t=null==r?void 0:r.Hippy)||void 0===t?void 0:t.device;n&&(n.width=e.width,n.height=e.height)}}r.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=f({},n);if(Un||(Un=!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};gt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:pe("Fail to create websocket connection",e)})}close(e,t){1===this.readyState&&(this.readyState=2,gt.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);gt.callNative("websocket","send",{id:this.webSocketId,data:e})}else pe("WebSocket is not connected")}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=>{Y(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=_e(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const Hn=['%c[Hippy-Vue-Next "3.0.0"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Wn(e,t){if(gt.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 Pn("div"),{statusBarHeight:s}=gt.Dimensions.screen;gt.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 Pn("img");r.setStyle("width",gt.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",()=>{gt.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 Yn=(e,t)=>{var n;const r=Object(o.createRenderer)(f({patchProp:Dn},Vn)).createApp(e);var i,s;r.use(Dt),r.use(An),"function"==typeof(null===(n=null==t?void 0:t.styleOptions)||void 0===n?void 0:n.beforeLoadStyle)&&(i=t.styleOptions.beforeLoadStyle,ve=i),t.silent&&(s=t.silent,le=s),function(e=!0){ue=e}(t.trimWhitespace);const{mount:c}=r;return r.mount=e=>{Xt("rootContainer",e);const n=function(e){const t=Fn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),r=c(n,!1,!1);return Xt("instance",r),Wn(t,r),r},r.$start=async e=>new Promise(n=>{gt.hippyNativeRegister.regist(t.appName,o=>{var i,s;const{__instanceId__:c}=o;fe(...Hn,"Start",t.appName,"with rootViewId",c,o);const a=Jt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:o,app:r,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},qt=l;const u={superProps:o,rootViewId:c};Y(e)?e(u):n(u)})}),r},Kn=(e,t)=>{Y(e)&&(1===t?be=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))}}.call(this,n("./node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.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 i})),n.d(t,"ITERATE_KEY",(function(){return v})),n.d(t,"ReactiveEffect",(function(){return y})),n.d(t,"computed",(function(){return Xe})),n.d(t,"customRef",(function(){return Ye})),n.d(t,"deferredComputed",(function(){return ot})),n.d(t,"effect",(function(){return _})),n.d(t,"effectScope",(function(){return s})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return a})),n.d(t,"isProxy",(function(){return Te})),n.d(t,"isReactive",(function(){return Ee})),n.d(t,"isReadonly",(function(){return Ne})),n.d(t,"isRef",(function(){return Le})),n.d(t,"isShallow",(function(){return ke})),n.d(t,"markRaw",(function(){return Pe})),n.d(t,"onScopeDispose",(function(){return l})),n.d(t,"pauseTracking",(function(){return j})),n.d(t,"proxyRefs",(function(){return He})),n.d(t,"reactive",(function(){return _e})),n.d(t,"readonly",(function(){return Se})),n.d(t,"ref",(function(){return Fe})),n.d(t,"resetTracking",(function(){return N})),n.d(t,"shallowReactive",(function(){return we})),n.d(t,"shallowReadonly",(function(){return xe})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return w})),n.d(t,"toRaw",(function(){return Ce})),n.d(t,"toRef",(function(){return qe})),n.d(t,"toRefs",(function(){return Ke})),n.d(t,"track",(function(){return k})),n.d(t,"trigger",(function(){return C})),n.d(t,"triggerRef",(function(){return De})),n.d(t,"unref",(function(){return Ue}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");let o;class i{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&m)>0,f=e=>(e.n&m)>0,p=new WeakMap;let h=0,m=1;let g;const v=Symbol(""),b=Symbol("");class y{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let e=g,t=S;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=g,g=this,S=!0,m=1<<++h,h<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&a.push(e)});else switch(void 0!==n&&a.push(c.get(n)),t){case"add":Object(r.isArray)(e)?Object(r.isIntegerKey)(n)&&a.push(c.get("length")):(a.push(c.get(v)),Object(r.isMap)(e)&&a.push(c.get(b)));break;case"delete":Object(r.isArray)(e)||(a.push(c.get(v)),Object(r.isMap)(e)&&a.push(c.get(b)));break;case"set":Object(r.isMap)(e)&&a.push(c.get(v))}if(1===a.length)a[0]&&P(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);P(u(e))}}function P(e,t){const n=Object(r.isArray)(e)?e:[...e];for(const e of n)e.computed&&I(e,t);for(const e of n)e.computed||I(e,t)}function I(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const A=Object(r.makeMap)("__proto__,__v_isRef,__isVue"),R=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.isSymbol)),M=D(),L=D(!1,!0),F=D(!0),V=D(!0,!0),$=B();function B(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Ce(this);for(let e=0,t=this.length;e{e[t]=function(...e){j();const n=Ce(this)[t].apply(this,e);return N(),n}}),e}function D(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&i===(e?t?Oe:ye:t?be:ve).get(n))return n;const s=Object(r.isArray)(n);if(!e&&s&&Object(r.hasOwn)($,o))return Reflect.get($,o,i);const c=Reflect.get(n,o,i);return(Object(r.isSymbol)(o)?R.has(o):A(o))?c:(e||k(n,0,o),t?c:Le(c)?s&&Object(r.isIntegerKey)(o)?c:c.value:Object(r.isObject)(c)?e?Se(c):_e(c):c)}}const U=H(),z=H(!0);function H(e=!1){return function(t,n,o,i){let s=t[n];if(Ne(s)&&Le(s)&&!Le(o))return!1;if(!e&&!Ne(o)&&(ke(o)||(o=Ce(o),s=Ce(s)),!Object(r.isArray)(t)&&Le(s)&&!Le(o)))return s.value=o,!0;const c=Object(r.isArray)(t)&&Object(r.isIntegerKey)(n)?Number(n)!0,deleteProperty:(e,t)=>!0},K=Object(r.extend)({},W,{get:L,set:z}),G=Object(r.extend)({},Y,{get:V}),q=e=>e,J=e=>Reflect.getPrototypeOf(e);function X(e,t,n=!1,r=!1){const o=Ce(e=e.__v_raw),i=Ce(t);n||(t!==i&&k(o,0,t),k(o,0,i));const{has:s}=J(o),c=r?q:n?Ae:Ie;return s.call(o,t)?c(e.get(t)):s.call(o,i)?c(e.get(i)):void(e!==o&&e.get(t))}function Z(e,t=!1){const n=this.__v_raw,r=Ce(n),o=Ce(e);return t||(e!==o&&k(r,0,e),k(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function Q(e,t=!1){return e=e.__v_raw,!t&&k(Ce(e),0,v),Reflect.get(e,"size",e)}function ee(e){e=Ce(e);const t=Ce(this);return J(t).has.call(t,e)||(t.add(e),C(t,"add",e,e)),this}function te(e,t){t=Ce(t);const n=Ce(this),{has:o,get:i}=J(n);let s=o.call(n,e);s||(e=Ce(e),s=o.call(n,e));const c=i.call(n,e);return n.set(e,t),s?Object(r.hasChanged)(t,c)&&C(n,"set",e,t):C(n,"add",e,t),this}function ne(e){const t=Ce(this),{has:n,get:r}=J(t);let o=n.call(t,e);o||(e=Ce(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&C(t,"delete",e,void 0),i}function re(){const e=Ce(this),t=0!==e.size,n=e.clear();return t&&C(e,"clear",void 0,void 0),n}function oe(e,t){return function(n,r){const o=this,i=o.__v_raw,s=Ce(i),c=t?q:e?Ae:Ie;return!e&&k(s,0,v),i.forEach((e,t)=>n.call(r,c(e),c(t),o))}}function ie(e,t,n){return function(...o){const i=this.__v_raw,s=Ce(i),c=Object(r.isMap)(s),a="entries"===e||e===Symbol.iterator&&c,l="keys"===e&&c,u=i[e](...o),d=n?q:t?Ae:Ie;return!t&&k(s,0,l?b:v),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function se(e){return function(...t){return"delete"!==e&&this}}function ce(){const e={get(e){return X(this,e)},get size(){return Q(this)},has:Z,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!1)},t={get(e){return X(this,e,!1,!0)},get size(){return Q(this)},has:Z,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!0)},n={get(e){return X(this,e,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear"),forEach:oe(!0,!1)},r={get(e){return X(this,e,!0,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear"),forEach:oe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ie(o,!1,!1),n[o]=ie(o,!0,!1),t[o]=ie(o,!1,!0),r[o]=ie(o,!0,!0)}),[e,n,t,r]}const[ae,le,ue,de]=ce();function fe(e,t){const n=t?e?de:ue:e?le:ae;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r.hasOwn)(n,o)&&o in t?n:t,o,i)}const pe={get:fe(!1,!1)},he={get:fe(!1,!0)},me={get:fe(!0,!1)},ge={get:fe(!0,!0)};const ve=new WeakMap,be=new WeakMap,ye=new WeakMap,Oe=new WeakMap;function _e(e){return Ne(e)?e:je(e,!1,W,pe,ve)}function we(e){return je(e,!1,K,he,be)}function Se(e){return je(e,!0,Y,me,ye)}function xe(e){return je(e,!0,G,ge,Oe)}function je(e,t,n,o,i){if(!Object(r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const c=(a=e).__v_skip||!Object.isExtensible(a)?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(r.toRawType)(a));var a;if(0===c)return e;const l=new Proxy(e,2===c?o:n);return i.set(e,l),l}function Ee(e){return Ne(e)?Ee(e.__v_raw):!(!e||!e.__v_isReactive)}function Ne(e){return!(!e||!e.__v_isReadonly)}function ke(e){return!(!e||!e.__v_isShallow)}function Te(e){return Ee(e)||Ne(e)}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function Pe(e){return Object(r.def)(e,"__v_skip",!0),e}const Ie=e=>Object(r.isObject)(e)?_e(e):e,Ae=e=>Object(r.isObject)(e)?Se(e):e;function Re(e){S&&g&&T((e=Ce(e)).dep||(e.dep=u()))}function Me(e,t){(e=Ce(e)).dep&&P(e.dep)}function Le(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return $e(e,!1)}function Ve(e){return $e(e,!0)}function $e(e,t){return Le(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ce(e),this._value=t?e:Ie(e)}get value(){return Re(this),this._value}set value(e){e=this.__v_isShallow?e:Ce(e),Object(r.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ie(e),Me(this))}}function De(e){Me(e)}function Ue(e){return Le(e)?e.value:e}const ze={get:(e,t,n)=>Ue(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function He(e){return Ee(e)?e:new Proxy(e,ze)}class We{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>Re(this),()=>Me(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ye(e){return new We(e)}function Ke(e){const t=Object(r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=qe(e,n);return t}class Ge{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function qe(e,t,n){const r=e[t];return Le(r)?r:new Ge(e,t,n)}class Je{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new y(e,()=>{this._dirty||(this._dirty=!0,Me(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ce(this);return Re(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Xe(e,t,n=!1){let o,i;const s=Object(r.isFunction)(e);s?(o=e,i=r.NOOP):(o=e.get,i=e.set);return new Je(o,i,s||!i,n)}var Ze;const Qe=Promise.resolve(),et=[];let tt=!1;const nt=()=>{for(let e=0;e{if(this.dep){if(e)t=this._value,n=!0;else if(!r){const e=n?t:this._value;r=!0,n=!1,o=()=>{this.effect.active&&this._get()!==e&&Me(this),r=!1},et.push(o),tt||(tt=!0,Qe.then(nt))}for(const e of this.dep)e.computed instanceof rt&&e.scheduler(!0)}var o;this._dirty=!0}),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return Re(this),Ce(this)._get()}}function ot(e){return new rt(e)}Ze="__v_isReadonly"},"../../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 xe})),n.d(t,"Comment",(function(){return ln})),n.d(t,"Fragment",(function(){return cn})),n.d(t,"KeepAlive",(function(){return Le})),n.d(t,"Static",(function(){return un})),n.d(t,"Suspense",(function(){return ie})),n.d(t,"Teleport",(function(){return sn})),n.d(t,"Text",(function(){return an})),n.d(t,"callWithAsyncErrorHandling",(function(){return l})),n.d(t,"callWithErrorHandling",(function(){return a})),n.d(t,"cloneVNode",(function(){return Pn})),n.d(t,"compatUtils",(function(){return kr})),n.d(t,"computed",(function(){return ar})),n.d(t,"createBlock",(function(){return On})),n.d(t,"createCommentVNode",(function(){return Rn})),n.d(t,"createElementBlock",(function(){return yn})),n.d(t,"createElementVNode",(function(){return Nn})),n.d(t,"createHydrationRenderer",(function(){return Xt})),n.d(t,"createPropsRestProxy",(function(){return vr})),n.d(t,"createRenderer",(function(){return Jt})),n.d(t,"createSlots",(function(){return dt})),n.d(t,"createStaticVNode",(function(){return An})),n.d(t,"createTextVNode",(function(){return In})),n.d(t,"createVNode",(function(){return kn})),n.d(t,"defineAsyncComponent",(function(){return Ae})),n.d(t,"defineComponent",(function(){return Pe})),n.d(t,"defineEmits",(function(){return ur})),n.d(t,"defineExpose",(function(){return dr})),n.d(t,"defineProps",(function(){return lr})),n.d(t,"devtools",(function(){return A})),n.d(t,"getCurrentInstance",(function(){return Hn})),n.d(t,"getTransitionRawChildren",(function(){return Ce})),n.d(t,"guardReactiveProps",(function(){return Cn})),n.d(t,"h",(function(){return yr})),n.d(t,"handleError",(function(){return u})),n.d(t,"initCustomFormatter",(function(){return wr})),n.d(t,"inject",(function(){return fe})),n.d(t,"isMemoSame",(function(){return xr})),n.d(t,"isRuntimeOnly",(function(){return er})),n.d(t,"isVNode",(function(){return _n})),n.d(t,"mergeDefaults",(function(){return gr})),n.d(t,"mergeProps",(function(){return Vn})),n.d(t,"nextTick",(function(){return x})),n.d(t,"onActivated",(function(){return Ve})),n.d(t,"onBeforeMount",(function(){return Ye})),n.d(t,"onBeforeUnmount",(function(){return Je})),n.d(t,"onBeforeUpdate",(function(){return Ge})),n.d(t,"onDeactivated",(function(){return $e})),n.d(t,"onErrorCaptured",(function(){return tt})),n.d(t,"onMounted",(function(){return Ke})),n.d(t,"onRenderTracked",(function(){return et})),n.d(t,"onRenderTriggered",(function(){return Qe})),n.d(t,"onServerPrefetch",(function(){return Ze})),n.d(t,"onUnmounted",(function(){return Xe})),n.d(t,"onUpdated",(function(){return qe})),n.d(t,"openBlock",(function(){return pn})),n.d(t,"popScopeId",(function(){return q})),n.d(t,"provide",(function(){return de})),n.d(t,"pushScopeId",(function(){return G})),n.d(t,"queuePostFlushCb",(function(){return k})),n.d(t,"registerRuntimeCompiler",(function(){return Qn})),n.d(t,"renderList",(function(){return ut})),n.d(t,"renderSlot",(function(){return ft})),n.d(t,"resolveComponent",(function(){return ot})),n.d(t,"resolveDirective",(function(){return ct})),n.d(t,"resolveDynamicComponent",(function(){return st})),n.d(t,"resolveFilter",(function(){return Nr})),n.d(t,"resolveTransitionHooks",(function(){return Ee})),n.d(t,"setBlockTracking",(function(){return vn})),n.d(t,"setDevtoolsHook",(function(){return F})),n.d(t,"setTransitionHooks",(function(){return Te})),n.d(t,"ssrContextKey",(function(){return Or})),n.d(t,"ssrUtils",(function(){return Er})),n.d(t,"toHandlers",(function(){return pt})),n.d(t,"transformVNodeArgs",(function(){return Sn})),n.d(t,"useAttrs",(function(){return hr})),n.d(t,"useSSRContext",(function(){return _r})),n.d(t,"useSlots",(function(){return pr})),n.d(t,"useTransitionState",(function(){return we})),n.d(t,"version",(function(){return jr})),n.d(t,"warn",(function(){return s})),n.d(t,"watch",(function(){return ve})),n.d(t,"watchEffect",(function(){return pe})),n.d(t,"watchPostEffect",(function(){return he})),n.d(t,"watchSyncEffect",(function(){return me})),n.d(t,"withAsyncContext",(function(){return br})),n.d(t,"withCtx",(function(){return X})),n.d(t,"withDefaults",(function(){return fr})),n.d(t,"withDirectives",(function(){return nt})),n.d(t,"withMemo",(function(){return Sr})),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,"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,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");n.d(t,"camelize",(function(){return o.camelize})),n.d(t,"capitalize",(function(){return o.capitalize})),n.d(t,"normalizeClass",(function(){return o.normalizeClass})),n.d(t,"normalizeProps",(function(){return o.normalizeProps})),n.d(t,"normalizeStyle",(function(){return o.normalizeStyle})),n.d(t,"toDisplayString",(function(){return o.toDisplayString})),n.d(t,"toHandlerKey",(function(){return o.toHandlerKey}));const i=[];function s(e,...t){Object(r.pauseTracking)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)a(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:e})=>`at <${sr(n,e.type)}>`).join("\n"),s]);else{const n=["[Vue warn]: "+e,...t];s.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+sr(e.component,e.type,r),i=">"+n;return e.props?[o,...c(e.props),i]:[o+i]}(e))}),t}(s)),console.warn(...n)}Object(r.resetTracking)()}function c(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(o.isString)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(o.isFunction)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Object(r.toRaw)(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function a(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){u(e,t,n)}return o}function l(e,t,n,r){if(Object(o.isFunction)(e)){const i=a(e,t,n,r);return i&&Object(o.isPromise)(i)&&i.catch(e=>{u(e,t,n)}),i}const i=[];for(let o=0;o>>1;P(p[r])P(e)-P(t)),O=0;Onull==e.id?1/0:e.id;function I(e){f=!1,d=!0,T(e),p.sort((e,t)=>P(e)-P(t));o.NOOP;try{for(h=0;hA.emit(e,...t)),R=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{F(e,t)}),setTimeout(()=>{A||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=!0,R=[])},3e3)}else M=!0,R=[]}const V=D("component:added"),$=D("component:updated"),B=D("component:removed");function D(e){return t=>{L(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function U(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),c=s&&t.slice(7);if(c&&c in r){const e=("modelValue"===c?"model":c)+"Modifiers",{number:t,trim:s}=r[e]||o.EMPTY_OBJ;s&&(i=n.map(e=>e.trim())),t&&(i=n.map(o.toNumber))}let a;__VUE_PROD_DEVTOOLS__&&function(e,t,n){L("component:emit",e.appContext.app,e,t,n)}(e,t,i);let u=r[a=Object(o.toHandlerKey)(t)]||r[a=Object(o.toHandlerKey)(Object(o.camelize)(t))];!u&&s&&(u=r[a=Object(o.toHandlerKey)(Object(o.hyphenate)(t))]),u&&l(u,e,6,i);const d=r[a+"Once"];if(d){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,l(d,e,6,i)}}function z(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let c={},a=!1;if(__VUE_OPTIONS_API__&&!Object(o.isFunction)(e)){const r=e=>{const n=z(e,t,!0);n&&(a=!0,Object(o.extend)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||a?(Object(o.isArray)(s)?s.forEach(e=>c[e]=null):Object(o.extend)(c,s),r.set(e,c),c):(r.set(e,null),null)}function H(e,t){return!(!e||!Object(o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(o.hasOwn)(e,Object(o.hyphenate)(t))||Object(o.hasOwn)(e,t))}let W=null,Y=null;function K(e){const t=W;return W=e,Y=e&&e.type.__scopeId||null,t}function G(e){Y=e}function q(){Y=null}const J=e=>X;function X(e,t=W,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&vn(-1);const o=K(t),i=e(...n);return K(o),r._d&&vn(1),__VUE_PROD_DEVTOOLS__&&$(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function Z(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[c],slots:a,attrs:l,emit:d,render:f,renderCache:p,data:h,setupState:m,ctx:g,inheritAttrs:v}=e;let b,y;const O=K(e);try{if(4&n.shapeFlag){const e=i||r;b=Mn(f.call(e,e,p,s,m,h,g)),y=l}else{const e=t;0,b=Mn(e.length>1?e(s,{attrs:l,slots:a,emit:d}):e(s,null)),y=t.props?l:ee(l)}}catch(t){dn.length=0,u(t,e,1),b=kn(ln)}let _=b;if(y&&!1!==v){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(c&&e.some(o.isModelListener)&&(y=te(y,c)),_=Pn(_,y))}return n.dirs&&(_=Pn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,K(O),b}function Q(e){let t;for(let n=0;n{let t;for(const n in e)("class"===n||"style"===n||Object(o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},te=(e,t)=>{const n={};for(const r in e)Object(o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function ne(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense,ie={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,c,a,l){null==e?function(e,t,n,r,o,i,s,c,a){const{p:l,o:{createElement:u}}=a,d=u("div"),f=e.suspense=ce(e,o,r,t,d,n,i,s,c,a);l(null,f.pendingBranch=e.ssContent,d,null,r,f,i,s),f.deps>0?(se(e,"onPending"),se(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),ue(f,e.ssFallback)):f.resolve()}(t,n,r,o,i,s,c,a,l):function(e,t,n,r,o,i,s,c,{p:a,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=f,wn(f,m)?(a(m,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():g&&(a(h,p,n,r,o,null,i,s,c),ue(d,p))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():(a(h,p,n,r,o,null,i,s,c),ue(d,p))):h&&wn(f,h)?(a(h,f,n,r,o,d,i,s,c),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0&&d.resolve()));else if(h&&wn(f,h))a(h,f,n,r,o,d,i,s,c),ue(d,f);else if(se(t,"onPending"),d.pendingBranch=f,d.pendingId++,a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,r,o,s,c,a,l)},hydrate:function(e,t,n,r,o,i,s,c,a){const l=t.suspense=ce(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,c,!0),u=a(e,l.pendingBranch=t.ssContent,n,l,i,s);0===l.deps&&l.resolve();return u},create:ce,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=ae(r?n.default:n),e.ssFallback=r?ae(n.fallback):kn(ln)}};function se(e,t){const n=e.props&&e.props[t];Object(o.isFunction)(n)&&n()}function ce(e,t,n,r,i,s,c,a,l,d,f=!1){const{p:p,m:h,um:m,n:g,o:{parentNode:v,remove:b}}=d,y=Object(o.toNumber)(e.props&&e.props.timeout),O={vnode:e,parent:t,parentComponent:n,isSVG:c,container:r,hiddenContainer:i,anchor:s,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:i,parentComponent:s,container:c}=O;if(O.isHydrating)O.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===O.pendingId&&h(r,c,t,0)});let{anchor:t}=O;n&&(t=g(n),m(n,s,O,!0)),e||h(r,c,t,0)}ue(O,r),O.pendingBranch=null,O.isInFallback=!1;let a=O.parent,l=!1;for(;a;){if(a.pendingBranch){a.effects.push(...i),l=!0;break}a=a.parent}l||k(i),O.effects=[],se(t,"onResolve")},fallback(e){if(!O.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:i}=O;se(t,"onFallback");const s=g(n),c=()=>{O.isInFallback&&(p(null,e,o,s,r,null,i,a,l),ue(O,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),O.isInFallback=!0,m(n,r,null,!0),u||c()},move(e,t,n){O.activeBranch&&h(O.activeBranch,e,t,n),O.container=e},next:()=>O.activeBranch&&g(O.activeBranch),registerDep(e,t){const n=!!O.pendingBranch;n&&O.deps++;const r=e.vnode.el;e.asyncDep.catch(t=>{u(t,e,0)}).then(o=>{if(e.isUnmounted||O.isUnmounted||O.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Zn(e,o,!1),r&&(i.el=r);const s=!r&&e.subTree.el;t(e,i,v(r||e.subTree.el),r?null:g(e.subTree),O,c,l),s&&b(s),re(e,i.el),n&&0==--O.deps&&O.resolve()})},unmount(e,t){O.isUnmounted=!0,O.activeBranch&&m(O.activeBranch,n,e,t),O.pendingBranch&&m(O.pendingBranch,n,e,t)}};return O}function ae(e){let t;if(Object(o.isFunction)(e)){const n=gn&&e._c;n&&(e._d=!1,pn()),e=e(),n&&(e._d=!0,t=fn,hn())}if(Object(o.isArray)(e)){const t=Q(e);0,e=t}return e=Mn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function le(e,t){t&&t.pendingBranch?Object(o.isArray)(e)?t.effects.push(...e):t.effects.push(e):k(e)}function ue(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,re(r,o))}function de(e,t){if(zn){let n=zn.provides;const r=zn.parent&&zn.parent.provides;r===n&&(n=zn.provides=Object.create(r)),n[e]=t}else 0}function fe(e,t,n=!1){const r=zn||W;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Object(o.isFunction)(t)?t.call(r.proxy):t}else 0}function pe(e,t){return be(e,null,t)}function he(e,t){return be(e,null,{flush:"post"})}function me(e,t){return be(e,null,{flush:"sync"})}const ge={};function ve(e,t,n){return be(e,t,n)}function be(e,t,{immediate:n,deep:i,flush:s,onTrack:c,onTrigger:u}=o.EMPTY_OBJ){const d=zn;let f,p,h=!1,b=!1;if(Object(r.isRef)(e)?(f=()=>e.value,h=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(f=()=>e,i=!0):Object(o.isArray)(e)?(b=!0,h=e.some(e=>Object(r.isReactive)(e)||Object(r.isShallow)(e)),f=()=>e.map(e=>Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?_e(e):Object(o.isFunction)(e)?a(e,d,2):void 0)):f=Object(o.isFunction)(e)?t?()=>a(e,d,2):()=>{if(!d||!d.isUnmounted)return p&&p(),l(e,d,3,[y])}:o.NOOP,t&&i){const e=f;f=()=>_e(e())}let y=e=>{p=S.onStop=()=>{a(e,d,4)}};if(Jn)return y=o.NOOP,t?n&&l(t,d,3,[f(),b?[]:void 0,y]):f(),o.NOOP;let O=b?[]:ge;const _=()=>{if(S.active)if(t){const e=S.run();(i||h||(b?e.some((e,t)=>Object(o.hasChanged)(e,O[t])):Object(o.hasChanged)(e,O)))&&(p&&p(),l(t,d,3,[e,O===ge?void 0:O,y]),O=e)}else S.run()};let w;_.allowRecurse=!!t,w="sync"===s?_:"post"===s?()=>qt(_,d&&d.suspense):()=>function(e){N(e,g,m,v)}(_);const S=new r.ReactiveEffect(f,w);return t?n?_():O=S.run():"post"===s?qt(S.run.bind(S),d&&d.suspense):S.run(),()=>{S.stop(),d&&d.scope&&Object(o.remove)(d.scope.effects,S)}}function ye(e,t,n){const r=this.proxy,i=Object(o.isString)(e)?e.includes(".")?Oe(r,e):()=>r[e]:e.bind(r,r);let s;Object(o.isFunction)(t)?s=t:(s=t.handler,n=t);const c=zn;Wn(this);const a=be(i,s.bind(r),n);return c?Wn(c):Yn(),a}function Oe(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{_e(e,t)});else if(Object(o.isPlainObject)(e))for(const n in e)_e(e[n],t);return e}function we(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ke(()=>{e.isMounted=!0}),Je(()=>{e.isUnmounting=!0}),e}const Se=[Function,Array],xe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Se,onEnter:Se,onAfterEnter:Se,onEnterCancelled:Se,onBeforeLeave:Se,onLeave:Se,onAfterLeave:Se,onLeaveCancelled:Se,onBeforeAppear:Se,onAppear:Se,onAfterAppear:Se,onAppearCancelled:Se},setup(e,{slots:t}){const n=Hn(),o=we();let i;return()=>{const s=t.default&&Ce(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){let e=!1;for(const t of s)if(t.type!==ln){0,c=t,e=!0;break}}const a=Object(r.toRaw)(e),{mode:l}=a;if(o.isLeaving)return Ne(c);const u=ke(c);if(!u)return Ne(c);const d=Ee(u,a,o,n);Te(u,d);const f=n.subTree,p=f&&ke(f);let h=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(p&&p.type!==ln&&(!wn(u,p)||h)){const e=Ee(p,a,o,n);if(Te(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Ne(c);"in-out"===l&&u.type!==ln&&(e.delayLeave=(e,t,n)=>{je(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return c}}};function je(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ee(e,t,n,r){const{appear:i,mode:s,persisted:c=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:y,onAppearCancelled:O}=t,_=String(e.key),w=je(n,e),S=(e,t)=>{e&&l(e,r,9,t)},x=(e,t)=>{const n=t[1];S(e,t),Object(o.isArray)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},j={mode:s,persisted:c,beforeEnter(t){let r=a;if(!n.isMounted){if(!i)return;r=v||a}t._leaveCb&&t._leaveCb(!0);const o=w[_];o&&wn(e,o)&&o.el._leaveCb&&o.el._leaveCb(),S(r,[t])},enter(e){let t=u,r=d,o=f;if(!n.isMounted){if(!i)return;t=b||u,r=y||d,o=O||f}let s=!1;const c=e._enterCb=t=>{s||(s=!0,S(t?o:r,[e]),j.delayedLeave&&j.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(p,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,r(),S(n?g:m,[t]),t._leaveCb=void 0,w[o]===e&&delete w[o])};w[o]=e,h?x(h,[t,s]):s()},clone:e=>Ee(e,t,n,r)};return j}function Ne(e){if(Me(e))return(e=Pn(e)).children=null,e}function ke(e){return Me(e)?e.children?e.children[0]:void 0:e}function Te(e,t){6&e.shapeFlag&&e.component?Te(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 Ce(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;e!!e.type.__asyncLoader;function Ae(e){Object(o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:c,suspensible:a=!0,onError:l}=e;let d,f=null,p=0;const h=()=>{let e;return f||(e=f=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((p++,f=null,h())),()=>n(e),p+1)});throw e}).then(t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),d=t,t)))};return Pe({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return d},setup(){const e=zn;if(d)return()=>Re(d,e);const t=t=>{f=null,u(t,e,13,!i)};if(a&&e.suspense||Jn)return h().then(t=>()=>Re(t,e)).catch(e=>(t(e),()=>i?kn(i,{error:e}):null));const o=Object(r.ref)(!1),l=Object(r.ref)(),p=Object(r.ref)(!!s);return s&&setTimeout(()=>{p.value=!1},s),null!=c&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}},c),h().then(()=>{o.value=!0,e.parent&&Me(e.parent.vnode)&&j(e.parent.update)}).catch(e=>{t(e),l.value=e}),()=>o.value&&d?Re(d,e):l.value&&i?kn(i,{error:l.value}):n&&!p.value?kn(n):void 0}})}function Re(e,{vnode:{ref:t,props:n,children:r,shapeFlag:o},parent:i}){const s=kn(e,n,r);return s.ref=t,s}const Me=e=>e.type.__isKeepAlive,Le={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Hn(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let c=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=i);const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:f}}}=r,p=f("div");function h(e){Ue(e),d(e,n,a,!0)}function m(e){i.forEach((t,n)=>{const r=ir(t.type);!r||e&&e(r)||g(n)})}function g(e){const t=i.get(e);c&&t.type===c.type?c&&Ue(c):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,a),l(s.vnode,e,t,n,s,a,r,e.slotScopeIds,i),qt(()=>{s.isDeactivated=!1,s.a&&Object(o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&$n(t,s.parent,e)},a),__VUE_PROD_DEVTOOLS__&&V(s)},r.deactivate=e=>{const t=e.component;u(e,p,null,1,a),qt(()=>{t.da&&Object(o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&$n(n,t.parent,e),t.isDeactivated=!0},a),__VUE_PROD_DEVTOOLS__&&V(t)},ve(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Fe(e,t)),t&&m(e=>!Fe(t,e))},{flush:"post",deep:!0});let v=null;const b=()=>{null!=v&&i.set(v,ze(n.subTree))};return Ke(b),qe(b),Je(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=ze(t);if(e.type!==o.type)h(e);else{Ue(o);const e=o.component.da;e&&qt(e,r)}})}),()=>{if(v=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!(_n(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return c=null,r;let o=ze(r);const a=o.type,l=ir(Ie(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Fe(u,l))||d&&l&&Fe(d,l))return c=o,r;const p=null==o.key?a:o.key,h=i.get(p);return o.el&&(o=Pn(o),128&r.shapeFlag&&(r.ssContent=o)),v=p,h?(o.el=h.el,o.component=h.component,o.transition&&Te(o,o.transition),o.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),f&&s.size>parseInt(f,10)&&g(s.values().next().value)),o.shapeFlag|=256,c=o,oe(r.type)?r:o}}};function Fe(e,t){return Object(o.isArray)(e)?e.some(e=>Fe(e,t)):Object(o.isString)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Ve(e,t){Be(e,"a",t)}function $e(e,t){Be(e,"da",t)}function Be(e,t,n=zn){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(He(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Me(e.parent.vnode)&&De(r,t,n,e),e=e.parent}}function De(e,t,n,r){const i=He(t,e,r,!0);Xe(()=>{Object(o.remove)(r[t],i)},n)}function Ue(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function ze(e){return 128&e.shapeFlag?e.ssContent:e}function He(e,t,n=zn,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Object(r.pauseTracking)(),Wn(n);const i=l(t,n,e,o);return Yn(),Object(r.resetTracking)(),i});return o?i.unshift(s):i.push(s),s}}const We=e=>(t,n=zn)=>(!Jn||"sp"===e)&&He(e,t,n),Ye=We("bm"),Ke=We("m"),Ge=We("bu"),qe=We("u"),Je=We("bum"),Xe=We("um"),Ze=We("sp"),Qe=We("rtg"),et=We("rtc");function tt(e,t=zn){He("ec",e,t)}function nt(e,t){const n=W;if(null===n)return e;const r=rr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r!_n(t)||t.type!==ln&&!(t.type===cn&&!e(t.children)))?t:null}(i(n)),c=On(cn,{key:n.key||"_"+t},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function pt(e){const t={};for(const n in e)t[Object(o.toHandlerKey)(n)]=e[n];return t}const ht=e=>e?Kn(e)?rr(e)||e.proxy:ht(e.parent):null,mt=Object(o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ht(e.parent),$root:e=>ht(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?wt(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>j(e.update)),$nextTick:e=>e.n||(e.n=x.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?ye.bind(e):o.NOOP}),gt={get({_:e},t){const{ctx:n,setupState:i,data:s,props:c,accessCache:a,type:l,appContext:u}=e;let d;if("$"!==t[0]){const r=a[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return c[t]}else{if(i!==o.EMPTY_OBJ&&Object(o.hasOwn)(i,t))return a[t]=1,i[t];if(s!==o.EMPTY_OBJ&&Object(o.hasOwn)(s,t))return a[t]=2,s[t];if((d=e.propsOptions[0])&&Object(o.hasOwn)(d,t))return a[t]=3,c[t];if(n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!bt||(a[t]=0)}}const f=mt[t];let p,h;return f?("$attrs"===t&&Object(r.track)(e,"get",t),f(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t)?(a[t]=4,n[t]):(h=u.config.globalProperties,Object(o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return i!==o.EMPTY_OBJ&&Object(o.hasOwn)(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&Object(o.hasOwn)(r,t)?(r[t]=n,!0):!Object(o.hasOwn)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!n[c]||e!==o.EMPTY_OBJ&&Object(o.hasOwn)(e,c)||t!==o.EMPTY_OBJ&&Object(o.hasOwn)(t,c)||(a=s[0])&&Object(o.hasOwn)(a,c)||Object(o.hasOwn)(r,c)||Object(o.hasOwn)(mt,c)||Object(o.hasOwn)(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const vt=Object(o.extend)({},gt,{get(e,t){if(t!==Symbol.unscopables)return gt.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(o.isGloballyWhitelisted)(t)});let bt=!0;function yt(e){const t=wt(e),n=e.proxy,i=e.ctx;bt=!1,t.beforeCreate&&Ot(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:a,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:v,deactivated:b,beforeDestroy:y,beforeUnmount:O,destroyed:_,unmounted:w,render:S,renderTracked:x,renderTriggered:j,errorCaptured:E,serverPrefetch:N,expose:k,inheritAttrs:T,components:C,directives:P,filters:I}=t;if(d&&function(e,t,n=o.NOOP,i=!1){Object(o.isArray)(e)&&(e=Et(e));for(const n in e){const s=e[n];let c;c=Object(o.isObject)(s)?"default"in s?fe(s.from||n,s.default,!0):fe(s.from||n):fe(s),Object(r.isRef)(c)&&i?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e}):t[n]=c}}(d,i,null,e.appContext.config.unwrapInjectedRef),a)for(const e in a){const t=a[e];Object(o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,Object(o.isObject)(t)&&(e.data=Object(r.reactive)(t))}if(bt=!0,c)for(const e in c){const t=c[e],r=Object(o.isFunction)(t)?t.bind(n,n):Object(o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP;0;const s=!Object(o.isFunction)(t)&&Object(o.isFunction)(t.set)?t.set.bind(n):o.NOOP,a=ar({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const e in l)_t(l[e],i,n,e);if(u){const e=Object(o.isFunction)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{de(t,e[t])})}function A(e,t){Object(o.isArray)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(f&&Ot(f,e,"c"),A(Ye,p),A(Ke,h),A(Ge,m),A(qe,g),A(Ve,v),A($e,b),A(tt,E),A(et,x),A(Qe,j),A(Je,O),A(Xe,w),A(Ze,N),Object(o.isArray)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=T&&(e.inheritAttrs=T),C&&(e.components=C),P&&(e.directives=P)}function Ot(e,t,n){l(Object(o.isArray)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function _t(e,t,n,r){const i=r.includes(".")?Oe(n,r):()=>n[r];if(Object(o.isString)(e)){const n=t[e];Object(o.isFunction)(n)&&ve(i,n)}else if(Object(o.isFunction)(e))ve(i,e.bind(n));else if(Object(o.isObject)(e))if(Object(o.isArray)(e))e.forEach(e=>_t(e,t,n,r));else{const r=Object(o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(o.isFunction)(r)&&ve(i,r,e)}else 0}function wt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:o.length||n||r?(a={},o.length&&o.forEach(e=>St(a,e,s,!0)),St(a,t,s)):a=t,i.set(t,a),a}function St(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&St(e,i,n,!0),o&&o.forEach(t=>St(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=xt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const xt={data:jt,props:kt,emits:kt,methods:kt,computed:kt,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:kt,directives:kt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(o.extend)(Object.create(null),e);for(const r in t)n[r]=Nt(e[r],t[r]);return n},provide:jt,inject:function(e,t){return kt(Et(e),Et(t))}};function jt(e,t){return t?e?function(){return Object(o.extend)(Object(o.isFunction)(e)?e.call(this,this):e,Object(o.isFunction)(t)?t.call(this,this):t)}:t:e}function Et(e){if(Object(o.isArray)(e)){const t={};for(let n=0;n{l=!0;const[n,r]=Pt(e,t,!0);Object(o.extend)(c,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if(Object(o.isArray)(s))for(let e=0;e-1,r[1]=n<0||e-1||Object(o.hasOwn)(r,"default"))&&a.push(t)}}}}const u=[c,a];return r.set(e,u),u}function It(e){return"$"!==e[0]}function At(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Rt(e,t){return At(e)===At(t)}function Mt(e,t){return Object(o.isArray)(t)?t.findIndex(t=>Rt(t,e)):Object(o.isFunction)(t)&&Rt(t,e)?0:-1}const Lt=e=>"_"===e[0]||"$stable"===e,Ft=e=>Object(o.isArray)(e)?e.map(Mn):[Mn(e)],Vt=(e,t,n)=>{if(t._n)return t;const r=X((...e)=>Ft(t(...e)),n);return r._c=!1,r},$t=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Lt(n))continue;const i=e[n];if(Object(o.isFunction)(i))t[n]=Vt(0,i,r);else if(null!=i){0;const e=Ft(i);t[n]=()=>e}}},Bt=(e,t)=>{const n=Ft(t);e.slots.default=()=>n};function Dt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ut=0;function zt(e,t){return function(n,r=null){Object(o.isFunction)(n)||(n=Object.assign({},n)),null==r||Object(o.isObject)(r)||(r=null);const i=Dt(),s=new Set;let c=!1;const a=i.app={_uid:Ut++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:jr,get config(){return i.config},set config(e){0},use:(e,...t)=>(s.has(e)||(e&&Object(o.isFunction)(e.install)?(s.add(e),e.install(a,...t)):Object(o.isFunction)(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,s,l){if(!c){0;const u=kn(n,r);return u.appContext=i,s&&t?t(u,o):e(u,o,l),c=!0,a._container=o,o.__vue_app__=a,__VUE_PROD_DEVTOOLS__&&(a._instance=u.component,function(e,t){L("app:init",e,t,{Fragment:cn,Text:an,Comment:ln,Static:un})}(a,jr)),rr(u.component)||u.component.proxy}},unmount(){c&&(e(null,a._container),__VUE_PROD_DEVTOOLS__&&(a._instance=null,function(e){L("app:unmount",e)}(a)),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a)};return a}}function Ht(e,t,n,i,s=!1){if(Object(o.isArray)(e))return void e.forEach((e,r)=>Ht(e,t&&(Object(o.isArray)(t)?t[r]:t),n,i,s));if(Ie(i)&&!s)return;const c=4&i.shapeFlag?rr(i.component)||i.component.proxy:i.el,l=s?null:c,{i:u,r:d}=e;const f=t&&t.r,p=u.refs===o.EMPTY_OBJ?u.refs={}:u.refs,h=u.setupState;if(null!=f&&f!==d&&(Object(o.isString)(f)?(p[f]=null,Object(o.hasOwn)(h,f)&&(h[f]=null)):Object(r.isRef)(f)&&(f.value=null)),Object(o.isFunction)(d))a(d,u,12,[l,p]);else{const t=Object(o.isString)(d),i=Object(r.isRef)(d);if(t||i){const r=()=>{if(e.f){const n=t?p[d]:d.value;s?Object(o.isArray)(n)&&Object(o.remove)(n,c):Object(o.isArray)(n)?n.includes(c)||n.push(c):t?(p[d]=[c],Object(o.hasOwn)(h,d)&&(h[d]=p[d])):(d.value=[c],e.k&&(p[e.k]=d.value))}else t?(p[d]=l,Object(o.hasOwn)(h,d)&&(h[d]=l)):i&&(d.value=l,e.k&&(p[e.k]=l))};l?(r.id=-1,qt(r,n)):r()}else 0}}let Wt=!1;const Yt=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Kt=e=>8===e.nodeType;function Gt(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:s,parentNode:c,remove:a,insert:l,createComment:u}}=e,d=(n,r,o,a,u,v=!1)=>{const b=Kt(n)&&"["===n.data,y=()=>m(n,r,o,a,u,b),{type:O,ref:_,shapeFlag:w,patchFlag:S}=r,x=n.nodeType;r.el=n,-2===S&&(v=!1,r.dynamicChildren=null);let j=null;switch(O){case an:3!==x?""===r.children?(l(r.el=i(""),c(n),n),j=n):j=y():(n.data!==r.children&&(Wt=!0,n.data=r.children),j=s(n));break;case ln:j=8!==x||b?y():s(n);break;case un:if(1===x||3===x){j=n;const e=!r.children.length;for(let t=0;t{c=c||!!t.dynamicChildren;const{type:l,props:u,patchFlag:d,shapeFlag:f,dirs:h}=t,m="input"===l&&h||"option"===l;if(m||-1!==d){if(h&&rt(t,null,n,"created"),u)if(m||!c||48&d)for(const t in u)(m&&t.endsWith("value")||Object(o.isOn)(t)&&!Object(o.isReservedProp)(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let l;if((l=u&&u.onVnodeBeforeMount)&&$n(l,n,t),h&&rt(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||h)&&le(()=>{l&&$n(l,n,t),h&&rt(t,null,n,"mounted")},i),16&f&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,i,s,c);for(;r;){Wt=!0;const e=r;r=r.nextSibling,a(e)}}else 8&f&&e.textContent!==t.children&&(Wt=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,i,s,c)=>{c=c||!!t.dynamicChildren;const a=t.children,l=a.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const d=c(e),f=p(s(e),t,d,n,r,o,i);return f&&Kt(f)&&"]"===f.data?s(t.anchor=f):(Wt=!0,l(t.anchor=u("]"),d,f),f)},m=(e,t,r,o,i,l)=>{if(Wt=!0,t.el=null,l){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;a(n)}}const u=s(e),d=c(e);return a(e),n(null,t,d,u,r,o,Yt(d),i),u},g=e=>{let t=0;for(;e;)if((e=s(e))&&Kt(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return s(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),C(),void(t._vnode=e);Wt=!1,d(t.firstChild,e,null,null,null),C(),t._vnode=e,Wt&&console.error("Hydration completed but contains mismatches.")},d]}const qt=le;function Jt(e){return Zt(e)}function Xt(e){return Zt(e,Gt)}function Zt(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(o.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Object(o.getGlobalThis)().__VUE_PROD_DEVTOOLS__=!1);const n=Object(o.getGlobalThis)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&F(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:s,patchProp:c,createElement:a,createText:l,createComment:u,setText:d,setElementText:f,parentNode:m,nextSibling:g,setScopeId:v=o.NOOP,cloneNode:b,insertStaticContent:y}=e,O=(e,t,n,r=null,o=null,i=null,s=!1,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!wn(e,t)&&(r=oe(e),J(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case an:_(e,t,n,r);break;case ln:w(e,t,n,r);break;case un:null==e&&S(t,n,r,s);break;case cn:M(e,t,n,r,o,i,s,c,a);break;default:1&d?E(e,t,n,r,o,i,s,c,a):6&d?L(e,t,n,r,o,i,s,c,a):(64&d||128&d)&&l.process(e,t,n,r,o,i,s,c,a,se)}null!=u&&o&&Ht(u,e&&e.ref,i,t||e,!t)},_=(e,t,n,r)=>{if(null==e)i(t.el=l(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,n,r)=>{null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=y(e.children,t,n,r,e.el,e.anchor)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),s(e),e=n;s(t)},E=(e,t,n,r,o,i,s,c,a)=>{s=s||"svg"===t.type,null==e?N(t,n,r,o,i,s,c,a):I(e,t,o,i,s,c,a)},N=(e,t,n,r,s,l,u,d)=>{let p,h;const{type:m,props:g,shapeFlag:v,transition:y,patchFlag:O,dirs:_}=e;if(e.el&&void 0!==b&&-1===O)p=e.el=b(e.el);else{if(p=e.el=a(e.type,l,g&&g.is,g),8&v?f(p,e.children):16&v&&P(e.children,p,null,r,s,l&&"foreignObject"!==m,u,d),_&&rt(e,null,r,"created"),g){for(const t in g)"value"===t||Object(o.isReservedProp)(t)||c(p,t,null,g[t],l,e.children,r,s,te);"value"in g&&c(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&$n(h,r,e)}k(p,e,e.scopeId,u,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:r,enumerable:!1})),_&&rt(e,null,r,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;w&&y.beforeEnter(p),i(p,t,n),((h=g&&g.onVnodeMounted)||w||_)&&qt(()=>{h&&$n(h,r,e),w&&y.enter(p),_&&rt(e,null,r,"mounted")},s)},k=(e,t,n,r,o)=>{if(n&&v(e,n),r)for(let t=0;t{for(let l=a;l{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let g;n&&Qt(n,!1),(g=m.onVnodeBeforeUpdate)&&$n(g,n,t,e),p&&rt(t,e,n,"beforeUpdate"),n&&Qt(n,!0);const v=i&&"foreignObject"!==t.type;if(d?A(e.dynamicChildren,d,l,n,r,v,s):a||Y(e,t,l,null,n,r,v,s,!1),u>0){if(16&u)R(l,t,h,m,n,r,i);else if(2&u&&h.class!==m.class&&c(l,"class",null,m.class,i),4&u&&c(l,"style",h.style,m.style,i),8&u){const o=t.dynamicProps;for(let t=0;t{g&&$n(g,n,t,e),p&&rt(t,e,n,"updated")},r)},A=(e,t,n,r,o,i,s)=>{for(let c=0;c{if(n!==r){for(const l in r){if(Object(o.isReservedProp)(l))continue;const u=r[l],d=n[l];u!==d&&"value"!==l&&c(e,l,d,u,a,t.children,i,s,te)}if(n!==o.EMPTY_OBJ)for(const l in n)Object(o.isReservedProp)(l)||l in r||c(e,l,n[l],null,a,t.children,i,s,te);"value"in r&&c(e,"value",n.value,r.value)}},M=(e,t,n,r,o,s,c,a,u)=>{const d=t.el=e?e.el:l(""),f=t.anchor=e?e.anchor:l("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(i(d,n,r),i(f,n,r),P(t.children,n,f,o,s,c,a,u)):p>0&&64&p&&h&&e.dynamicChildren?(A(e.dynamicChildren,h,n,o,s,c,a),(null!=t.key||o&&t===o.subTree)&&en(e,t,!0)):Y(e,t,n,f,o,s,c,a,u)},L=(e,t,n,r,o,i,s,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):D(t,n,r,o,i,s,a):U(e,t,a)},D=(e,t,n,r,o,i,s)=>{const c=e.component=Un(e,r,o);if(Me(e)&&(c.ctx.renderer=se),Xn(c),c.asyncDep){if(o&&o.registerDep(c,z),!e.el){const e=c.subTree=kn(ln);w(null,e,t,n)}}else z(c,e,t,n,o,i,s)},U=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:c,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||r!==s&&(r?!s||ne(r,s,l):!!s);if(1024&a)return!0;if(16&a)return r?ne(r,s,l):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;th&&p.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,i,s,c,a)=>{const l=e.effect=new r.ReactiveEffect(()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:l,vnode:u}=e,d=n;0,Qt(e,!1),n?(n.el=u.el,W(e,n,a)):n=u,r&&Object(o.invokeArrayFns)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$n(t,l,n,u),Qt(e,!0);const f=Z(e);0;const p=e.subTree;e.subTree=f,O(p,f,m(p.el),oe(p),e,s,c),n.el=f.el,null===d&&re(e,f.el),i&&qt(i,s),(t=n.props&&n.props.onVnodeUpdated)&&qt(()=>$n(t,l,n,u),s),__VUE_PROD_DEVTOOLS__&&$(e)}else{let r;const{el:a,props:l}=t,{bm:u,m:d,parent:f}=e,p=Ie(t);if(Qt(e,!1),u&&Object(o.invokeArrayFns)(u),!p&&(r=l&&l.onVnodeBeforeMount)&&$n(r,f,t),Qt(e,!0),a&&ae){const n=()=>{e.subTree=Z(e),ae(a,e.subTree,e,s,null)};p?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Z(e);0,O(null,r,n,i,e,s,c),t.el=r.el}if(d&&qt(d,s),!p&&(r=l&&l.onVnodeMounted)){const e=t;qt(()=>$n(r,f,e),s)}(256&t.shapeFlag||f&&Ie(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&qt(e.a,s),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&V(e),t=n=i=null}},()=>j(u),e.scope),u=e.update=()=>l.run();u.id=e.uid,Qt(e,!0),u()},W=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:c,vnode:{patchFlag:a}}=e,l=Object(r.toRaw)(s),[u]=e.propsOptions;let d=!1;if(!(i||a>0)||16&a){let r;Tt(e,t,s,c)&&(d=!0);for(const i in l)t&&(Object(o.hasOwn)(t,i)||(r=Object(o.hyphenate)(i))!==i&&Object(o.hasOwn)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=Ct(u,l,i,void 0,e,!0)):delete s[i]);if(c!==l)for(const e in c)t&&Object(o.hasOwn)(t,e)||(delete c[e],d=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let s=!0,c=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(Object(o.extend)(i,t),n||1!==e||delete i._):(s=!t.$stable,$t(t,i)),c=t}else t&&(Bt(e,t),c={default:1});if(s)for(const e in i)Lt(e)||e in c||delete i[e]})(e,t.children,n),Object(r.pauseTracking)(),T(void 0,e.update),Object(r.resetTracking)()},Y=(e,t,n,r,o,i,s,c,a=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void G(l,d,n,r,o,i,s,c,a);if(256&p)return void K(l,d,n,r,o,i,s,c,a)}8&h?(16&u&&te(l,o,i),d!==l&&f(n,d)):16&u?16&h?G(l,d,n,r,o,i,s,c,a):te(l,o,i,!0):(8&u&&f(n,""),16&h&&P(d,n,r,o,i,s,c,a))},K=(e,t,n,r,i,s,c,a,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const u=e.length,d=t.length,f=Math.min(u,d);let p;for(p=0;pd?te(e,i,s,!0,!1,f):P(t,n,r,i,s,c,a,l,f)},G=(e,t,n,r,i,s,c,a,l)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const r=e[u],o=t[u]=l?Ln(t[u]):Mn(t[u]);if(!wn(r,o))break;O(r,o,n,null,i,s,c,a,l),u++}for(;u<=f&&u<=p;){const r=e[f],o=t[p]=l?Ln(t[p]):Mn(t[p]);if(!wn(r,o))break;O(r,o,n,null,i,s,c,a,l),f--,p--}if(u>f){if(u<=p){const e=p+1,o=ep)for(;u<=f;)J(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?Ln(t[u]):Mn(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const y=p-m+1;let _=!1,w=0;const S=new Array(y);for(u=0;u=y){J(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(v=m;v<=p;v++)if(0===S[v-m]&&wn(r,t[v])){o=v;break}void 0===o?J(r,i,s,!0):(S[o-m]=u+1,o>=w?w=o:_=!0,O(r,t[o],n,null,i,s,c,a,l),b++)}const x=_?function(e){const t=e.slice(),n=[0];let r,o,i,s,c;const a=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(v=x.length-1,u=y-1;u>=0;u--){const e=m+u,o=t[e],f=e+1{const{el:s,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)return void q(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void c.move(e,t,n,se);if(c===cn){i(s,t,n);for(let e=0;e{let o;for(;e&&e!==t;)o=g(e),i(e,n,r),e=o;i(t,n,r)})(e,t,n);if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(s),i(s,t,n),qt(()=>a.enter(s),o);else{const{leave:e,delayLeave:r,afterLeave:o}=a,c=()=>i(s,t,n),l=()=>{e(s,()=>{c(),o&&o()})};r?r(s,c,l):l()}else i(s,t,n)},J=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=c&&Ht(c,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&f,h=!Ie(e);let m;if(h&&(m=s&&s.onVnodeBeforeUnmount)&&$n(m,t,e),6&u)ee(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);p&&rt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,se,r):l&&(i!==cn||d>0&&64&d)?te(l,t,n,!1,!0):(i===cn&&384&d||!o&&16&u)&&te(a,t,n),r&&X(e)}(h&&(m=s&&s.onVnodeUnmounted)||p)&&qt(()=>{m&&$n(m,t,e),p&&rt(e,null,t,"unmounted")},n)},X=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===cn)return void Q(n,r);if(t===un)return void x(e);const i=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,s=()=>t(n,i);r?r(e.el,i,s):s()}else i()},Q=(e,t)=>{let n;for(;e!==t;)n=g(e),s(e),e=n;s(t)},ee=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:c,um:a}=e;r&&Object(o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,J(c,e,t,n)),a&&qt(a,t),qt(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&B(e)},te=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?oe(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el),ie=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):O(t._vnode||null,e,t,null,null,null,n),C(),t._vnode=e},se={p:O,um:J,m:q,r:X,mt:D,mc:P,pc:Y,pbc:A,n:oe,o:e};let ce,ae;return t&&([ce,ae]=t(se)),{render:ie,hydrate:ce,createApp:zt(ie,ce)}}function Qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function en(e,t,n=!1){const r=e.children,i=t.children;if(Object(o.isArray)(r)&&Object(o.isArray)(i))for(let e=0;ee&&(e.disabled||""===e.disabled),nn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rn=(e,t)=>{const n=e&&e.to;if(Object(o.isString)(n)){if(t){const e=t(n);return e}return null}return n};function on(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:c,shapeFlag:a,children:l,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||tn(u))&&16&a)for(let e=0;e{16&b&&u(y,e,t,o,i,s,c,a)};v?g(n,l):d&&g(d,f)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=tn(e.props),g=m?n:u,b=m?r:p;if(s=s||nn(u),O?(f(e.dynamicChildren,O,g,o,i,s,c),en(e,t,!0)):a||d(e,t,g,b,o,i,s,c,!1),v)m||on(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=rn(t.props,h);e&&on(t,e,null,l,0)}else m&&on(t,u,p,l,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:c,children:a,anchor:l,targetAnchor:u,target:d,props:f}=e;if(d&&i(u),(s||!tn(f))&&(i(l),16&c))for(let e=0;e0?fn||o.EMPTY_ARR:null,hn(),gn>0&&fn&&fn.push(e),e}function yn(e,t,n,r,o,i){return bn(Nn(e,t,n,r,o,i,!0))}function On(e,t,n,r,o){return bn(kn(e,t,n,r,o,!0))}function _n(e){return!!e&&!0===e.__v_isVNode}function wn(e,t){return e.type===t.type&&e.key===t.key}function Sn(e){mn=e}const xn="__vInternal",jn=({key:e})=>null!=e?e:null,En=({ref:e,ref_key:t,ref_for:n})=>null!=e?Object(o.isString)(e)||Object(r.isRef)(e)||Object(o.isFunction)(e)?{i:W,r:e,k:t,f:!!n}:e:null;function Nn(e,t=null,n=null,r=0,i=null,s=(e===cn?0:1),c=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jn(t),ref:t&&En(t),scopeId:Y,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Fn(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=Object(o.isString)(n)?8:16),gn>0&&!c&&fn&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&fn.push(l),l}const kn=Tn;function Tn(e,t=null,n=null,i=0,s=null,c=!1){if(e&&e!==it||(e=ln),_n(e)){const r=Pn(e,t,!0);return n&&Fn(r,n),gn>0&&!c&&fn&&(6&r.shapeFlag?fn[fn.indexOf(e)]=r:fn.push(r)),r.patchFlag|=-2,r}if(cr(e)&&(e=e.__vccOpts),t){t=Cn(t);let{class:e,style:n}=t;e&&!Object(o.isString)(e)&&(t.class=Object(o.normalizeClass)(e)),Object(o.isObject)(n)&&(Object(r.isProxy)(n)&&!Object(o.isArray)(n)&&(n=Object(o.extend)({},n)),t.style=Object(o.normalizeStyle)(n))}return Nn(e,t,n,i,s,Object(o.isString)(e)?1:oe(e)?128:(e=>e.__isTeleport)(e)?64:Object(o.isObject)(e)?4:Object(o.isFunction)(e)?2:0,c,!0)}function Cn(e){return e?Object(r.isProxy)(e)||xn in e?Object(o.extend)({},e):e:null}function Pn(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:c}=e,a=t?Vn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&jn(a),ref:t&&t.ref?n&&i?Object(o.isArray)(i)?i.concat(En(t)):[i,En(t)]:En(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==cn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pn(e.ssContent),ssFallback:e.ssFallback&&Pn(e.ssFallback),el:e.el,anchor:e.anchor}}function In(e=" ",t=0){return kn(an,null,e,t)}function An(e,t){const n=kn(un,null,e);return n.staticCount=t,n}function Rn(e="",t=!1){return t?(pn(),On(ln,null,e)):kn(ln,null,e)}function Mn(e){return null==e||"boolean"==typeof e?kn(ln):Object(o.isArray)(e)?kn(cn,null,e.slice()):"object"==typeof e?Ln(e):kn(an,null,String(e))}function Ln(e){return null===e.el||e.memo?e:Pn(e)}function Fn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Fn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||xn in t?3===r&&W&&(1===W.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=W}}else Object(o.isFunction)(t)?(t={default:t,_ctx:W},n=32):(t=String(t),64&r?(n=16,t=[In(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vn(...e){const t={};for(let n=0;nzn||W,Wn=e=>{zn=e,e.scope.on()},Yn=()=>{zn&&zn.scope.off(),zn=null};function Kn(e){return 4&e.vnode.shapeFlag}let Gn,qn,Jn=!1;function Xn(e,t=!1){Jn=t;const{props:n,children:i}=e.vnode,s=Kn(e);!function(e,t,n,i=!1){const s={},c={};Object(o.def)(c,xn,1),e.propsDefaults=Object.create(null),Tt(e,t,s,c);for(const t in e.propsOptions[0])t in s||(s[t]=void 0);n?e.props=i?s:Object(r.shallowReactive)(s):e.type.props?e.props=s:e.props=c,e.attrs=c}(e,n,s,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Object(r.toRaw)(t),Object(o.def)(t,"_",n)):$t(t,e.slots={})}else e.slots={},t&&Bt(e,t);Object(o.def)(e.slots,xn,1)})(e,i);const c=s?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Object(r.markRaw)(new Proxy(e.ctx,gt)),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?nr(e):null;Wn(e),Object(r.pauseTracking)();const s=a(i,e,0,[e.props,n]);if(Object(r.resetTracking)(),Yn(),Object(o.isPromise)(s)){if(s.then(Yn,Yn),t)return s.then(n=>{Zn(e,n,t)}).catch(t=>{u(t,e,0)});e.asyncDep=s}else Zn(e,s,t)}else tr(e,t)}(e,t):void 0;return Jn=!1,c}function Zn(e,t,n){Object(o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(o.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Object(r.proxyRefs)(t)),tr(e,n)}function Qn(e){Gn=e,qn=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vt))}}const er=()=>!Gn;function tr(e,t,n){const i=e.type;if(!e.render){if(!t&&Gn&&!i.render){const t=i.template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:c}=i,a=Object(o.extend)(Object(o.extend)({isCustomElement:n,delimiters:s},r),c);i.render=Gn(t,a)}}e.render=i.render||o.NOOP,qn&&qn(e)}__VUE_OPTIONS_API__&&(Wn(e),Object(r.pauseTracking)(),yt(e),Object(r.resetTracking)(),Yn())}function nr(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Object(r.track)(e,"get","$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function rr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in mt?mt[n](e):void 0}))}const or=/(?:^|[-_])(\w)/g;function ir(e,t=!0){return Object(o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function sr(e,t,n=!1){let r=ir(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(or,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function cr(e){return Object(o.isFunction)(e)&&"__vccOpts"in e}const ar=(e,t)=>Object(r.computed)(e,t,Jn);function lr(){return null}function ur(){return null}function dr(e){0}function fr(e,t){return null}function pr(){return mr().slots}function hr(){return mr().attrs}function mr(){const e=Hn();return e.setupContext||(e.setupContext=nr(e))}function gr(e,t){const n=Object(o.isArray)(e)?e.reduce((e,t)=>(e[t]={},e),{}):e;for(const e in t){const r=n[e];r?Object(o.isArray)(r)||Object(o.isFunction)(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n}function vr(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function br(e){const t=Hn();let n=e();return Yn(),Object(o.isPromise)(n)&&(n=n.catch(e=>{throw Wn(t),e})),[n,()=>Wn(t)]}function yr(e,t,n){const r=arguments.length;return 2===r?Object(o.isObject)(t)&&!Object(o.isArray)(t)?_n(t)?kn(e,null,[t]):kn(e,t):kn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&_n(n)&&(n=[n]),kn(e,t,n))}const Or=Symbol(""),_r=()=>{{const e=fe(Or);return e||s("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function wr(){return void 0}function Sr(e,t,n,r){const o=n[r];if(o&&xr(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&fn&&fn.push(e),!0}const jr="3.2.37",Er={createComponentInstance:Un,setupComponent:Xn,renderComponentRoot:Z,setCurrentRenderingInstance:K,isVNode:_n,normalizeVNode:Mn},Nr=null,kr=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){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"EMPTY_ARR",(function(){return V})),n.d(t,"EMPTY_OBJ",(function(){return F})),n.d(t,"NO",(function(){return B})),n.d(t,"NOOP",(function(){return $})),n.d(t,"PatchFlagNames",(function(){return o})),n.d(t,"camelize",(function(){return fe})),n.d(t,"capitalize",(function(){return me})),n.d(t,"def",(function(){return ye})),n.d(t,"escapeHtml",(function(){return C})),n.d(t,"escapeHtmlComment",(function(){return I})),n.d(t,"extend",(function(){return H})),n.d(t,"genPropsAccessExp",(function(){return xe})),n.d(t,"generateCodeFrame",(function(){return c})),n.d(t,"getGlobalThis",(function(){return we})),n.d(t,"hasChanged",(function(){return ve})),n.d(t,"hasOwn",(function(){return K})),n.d(t,"hyphenate",(function(){return he})),n.d(t,"includeBooleanAttr",(function(){return d})),n.d(t,"invokeArrayFns",(function(){return be})),n.d(t,"isArray",(function(){return G})),n.d(t,"isBooleanAttr",(function(){return u})),n.d(t,"isBuiltInDirective",(function(){return le})),n.d(t,"isDate",(function(){return X})),n.d(t,"isFunction",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return s})),n.d(t,"isHTMLTag",(function(){return E})),n.d(t,"isIntegerKey",(function(){return ce})),n.d(t,"isKnownHtmlAttr",(function(){return v})),n.d(t,"isKnownSvgAttr",(function(){return b})),n.d(t,"isMap",(function(){return q})),n.d(t,"isModelListener",(function(){return z})),n.d(t,"isNoUnitNumericStyleProp",(function(){return g})),n.d(t,"isObject",(function(){return te})),n.d(t,"isOn",(function(){return U})),n.d(t,"isPlainObject",(function(){return se})),n.d(t,"isPromise",(function(){return ne})),n.d(t,"isReservedProp",(function(){return ae})),n.d(t,"isSSRSafeAttrName",(function(){return h})),n.d(t,"isSVGTag",(function(){return N})),n.d(t,"isSet",(function(){return J})),n.d(t,"isSpecialBooleanAttr",(function(){return l})),n.d(t,"isString",(function(){return Q})),n.d(t,"isSymbol",(function(){return ee})),n.d(t,"isVoidTag",(function(){return k})),n.d(t,"looseEqual",(function(){return A})),n.d(t,"looseIndexOf",(function(){return R})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return x})),n.d(t,"normalizeProps",(function(){return j})),n.d(t,"normalizeStyle",(function(){return y})),n.d(t,"objectToString",(function(){return re})),n.d(t,"parseStringStyle",(function(){return w})),n.d(t,"propsToAttrMap",(function(){return m})),n.d(t,"remove",(function(){return W})),n.d(t,"slotFlagsText",(function(){return i})),n.d(t,"stringifyStyle",(function(){return S})),n.d(t,"toDisplayString",(function(){return M})),n.d(t,"toHandlerKey",(function(){return ge})),n.d(t,"toNumber",(function(){return Oe})),n.d(t,"toRawType",(function(){return ie})),n.d(t,"toTypeString",(function(){return oe}));const o={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},s=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function c(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",l=r(a),u=r(a+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function d(e){return!!e||""===e}const f=/[>/="'\u0009\u000a\u000c\u0020]/,p={};function h(e){if(p.hasOwnProperty(e))return p[e];const t=f.test(e);return t&&console.error("unsafe attribute name: "+e),p[e]=!t}const m={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},g=r("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),v=r("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,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"),b=r("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,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function y(e){if(G(e)){const t={};for(let n=0;n{if(e){const n=e.split(_);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function S(e){let t="";if(!e||Q(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:he(n);(Q(r)||"number"==typeof r&&g(o))&&(t+=`${o}:${r};`)}return t}function x(e){let t="";if(Q(e))t=e;else if(G(e))for(let n=0;n]/;function C(e){const t=""+e,n=T.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|A(e,t))}const M=e=>Q(e)?e:null==e?"":G(e)||te(e)&&(e.toString===re||!Z(e.toString))?JSON.stringify(e,L,2):String(e),L=(e,t)=>t&&t.__v_isRef?L(e,t.value):q(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:J(t)?{[`Set(${t.size})`]:[...t.values()]}:!te(t)||G(t)||se(t)?t:String(t),F={},V=[],$=()=>{},B=()=>!1,D=/^on[^a-z]/,U=e=>D.test(e),z=e=>e.startsWith("onUpdate:"),H=Object.assign,W=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y=Object.prototype.hasOwnProperty,K=(e,t)=>Y.call(e,t),G=Array.isArray,q=e=>"[object Map]"===oe(e),J=e=>"[object Set]"===oe(e),X=e=>"[object Date]"===oe(e),Z=e=>"function"==typeof e,Q=e=>"string"==typeof e,ee=e=>"symbol"==typeof e,te=e=>null!==e&&"object"==typeof e,ne=e=>te(e)&&Z(e.then)&&Z(e.catch),re=Object.prototype.toString,oe=e=>re.call(e),ie=e=>oe(e).slice(8,-1),se=e=>"[object Object]"===oe(e),ce=e=>Q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ae=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),le=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ue=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},de=/-(\w)/g,fe=ue(e=>e.replace(de,(e,t)=>t?t.toUpperCase():"")),pe=/\B([A-Z])/g,he=ue(e=>e.replace(pe,"-$1").toLowerCase()),me=ue(e=>e.charAt(0).toUpperCase()+e.slice(1)),ge=ue(e=>e?"on"+me(e):""),ve=(e,t)=>!Object.is(e,t),be=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Oe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _e;const we=()=>_e||(_e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),Se=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function xe(e){return Se.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}}.call(this,n("./node_modules/webpack/buildin/global.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 s(){throw new Error("clearTimeout has not been defined")}function c(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:s}catch(e){r=s}}();var a,l=[],u=!1,d=-1;function f(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;n{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),y={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},O=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,_="[-+]?\\d*\\.?\\d+",w={rgb:new RegExp("rgb"+O(_,_,_)),rgba:new RegExp("rgba"+O(_,_,_,_)),hsl:new RegExp("hsl"+O(_,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+O(_,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",_)),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})$/},S=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},x=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},j=(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},E=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=j(o,r,e+1/3),s=j(o,r,e),c=j(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},N=e=>(parseFloat(e)%360+360)%360/360,k=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function T(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=w.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(y,e)?y[e]:(t=w.rgb.exec(e),Array.isArray(t)?(S(t[1])<<24|S(t[2])<<16|S(t[3])<<8|255)>>>0:(t=w.rgba.exec(e),t?(S(t[1])<<24|S(t[2])<<16|S(t[3])<<8|x(t[4]))>>>0:(t=w.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=w.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=w.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=w.hsl.exec(e),t?(255|E(N(t[1]),k(t[2]),k(t[3])))>>>0:(t=w.hsla.exec(e),t?(E(N(t[1]),k(t[2]),k(t[3]))|x(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const C={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},P={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},I="turn",A="rad",R="deg",M=/\/\*[\s\S]{0,1000}?\*\//gm;const L=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function F(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 V(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=h(/^([+-]?(?=(\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=R){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case I:r=""+(360*n).toFixed(2);break;case A:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==P[o]&&(r=P[o]),r}function $(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:T(n)}:null:{color:T(n)}}function B(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=V(e);if(t)n.angle=t;else{n.angle="180";const t=$(e);t&&o.push(t)}}else{const t=$(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?).{0,500}?(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}function D(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 l(o){const i=f(f({},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 u(){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 l("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 d(e=[]){let t;const n=e||[];for(;t=u();)!1!==t&&n.push(t);return n}function p(){let t;const n=[];for(s(),d(n);e.length&&"}"!==e.charAt(0)&&(t=E()||O());)t&&(n.push(t),d(n));return n}function h(){return i(/^{\s*/)}function m(){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 v(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return l("property missing ':'");const n=t.replace(M,""),r=b(n);let o=(()=>{const e=C[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(M,""):"";switch(o){case"backgroundImage":[o,a]=B(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 l("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>F(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(L.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=F(a))}const u=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),u}function y(){let e,t=[];if(!h())return l("missing '{'");for(d(t);e=v();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),d(t));return m()?t:l("missing '}'")}function O(){const e=c(),t=g();return t?(d(),e({type:"rule",selectors:t,declarations:y()})):l("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:y()}):null}function w(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=w("import"),x=w("charset"),j=w("namespace");function E(){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 l("@keyframes missing name");const r=t[1];if(!h())return l("@keyframes missing '{'");let o,s=d();for(;o=_();)s.push(o),s=s.concat(d());return m()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):l("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!h())return l("@media missing '{'");const r=d().concat(p());return m()?e({type:"media",media:n,rules:r}):l("@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(!h())return l("@supports missing '{'");const r=d().concat(p());return m()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}()||S()||x()||j()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!h())return l("@document missing '{'");const o=d().concat(p());return m()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!h())return l("@page missing '{'");let n,r=d();for(;n=v();)r.push(n),r=r.concat(d());return m()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!h())return l("@host missing '{'");const t=d().concat(p());return m()?e({type:"host",rules:t}):l("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!h())return l("@font-face missing '{'");let t,n=d();for(;t=v();)n.push(t),n=n.concat(d());return m()?e({type:"font-face",declarations:n}):l("@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=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)}function U(e,t){if(e===t)return!0;let n=W(e),r=W(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=G(e),r=G(t),n||r)return e===t;if(n=H(e),r=H(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r"[object Date]"===X(e),Y=e=>"function"==typeof e,K=e=>"string"==typeof e,G=e=>"symbol"==typeof e,q=e=>null!==e&&"object"==typeof e,J=Object.prototype.toString,X=e=>J.call(e),Z=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1));let Q=Object.create(null);const ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{ee.$on(e,t,n)}):(Q[e]||(Q[e]=[]),Q[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=(Q[e]||[]).slice(),r=n.length;for(let e=0;e{ee.$off(e,t)}),ee;const n=Q[e];if(!n)return ee;if(!t)return Q[e]=null,ee;let r;const o=n.length;for(let e=0;ee;function be(){return ve}let ye=(e,t)=>{};function Oe(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 _e(e){let t=e;return/^assets/.test(t)&&(t=ne?`${oe}./${t}`:`${te}${t}`),t}function we(e){return"on"+Z(e)}function Se(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=we(e[0]),r=we(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function xe(e){return null==e}function je(e,t){return!(!t||!e)&&e.match(t)}class Ee{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 Ne{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){const{tagName:t,id:n,classList:r}=e,o=[this.universal,this.id[n],this.type[t]];r.size&&r.forEach(e=>o.push(this.class[e]));const i=o.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new Ee;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}removeById(e,t){Ne.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){Ne.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){Ne.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 ke(e){return e?" "+e:""}class Te{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class Ce extends Te{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 Pe extends Ce{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Ce&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${ke(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 Ce&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof Ce&&this.head.removeSort(e,null!=t?t:this)}}class Ie extends Ce{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+ke(this.combinator)}match(){return!0}}class Ae extends Ce{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${ke(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 Re extends Ce{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${ke(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 Me extends Ce{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${ke(this.combinator)}`}match(e){return!!e&&!(!e.classList.size||!e.classList.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 Le extends Ce{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${ke(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const Fe=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Ve extends Ce{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||!r.attributes)return!1;const o=""+Fe(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||!t.attributes)&&!xe(Fe(t,e))}toString(){return`[${this.attribute}${ke(this.test)}${this.test&&this.value||""}]${ke(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class $e extends Ce{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 Be{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 De{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 Ue extends Te{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 Be(e.map(e=>new De(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e){return!!e&&this.groups.every((t,n)=>{if(0===n)return!!(e=t.match(e));if(null==e?void 0:e.parentNode){let n=e.parentNode;for(;n;){if(e=t.match(n))return!0;n=n.parentNode}}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){if(!this.dynamic)return this.match(e);const n=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return n.push({left:e,right:e}),!!(e=r)}let o=e;for(;o=o.parentNode;){const r=t.mayMatch(o);if(r)return n.push({left:o,right:null}),e=r,!0}return!1});if(!r)return!1;if(!t)return r;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 He=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),We={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*"},Ye={};function Ke(e,t,n){let r="";He&&(r="gy"),Ye[e]||(Ye[e]=new RegExp(We[e],r));const o=Ye[e];let i;if(He)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 Ge(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=Ke("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}=Ke("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}=Ke("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 qe(e,t){let n=Ge(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=Ge(e,r);return{start:t,end:r,value:o}}function Je(e,t){const{result:n,regexp:r}=Ke("combinatorRegEx",e,t);if(!n)return null;let o;o=He?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}function Xe(e){return"declaration"===e.type}function Ze(e){switch(e.type){case"*":return new Ie;case"#":return new Ae(e.identifier);case"":return new Re(e.identifier.replace(/-/,"").toLowerCase());case".":return new Me(e.identifier);case":":return new Le(e.identifier);case"[]":return e.test?new Ve(e.property,e.test,e.value):new Ve(e.property);default:return null}}function Qe(e){return 0===e.length?new $e(new Error("Empty simple selector sequence.")):1===e.length?Ze(e[0]):new Pe(e.map(Ze))}function et(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=Ke("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=He?[e]:e.split(" "),c.forEach(e=>{if(!He){if(""===e)return;n=0}do{const t=qe(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=Je(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 $e(new Error("Empty selector."));if(1===e.length)return Qe(e[0][0]);const t=[];for(const n of e){const e=Qe(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new Ue(t)}(t.value):new $e(new Error("Empty selector"))}catch(e){return new $e(e)}}function tt(e=[]){const t=be();return e.map(e=>{const n=e.declarations.filter(Xe).map(function(e){return t=>{const n=e(t);if(!ne&&!n)throw new Error("beforeLoadStyle hook must returns the processed style object");return n}}(t)),r=e.selectors.map(et);return new ze(r,n,e.hash)})}let nt;function rt(){const e=r[ie];if(!nt||e){const t=tt(e);nt?nt.append(t):nt=new Ne(t),r[ie]=void 0}return r[se]&&(r[se].forEach(e=>{nt.delete(e)}),r[se]=void 0),nt}const ot=["%c[native]%c","color: red","color: auto"],it={},{bridge:{callNative:st,callNativeWithPromise:ct,callNativeWithCallbackId:at},device:{platform:{OS:lt,Localization:ut={}},screen:{scale:dt}},device:ft,document:pt,register:ht}=r.Hippy,mt=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 fe(...ot,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>pt.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})}))},gt=new Map,vt={Localization:ut,hippyNativeDocument:pt,hippyNativeRegister:ht,Platform:lt,PixelRatio:dt,ConsoleModule:r.ConsoleModule||r.console,callNative:st,callNativeWithPromise:ct,callNativeWithCallbackId:at,AsyncStorage:r.Hippy.asyncStorage,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=[]),fe(...ot,"callUIFunction",{nodeId:o,funcName:n,params:i}),pt.callUIFunction(o,n,i,s)},Clipboard:{getString(){return vt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){vt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return vt.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()),vt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return vt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){vt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=ft,{statusBarHeight:t}=e;return{window:ft.window,screen:f(f({},e),{},{statusBarHeight:t})}},get Device(){var e;return void 0===it.Device&&(vt.isIOS()?(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.Device)?it.Device=r.__HIPPYNATIVEGLOBAL__.Device:it.Device="iPhone":vt.isAndroid()?it.Device="Android device":it.Device="Unknown device"),it.Device},get screenIsVertical(){return vt.Dimensions.window.width"android"===vt.Platform,isIOS:()=>"ios"===vt.Platform,measureInWindow:e=>mt(e,"measureInWindow"),measureInAppWindow:e=>vt.isAndroid()?mt(e,"measureInWindow"):mt(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`));fe(...ot,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),pt.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:()=>vt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===gt.size&&vt.callNative("NetInfo","addListener",n),ee.$on(n,t),gt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(vt.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"),gt.size<=1&&vt.callNative("NetInfo","removeListener",n);const r=gt.get(t);r&&(ee.$off(n,r),gt.delete(t),gt.size<1&&vt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===it.isIPhoneX){let e=!1;vt.isIOS()&&(e=20!==vt.Dimensions.screen.statusBarHeight),it.isIPhoneX=e}return it.isIPhoneX},get OnePixel(){if(void 0===it.OnePixel){const e=vt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),it.OnePixel=t}return it.OnePixel},get APILevel(){var e,t;return vt.isAndroid()?(null===(t=null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.Platform)||void 0===t?void 0:t.APILevel)?r.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(pe("Vue.Native.APILevel needs higher Android SDK version to retrieve"),null):(pe("Vue.Native.APIVersion is available in Android only"),null)},get OSVersion(){var e;return vt.isIOS()&&(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.OSVersion)?r.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var e,t;return vt.isIOS()&&(null===(e=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===e?void 0:e.OSVersion)?null===(t=null==r?void 0:r.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=it.COLOR_PARSER)&&void 0!==t?t:it.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=T(e)),n[e]},getElemCss(e){const t=Object.create(null);try{rt().query(e).selectors.forEach(n=>{je(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){pe("getDomCss Error:",e)}return t},version:ce},bt=new Set;let yt=!1;const Ot={exitApp(){vt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(yt||(yt=!0,Ot.initEventListener()),vt.callNative("DeviceEventModule","setListenBackPress",!0),bt.add(e),{remove(){Ot.removeListener(e)}}),removeListener(e){bt.delete(e),0===bt.size&&vt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(bt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&Ot.exitApp()})}},_t={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},wt=vt.isAndroid()?Ot:_t,St=new Map;function xt(e,t){if(!e)throw new Error("tagName can not be empty");const n=he(e);St.has(n)||St.set(n,t.component)}function jt(e){const t=he(e);return St.get(t)}const Et=new Map,Nt={number:"numeric",text:"default",search:"web-search"},kt={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"}},Tt={component:{name:re.View,eventNamesMap:Oe([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:f({},kt),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}}},Ct={component:{name:re.View,attributeMaps:Tt.component.attributeMaps,eventNamesMap:Tt.component.eventNamesMap,processEventData:Tt.component.processEventData}},Pt={component:{name:re.View}},It={component:{name:re.Image,eventNamesMap:Tt.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:f({placeholder:{name:"defaultSource",propsValue(e){const t=_e(e);return(null==t?void 0:t.indexOf(te))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&pe(`img placeholder ${t} recommend to use base64 image or local path image`),t}},src:e=>_e(e)},kt)}},At={component:{name:re.ListView,defaultNativeStyle:{flex:1},attributeMaps:f({},kt),eventNamesMap:Oe("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}}},Rt={component:{name:re.ListViewItem,attributeMaps:f({},kt),eventNamesMap:Oe([["disappear","onDisappear"]])}},Mt={component:{name:re.Text,attributeMaps:Tt.component.attributeMaps,eventNamesMap:Tt.component.eventNamesMap,processEventData:Tt.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},Lt=Mt,Ft=Mt,Vt={component:f(f({},Mt.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(pe("href attribute can't apply effect in native with url: "+e),""):e}}})},$t={component:{name:re.TextInput,attributeMaps:f({type:{name:"keyboardType",propsValue(e){const t=Nt[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},kt),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Oe([["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}}},Bt={component:{name:re.TextInput,defaultNativeProps:f(f({},$t.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:f(f({},$t.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:$t.component.defaultNativeStyle,eventNamesMap:$t.component.eventNamesMap,processEventData:$t.component.processEventData}},Dt={component:{name:re.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}}};Et.set("div",Tt),Et.set("button",Ct),Et.set("form",Pt),Et.set("img",It),Et.set("ul",At),Et.set("li",Rt),Et.set("span",Mt),Et.set("label",Lt),Et.set("p",Ft),Et.set("a",Vt),Et.set("input",$t),Et.set("textarea",Bt),Et.set("iframe",Dt);var Ut={install(){Et.forEach((e,t)=>{xt(t,e)})}};function zt(){const{Localization:e}=vt;return!!e&&1===e.direction}const Ht=0,Wt=1,Yt={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},Kt={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Gt="addEventListener",qt="removeEventListener";let Jt;function Xt(){return Jt}function Zt(e,t){Jt[e]=t}class Qt{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 en extends Qt{}class tn extends Qt{}class nn extends Qt{}class rn extends Qt{}class on extends Qt{}class sn extends Qt{}class cn extends Qt{}class an extends Qt{}class ln extends Qt{}function un(e){return"string"==typeof e.value}const dn=new Map;function fn(e,t){dn.set(t,e)}function pn(e){dn.delete(e)}function hn(e){return dn.get(e)||null}function mn(e){var t,n;t=t=>{(t.timeRemaining()>0||t.didTimeout)&&function e(t){var n;"number"==typeof t?pn(t):t&&(pn(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(e)},n={timeout:50},r.requestIdleCallback?r.requestIdleCallback(t,n):setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1)}function gn(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new tn(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 Qt(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 pe(...bn,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};r.__GLOBAL__&&(r.__GLOBAL__.jsModuleList.EventDispatcher=yn);class On{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&U(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 _n;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE"}(_n||(_n={}));let wn=!1,Sn=[];const xn=["%c[native]%c","color: red","color: auto"];function jn(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!!Yt[e]}(r)?Yt[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Wt&&t.removeEventListener(n,s,i),o===Ht&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function En(e,t){de()&&fe(...xn,t,e)}function Nn(){wn||(wn=!0,0!==Sn.length?Object(o.nextTick)().then(()=>{const e=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}(Sn),{rootViewId:t}=Xt(),n=new r.Hippy.SceneBuilder(t);e.forEach(e=>{switch(e.type){case _n.CREATE:En(e.printedNodes,"createNode"),n.create(e.nodes),jn(e.eventNodes,n);break;case _n.UPDATE:En(e.printedNodes,"updateNode"),n.update(e.nodes),jn(e.eventNodes,n);break;case _n.DELETE:En(e.printedNodes,"deleteNode"),n.delete(e.nodes);break;case _n.MOVE:En(e.printedNodes,"moveNode"),n.move(e.nodes)}}),n.build(),wn=!1,Sn=[]}):wn=!1)}var kn;!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=2]="TextNode",e[e.CommentNode=3]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(kn||(kn={}));class Tn extends On{constructor(e){super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=Tn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===kn.ElementNode}(e)}static getUniqueNodeId(){return ae+=1,ae%10==0&&(ae+=1),ae}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}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=gn(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:vn}):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=gn(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:vn}):this.insertChildNativeNode(n)}appendChild(e){const t=e;if(!t)throw new Error("No child to append");this.lastChild!==t&&(t.parentNode&&t.parentNode!==this&&t.parentNode.removeChild(t),t.isMounted&&this.removeChild(t),t.parentNode=this,this.lastChild&&(t.prevSibling=this.lastChild,this.lastChild.nextSibling=t),this.childNodes.push(t),this.insertChildNativeNode(t))}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,o=r.convertToNativeNodes(!0,t);r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),fn(t,t.nodeId)}),function([e,t,n]){Sn.push({type:_n.CREATE,nodes:e,eventNodes:t,printedNodes:n}),Nn()}(o)}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Sn.push({type:_n.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&&(Sn.push({type:_n.DELETE,nodes:e,eventNodes:[],printedNodes:t}),Nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Sn.push({type:_n.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),Nn())}(this.convertToNativeNodes(e,{}))}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}=Xt(),s=null!=n?n:{},c=f({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=function(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}(this);let l=void 0;if(!ne){const e={};a&&Array.isArray(a.eventList)&&a.eventList.forEach(t=>{const{name:n,listener:r,type:o}=t;o===Ht&&Object.assign(e,{[n]:r})}),Object.assign(l={},c,t),l.listeners=e}return[[[c,t]],[a],[l]]}}class Cn extends Tn{constructor(e){super(kn.TextNode),this.text=e}setText(e){this.text=e,this.parentNode&&this.nodeType===kn.ElementNode&&this.parentNode.setText(e)}}function Pn(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}=Xt(),{width:r}=vt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=jt(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Xt();return super.isRootNode()||this.id===e}appendChild(e){e instanceof Cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}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(r.split(" ").filter(e=>e.trim()));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){pe(`Property ${o} must be string:${e.message}`)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===ue||ue?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(!vt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=vt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=vt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=vt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=vt.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){if(!ne)throw e}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]=B(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(C,r)&&(r=C[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?vt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(ge.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),vt.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"+me(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;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Gt,r,o,i)),super.addEventListener(r,o,i),Pn(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==Ht&&(this.events[t].type=Ht):this.events[t]={name:t,type:Ht,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};yn.receiveComponentEvent(c,e)}),isCapture:!1}}),this.updateNativeNode()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(qt,r,o,i)),super.removeEventListener(r,o,i),Pn(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Wt)}),this.updateNativeNode()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,un(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();ye(this,n),this.component.defaultNativeStyle&&(n=f(f({},this.component.defaultNativeStyle),n));const r={name:this.component.name,props:f(f({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return ne||r.props&&(r.props.attributes=this.getNodeAttributes()),function(e,t){const n=t;e.component.name===re.TextInput&&zt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===re.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&pe("overflow-x and overflow-y for View can not work together"),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=zt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&pe("Only one child node is acceptable for View with overflow"),e.childNodes.length&&e.nodeType===kn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=_e(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){vt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){vt.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=Object(i.toRaw)(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return rt().query(this).selectors.forEach(t=>{var n,r;je(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&&(e[t.property]=t.value)})}),e=In.parseRem(f(f({},e),this.getInlineStyle())),e}hackNativeProps(e){const t=e;"img"===this.tagName&&vt.isIOS()&&(t.source=[{uri:t.src}],t.src=void 0)}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]=Y(r)?r(this):Object(i.toRaw)(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=Object(i.toRaw)(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=Object(i.toRaw)(r));const o=this.component.attributeMaps[t];if(K(o))return void(e[o]=Object(i.toRaw)(r));if(Y(o))return void(e[t]=Object(i.toRaw)(o(r)));const{name:s,propsValue:c,jointKey:a}=o;Y(c)&&(r=c(r)),a?(e[a]=null!==(n=e[a])&&void 0!==n?n:{},Object.assign(e[a],{[s]:Object(i.toRaw)(r)})):e[s]=Object(i.toRaw)(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=Object(i.toRaw)(n[t])}),this.hackNativeProps(e),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=f({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,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"+me(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){let e;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>e,set:t=>{e=void 0===t?"flex":t,this.updateNativeNode()}})}}function An(e){const t={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function n(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?vt.parseColor(t):t}function s(e){return"loop"===e?-1:e}function d(e){const{mode:o="timing",valueType:i,startValue:a,toValue:l}=e,d=u(e,c),p=f(f({},t),d);void 0!==i&&(p.valueType=e.valueType),p.startValue=n(p.valueType,a),p.toValue=n(p.valueType,l),p.repeatCount=s(p.repeatCount),p.mode=o;const h=new r.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function p(e,t={}){const n={};return Object.keys(e).forEach(o=>{if(Array.isArray(e[o])){const i=e[o],{repeatCount:c}=i[i.length-1],a=i.map(e=>{const{animationId:n,animation:r}=d(f(f({},e),{},{repeatCount:0}));return Object.assign(t,{[n]:r}),{animationId:n,follow:!0}}),{animationId:l,animation:u}=function(e,t=0){const n=new r.Hippy.AnimationSet({children:e,repeatCount:t}),o=n.getId();return{animation:n,animationId:o}}(a,s(c));n[o]={animationId:l},Object.assign(t,{[l]:u})}else{const r=e[o],{animationId:i,animation:s}=d(r);Object.assign(t,{[i]:s}),n[o]={animationId:i}}}),n}function h(e){const{transform:t}=e,n=u(e,a);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}e.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[we("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()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=u(e.actions,l);this.animationIdsMap={};const r=p(n,this.animationIdsMap);if(t){const e=p(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=Object(i.toRaw)(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[we(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[we(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=h(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.start()}))},resume(){h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;h(this.style).forEach(e=>{const t=Object(i.toRaw)(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return Object(o.h)(this.tag,f({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}var Rn={install(e){An(e),xt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=vt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{xt("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:i}=this.$attrs,s={onLayout:this.onLayout};return"function"==typeof e&&(s[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof i||(s[`on${n}Pulling`]=this[`on${n}Pulling`]),Object(o.h)("hi-pull-"+r,f(f({},s),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){xt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),xt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){vt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){vt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return Object(o.h)("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=Object(o.h)("div",null,this.$slots.default?this.$slots.default():null);return Object(o.h)("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){xt("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}}}),xt("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){vt.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=Se.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return Object(o.h)("hi-waterfall",f(f({},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:""}},render(){return Object(o.h)("hi-waterfall-item",{type:this.type},this.$slots.default?this.$slots.default():null)}})}(e),function(e){xt("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}}}),xt("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}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){vt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){vt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=Se.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return Object(o.h)("hi-swiper",f(f({},e),{},{ref:"swiper",initialPage:this.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return Object(o.h)("swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class Mn extends In{constructor(e){super(e),this.text=e,this.isNeedInsertToNative=!1}}class Ln extends In{showInputMenu(){}hideInputMenu(){}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=>vt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){vt.callUIFunction(this,"setValue",[e])}focus(){vt.callUIFunction(this,"focusTextInput",[])}blur(){vt.callUIFunction(this,"blurTextInput",[])}clear(){vt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>vt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class Fn extends In{scrollToIndex(e=0,t=0,n=!0){vt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&vt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class Vn extends Tn{static createComment(e){return new Mn(e)}static createElement(e){switch(e){case"input":case"textarea":return new Ln(e);case"ul":return new Fn(e);default:return new In(e)}}static createTextNode(e){return new Cn(e)}constructor(){super(kn.DocumentNode)}}const $n={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),mn(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 Bn=/(?:Once|Passive|Capture)$/;function Dn(e,t,n,r,i=null){var s;const c=e,a=null!==(s=c._vei)&&void 0!==s?s:c._vei={},l=a[t];if(r&&l)l.value=r;else{const[e,n]=function(e){let t=e;const n={};if(Bn.test(t)){let e=t.match(Bn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(Bn)}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){a[t]=function(e,t){const n=e=>{Object(o.callWithAsyncErrorHandling)(n.value,t,5,[e])};return n.value=e,n}(r,i);const s=a[t];c.addEventListener(e,s,n)}else c.removeEventListener(e,l,n),a[t]=void 0}}function Un(e,t,n,r,o,i,c){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":!function(e,t,n){const r=e,o={};if(t&&!n)r.removeStyle();else{if(K(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];xe(t)||(o[Object(s.camelize)(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}(e,n,r);break;default:(e=>z.test(e))(t)?Dn(e,t,0,r,c):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let zn=!1;function Hn(e){var t;if(e.width&&e.height){const{screen:n}=null===(t=null==r?void 0:r.Hippy)||void 0===t?void 0:t.device;n&&(n.width=e.width,n.height=e.height)}}r.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=f({},n);if(zn||(zn=!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};vt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:pe("Fail to create websocket connection",e)})}close(e,t){1===this.readyState&&(this.readyState=2,vt.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);vt.callNative("websocket","send",{id:this.webSocketId,data:e})}else pe("WebSocket is not connected")}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=>{Y(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=we(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const Wn=['%c[Hippy-Vue-Next "3.0.1"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Yn(e,t){if(vt.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 In("div"),{statusBarHeight:s}=vt.Dimensions.screen;vt.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 In("img");r.setStyle("width",vt.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",()=>{vt.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 Kn=(e,t)=>{var n;const r=Object(o.createRenderer)(f({patchProp:Un},$n)).createApp(e);var i,s;r.use(Ut),r.use(Rn),"function"==typeof(null===(n=null==t?void 0:t.styleOptions)||void 0===n?void 0:n.beforeLoadStyle)&&(i=t.styleOptions.beforeLoadStyle,ve=i),t.silent&&(s=t.silent,le=s),function(e=!0){ue=e}(t.trimWhitespace);const{mount:c}=r;return r.mount=e=>{Zt("rootContainer",e);const n=function(e){const t=Vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),r=c(n,!1,!1);return Zt("instance",r),Yn(t,r),r},r.$start=async e=>new Promise(n=>{vt.hippyNativeRegister.regist(t.appName,o=>{var i,s;const{__instanceId__:c}=o;fe(...Wn,"Start",t.appName,"with rootViewId",c,o);const a=Xt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:o,app:r,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Jt=l;const u={superProps:o,rootViewId:c};Y(e)?e(u):n(u)})}),r},Gn=(e,t)=>{Y(e)&&(1===t?ye=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))}}.call(this,n("./node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.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 i})),n.d(t,"ITERATE_KEY",(function(){return v})),n.d(t,"ReactiveEffect",(function(){return y})),n.d(t,"computed",(function(){return Xe})),n.d(t,"customRef",(function(){return Ye})),n.d(t,"deferredComputed",(function(){return ot})),n.d(t,"effect",(function(){return _})),n.d(t,"effectScope",(function(){return s})),n.d(t,"enableTracking",(function(){return E})),n.d(t,"getCurrentScope",(function(){return a})),n.d(t,"isProxy",(function(){return Te})),n.d(t,"isReactive",(function(){return Ee})),n.d(t,"isReadonly",(function(){return Ne})),n.d(t,"isRef",(function(){return Le})),n.d(t,"isShallow",(function(){return ke})),n.d(t,"markRaw",(function(){return Pe})),n.d(t,"onScopeDispose",(function(){return l})),n.d(t,"pauseTracking",(function(){return j})),n.d(t,"proxyRefs",(function(){return He})),n.d(t,"reactive",(function(){return _e})),n.d(t,"readonly",(function(){return Se})),n.d(t,"ref",(function(){return Fe})),n.d(t,"resetTracking",(function(){return N})),n.d(t,"shallowReactive",(function(){return we})),n.d(t,"shallowReadonly",(function(){return xe})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return w})),n.d(t,"toRaw",(function(){return Ce})),n.d(t,"toRef",(function(){return qe})),n.d(t,"toRefs",(function(){return Ke})),n.d(t,"track",(function(){return k})),n.d(t,"trigger",(function(){return C})),n.d(t,"triggerRef",(function(){return De})),n.d(t,"unref",(function(){return Ue}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");let o;class i{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&m)>0,f=e=>(e.n&m)>0,p=new WeakMap;let h=0,m=1;let g;const v=Symbol(""),b=Symbol("");class y{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let e=g,t=S;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=g,g=this,S=!0,m=1<<++h,h<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&a.push(e)});else switch(void 0!==n&&a.push(c.get(n)),t){case"add":Object(r.isArray)(e)?Object(r.isIntegerKey)(n)&&a.push(c.get("length")):(a.push(c.get(v)),Object(r.isMap)(e)&&a.push(c.get(b)));break;case"delete":Object(r.isArray)(e)||(a.push(c.get(v)),Object(r.isMap)(e)&&a.push(c.get(b)));break;case"set":Object(r.isMap)(e)&&a.push(c.get(v))}if(1===a.length)a[0]&&P(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);P(u(e))}}function P(e,t){const n=Object(r.isArray)(e)?e:[...e];for(const e of n)e.computed&&I(e,t);for(const e of n)e.computed||I(e,t)}function I(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const A=Object(r.makeMap)("__proto__,__v_isRef,__isVue"),R=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.isSymbol)),M=D(),L=D(!1,!0),F=D(!0),V=D(!0,!0),$=B();function B(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Ce(this);for(let e=0,t=this.length;e{e[t]=function(...e){j();const n=Ce(this)[t].apply(this,e);return N(),n}}),e}function D(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&i===(e?t?Oe:ye:t?be:ve).get(n))return n;const s=Object(r.isArray)(n);if(!e&&s&&Object(r.hasOwn)($,o))return Reflect.get($,o,i);const c=Reflect.get(n,o,i);return(Object(r.isSymbol)(o)?R.has(o):A(o))?c:(e||k(n,0,o),t?c:Le(c)?s&&Object(r.isIntegerKey)(o)?c:c.value:Object(r.isObject)(c)?e?Se(c):_e(c):c)}}const U=H(),z=H(!0);function H(e=!1){return function(t,n,o,i){let s=t[n];if(Ne(s)&&Le(s)&&!Le(o))return!1;if(!e&&!Ne(o)&&(ke(o)||(o=Ce(o),s=Ce(s)),!Object(r.isArray)(t)&&Le(s)&&!Le(o)))return s.value=o,!0;const c=Object(r.isArray)(t)&&Object(r.isIntegerKey)(n)?Number(n)!0,deleteProperty:(e,t)=>!0},K=Object(r.extend)({},W,{get:L,set:z}),G=Object(r.extend)({},Y,{get:V}),q=e=>e,J=e=>Reflect.getPrototypeOf(e);function X(e,t,n=!1,r=!1){const o=Ce(e=e.__v_raw),i=Ce(t);n||(t!==i&&k(o,0,t),k(o,0,i));const{has:s}=J(o),c=r?q:n?Ae:Ie;return s.call(o,t)?c(e.get(t)):s.call(o,i)?c(e.get(i)):void(e!==o&&e.get(t))}function Z(e,t=!1){const n=this.__v_raw,r=Ce(n),o=Ce(e);return t||(e!==o&&k(r,0,e),k(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function Q(e,t=!1){return e=e.__v_raw,!t&&k(Ce(e),0,v),Reflect.get(e,"size",e)}function ee(e){e=Ce(e);const t=Ce(this);return J(t).has.call(t,e)||(t.add(e),C(t,"add",e,e)),this}function te(e,t){t=Ce(t);const n=Ce(this),{has:o,get:i}=J(n);let s=o.call(n,e);s||(e=Ce(e),s=o.call(n,e));const c=i.call(n,e);return n.set(e,t),s?Object(r.hasChanged)(t,c)&&C(n,"set",e,t):C(n,"add",e,t),this}function ne(e){const t=Ce(this),{has:n,get:r}=J(t);let o=n.call(t,e);o||(e=Ce(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&C(t,"delete",e,void 0),i}function re(){const e=Ce(this),t=0!==e.size,n=e.clear();return t&&C(e,"clear",void 0,void 0),n}function oe(e,t){return function(n,r){const o=this,i=o.__v_raw,s=Ce(i),c=t?q:e?Ae:Ie;return!e&&k(s,0,v),i.forEach((e,t)=>n.call(r,c(e),c(t),o))}}function ie(e,t,n){return function(...o){const i=this.__v_raw,s=Ce(i),c=Object(r.isMap)(s),a="entries"===e||e===Symbol.iterator&&c,l="keys"===e&&c,u=i[e](...o),d=n?q:t?Ae:Ie;return!t&&k(s,0,l?b:v),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function se(e){return function(...t){return"delete"!==e&&this}}function ce(){const e={get(e){return X(this,e)},get size(){return Q(this)},has:Z,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!1)},t={get(e){return X(this,e,!1,!0)},get size(){return Q(this)},has:Z,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!0)},n={get(e){return X(this,e,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear"),forEach:oe(!0,!1)},r={get(e){return X(this,e,!0,!0)},get size(){return Q(this,!0)},has(e){return Z.call(this,e,!0)},add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear"),forEach:oe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ie(o,!1,!1),n[o]=ie(o,!0,!1),t[o]=ie(o,!1,!0),r[o]=ie(o,!0,!0)}),[e,n,t,r]}const[ae,le,ue,de]=ce();function fe(e,t){const n=t?e?de:ue:e?le:ae;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r.hasOwn)(n,o)&&o in t?n:t,o,i)}const pe={get:fe(!1,!1)},he={get:fe(!1,!0)},me={get:fe(!0,!1)},ge={get:fe(!0,!0)};const ve=new WeakMap,be=new WeakMap,ye=new WeakMap,Oe=new WeakMap;function _e(e){return Ne(e)?e:je(e,!1,W,pe,ve)}function we(e){return je(e,!1,K,he,be)}function Se(e){return je(e,!0,Y,me,ye)}function xe(e){return je(e,!0,G,ge,Oe)}function je(e,t,n,o,i){if(!Object(r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const c=(a=e).__v_skip||!Object.isExtensible(a)?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(r.toRawType)(a));var a;if(0===c)return e;const l=new Proxy(e,2===c?o:n);return i.set(e,l),l}function Ee(e){return Ne(e)?Ee(e.__v_raw):!(!e||!e.__v_isReactive)}function Ne(e){return!(!e||!e.__v_isReadonly)}function ke(e){return!(!e||!e.__v_isShallow)}function Te(e){return Ee(e)||Ne(e)}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function Pe(e){return Object(r.def)(e,"__v_skip",!0),e}const Ie=e=>Object(r.isObject)(e)?_e(e):e,Ae=e=>Object(r.isObject)(e)?Se(e):e;function Re(e){S&&g&&T((e=Ce(e)).dep||(e.dep=u()))}function Me(e,t){(e=Ce(e)).dep&&P(e.dep)}function Le(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return $e(e,!1)}function Ve(e){return $e(e,!0)}function $e(e,t){return Le(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ce(e),this._value=t?e:Ie(e)}get value(){return Re(this),this._value}set value(e){e=this.__v_isShallow?e:Ce(e),Object(r.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ie(e),Me(this))}}function De(e){Me(e)}function Ue(e){return Le(e)?e.value:e}const ze={get:(e,t,n)=>Ue(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function He(e){return Ee(e)?e:new Proxy(e,ze)}class We{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>Re(this),()=>Me(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ye(e){return new We(e)}function Ke(e){const t=Object(r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=qe(e,n);return t}class Ge{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function qe(e,t,n){const r=e[t];return Le(r)?r:new Ge(e,t,n)}class Je{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new y(e,()=>{this._dirty||(this._dirty=!0,Me(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ce(this);return Re(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Xe(e,t,n=!1){let o,i;const s=Object(r.isFunction)(e);s?(o=e,i=r.NOOP):(o=e.get,i=e.set);return new Je(o,i,s||!i,n)}var Ze;const Qe=Promise.resolve(),et=[];let tt=!1;const nt=()=>{for(let e=0;e{if(this.dep){if(e)t=this._value,n=!0;else if(!r){const e=n?t:this._value;r=!0,n=!1,o=()=>{this.effect.active&&this._get()!==e&&Me(this),r=!1},et.push(o),tt||(tt=!0,Qe.then(nt))}for(const e of this.dep)e.computed instanceof rt&&e.scheduler(!0)}var o;this._dirty=!0}),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return Re(this),Ce(this)._get()}}function ot(e){return new rt(e)}Ze="__v_isReadonly"},"../../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 xe})),n.d(t,"Comment",(function(){return ln})),n.d(t,"Fragment",(function(){return cn})),n.d(t,"KeepAlive",(function(){return Le})),n.d(t,"Static",(function(){return un})),n.d(t,"Suspense",(function(){return ie})),n.d(t,"Teleport",(function(){return sn})),n.d(t,"Text",(function(){return an})),n.d(t,"callWithAsyncErrorHandling",(function(){return l})),n.d(t,"callWithErrorHandling",(function(){return a})),n.d(t,"cloneVNode",(function(){return Pn})),n.d(t,"compatUtils",(function(){return kr})),n.d(t,"computed",(function(){return ar})),n.d(t,"createBlock",(function(){return On})),n.d(t,"createCommentVNode",(function(){return Rn})),n.d(t,"createElementBlock",(function(){return yn})),n.d(t,"createElementVNode",(function(){return Nn})),n.d(t,"createHydrationRenderer",(function(){return Xt})),n.d(t,"createPropsRestProxy",(function(){return vr})),n.d(t,"createRenderer",(function(){return Jt})),n.d(t,"createSlots",(function(){return dt})),n.d(t,"createStaticVNode",(function(){return An})),n.d(t,"createTextVNode",(function(){return In})),n.d(t,"createVNode",(function(){return kn})),n.d(t,"defineAsyncComponent",(function(){return Ae})),n.d(t,"defineComponent",(function(){return Pe})),n.d(t,"defineEmits",(function(){return ur})),n.d(t,"defineExpose",(function(){return dr})),n.d(t,"defineProps",(function(){return lr})),n.d(t,"devtools",(function(){return A})),n.d(t,"getCurrentInstance",(function(){return Hn})),n.d(t,"getTransitionRawChildren",(function(){return Ce})),n.d(t,"guardReactiveProps",(function(){return Cn})),n.d(t,"h",(function(){return yr})),n.d(t,"handleError",(function(){return u})),n.d(t,"initCustomFormatter",(function(){return wr})),n.d(t,"inject",(function(){return fe})),n.d(t,"isMemoSame",(function(){return xr})),n.d(t,"isRuntimeOnly",(function(){return er})),n.d(t,"isVNode",(function(){return _n})),n.d(t,"mergeDefaults",(function(){return gr})),n.d(t,"mergeProps",(function(){return Vn})),n.d(t,"nextTick",(function(){return x})),n.d(t,"onActivated",(function(){return Ve})),n.d(t,"onBeforeMount",(function(){return Ye})),n.d(t,"onBeforeUnmount",(function(){return Je})),n.d(t,"onBeforeUpdate",(function(){return Ge})),n.d(t,"onDeactivated",(function(){return $e})),n.d(t,"onErrorCaptured",(function(){return tt})),n.d(t,"onMounted",(function(){return Ke})),n.d(t,"onRenderTracked",(function(){return et})),n.d(t,"onRenderTriggered",(function(){return Qe})),n.d(t,"onServerPrefetch",(function(){return Ze})),n.d(t,"onUnmounted",(function(){return Xe})),n.d(t,"onUpdated",(function(){return qe})),n.d(t,"openBlock",(function(){return pn})),n.d(t,"popScopeId",(function(){return q})),n.d(t,"provide",(function(){return de})),n.d(t,"pushScopeId",(function(){return G})),n.d(t,"queuePostFlushCb",(function(){return k})),n.d(t,"registerRuntimeCompiler",(function(){return Qn})),n.d(t,"renderList",(function(){return ut})),n.d(t,"renderSlot",(function(){return ft})),n.d(t,"resolveComponent",(function(){return ot})),n.d(t,"resolveDirective",(function(){return ct})),n.d(t,"resolveDynamicComponent",(function(){return st})),n.d(t,"resolveFilter",(function(){return Nr})),n.d(t,"resolveTransitionHooks",(function(){return Ee})),n.d(t,"setBlockTracking",(function(){return vn})),n.d(t,"setDevtoolsHook",(function(){return F})),n.d(t,"setTransitionHooks",(function(){return Te})),n.d(t,"ssrContextKey",(function(){return Or})),n.d(t,"ssrUtils",(function(){return Er})),n.d(t,"toHandlers",(function(){return pt})),n.d(t,"transformVNodeArgs",(function(){return Sn})),n.d(t,"useAttrs",(function(){return hr})),n.d(t,"useSSRContext",(function(){return _r})),n.d(t,"useSlots",(function(){return pr})),n.d(t,"useTransitionState",(function(){return we})),n.d(t,"version",(function(){return jr})),n.d(t,"warn",(function(){return s})),n.d(t,"watch",(function(){return ve})),n.d(t,"watchEffect",(function(){return pe})),n.d(t,"watchPostEffect",(function(){return he})),n.d(t,"watchSyncEffect",(function(){return me})),n.d(t,"withAsyncContext",(function(){return br})),n.d(t,"withCtx",(function(){return X})),n.d(t,"withDefaults",(function(){return fr})),n.d(t,"withDirectives",(function(){return nt})),n.d(t,"withMemo",(function(){return Sr})),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,"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,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");n.d(t,"camelize",(function(){return o.camelize})),n.d(t,"capitalize",(function(){return o.capitalize})),n.d(t,"normalizeClass",(function(){return o.normalizeClass})),n.d(t,"normalizeProps",(function(){return o.normalizeProps})),n.d(t,"normalizeStyle",(function(){return o.normalizeStyle})),n.d(t,"toDisplayString",(function(){return o.toDisplayString})),n.d(t,"toHandlerKey",(function(){return o.toHandlerKey}));const i=[];function s(e,...t){Object(r.pauseTracking)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)a(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:e})=>`at <${sr(n,e.type)}>`).join("\n"),s]);else{const n=["[Vue warn]: "+e,...t];s.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+sr(e.component,e.type,r),i=">"+n;return e.props?[o,...c(e.props),i]:[o+i]}(e))}),t}(s)),console.warn(...n)}Object(r.resetTracking)()}function c(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(o.isString)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(o.isFunction)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Object(r.toRaw)(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function a(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){u(e,t,n)}return o}function l(e,t,n,r){if(Object(o.isFunction)(e)){const i=a(e,t,n,r);return i&&Object(o.isPromise)(i)&&i.catch(e=>{u(e,t,n)}),i}const i=[];for(let o=0;o>>1;P(p[r])P(e)-P(t)),O=0;Onull==e.id?1/0:e.id;function I(e){f=!1,d=!0,T(e),p.sort((e,t)=>P(e)-P(t));o.NOOP;try{for(h=0;hA.emit(e,...t)),R=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{F(e,t)}),setTimeout(()=>{A||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=!0,R=[])},3e3)}else M=!0,R=[]}const V=D("component:added"),$=D("component:updated"),B=D("component:removed");function D(e){return t=>{L(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function U(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),c=s&&t.slice(7);if(c&&c in r){const e=("modelValue"===c?"model":c)+"Modifiers",{number:t,trim:s}=r[e]||o.EMPTY_OBJ;s&&(i=n.map(e=>e.trim())),t&&(i=n.map(o.toNumber))}let a;__VUE_PROD_DEVTOOLS__&&function(e,t,n){L("component:emit",e.appContext.app,e,t,n)}(e,t,i);let u=r[a=Object(o.toHandlerKey)(t)]||r[a=Object(o.toHandlerKey)(Object(o.camelize)(t))];!u&&s&&(u=r[a=Object(o.toHandlerKey)(Object(o.hyphenate)(t))]),u&&l(u,e,6,i);const d=r[a+"Once"];if(d){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,l(d,e,6,i)}}function z(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let c={},a=!1;if(__VUE_OPTIONS_API__&&!Object(o.isFunction)(e)){const r=e=>{const n=z(e,t,!0);n&&(a=!0,Object(o.extend)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||a?(Object(o.isArray)(s)?s.forEach(e=>c[e]=null):Object(o.extend)(c,s),r.set(e,c),c):(r.set(e,null),null)}function H(e,t){return!(!e||!Object(o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(o.hasOwn)(e,Object(o.hyphenate)(t))||Object(o.hasOwn)(e,t))}let W=null,Y=null;function K(e){const t=W;return W=e,Y=e&&e.type.__scopeId||null,t}function G(e){Y=e}function q(){Y=null}const J=e=>X;function X(e,t=W,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&vn(-1);const o=K(t),i=e(...n);return K(o),r._d&&vn(1),__VUE_PROD_DEVTOOLS__&&$(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function Z(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[c],slots:a,attrs:l,emit:d,render:f,renderCache:p,data:h,setupState:m,ctx:g,inheritAttrs:v}=e;let b,y;const O=K(e);try{if(4&n.shapeFlag){const e=i||r;b=Mn(f.call(e,e,p,s,m,h,g)),y=l}else{const e=t;0,b=Mn(e.length>1?e(s,{attrs:l,slots:a,emit:d}):e(s,null)),y=t.props?l:ee(l)}}catch(t){dn.length=0,u(t,e,1),b=kn(ln)}let _=b;if(y&&!1!==v){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(c&&e.some(o.isModelListener)&&(y=te(y,c)),_=Pn(_,y))}return n.dirs&&(_=Pn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,K(O),b}function Q(e){let t;for(let n=0;n{let t;for(const n in e)("class"===n||"style"===n||Object(o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},te=(e,t)=>{const n={};for(const r in e)Object(o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function ne(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense,ie={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,c,a,l){null==e?function(e,t,n,r,o,i,s,c,a){const{p:l,o:{createElement:u}}=a,d=u("div"),f=e.suspense=ce(e,o,r,t,d,n,i,s,c,a);l(null,f.pendingBranch=e.ssContent,d,null,r,f,i,s),f.deps>0?(se(e,"onPending"),se(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),ue(f,e.ssFallback)):f.resolve()}(t,n,r,o,i,s,c,a,l):function(e,t,n,r,o,i,s,c,{p:a,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=f,wn(f,m)?(a(m,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():g&&(a(h,p,n,r,o,null,i,s,c),ue(d,p))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():(a(h,p,n,r,o,null,i,s,c),ue(d,p))):h&&wn(f,h)?(a(h,f,n,r,o,d,i,s,c),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0&&d.resolve()));else if(h&&wn(f,h))a(h,f,n,r,o,d,i,s,c),ue(d,f);else if(se(t,"onPending"),d.pendingBranch=f,d.pendingId++,a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,r,o,s,c,a,l)},hydrate:function(e,t,n,r,o,i,s,c,a){const l=t.suspense=ce(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,c,!0),u=a(e,l.pendingBranch=t.ssContent,n,l,i,s);0===l.deps&&l.resolve();return u},create:ce,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=ae(r?n.default:n),e.ssFallback=r?ae(n.fallback):kn(ln)}};function se(e,t){const n=e.props&&e.props[t];Object(o.isFunction)(n)&&n()}function ce(e,t,n,r,i,s,c,a,l,d,f=!1){const{p:p,m:h,um:m,n:g,o:{parentNode:v,remove:b}}=d,y=Object(o.toNumber)(e.props&&e.props.timeout),O={vnode:e,parent:t,parentComponent:n,isSVG:c,container:r,hiddenContainer:i,anchor:s,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:i,parentComponent:s,container:c}=O;if(O.isHydrating)O.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===O.pendingId&&h(r,c,t,0)});let{anchor:t}=O;n&&(t=g(n),m(n,s,O,!0)),e||h(r,c,t,0)}ue(O,r),O.pendingBranch=null,O.isInFallback=!1;let a=O.parent,l=!1;for(;a;){if(a.pendingBranch){a.effects.push(...i),l=!0;break}a=a.parent}l||k(i),O.effects=[],se(t,"onResolve")},fallback(e){if(!O.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:i}=O;se(t,"onFallback");const s=g(n),c=()=>{O.isInFallback&&(p(null,e,o,s,r,null,i,a,l),ue(O,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),O.isInFallback=!0,m(n,r,null,!0),u||c()},move(e,t,n){O.activeBranch&&h(O.activeBranch,e,t,n),O.container=e},next:()=>O.activeBranch&&g(O.activeBranch),registerDep(e,t){const n=!!O.pendingBranch;n&&O.deps++;const r=e.vnode.el;e.asyncDep.catch(t=>{u(t,e,0)}).then(o=>{if(e.isUnmounted||O.isUnmounted||O.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Zn(e,o,!1),r&&(i.el=r);const s=!r&&e.subTree.el;t(e,i,v(r||e.subTree.el),r?null:g(e.subTree),O,c,l),s&&b(s),re(e,i.el),n&&0==--O.deps&&O.resolve()})},unmount(e,t){O.isUnmounted=!0,O.activeBranch&&m(O.activeBranch,n,e,t),O.pendingBranch&&m(O.pendingBranch,n,e,t)}};return O}function ae(e){let t;if(Object(o.isFunction)(e)){const n=gn&&e._c;n&&(e._d=!1,pn()),e=e(),n&&(e._d=!0,t=fn,hn())}if(Object(o.isArray)(e)){const t=Q(e);0,e=t}return e=Mn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function le(e,t){t&&t.pendingBranch?Object(o.isArray)(e)?t.effects.push(...e):t.effects.push(e):k(e)}function ue(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,re(r,o))}function de(e,t){if(zn){let n=zn.provides;const r=zn.parent&&zn.parent.provides;r===n&&(n=zn.provides=Object.create(r)),n[e]=t}else 0}function fe(e,t,n=!1){const r=zn||W;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Object(o.isFunction)(t)?t.call(r.proxy):t}else 0}function pe(e,t){return be(e,null,t)}function he(e,t){return be(e,null,{flush:"post"})}function me(e,t){return be(e,null,{flush:"sync"})}const ge={};function ve(e,t,n){return be(e,t,n)}function be(e,t,{immediate:n,deep:i,flush:s,onTrack:c,onTrigger:u}=o.EMPTY_OBJ){const d=zn;let f,p,h=!1,b=!1;if(Object(r.isRef)(e)?(f=()=>e.value,h=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(f=()=>e,i=!0):Object(o.isArray)(e)?(b=!0,h=e.some(e=>Object(r.isReactive)(e)||Object(r.isShallow)(e)),f=()=>e.map(e=>Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?_e(e):Object(o.isFunction)(e)?a(e,d,2):void 0)):f=Object(o.isFunction)(e)?t?()=>a(e,d,2):()=>{if(!d||!d.isUnmounted)return p&&p(),l(e,d,3,[y])}:o.NOOP,t&&i){const e=f;f=()=>_e(e())}let y=e=>{p=S.onStop=()=>{a(e,d,4)}};if(Jn)return y=o.NOOP,t?n&&l(t,d,3,[f(),b?[]:void 0,y]):f(),o.NOOP;let O=b?[]:ge;const _=()=>{if(S.active)if(t){const e=S.run();(i||h||(b?e.some((e,t)=>Object(o.hasChanged)(e,O[t])):Object(o.hasChanged)(e,O)))&&(p&&p(),l(t,d,3,[e,O===ge?void 0:O,y]),O=e)}else S.run()};let w;_.allowRecurse=!!t,w="sync"===s?_:"post"===s?()=>qt(_,d&&d.suspense):()=>function(e){N(e,g,m,v)}(_);const S=new r.ReactiveEffect(f,w);return t?n?_():O=S.run():"post"===s?qt(S.run.bind(S),d&&d.suspense):S.run(),()=>{S.stop(),d&&d.scope&&Object(o.remove)(d.scope.effects,S)}}function ye(e,t,n){const r=this.proxy,i=Object(o.isString)(e)?e.includes(".")?Oe(r,e):()=>r[e]:e.bind(r,r);let s;Object(o.isFunction)(t)?s=t:(s=t.handler,n=t);const c=zn;Wn(this);const a=be(i,s.bind(r),n);return c?Wn(c):Yn(),a}function Oe(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{_e(e,t)});else if(Object(o.isPlainObject)(e))for(const n in e)_e(e[n],t);return e}function we(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ke(()=>{e.isMounted=!0}),Je(()=>{e.isUnmounting=!0}),e}const Se=[Function,Array],xe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Se,onEnter:Se,onAfterEnter:Se,onEnterCancelled:Se,onBeforeLeave:Se,onLeave:Se,onAfterLeave:Se,onLeaveCancelled:Se,onBeforeAppear:Se,onAppear:Se,onAfterAppear:Se,onAppearCancelled:Se},setup(e,{slots:t}){const n=Hn(),o=we();let i;return()=>{const s=t.default&&Ce(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){let e=!1;for(const t of s)if(t.type!==ln){0,c=t,e=!0;break}}const a=Object(r.toRaw)(e),{mode:l}=a;if(o.isLeaving)return Ne(c);const u=ke(c);if(!u)return Ne(c);const d=Ee(u,a,o,n);Te(u,d);const f=n.subTree,p=f&&ke(f);let h=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(p&&p.type!==ln&&(!wn(u,p)||h)){const e=Ee(p,a,o,n);if(Te(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Ne(c);"in-out"===l&&u.type!==ln&&(e.delayLeave=(e,t,n)=>{je(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return c}}};function je(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ee(e,t,n,r){const{appear:i,mode:s,persisted:c=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:y,onAppearCancelled:O}=t,_=String(e.key),w=je(n,e),S=(e,t)=>{e&&l(e,r,9,t)},x=(e,t)=>{const n=t[1];S(e,t),Object(o.isArray)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},j={mode:s,persisted:c,beforeEnter(t){let r=a;if(!n.isMounted){if(!i)return;r=v||a}t._leaveCb&&t._leaveCb(!0);const o=w[_];o&&wn(e,o)&&o.el._leaveCb&&o.el._leaveCb(),S(r,[t])},enter(e){let t=u,r=d,o=f;if(!n.isMounted){if(!i)return;t=b||u,r=y||d,o=O||f}let s=!1;const c=e._enterCb=t=>{s||(s=!0,S(t?o:r,[e]),j.delayedLeave&&j.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(p,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,r(),S(n?g:m,[t]),t._leaveCb=void 0,w[o]===e&&delete w[o])};w[o]=e,h?x(h,[t,s]):s()},clone:e=>Ee(e,t,n,r)};return j}function Ne(e){if(Me(e))return(e=Pn(e)).children=null,e}function ke(e){return Me(e)?e.children?e.children[0]:void 0:e}function Te(e,t){6&e.shapeFlag&&e.component?Te(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 Ce(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;e!!e.type.__asyncLoader;function Ae(e){Object(o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:c,suspensible:a=!0,onError:l}=e;let d,f=null,p=0;const h=()=>{let e;return f||(e=f=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((p++,f=null,h())),()=>n(e),p+1)});throw e}).then(t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),d=t,t)))};return Pe({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return d},setup(){const e=zn;if(d)return()=>Re(d,e);const t=t=>{f=null,u(t,e,13,!i)};if(a&&e.suspense||Jn)return h().then(t=>()=>Re(t,e)).catch(e=>(t(e),()=>i?kn(i,{error:e}):null));const o=Object(r.ref)(!1),l=Object(r.ref)(),p=Object(r.ref)(!!s);return s&&setTimeout(()=>{p.value=!1},s),null!=c&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}},c),h().then(()=>{o.value=!0,e.parent&&Me(e.parent.vnode)&&j(e.parent.update)}).catch(e=>{t(e),l.value=e}),()=>o.value&&d?Re(d,e):l.value&&i?kn(i,{error:l.value}):n&&!p.value?kn(n):void 0}})}function Re(e,{vnode:{ref:t,props:n,children:r,shapeFlag:o},parent:i}){const s=kn(e,n,r);return s.ref=t,s}const Me=e=>e.type.__isKeepAlive,Le={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Hn(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let c=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=i);const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:f}}}=r,p=f("div");function h(e){Ue(e),d(e,n,a,!0)}function m(e){i.forEach((t,n)=>{const r=ir(t.type);!r||e&&e(r)||g(n)})}function g(e){const t=i.get(e);c&&t.type===c.type?c&&Ue(c):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,a),l(s.vnode,e,t,n,s,a,r,e.slotScopeIds,i),qt(()=>{s.isDeactivated=!1,s.a&&Object(o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&$n(t,s.parent,e)},a),__VUE_PROD_DEVTOOLS__&&V(s)},r.deactivate=e=>{const t=e.component;u(e,p,null,1,a),qt(()=>{t.da&&Object(o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&$n(n,t.parent,e),t.isDeactivated=!0},a),__VUE_PROD_DEVTOOLS__&&V(t)},ve(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Fe(e,t)),t&&m(e=>!Fe(t,e))},{flush:"post",deep:!0});let v=null;const b=()=>{null!=v&&i.set(v,ze(n.subTree))};return Ke(b),qe(b),Je(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=ze(t);if(e.type!==o.type)h(e);else{Ue(o);const e=o.component.da;e&&qt(e,r)}})}),()=>{if(v=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!(_n(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return c=null,r;let o=ze(r);const a=o.type,l=ir(Ie(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Fe(u,l))||d&&l&&Fe(d,l))return c=o,r;const p=null==o.key?a:o.key,h=i.get(p);return o.el&&(o=Pn(o),128&r.shapeFlag&&(r.ssContent=o)),v=p,h?(o.el=h.el,o.component=h.component,o.transition&&Te(o,o.transition),o.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),f&&s.size>parseInt(f,10)&&g(s.values().next().value)),o.shapeFlag|=256,c=o,oe(r.type)?r:o}}};function Fe(e,t){return Object(o.isArray)(e)?e.some(e=>Fe(e,t)):Object(o.isString)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Ve(e,t){Be(e,"a",t)}function $e(e,t){Be(e,"da",t)}function Be(e,t,n=zn){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(He(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Me(e.parent.vnode)&&De(r,t,n,e),e=e.parent}}function De(e,t,n,r){const i=He(t,e,r,!0);Xe(()=>{Object(o.remove)(r[t],i)},n)}function Ue(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function ze(e){return 128&e.shapeFlag?e.ssContent:e}function He(e,t,n=zn,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Object(r.pauseTracking)(),Wn(n);const i=l(t,n,e,o);return Yn(),Object(r.resetTracking)(),i});return o?i.unshift(s):i.push(s),s}}const We=e=>(t,n=zn)=>(!Jn||"sp"===e)&&He(e,t,n),Ye=We("bm"),Ke=We("m"),Ge=We("bu"),qe=We("u"),Je=We("bum"),Xe=We("um"),Ze=We("sp"),Qe=We("rtg"),et=We("rtc");function tt(e,t=zn){He("ec",e,t)}function nt(e,t){const n=W;if(null===n)return e;const r=rr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r!_n(t)||t.type!==ln&&!(t.type===cn&&!e(t.children)))?t:null}(i(n)),c=On(cn,{key:n.key||"_"+t},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function pt(e){const t={};for(const n in e)t[Object(o.toHandlerKey)(n)]=e[n];return t}const ht=e=>e?Kn(e)?rr(e)||e.proxy:ht(e.parent):null,mt=Object(o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ht(e.parent),$root:e=>ht(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?wt(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>j(e.update)),$nextTick:e=>e.n||(e.n=x.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?ye.bind(e):o.NOOP}),gt={get({_:e},t){const{ctx:n,setupState:i,data:s,props:c,accessCache:a,type:l,appContext:u}=e;let d;if("$"!==t[0]){const r=a[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return c[t]}else{if(i!==o.EMPTY_OBJ&&Object(o.hasOwn)(i,t))return a[t]=1,i[t];if(s!==o.EMPTY_OBJ&&Object(o.hasOwn)(s,t))return a[t]=2,s[t];if((d=e.propsOptions[0])&&Object(o.hasOwn)(d,t))return a[t]=3,c[t];if(n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!bt||(a[t]=0)}}const f=mt[t];let p,h;return f?("$attrs"===t&&Object(r.track)(e,"get",t),f(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t)?(a[t]=4,n[t]):(h=u.config.globalProperties,Object(o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return i!==o.EMPTY_OBJ&&Object(o.hasOwn)(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&Object(o.hasOwn)(r,t)?(r[t]=n,!0):!Object(o.hasOwn)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!n[c]||e!==o.EMPTY_OBJ&&Object(o.hasOwn)(e,c)||t!==o.EMPTY_OBJ&&Object(o.hasOwn)(t,c)||(a=s[0])&&Object(o.hasOwn)(a,c)||Object(o.hasOwn)(r,c)||Object(o.hasOwn)(mt,c)||Object(o.hasOwn)(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const vt=Object(o.extend)({},gt,{get(e,t){if(t!==Symbol.unscopables)return gt.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(o.isGloballyWhitelisted)(t)});let bt=!0;function yt(e){const t=wt(e),n=e.proxy,i=e.ctx;bt=!1,t.beforeCreate&&Ot(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:a,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:v,deactivated:b,beforeDestroy:y,beforeUnmount:O,destroyed:_,unmounted:w,render:S,renderTracked:x,renderTriggered:j,errorCaptured:E,serverPrefetch:N,expose:k,inheritAttrs:T,components:C,directives:P,filters:I}=t;if(d&&function(e,t,n=o.NOOP,i=!1){Object(o.isArray)(e)&&(e=Et(e));for(const n in e){const s=e[n];let c;c=Object(o.isObject)(s)?"default"in s?fe(s.from||n,s.default,!0):fe(s.from||n):fe(s),Object(r.isRef)(c)&&i?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e}):t[n]=c}}(d,i,null,e.appContext.config.unwrapInjectedRef),a)for(const e in a){const t=a[e];Object(o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,Object(o.isObject)(t)&&(e.data=Object(r.reactive)(t))}if(bt=!0,c)for(const e in c){const t=c[e],r=Object(o.isFunction)(t)?t.bind(n,n):Object(o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP;0;const s=!Object(o.isFunction)(t)&&Object(o.isFunction)(t.set)?t.set.bind(n):o.NOOP,a=ar({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const e in l)_t(l[e],i,n,e);if(u){const e=Object(o.isFunction)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{de(t,e[t])})}function A(e,t){Object(o.isArray)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(f&&Ot(f,e,"c"),A(Ye,p),A(Ke,h),A(Ge,m),A(qe,g),A(Ve,v),A($e,b),A(tt,E),A(et,x),A(Qe,j),A(Je,O),A(Xe,w),A(Ze,N),Object(o.isArray)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=T&&(e.inheritAttrs=T),C&&(e.components=C),P&&(e.directives=P)}function Ot(e,t,n){l(Object(o.isArray)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function _t(e,t,n,r){const i=r.includes(".")?Oe(n,r):()=>n[r];if(Object(o.isString)(e)){const n=t[e];Object(o.isFunction)(n)&&ve(i,n)}else if(Object(o.isFunction)(e))ve(i,e.bind(n));else if(Object(o.isObject)(e))if(Object(o.isArray)(e))e.forEach(e=>_t(e,t,n,r));else{const r=Object(o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(o.isFunction)(r)&&ve(i,r,e)}else 0}function wt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:o.length||n||r?(a={},o.length&&o.forEach(e=>St(a,e,s,!0)),St(a,t,s)):a=t,i.set(t,a),a}function St(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&St(e,i,n,!0),o&&o.forEach(t=>St(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=xt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const xt={data:jt,props:kt,emits:kt,methods:kt,computed:kt,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:kt,directives:kt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(o.extend)(Object.create(null),e);for(const r in t)n[r]=Nt(e[r],t[r]);return n},provide:jt,inject:function(e,t){return kt(Et(e),Et(t))}};function jt(e,t){return t?e?function(){return Object(o.extend)(Object(o.isFunction)(e)?e.call(this,this):e,Object(o.isFunction)(t)?t.call(this,this):t)}:t:e}function Et(e){if(Object(o.isArray)(e)){const t={};for(let n=0;n{l=!0;const[n,r]=Pt(e,t,!0);Object(o.extend)(c,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if(Object(o.isArray)(s))for(let e=0;e-1,r[1]=n<0||e-1||Object(o.hasOwn)(r,"default"))&&a.push(t)}}}}const u=[c,a];return r.set(e,u),u}function It(e){return"$"!==e[0]}function At(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Rt(e,t){return At(e)===At(t)}function Mt(e,t){return Object(o.isArray)(t)?t.findIndex(t=>Rt(t,e)):Object(o.isFunction)(t)&&Rt(t,e)?0:-1}const Lt=e=>"_"===e[0]||"$stable"===e,Ft=e=>Object(o.isArray)(e)?e.map(Mn):[Mn(e)],Vt=(e,t,n)=>{if(t._n)return t;const r=X((...e)=>Ft(t(...e)),n);return r._c=!1,r},$t=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Lt(n))continue;const i=e[n];if(Object(o.isFunction)(i))t[n]=Vt(0,i,r);else if(null!=i){0;const e=Ft(i);t[n]=()=>e}}},Bt=(e,t)=>{const n=Ft(t);e.slots.default=()=>n};function Dt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ut=0;function zt(e,t){return function(n,r=null){Object(o.isFunction)(n)||(n=Object.assign({},n)),null==r||Object(o.isObject)(r)||(r=null);const i=Dt(),s=new Set;let c=!1;const a=i.app={_uid:Ut++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:jr,get config(){return i.config},set config(e){0},use:(e,...t)=>(s.has(e)||(e&&Object(o.isFunction)(e.install)?(s.add(e),e.install(a,...t)):Object(o.isFunction)(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,s,l){if(!c){0;const u=kn(n,r);return u.appContext=i,s&&t?t(u,o):e(u,o,l),c=!0,a._container=o,o.__vue_app__=a,__VUE_PROD_DEVTOOLS__&&(a._instance=u.component,function(e,t){L("app:init",e,t,{Fragment:cn,Text:an,Comment:ln,Static:un})}(a,jr)),rr(u.component)||u.component.proxy}},unmount(){c&&(e(null,a._container),__VUE_PROD_DEVTOOLS__&&(a._instance=null,function(e){L("app:unmount",e)}(a)),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a)};return a}}function Ht(e,t,n,i,s=!1){if(Object(o.isArray)(e))return void e.forEach((e,r)=>Ht(e,t&&(Object(o.isArray)(t)?t[r]:t),n,i,s));if(Ie(i)&&!s)return;const c=4&i.shapeFlag?rr(i.component)||i.component.proxy:i.el,l=s?null:c,{i:u,r:d}=e;const f=t&&t.r,p=u.refs===o.EMPTY_OBJ?u.refs={}:u.refs,h=u.setupState;if(null!=f&&f!==d&&(Object(o.isString)(f)?(p[f]=null,Object(o.hasOwn)(h,f)&&(h[f]=null)):Object(r.isRef)(f)&&(f.value=null)),Object(o.isFunction)(d))a(d,u,12,[l,p]);else{const t=Object(o.isString)(d),i=Object(r.isRef)(d);if(t||i){const r=()=>{if(e.f){const n=t?p[d]:d.value;s?Object(o.isArray)(n)&&Object(o.remove)(n,c):Object(o.isArray)(n)?n.includes(c)||n.push(c):t?(p[d]=[c],Object(o.hasOwn)(h,d)&&(h[d]=p[d])):(d.value=[c],e.k&&(p[e.k]=d.value))}else t?(p[d]=l,Object(o.hasOwn)(h,d)&&(h[d]=l)):i&&(d.value=l,e.k&&(p[e.k]=l))};l?(r.id=-1,qt(r,n)):r()}else 0}}let Wt=!1;const Yt=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Kt=e=>8===e.nodeType;function Gt(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:s,parentNode:c,remove:a,insert:l,createComment:u}}=e,d=(n,r,o,a,u,v=!1)=>{const b=Kt(n)&&"["===n.data,y=()=>m(n,r,o,a,u,b),{type:O,ref:_,shapeFlag:w,patchFlag:S}=r,x=n.nodeType;r.el=n,-2===S&&(v=!1,r.dynamicChildren=null);let j=null;switch(O){case an:3!==x?""===r.children?(l(r.el=i(""),c(n),n),j=n):j=y():(n.data!==r.children&&(Wt=!0,n.data=r.children),j=s(n));break;case ln:j=8!==x||b?y():s(n);break;case un:if(1===x||3===x){j=n;const e=!r.children.length;for(let t=0;t{c=c||!!t.dynamicChildren;const{type:l,props:u,patchFlag:d,shapeFlag:f,dirs:h}=t,m="input"===l&&h||"option"===l;if(m||-1!==d){if(h&&rt(t,null,n,"created"),u)if(m||!c||48&d)for(const t in u)(m&&t.endsWith("value")||Object(o.isOn)(t)&&!Object(o.isReservedProp)(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let l;if((l=u&&u.onVnodeBeforeMount)&&$n(l,n,t),h&&rt(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||h)&&le(()=>{l&&$n(l,n,t),h&&rt(t,null,n,"mounted")},i),16&f&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,i,s,c);for(;r;){Wt=!0;const e=r;r=r.nextSibling,a(e)}}else 8&f&&e.textContent!==t.children&&(Wt=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,i,s,c)=>{c=c||!!t.dynamicChildren;const a=t.children,l=a.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const d=c(e),f=p(s(e),t,d,n,r,o,i);return f&&Kt(f)&&"]"===f.data?s(t.anchor=f):(Wt=!0,l(t.anchor=u("]"),d,f),f)},m=(e,t,r,o,i,l)=>{if(Wt=!0,t.el=null,l){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;a(n)}}const u=s(e),d=c(e);return a(e),n(null,t,d,u,r,o,Yt(d),i),u},g=e=>{let t=0;for(;e;)if((e=s(e))&&Kt(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return s(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),C(),void(t._vnode=e);Wt=!1,d(t.firstChild,e,null,null,null),C(),t._vnode=e,Wt&&console.error("Hydration completed but contains mismatches.")},d]}const qt=le;function Jt(e){return Zt(e)}function Xt(e){return Zt(e,Gt)}function Zt(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(o.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Object(o.getGlobalThis)().__VUE_PROD_DEVTOOLS__=!1);const n=Object(o.getGlobalThis)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&F(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:s,patchProp:c,createElement:a,createText:l,createComment:u,setText:d,setElementText:f,parentNode:m,nextSibling:g,setScopeId:v=o.NOOP,cloneNode:b,insertStaticContent:y}=e,O=(e,t,n,r=null,o=null,i=null,s=!1,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!wn(e,t)&&(r=oe(e),J(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case an:_(e,t,n,r);break;case ln:w(e,t,n,r);break;case un:null==e&&S(t,n,r,s);break;case cn:M(e,t,n,r,o,i,s,c,a);break;default:1&d?E(e,t,n,r,o,i,s,c,a):6&d?L(e,t,n,r,o,i,s,c,a):(64&d||128&d)&&l.process(e,t,n,r,o,i,s,c,a,se)}null!=u&&o&&Ht(u,e&&e.ref,i,t||e,!t)},_=(e,t,n,r)=>{if(null==e)i(t.el=l(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,n,r)=>{null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=y(e.children,t,n,r,e.el,e.anchor)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),s(e),e=n;s(t)},E=(e,t,n,r,o,i,s,c,a)=>{s=s||"svg"===t.type,null==e?N(t,n,r,o,i,s,c,a):I(e,t,o,i,s,c,a)},N=(e,t,n,r,s,l,u,d)=>{let p,h;const{type:m,props:g,shapeFlag:v,transition:y,patchFlag:O,dirs:_}=e;if(e.el&&void 0!==b&&-1===O)p=e.el=b(e.el);else{if(p=e.el=a(e.type,l,g&&g.is,g),8&v?f(p,e.children):16&v&&P(e.children,p,null,r,s,l&&"foreignObject"!==m,u,d),_&&rt(e,null,r,"created"),g){for(const t in g)"value"===t||Object(o.isReservedProp)(t)||c(p,t,null,g[t],l,e.children,r,s,te);"value"in g&&c(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&$n(h,r,e)}k(p,e,e.scopeId,u,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:r,enumerable:!1})),_&&rt(e,null,r,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;w&&y.beforeEnter(p),i(p,t,n),((h=g&&g.onVnodeMounted)||w||_)&&qt(()=>{h&&$n(h,r,e),w&&y.enter(p),_&&rt(e,null,r,"mounted")},s)},k=(e,t,n,r,o)=>{if(n&&v(e,n),r)for(let t=0;t{for(let l=a;l{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let g;n&&Qt(n,!1),(g=m.onVnodeBeforeUpdate)&&$n(g,n,t,e),p&&rt(t,e,n,"beforeUpdate"),n&&Qt(n,!0);const v=i&&"foreignObject"!==t.type;if(d?A(e.dynamicChildren,d,l,n,r,v,s):a||Y(e,t,l,null,n,r,v,s,!1),u>0){if(16&u)R(l,t,h,m,n,r,i);else if(2&u&&h.class!==m.class&&c(l,"class",null,m.class,i),4&u&&c(l,"style",h.style,m.style,i),8&u){const o=t.dynamicProps;for(let t=0;t{g&&$n(g,n,t,e),p&&rt(t,e,n,"updated")},r)},A=(e,t,n,r,o,i,s)=>{for(let c=0;c{if(n!==r){for(const l in r){if(Object(o.isReservedProp)(l))continue;const u=r[l],d=n[l];u!==d&&"value"!==l&&c(e,l,d,u,a,t.children,i,s,te)}if(n!==o.EMPTY_OBJ)for(const l in n)Object(o.isReservedProp)(l)||l in r||c(e,l,n[l],null,a,t.children,i,s,te);"value"in r&&c(e,"value",n.value,r.value)}},M=(e,t,n,r,o,s,c,a,u)=>{const d=t.el=e?e.el:l(""),f=t.anchor=e?e.anchor:l("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(i(d,n,r),i(f,n,r),P(t.children,n,f,o,s,c,a,u)):p>0&&64&p&&h&&e.dynamicChildren?(A(e.dynamicChildren,h,n,o,s,c,a),(null!=t.key||o&&t===o.subTree)&&en(e,t,!0)):Y(e,t,n,f,o,s,c,a,u)},L=(e,t,n,r,o,i,s,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):D(t,n,r,o,i,s,a):U(e,t,a)},D=(e,t,n,r,o,i,s)=>{const c=e.component=Un(e,r,o);if(Me(e)&&(c.ctx.renderer=se),Xn(c),c.asyncDep){if(o&&o.registerDep(c,z),!e.el){const e=c.subTree=kn(ln);w(null,e,t,n)}}else z(c,e,t,n,o,i,s)},U=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:c,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||r!==s&&(r?!s||ne(r,s,l):!!s);if(1024&a)return!0;if(16&a)return r?ne(r,s,l):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;th&&p.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,i,s,c,a)=>{const l=e.effect=new r.ReactiveEffect(()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:l,vnode:u}=e,d=n;0,Qt(e,!1),n?(n.el=u.el,W(e,n,a)):n=u,r&&Object(o.invokeArrayFns)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$n(t,l,n,u),Qt(e,!0);const f=Z(e);0;const p=e.subTree;e.subTree=f,O(p,f,m(p.el),oe(p),e,s,c),n.el=f.el,null===d&&re(e,f.el),i&&qt(i,s),(t=n.props&&n.props.onVnodeUpdated)&&qt(()=>$n(t,l,n,u),s),__VUE_PROD_DEVTOOLS__&&$(e)}else{let r;const{el:a,props:l}=t,{bm:u,m:d,parent:f}=e,p=Ie(t);if(Qt(e,!1),u&&Object(o.invokeArrayFns)(u),!p&&(r=l&&l.onVnodeBeforeMount)&&$n(r,f,t),Qt(e,!0),a&&ae){const n=()=>{e.subTree=Z(e),ae(a,e.subTree,e,s,null)};p?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Z(e);0,O(null,r,n,i,e,s,c),t.el=r.el}if(d&&qt(d,s),!p&&(r=l&&l.onVnodeMounted)){const e=t;qt(()=>$n(r,f,e),s)}(256&t.shapeFlag||f&&Ie(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&qt(e.a,s),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&V(e),t=n=i=null}},()=>j(u),e.scope),u=e.update=()=>l.run();u.id=e.uid,Qt(e,!0),u()},W=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:c,vnode:{patchFlag:a}}=e,l=Object(r.toRaw)(s),[u]=e.propsOptions;let d=!1;if(!(i||a>0)||16&a){let r;Tt(e,t,s,c)&&(d=!0);for(const i in l)t&&(Object(o.hasOwn)(t,i)||(r=Object(o.hyphenate)(i))!==i&&Object(o.hasOwn)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=Ct(u,l,i,void 0,e,!0)):delete s[i]);if(c!==l)for(const e in c)t&&Object(o.hasOwn)(t,e)||(delete c[e],d=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let s=!0,c=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(Object(o.extend)(i,t),n||1!==e||delete i._):(s=!t.$stable,$t(t,i)),c=t}else t&&(Bt(e,t),c={default:1});if(s)for(const e in i)Lt(e)||e in c||delete i[e]})(e,t.children,n),Object(r.pauseTracking)(),T(void 0,e.update),Object(r.resetTracking)()},Y=(e,t,n,r,o,i,s,c,a=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void G(l,d,n,r,o,i,s,c,a);if(256&p)return void K(l,d,n,r,o,i,s,c,a)}8&h?(16&u&&te(l,o,i),d!==l&&f(n,d)):16&u?16&h?G(l,d,n,r,o,i,s,c,a):te(l,o,i,!0):(8&u&&f(n,""),16&h&&P(d,n,r,o,i,s,c,a))},K=(e,t,n,r,i,s,c,a,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const u=e.length,d=t.length,f=Math.min(u,d);let p;for(p=0;pd?te(e,i,s,!0,!1,f):P(t,n,r,i,s,c,a,l,f)},G=(e,t,n,r,i,s,c,a,l)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const r=e[u],o=t[u]=l?Ln(t[u]):Mn(t[u]);if(!wn(r,o))break;O(r,o,n,null,i,s,c,a,l),u++}for(;u<=f&&u<=p;){const r=e[f],o=t[p]=l?Ln(t[p]):Mn(t[p]);if(!wn(r,o))break;O(r,o,n,null,i,s,c,a,l),f--,p--}if(u>f){if(u<=p){const e=p+1,o=ep)for(;u<=f;)J(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?Ln(t[u]):Mn(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const y=p-m+1;let _=!1,w=0;const S=new Array(y);for(u=0;u=y){J(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(v=m;v<=p;v++)if(0===S[v-m]&&wn(r,t[v])){o=v;break}void 0===o?J(r,i,s,!0):(S[o-m]=u+1,o>=w?w=o:_=!0,O(r,t[o],n,null,i,s,c,a,l),b++)}const x=_?function(e){const t=e.slice(),n=[0];let r,o,i,s,c;const a=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(v=x.length-1,u=y-1;u>=0;u--){const e=m+u,o=t[e],f=e+1{const{el:s,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)return void q(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void c.move(e,t,n,se);if(c===cn){i(s,t,n);for(let e=0;e{let o;for(;e&&e!==t;)o=g(e),i(e,n,r),e=o;i(t,n,r)})(e,t,n);if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(s),i(s,t,n),qt(()=>a.enter(s),o);else{const{leave:e,delayLeave:r,afterLeave:o}=a,c=()=>i(s,t,n),l=()=>{e(s,()=>{c(),o&&o()})};r?r(s,c,l):l()}else i(s,t,n)},J=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=c&&Ht(c,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&f,h=!Ie(e);let m;if(h&&(m=s&&s.onVnodeBeforeUnmount)&&$n(m,t,e),6&u)ee(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);p&&rt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,se,r):l&&(i!==cn||d>0&&64&d)?te(l,t,n,!1,!0):(i===cn&&384&d||!o&&16&u)&&te(a,t,n),r&&X(e)}(h&&(m=s&&s.onVnodeUnmounted)||p)&&qt(()=>{m&&$n(m,t,e),p&&rt(e,null,t,"unmounted")},n)},X=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===cn)return void Q(n,r);if(t===un)return void x(e);const i=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,s=()=>t(n,i);r?r(e.el,i,s):s()}else i()},Q=(e,t)=>{let n;for(;e!==t;)n=g(e),s(e),e=n;s(t)},ee=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:c,um:a}=e;r&&Object(o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,J(c,e,t,n)),a&&qt(a,t),qt(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&B(e)},te=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?oe(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el),ie=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):O(t._vnode||null,e,t,null,null,null,n),C(),t._vnode=e},se={p:O,um:J,m:q,r:X,mt:D,mc:P,pc:Y,pbc:A,n:oe,o:e};let ce,ae;return t&&([ce,ae]=t(se)),{render:ie,hydrate:ce,createApp:zt(ie,ce)}}function Qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function en(e,t,n=!1){const r=e.children,i=t.children;if(Object(o.isArray)(r)&&Object(o.isArray)(i))for(let e=0;ee&&(e.disabled||""===e.disabled),nn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rn=(e,t)=>{const n=e&&e.to;if(Object(o.isString)(n)){if(t){const e=t(n);return e}return null}return n};function on(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:c,shapeFlag:a,children:l,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||tn(u))&&16&a)for(let e=0;e{16&b&&u(y,e,t,o,i,s,c,a)};v?g(n,l):d&&g(d,f)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=tn(e.props),g=m?n:u,b=m?r:p;if(s=s||nn(u),O?(f(e.dynamicChildren,O,g,o,i,s,c),en(e,t,!0)):a||d(e,t,g,b,o,i,s,c,!1),v)m||on(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=rn(t.props,h);e&&on(t,e,null,l,0)}else m&&on(t,u,p,l,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:c,children:a,anchor:l,targetAnchor:u,target:d,props:f}=e;if(d&&i(u),(s||!tn(f))&&(i(l),16&c))for(let e=0;e0?fn||o.EMPTY_ARR:null,hn(),gn>0&&fn&&fn.push(e),e}function yn(e,t,n,r,o,i){return bn(Nn(e,t,n,r,o,i,!0))}function On(e,t,n,r,o){return bn(kn(e,t,n,r,o,!0))}function _n(e){return!!e&&!0===e.__v_isVNode}function wn(e,t){return e.type===t.type&&e.key===t.key}function Sn(e){mn=e}const xn="__vInternal",jn=({key:e})=>null!=e?e:null,En=({ref:e,ref_key:t,ref_for:n})=>null!=e?Object(o.isString)(e)||Object(r.isRef)(e)||Object(o.isFunction)(e)?{i:W,r:e,k:t,f:!!n}:e:null;function Nn(e,t=null,n=null,r=0,i=null,s=(e===cn?0:1),c=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jn(t),ref:t&&En(t),scopeId:Y,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Fn(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=Object(o.isString)(n)?8:16),gn>0&&!c&&fn&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&fn.push(l),l}const kn=Tn;function Tn(e,t=null,n=null,i=0,s=null,c=!1){if(e&&e!==it||(e=ln),_n(e)){const r=Pn(e,t,!0);return n&&Fn(r,n),gn>0&&!c&&fn&&(6&r.shapeFlag?fn[fn.indexOf(e)]=r:fn.push(r)),r.patchFlag|=-2,r}if(cr(e)&&(e=e.__vccOpts),t){t=Cn(t);let{class:e,style:n}=t;e&&!Object(o.isString)(e)&&(t.class=Object(o.normalizeClass)(e)),Object(o.isObject)(n)&&(Object(r.isProxy)(n)&&!Object(o.isArray)(n)&&(n=Object(o.extend)({},n)),t.style=Object(o.normalizeStyle)(n))}return Nn(e,t,n,i,s,Object(o.isString)(e)?1:oe(e)?128:(e=>e.__isTeleport)(e)?64:Object(o.isObject)(e)?4:Object(o.isFunction)(e)?2:0,c,!0)}function Cn(e){return e?Object(r.isProxy)(e)||xn in e?Object(o.extend)({},e):e:null}function Pn(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:c}=e,a=t?Vn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&jn(a),ref:t&&t.ref?n&&i?Object(o.isArray)(i)?i.concat(En(t)):[i,En(t)]:En(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==cn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pn(e.ssContent),ssFallback:e.ssFallback&&Pn(e.ssFallback),el:e.el,anchor:e.anchor}}function In(e=" ",t=0){return kn(an,null,e,t)}function An(e,t){const n=kn(un,null,e);return n.staticCount=t,n}function Rn(e="",t=!1){return t?(pn(),On(ln,null,e)):kn(ln,null,e)}function Mn(e){return null==e||"boolean"==typeof e?kn(ln):Object(o.isArray)(e)?kn(cn,null,e.slice()):"object"==typeof e?Ln(e):kn(an,null,String(e))}function Ln(e){return null===e.el||e.memo?e:Pn(e)}function Fn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Fn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||xn in t?3===r&&W&&(1===W.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=W}}else Object(o.isFunction)(t)?(t={default:t,_ctx:W},n=32):(t=String(t),64&r?(n=16,t=[In(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vn(...e){const t={};for(let n=0;nzn||W,Wn=e=>{zn=e,e.scope.on()},Yn=()=>{zn&&zn.scope.off(),zn=null};function Kn(e){return 4&e.vnode.shapeFlag}let Gn,qn,Jn=!1;function Xn(e,t=!1){Jn=t;const{props:n,children:i}=e.vnode,s=Kn(e);!function(e,t,n,i=!1){const s={},c={};Object(o.def)(c,xn,1),e.propsDefaults=Object.create(null),Tt(e,t,s,c);for(const t in e.propsOptions[0])t in s||(s[t]=void 0);n?e.props=i?s:Object(r.shallowReactive)(s):e.type.props?e.props=s:e.props=c,e.attrs=c}(e,n,s,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Object(r.toRaw)(t),Object(o.def)(t,"_",n)):$t(t,e.slots={})}else e.slots={},t&&Bt(e,t);Object(o.def)(e.slots,xn,1)})(e,i);const c=s?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Object(r.markRaw)(new Proxy(e.ctx,gt)),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?nr(e):null;Wn(e),Object(r.pauseTracking)();const s=a(i,e,0,[e.props,n]);if(Object(r.resetTracking)(),Yn(),Object(o.isPromise)(s)){if(s.then(Yn,Yn),t)return s.then(n=>{Zn(e,n,t)}).catch(t=>{u(t,e,0)});e.asyncDep=s}else Zn(e,s,t)}else tr(e,t)}(e,t):void 0;return Jn=!1,c}function Zn(e,t,n){Object(o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(o.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Object(r.proxyRefs)(t)),tr(e,n)}function Qn(e){Gn=e,qn=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vt))}}const er=()=>!Gn;function tr(e,t,n){const i=e.type;if(!e.render){if(!t&&Gn&&!i.render){const t=i.template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:c}=i,a=Object(o.extend)(Object(o.extend)({isCustomElement:n,delimiters:s},r),c);i.render=Gn(t,a)}}e.render=i.render||o.NOOP,qn&&qn(e)}__VUE_OPTIONS_API__&&(Wn(e),Object(r.pauseTracking)(),yt(e),Object(r.resetTracking)(),Yn())}function nr(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Object(r.track)(e,"get","$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function rr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in mt?mt[n](e):void 0}))}const or=/(?:^|[-_])(\w)/g;function ir(e,t=!0){return Object(o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function sr(e,t,n=!1){let r=ir(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(or,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function cr(e){return Object(o.isFunction)(e)&&"__vccOpts"in e}const ar=(e,t)=>Object(r.computed)(e,t,Jn);function lr(){return null}function ur(){return null}function dr(e){0}function fr(e,t){return null}function pr(){return mr().slots}function hr(){return mr().attrs}function mr(){const e=Hn();return e.setupContext||(e.setupContext=nr(e))}function gr(e,t){const n=Object(o.isArray)(e)?e.reduce((e,t)=>(e[t]={},e),{}):e;for(const e in t){const r=n[e];r?Object(o.isArray)(r)||Object(o.isFunction)(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n}function vr(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function br(e){const t=Hn();let n=e();return Yn(),Object(o.isPromise)(n)&&(n=n.catch(e=>{throw Wn(t),e})),[n,()=>Wn(t)]}function yr(e,t,n){const r=arguments.length;return 2===r?Object(o.isObject)(t)&&!Object(o.isArray)(t)?_n(t)?kn(e,null,[t]):kn(e,t):kn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&_n(n)&&(n=[n]),kn(e,t,n))}const Or=Symbol(""),_r=()=>{{const e=fe(Or);return e||s("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function wr(){return void 0}function Sr(e,t,n,r){const o=n[r];if(o&&xr(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&fn&&fn.push(e),!0}const jr="3.2.37",Er={createComponentInstance:Un,setupComponent:Xn,renderComponentRoot:Z,setCurrentRenderingInstance:K,isVNode:_n,normalizeVNode:Mn},Nr=null,kr=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){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"EMPTY_ARR",(function(){return V})),n.d(t,"EMPTY_OBJ",(function(){return F})),n.d(t,"NO",(function(){return B})),n.d(t,"NOOP",(function(){return $})),n.d(t,"PatchFlagNames",(function(){return o})),n.d(t,"camelize",(function(){return fe})),n.d(t,"capitalize",(function(){return me})),n.d(t,"def",(function(){return ye})),n.d(t,"escapeHtml",(function(){return C})),n.d(t,"escapeHtmlComment",(function(){return I})),n.d(t,"extend",(function(){return H})),n.d(t,"genPropsAccessExp",(function(){return xe})),n.d(t,"generateCodeFrame",(function(){return c})),n.d(t,"getGlobalThis",(function(){return we})),n.d(t,"hasChanged",(function(){return ve})),n.d(t,"hasOwn",(function(){return K})),n.d(t,"hyphenate",(function(){return he})),n.d(t,"includeBooleanAttr",(function(){return d})),n.d(t,"invokeArrayFns",(function(){return be})),n.d(t,"isArray",(function(){return G})),n.d(t,"isBooleanAttr",(function(){return u})),n.d(t,"isBuiltInDirective",(function(){return le})),n.d(t,"isDate",(function(){return X})),n.d(t,"isFunction",(function(){return Z})),n.d(t,"isGloballyWhitelisted",(function(){return s})),n.d(t,"isHTMLTag",(function(){return E})),n.d(t,"isIntegerKey",(function(){return ce})),n.d(t,"isKnownHtmlAttr",(function(){return v})),n.d(t,"isKnownSvgAttr",(function(){return b})),n.d(t,"isMap",(function(){return q})),n.d(t,"isModelListener",(function(){return z})),n.d(t,"isNoUnitNumericStyleProp",(function(){return g})),n.d(t,"isObject",(function(){return te})),n.d(t,"isOn",(function(){return U})),n.d(t,"isPlainObject",(function(){return se})),n.d(t,"isPromise",(function(){return ne})),n.d(t,"isReservedProp",(function(){return ae})),n.d(t,"isSSRSafeAttrName",(function(){return h})),n.d(t,"isSVGTag",(function(){return N})),n.d(t,"isSet",(function(){return J})),n.d(t,"isSpecialBooleanAttr",(function(){return l})),n.d(t,"isString",(function(){return Q})),n.d(t,"isSymbol",(function(){return ee})),n.d(t,"isVoidTag",(function(){return k})),n.d(t,"looseEqual",(function(){return A})),n.d(t,"looseIndexOf",(function(){return R})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return x})),n.d(t,"normalizeProps",(function(){return j})),n.d(t,"normalizeStyle",(function(){return y})),n.d(t,"objectToString",(function(){return re})),n.d(t,"parseStringStyle",(function(){return w})),n.d(t,"propsToAttrMap",(function(){return m})),n.d(t,"remove",(function(){return W})),n.d(t,"slotFlagsText",(function(){return i})),n.d(t,"stringifyStyle",(function(){return S})),n.d(t,"toDisplayString",(function(){return M})),n.d(t,"toHandlerKey",(function(){return ge})),n.d(t,"toNumber",(function(){return Oe})),n.d(t,"toRawType",(function(){return ie})),n.d(t,"toTypeString",(function(){return oe}));const o={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},s=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function c(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let i=0;const s=[];for(let e=0;e=t){for(let c=e-2;c<=e+2||n>i;c++){if(c<0||c>=r.length)continue;const a=c+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);const l=r[c].length,u=o[c]&&o[c].length||0;if(c===e){const e=t-(i-(l+u)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(c>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+u}}break}return s.join("\n")}const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",l=r(a),u=r(a+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function d(e){return!!e||""===e}const f=/[>/="'\u0009\u000a\u000c\u0020]/,p={};function h(e){if(p.hasOwnProperty(e))return p[e];const t=f.test(e);return t&&console.error("unsafe attribute name: "+e),p[e]=!t}const m={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},g=r("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),v=r("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,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"),b=r("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,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function y(e){if(G(e)){const t={};for(let n=0;n{if(e){const n=e.split(_);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function S(e){let t="";if(!e||Q(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:he(n);(Q(r)||"number"==typeof r&&g(o))&&(t+=`${o}:${r};`)}return t}function x(e){let t="";if(Q(e))t=e;else if(G(e))for(let n=0;n]/;function C(e){const t=""+e,n=T.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o||--!>|A(e,t))}const M=e=>Q(e)?e:null==e?"":G(e)||te(e)&&(e.toString===re||!Z(e.toString))?JSON.stringify(e,L,2):String(e),L=(e,t)=>t&&t.__v_isRef?L(e,t.value):q(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:J(t)?{[`Set(${t.size})`]:[...t.values()]}:!te(t)||G(t)||se(t)?t:String(t),F={},V=[],$=()=>{},B=()=>!1,D=/^on[^a-z]/,U=e=>D.test(e),z=e=>e.startsWith("onUpdate:"),H=Object.assign,W=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y=Object.prototype.hasOwnProperty,K=(e,t)=>Y.call(e,t),G=Array.isArray,q=e=>"[object Map]"===oe(e),J=e=>"[object Set]"===oe(e),X=e=>"[object Date]"===oe(e),Z=e=>"function"==typeof e,Q=e=>"string"==typeof e,ee=e=>"symbol"==typeof e,te=e=>null!==e&&"object"==typeof e,ne=e=>te(e)&&Z(e.then)&&Z(e.catch),re=Object.prototype.toString,oe=e=>re.call(e),ie=e=>oe(e).slice(8,-1),se=e=>"[object Object]"===oe(e),ce=e=>Q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ae=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),le=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ue=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},de=/-(\w)/g,fe=ue(e=>e.replace(de,(e,t)=>t?t.toUpperCase():"")),pe=/\B([A-Z])/g,he=ue(e=>e.replace(pe,"-$1").toLowerCase()),me=ue(e=>e.charAt(0).toUpperCase()+e.slice(1)),ge=ue(e=>e?"on"+me(e):""),ve=(e,t)=>!Object.is(e,t),be=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Oe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _e;const we=()=>_e||(_e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),Se=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function xe(e){return Se.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}}.call(this,n("./node_modules/webpack/buildin/global.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 s(){throw new Error("clearTimeout has not been defined")}function c(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:s}catch(e){r=s}}();var a,l=[],u=!1,d=-1;function f(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;n { private static final Map sComponentPropsMethodMap = new HashMap<>(); private static final Set sTextPropsSet = new HashSet<>(); private static final ArrayList sRenderPropsList = new ArrayList<>(); + private static final String[] sLayoutStyleList = { + NodeProps.WIDTH, + NodeProps.HEIGHT, + NodeProps.LEFT, + NodeProps.TOP, + NodeProps.VISIBILITY, + NodeProps.TRANSFORM, + NodeProps.OPACITY, + NodeProps.OVERFLOW + }; @NonNull private final Renderer mRenderer; @Nullable @@ -114,6 +124,9 @@ private static void initComponentPropsMap() { sRenderPropsList.add(controllerProps.name()); } } + for (String layoutStyle : sLayoutStyleList) { + sRenderPropsList.add(layoutStyle); + } } void findViewPropsMethod(Class cls, diff --git a/renderer/native/android/src/main/java/com/tencent/renderer/NativeRenderer.java b/renderer/native/android/src/main/java/com/tencent/renderer/NativeRenderer.java index 2c872e0df5c..7dea7123622 100644 --- a/renderer/native/android/src/main/java/com/tencent/renderer/NativeRenderer.java +++ b/renderer/native/android/src/main/java/com/tencent/renderer/NativeRenderer.java @@ -556,8 +556,8 @@ public void updateNode(final int rootId, @NonNull List nodeList) } final Map diffProps = MapUtils.getMapValue(node, NODE_PROPS); final List delProps = MapUtils.getListValue(node, NODE_DELETE_PROPS); - LogUtils.d(TAG, "updateNode: id " + nodeId); - LogUtils.d(TAG, "diff " + diffProps + ", delete " + delProps); + LogUtils.d(TAG, + "updateNode: id " + nodeId + ", diff " + diffProps + ", delete " + delProps); LogUtils.d(TAG, " "); mVirtualNodeManager.updateNode(rootId, nodeId, diffProps, delProps); // If multiple level are nested, the parent is outermost text node. @@ -761,6 +761,10 @@ public void callUIFunction(final int rootId, final int nodeId, final long callba throw new NativeRenderException(INVALID_NODE_DATA_ERR, TAG + ": callUIFunction: invalid negative id=" + nodeId); } + LogUtils.d(TAG, + "callUIFunction: id " + nodeId + ", functionName " + functionName + ", params" + + params); + LogUtils.d(TAG, " "); // If callbackId equal to 0 mean this call does not need to callback. final UIPromise promise = (callbackId == 0) ? null : new UIPromise(callbackId, functionName, rootId, nodeId, diff --git a/renderer/native/android/src/main/java/com/tencent/renderer/node/ImageVirtualNode.java b/renderer/native/android/src/main/java/com/tencent/renderer/node/ImageVirtualNode.java index 3c2cd3e91bd..367a6208f80 100644 --- a/renderer/native/android/src/main/java/com/tencent/renderer/node/ImageVirtualNode.java +++ b/renderer/native/android/src/main/java/com/tencent/renderer/node/ImageVirtualNode.java @@ -44,7 +44,6 @@ public class ImageVirtualNode extends VirtualNode { - public static final String PROP_VERTICAL_ALIGNMENT = "verticalAlignment"; protected int mWidth; protected int mHeight; protected int mLeft; @@ -153,7 +152,7 @@ public void setTop(float top) { } @SuppressWarnings("unused") - @HippyControllerProps(name = PROP_VERTICAL_ALIGNMENT, defaultType = HippyControllerProps.NUMBER, + @HippyControllerProps(name = NodeProps.PROP_VERTICAL_ALIGNMENT, defaultType = HippyControllerProps.NUMBER, defaultNumber = ImageSpan.ALIGN_BASELINE) public void setVerticalAlignment(int alignment) { if (alignment != mVerticalAlignment) { diff --git a/renderer/native/android/src/main/java/com/tencent/renderer/serialization/Deserializer.java b/renderer/native/android/src/main/java/com/tencent/renderer/serialization/Deserializer.java index c0043340fe9..3ecc21c17c6 100644 --- a/renderer/native/android/src/main/java/com/tencent/renderer/serialization/Deserializer.java +++ b/renderer/native/android/src/main/java/com/tencent/renderer/serialization/Deserializer.java @@ -19,6 +19,7 @@ import static com.tencent.renderer.NativeRenderException.ExceptionCode.DESERIALIZE_NOT_SUPPORTED_ERR; import static com.tencent.renderer.NativeRenderException.ExceptionCode.DESERIALIZE_READ_LENGTH_ERR; +import com.tencent.mtt.hippy.exception.UnexpectedException; import com.tencent.mtt.hippy.serialization.PrimitiveSerializationTag; import com.tencent.mtt.hippy.serialization.exception.DataCloneOutOfRangeException; import com.tencent.mtt.hippy.serialization.PrimitiveValueDeserializer; @@ -77,6 +78,8 @@ protected Object readValue(byte tag, StringLocation location, Object relatedKey) return readMap(); case SerializationTag.BEGIN_DENSE_ARRAY: return readDenseArray(); + case SerializationTag.BEGIN_SPARSE_JS_ARRAY: + return readSparseArray(); default: throw createUnsupportedTagException(tag); } @@ -195,6 +198,61 @@ private List readDenseArray() { return array; } + + /** + * Reads Spare Array from buffer. + * + *

Note

+ * Sparse arrays will be serialized as an object-like manner. Normally, it should be representable + * as {@link ArrayList}, but in order to be compatible with the previous serialization implement, + * we use {@link ArrayList} to express sparse arrays.
When a hole is encountered, null is + * used to fill it. + * @return array + */ + private List readSparseArray() { + long length = reader.getVarint(); + List array = new ArrayList<>(); + assignId(array); + byte tag; + int read = 0; + while ((tag = readTag()) != SerializationTag.END_SPARSE_JS_ARRAY) { + read++; + Object key = readValue(tag, StringLocation.SPARSE_ARRAY_KEY, null); + Object value = readValue(StringLocation.SPARSE_ARRAY_ITEM, key); + int index = -1; + if (key instanceof Number) { + index = ((Number) key).intValue(); + } else if (key instanceof String) { + try { + index = Integer.parseInt((String) key); + } catch (NumberFormatException ignored) { + // ignore not parsable string + } + } + if (index >= 0) { + int spaceNeeded = (index + 1) - array.size(); + if (spaceNeeded + == 1) { // Fast path, item are ordered in general ECMAScript(VM) implementation + array.add(value); + } else { // Slow path, universal + for (int i = 0; i < spaceNeeded; i++) { + array.add(null); + } + array.set(index, value); + } + } + } + int expected = (int) reader.getVarint(); + if (read != expected) { + throw new UnexpectedException("unexpected number of properties"); + } + long length2 = reader.getVarint(); + if (length != length2) { + throw new AssertionError("length ambiguity"); + } + return array; + } + @Override protected Object getHole() { return null; diff --git a/renderer/native/android/src/main/java/com/tencent/renderer/serialization/SerializationTag.java b/renderer/native/android/src/main/java/com/tencent/renderer/serialization/SerializationTag.java index f0e8bfe2a33..8b7564467e9 100644 --- a/renderer/native/android/src/main/java/com/tencent/renderer/serialization/SerializationTag.java +++ b/renderer/native/android/src/main/java/com/tencent/renderer/serialization/SerializationTag.java @@ -29,4 +29,6 @@ public interface SerializationTag { byte END_OBJECT = (byte) '{'; byte BEGIN_DENSE_ARRAY = (byte) 'A'; byte END_DENSE_ARRAY = (byte) '$'; + byte BEGIN_SPARSE_JS_ARRAY = (byte) 'a'; // kBeginSparseJSArray + byte END_SPARSE_JS_ARRAY = (byte) '@'; // kEndSparseJSArray } diff --git a/renderer/native/ios/renderer/NativeRenderImpl.h b/renderer/native/ios/renderer/NativeRenderImpl.h index 20a4ab415a4..985955a6202 100644 --- a/renderer/native/ios/renderer/NativeRenderImpl.h +++ b/renderer/native/ios/renderer/NativeRenderImpl.h @@ -35,6 +35,7 @@ class VFSUriLoader; namespace hippy { inline namespace dom { +class RenderManager; class DomManager; class DomArgument; class RootNode; @@ -57,6 +58,9 @@ class HippyValue; */ @interface NativeRenderImpl : NSObject +- (instancetype)init NS_UNAVAILABLE; +- (instancetype)initWithRenderManager:(std::weak_ptr)renderManager NS_DESIGNATED_INITIALIZER; + @property(nonatomic, assign) BOOL uiCreationLazilyEnabled; @property(nonatomic, assign) std::weak_ptr VFSUriLoader; diff --git a/renderer/native/ios/renderer/NativeRenderImpl.mm b/renderer/native/ios/renderer/NativeRenderImpl.mm index c51c98af2e2..9418d74e131 100644 --- a/renderer/native/ios/renderer/NativeRenderImpl.mm +++ b/renderer/native/ios/renderer/NativeRenderImpl.mm @@ -180,6 +180,7 @@ @interface NativeRenderImpl() { std::mutex _imageProviderMutex; std::function _rootViewSizeChangedCb; + std::weak_ptr _renderManager; } @end @@ -190,9 +191,10 @@ @implementation NativeRenderImpl #pragma mark Life cycle -- (instancetype)init { +- (instancetype)initWithRenderManager:(std::weak_ptr)renderManager { self = [super init]; if (self) { + _renderManager = renderManager; [self initContext]; } return self; @@ -797,8 +799,10 @@ - (void)updateRenderNodes:(std::vector>&&)nodes std::lock_guard lock([self renderQueueLock]); NSNumber *rootTag = @(strongRootNode->GetId()); for (const auto &node : nodes) { - auto diffCount = node->GetDiffStyle()->size(); - auto deleteCount = node->GetDeleteProps()->size(); + const auto &diffStyle = node->GetDiffStyle(); + const auto &deleteProps = node->GetDeleteProps(); + auto diffCount = diffStyle ? diffStyle->size() : 0; + auto deleteCount = deleteProps ? deleteProps->size() : 0; //TODO(mengyanluo): it is better to use diff and delete properties to update view if (0 == diffCount && 0 == deleteCount) { continue; @@ -1170,16 +1174,18 @@ - (void)addClickEventListenerForView:(int32_t)componentTag onRootNode:(std::weak int32_t root_id = strongRootNode->GetId(); UIView *view = [self viewForComponentTag:@(componentTag) onRootTag:@(root_id)]; if (view) { - BOOL canBePreventedInCapturing = [view canBePreventedByInCapturing:hippy::kClickEvent]; - BOOL canBePreventedInBubbling = [view canBePreventInBubbling:hippy::kClickEvent]; __weak id weakSelf = self; - [view addViewEvent:NativeRenderViewEventTypeClick eventListener:^(CGPoint) { + [view addViewEvent:NativeRenderViewEventTypeClick eventListener:^(CGPoint point, + BOOL canCapture, + BOOL canBubble, + BOOL canBePreventedInCapture, + BOOL canBePreventedInBubbling) { id strongSelf = weakSelf; if (strongSelf) { [strongSelf domNodeForComponentTag:componentTag onRootNode:rootNode resultNode:^(std::shared_ptr node) { if (node) { auto event = std::make_shared(hippy::kClickEvent, node, - canBePreventedInCapturing, canBePreventedInBubbling, + canCapture, canBubble, static_cast>(nullptr)); node->HandleEvent(event); [strongSelf domEventDidHandle:hippy::kClickEvent forNode:componentTag onRoot:root_id]; @@ -1201,16 +1207,18 @@ - (void)addLongClickEventListenerForView:(int32_t)componentTag onRootNode:(std:: int32_t root_id = strongRootNode->GetId(); UIView *view = [self viewForComponentTag:@(componentTag) onRootTag:@(root_id)]; if (view) { - BOOL canBePreventedInCapturing = [view canBePreventedByInCapturing:hippy::kLongClickEvent]; - BOOL canBePreventedInBubbling = [view canBePreventInBubbling:hippy::kLongClickEvent]; __weak id weakSelf = self; - [view addViewEvent:NativeRenderViewEventTypeLongClick eventListener:^(CGPoint) { + [view addViewEvent:NativeRenderViewEventTypeLongClick eventListener:^(CGPoint point, + BOOL canCapture, + BOOL canBubble, + BOOL canBePreventedInCapture, + BOOL canBePreventedInBubbling) { id strongSelf = weakSelf; if (strongSelf) { [strongSelf domNodeForComponentTag:componentTag onRootNode:rootNode resultNode:^(std::shared_ptr node) { if (node) { auto event = std::make_shared(hippy::kLongClickEvent, node, - canBePreventedInCapturing, canBePreventedInBubbling, + canCapture, canBubble, static_cast>(nullptr)); node->HandleEvent(event); [strongSelf domEventDidHandle:hippy::kLongClickEvent forNode:componentTag onRoot:root_id]; @@ -1235,17 +1243,19 @@ - (void)addPressEventListenerForType:(const std::string &)type UIView *view = [self viewForComponentTag:@(componentTag) onRootTag:@(root_id)]; NativeRenderViewEventType eventType = hippy::kPressIn == type ? NativeRenderViewEventType::NativeRenderViewEventTypePressIn : NativeRenderViewEventType::NativeRenderViewEventTypePressOut; if (view) { - BOOL canBePreventedInCapturing = [view canBePreventedByInCapturing:type.c_str()]; - BOOL canBePreventedInBubbling = [view canBePreventInBubbling:type.c_str()]; std::string block_type = type; __weak id weakSelf = self; - [view addViewEvent:eventType eventListener:^(CGPoint) { + [view addViewEvent:eventType eventListener:^(CGPoint point, + BOOL canCapture, + BOOL canBubble, + BOOL canBePreventedInCapture, + BOOL canBePreventedInBubbling) { id strongSelf = weakSelf; if (strongSelf) { [strongSelf domNodeForComponentTag:componentTag onRootNode:rootNode resultNode:^(std::shared_ptr node) { if (node) { auto event = std::make_shared(block_type, node, - canBePreventedInCapturing, canBePreventedInBubbling, + canCapture, canBubble, static_cast>(nullptr)); node->HandleEvent(event); [strongSelf domEventDidHandle:block_type forNode:componentTag onRoot:root_id]; @@ -1280,11 +1290,13 @@ - (void)addTouchEventListenerForType:(const std::string &)type } else if (type == hippy::kTouchCancelEvent) { event_type = NativeRenderViewEventType::NativeRenderViewEventTypeTouchCancel; } - BOOL canBePreventedInCapturing = [view canBePreventedByInCapturing:type.c_str()]; - BOOL canBePreventedInBubbling = [view canBePreventInBubbling:type.c_str()]; const std::string type_ = type; __weak id weakSelf = self; - [view addViewEvent:event_type eventListener:^(CGPoint point) { + [view addViewEvent:event_type eventListener:^(CGPoint point, + BOOL canCapture, + BOOL canBubble, + BOOL canBePreventedInCapture, + BOOL canBePreventedInBubbling) { id strongSelf = weakSelf; if (strongSelf) { [strongSelf domNodeForComponentTag:componentTag onRootNode:rootNode resultNode:^(std::shared_ptr node) { @@ -1293,8 +1305,8 @@ - (void)addTouchEventListenerForType:(const std::string &)type domValue["page_x"] = footstone::value::HippyValue(point.x); domValue["page_y"] = footstone::value::HippyValue(point.y); std::shared_ptr value = std::make_shared(domValue); - auto event = std::make_shared(type_, node, canBePreventedInCapturing, - canBePreventedInBubbling,value); + auto event = std::make_shared(type_, node, canCapture, + canBubble,value); node->HandleEvent(event); [strongSelf domEventDidHandle:type_ forNode:componentTag onRoot:root_id]; } @@ -1318,18 +1330,19 @@ - (void)addShowEventListenerForType:(const std::string &)type UIView *view = [self viewForComponentTag:@(componentTag) onRootTag:@(root_id)]; if (view) { NativeRenderViewEventType event_type = hippy::kShowEvent == type ? NativeRenderViewEventTypeShow : NativeRenderViewEventTypeDismiss; - BOOL canBePreventedInCapturing = [view canBePreventedByInCapturing:type.c_str()]; - BOOL canBePreventedInBubbling = [view canBePreventInBubbling:type.c_str()]; __weak id weakSelf = self; std::string type_ = type; - [view addViewEvent:event_type eventListener:^(CGPoint point) { + [view addViewEvent:event_type eventListener:^(CGPoint point, + BOOL canCapture, + BOOL canBubble, + BOOL canBePreventedInCapture, + BOOL canBePreventedInBubbling) { id strongSelf = weakSelf; if (strongSelf) { [strongSelf domNodeForComponentTag:componentTag onRootNode:rootNode resultNode:^(std::shared_ptr node) { if (node) { std::shared_ptr domValue = std::make_shared(true); - auto event = std::make_shared(type_, node, canBePreventedInCapturing, - canBePreventedInBubbling, domValue); + auto event = std::make_shared(type_, node, canCapture, canBubble, domValue); node->HandleEvent(event); [strongSelf domEventDidHandle:type_ forNode:componentTag onRoot:root_id]; } diff --git a/renderer/native/ios/renderer/NativeRenderManager.h b/renderer/native/ios/renderer/NativeRenderManager.h index 3e9532bd227..a4ab4ae4015 100644 --- a/renderer/native/ios/renderer/NativeRenderManager.h +++ b/renderer/native/ios/renderer/NativeRenderManager.h @@ -41,13 +41,15 @@ class RootNode; /** * NativeRenderManager is used to manager view creation, update and delete for Native UI */ -class NativeRenderManager : public hippy::RenderManager { +class NativeRenderManager : public hippy::RenderManager, public std::enable_shared_from_this { public: NativeRenderManager(); NativeRenderManager(NativeRenderImpl *uiManager): hippy::RenderManager("NativeRenderManager"), renderImpl_(uiManager){} ~NativeRenderManager(); + + void Initialize(); /** * create views from dom nodes @@ -204,6 +206,8 @@ class NativeRenderManager : public hippy::RenderManager { */ void SetRootViewSizeChangedEvent(std::function cb); + NativeRenderImpl *GetNativeRenderImpl(); + private: NativeRenderImpl *renderImpl_; }; diff --git a/renderer/native/ios/renderer/NativeRenderManager.mm b/renderer/native/ios/renderer/NativeRenderManager.mm index 2521b9fb6b1..a60ca829605 100644 --- a/renderer/native/ios/renderer/NativeRenderManager.mm +++ b/renderer/native/ios/renderer/NativeRenderManager.mm @@ -38,7 +38,10 @@ using RootNode = hippy::RootNode; NativeRenderManager::NativeRenderManager(): hippy::RenderManager("NativeRenderManager") { - renderImpl_ = [[NativeRenderImpl alloc] init]; +} + +void NativeRenderManager::Initialize() { + renderImpl_ = [[NativeRenderImpl alloc] initWithRenderManager:weak_from_this()]; } void NativeRenderManager::CreateRenderNode(std::weak_ptr root_node, @@ -205,6 +208,10 @@ [renderImpl_ setRootViewSizeChangedEvent:cb]; } +NativeRenderImpl *NativeRenderManager::GetNativeRenderImpl() { + return renderImpl_; +} + NativeRenderManager::~NativeRenderManager() { [renderImpl_ invalidate]; renderImpl_ = nil; diff --git a/renderer/native/ios/renderer/component/image/NativeRenderImageView+NativeRenderTouchesImplementation.mm b/renderer/native/ios/renderer/component/image/NativeRenderImageView+NativeRenderTouchesImplementation.mm index 057239d2104..d3409ab34bb 100644 --- a/renderer/native/ios/renderer/component/image/NativeRenderImageView+NativeRenderTouchesImplementation.mm +++ b/renderer/native/ios/renderer/component/image/NativeRenderImageView+NativeRenderTouchesImplementation.mm @@ -21,8 +21,9 @@ */ #import "NativeRenderImageView+NativeRenderTouchesImplementation.h" -#import "UIView+NativeRender.h" #import "UIView+DomEvent.h" +#import "UIView+NativeRender.h" +#import "UIEvent+TouchResponder.h" #import "objc/runtime.h" @implementation NativeRenderImageView (NativeRenderTouchesImplementation) @@ -178,15 +179,21 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if ([self pressInEventEnabled]) { [self enablePressInTimer]; } - OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchStart]; - if (listener) { - UITouch *touch = [touches anyObject]; - CGPoint point = [touch locationInView:[self NativeRenderRootView]]; - listener(point); - } - else { - [super touchesBegan:touches withEvent:event]; + if ([self tryToHandleEvent:event forEventType:NativeRenderViewEventTypeTouchStart]) { + OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchStart]; + if (listener) { + UITouch *touch = [touches anyObject]; + UIView *rootView = [self NativeRenderRootView]; + CGPoint point = [touch locationInView:rootView]; + const char *name = viewEventNameFromType(NativeRenderViewEventTypeTouchStart); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); + } } + [super touchesBegan:touches withEvent:event]; } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { @@ -194,43 +201,97 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { [self disablePressInTimer]; } [self handlePressOutEvent]; - OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchEnd]; - if (listener) { - UITouch *touch = [touches anyObject]; - CGPoint point = [touch locationInView:[self NativeRenderRootView]]; - listener(point); - } - else { - [super touchesEnded:touches withEvent:event]; + if ([self tryToHandleEvent:event forEventType:NativeRenderViewEventTypeTouchEnd]) { + OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchEnd]; + if (listener) { + UITouch *touch = [touches anyObject]; + UIView *rootView = [self NativeRenderRootView]; + CGPoint point = [touch locationInView:rootView]; + const char *name = viewEventNameFromType(NativeRenderViewEventTypeTouchEnd); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); + } } + [super touchesEnded:touches withEvent:event]; } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { - OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchMove]; - if (listener) { - UITouch *touch = [touches anyObject]; - CGPoint point = [touch locationInView:[self NativeRenderRootView]]; - listener(point); - } - else { - [super touchesMoved:touches withEvent:event]; + if ([self tryToHandleEvent:event forEventType:NativeRenderViewEventTypeTouchMove]) { + OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchMove]; + if (listener) { + [self handlePressOutEvent]; + UITouch *touch = [touches anyObject]; + UIView *rootView = [self NativeRenderRootView]; + CGPoint point = [touch locationInView:rootView]; + const char *name = viewEventNameFromType(NativeRenderViewEventTypeTouchMove); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); + } } - + [super touchesMoved:touches withEvent:event]; } - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { if ([self pressInEventEnabled]) { [self disablePressInTimer]; } - OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchCancel]; - if (listener) { - UITouch *touch = [touches anyObject]; - CGPoint point = [touch locationInView:[self NativeRenderRootView]]; - listener(point); + [self handlePressOutEvent]; + if ([self tryToHandleEvent:event forEventType:NativeRenderViewEventTypeTouchCancel]) { + OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchCancel]; + if (listener) { + UITouch *touch = [touches anyObject]; + UIView *rootView = [self NativeRenderRootView]; + CGPoint point = [touch locationInView:rootView]; + const char *name = viewEventNameFromType(NativeRenderViewEventTypeTouchCancel); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); + } + } + [super touchesCancelled:touches withEvent:event]; +} + +- (BOOL)tryToHandleEvent:(UIEvent *)event forEventType:(NativeRenderViewEventType)eventType { + id responder = [event responderForType:eventType]; + if (self == responder) { + return YES; } - else { - [super touchesCancelled:touches withEvent:event]; + if (nil == responder) { + // assume first responder is self + UIView *responder = nil; + // find out is there any parent view who can handle `eventType` and `onInterceptTouchEvent` is YES + UIView *testingView = self; + while (testingView) { + OnTouchEventHandler handler = [testingView eventListenerForEventType:eventType]; + if (!responder && handler) { + responder = testingView; + } + BOOL onInterceptTouchEvent = testingView.onInterceptTouchEvent; + if (handler && onInterceptTouchEvent) { + responder = testingView; + } + testingView = [testingView parentComponent]; + } + // set first responder for `eventType` + if (responder) { + [event setResponder:responder forType:eventType]; + } + else { + [event setResponder:[NSNull null] forType:eventType]; + } + if (responder == self) { + return YES; + } } + return NO; } - (void)handleClickEvent { @@ -238,7 +299,12 @@ - (void)handleClickEvent { if (listener) { UITapGestureRecognizer *tap = objc_getAssociatedObject(self, @selector(tapGestureRecognizer)); CGPoint point = [tap locationInView:[self NativeRenderRootView]]; - listener(point); + const char *name = viewEventNameFromType(NativeRenderViewEventTypeClick); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); } } @@ -248,7 +314,12 @@ - (void)handleLongClickEvent { UILongPressGestureRecognizer *longPress = objc_getAssociatedObject(self, @selector(longGestureRecognizer)); if (longPress.state == UIGestureRecognizerStateBegan) { CGPoint point = [longPress locationInView:[self NativeRenderRootView]]; - listener(point); + const char *name = viewEventNameFromType(NativeRenderViewEventTypeLongClick); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); } } } @@ -257,15 +328,36 @@ - (void)handlePressInEvent { [self disablePressInTimer]; OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypePressIn]; if (listener) { - listener(CGPointZero); + const char *name = viewEventNameFromType(NativeRenderViewEventTypePressIn); + listener(CGPointZero, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); } } - (void)handlePressOutEvent { OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypePressOut]; if (listener) { - listener(CGPointZero); + const char *name = viewEventNameFromType(NativeRenderViewEventTypePressOut); + listener(CGPointZero, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); } } +- (void)resetAllEvents { + [self removeViewEvent:NativeRenderViewEventTypeTouchStart]; + [self removeViewEvent:NativeRenderViewEventTypeTouchEnd]; + [self removeViewEvent:NativeRenderViewEventTypeTouchMove]; + [self removeViewEvent:NativeRenderViewEventTypeTouchCancel]; + [self removeViewEvent:NativeRenderViewEventTypePressIn]; + [self removeViewEvent:NativeRenderViewEventTypePressOut]; + [self removeViewEvent:NativeRenderViewEventTypeClick]; + [self removeViewEvent:NativeRenderViewEventTypeLongClick]; +} + @end diff --git a/renderer/native/ios/renderer/component/view/NativeRenderTouchesProtocol.h b/renderer/native/ios/renderer/component/view/NativeRenderTouchesProtocol.h index f226f982631..31a61481f97 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderTouchesProtocol.h +++ b/renderer/native/ios/renderer/component/view/NativeRenderTouchesProtocol.h @@ -25,7 +25,11 @@ NS_ASSUME_NONNULL_BEGIN -typedef void(^OnTouchEventHandler)(CGPoint); +typedef void(^OnTouchEventHandler)(CGPoint point, + BOOL canCapture, + BOOL canBubble, + BOOL canBePreventedInCapture, + BOOL canBePreventedInBubbling); /** * Protocol indicates Views' touches event @@ -54,19 +58,33 @@ typedef void(^OnTouchEventHandler)(CGPoint); - (void)removeViewEvent:(NativeRenderViewEventType)touchEvent; /** - * Indicate event can be prevented in capturing process + * Indicate if event can be prevented in capturing process * @param name event name in std::string type * @return YES if event can be prevented in capturing process */ - (BOOL)canBePreventedByInCapturing:(const char *)name; /** - * Indicate event can be prevented in bubbling process + * Indicate if event can be prevented in bubbling process * @param name event name in std::string type * @return YES if event can be prevented in bubbling process */ - (BOOL)canBePreventInBubbling:(const char *)name; +/** + * Indicate if event can capture + * @param name event name + * @return YES if event can capture + */ +- (BOOL)canCapture:(const char *)name; + +/** + * Indicate if event can bubble + * @param name event name + * @return YES if event can bubble + */ +- (BOOL)canBubble:(const char *)name; + - (void)resetAllEvents; @end diff --git a/renderer/native/ios/renderer/component/view/NativeRenderTouchesView.h b/renderer/native/ios/renderer/component/view/NativeRenderTouchesView.h index bd5f34984a1..32b7da82354 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderTouchesView.h +++ b/renderer/native/ios/renderer/component/view/NativeRenderTouchesView.h @@ -21,7 +21,9 @@ */ #import + #import "NativeRenderTouchesProtocol.h" +#import "HPConvert+NativeRender.h" NS_ASSUME_NONNULL_BEGIN @@ -32,6 +34,11 @@ NS_ASSUME_NONNULL_BEGIN */ @interface NativeRenderTouchesView : UIView +/** + * Used to control how touch events are processed. + */ +@property (nonatomic, assign) NativeRenderPointerEvents pointerEvents; + @end NS_ASSUME_NONNULL_END diff --git a/renderer/native/ios/renderer/component/view/NativeRenderTouchesView.m b/renderer/native/ios/renderer/component/view/NativeRenderTouchesView.m index 0855fdd5e8c..20d8996a26a 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderTouchesView.m +++ b/renderer/native/ios/renderer/component/view/NativeRenderTouchesView.m @@ -21,9 +21,11 @@ */ #import "NativeRenderTouchesView.h" -#import "objc/runtime.h" -#import "UIView+NativeRender.h" +#import "UIEvent+TouchResponder.h" +#import "UIView+DomEvent.h" #import "UIView+MountEvent.h" +#import "UIView+NativeRender.h" +#import "objc/runtime.h" @interface NativeRenderTouchesView () { NSMutableDictionary *_touchesEvents; @@ -135,12 +137,56 @@ - (void)removeViewEvent:(NativeRenderViewEventType)touchEvent { } } -- (BOOL)canBePreventedByInCapturing:(const char *)name { - return NO; +- (void)setPointerEvents:(NativeRenderPointerEvents)pointerEvents { + _pointerEvents = pointerEvents; + self.userInteractionEnabled = (pointerEvents != NativeRenderPointerEventsNone); + if (pointerEvents == NativeRenderPointerEventsBoxNone) { + self.accessibilityViewIsModal = NO; + } } -- (BOOL)canBePreventInBubbling:(const char *)name { - return NO; +- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { + BOOL canReceiveTouchEvents = ([self isUserInteractionEnabled] && ![self isHidden]); + if (!canReceiveTouchEvents) { + return nil; + } + + // `hitSubview` is the topmost subview which was hit. The hit point can + // be outside the bounds of `view` (e.g., if -clipsToBounds is NO). + UIView *hitSubview = nil; + BOOL isPointInside = [self pointInside:point withEvent:event]; + BOOL needsHitSubview = !(_pointerEvents == NativeRenderPointerEventsNone || _pointerEvents == NativeRenderPointerEventsBoxOnly); + if (needsHitSubview && (![self clipsToBounds] || isPointInside)) { + // The default behaviour of UIKit is that if a view does not contain a point, + // then no subviews will be returned from hit testing, even if they contain + // the hit point. By doing hit testing directly on the subviews, we bypass + // the strict containment policy (i.e., UIKit guarantees that every ancestor + // of the hit view will return YES from -pointInside:withEvent:). See: + // - https://developer.apple.com/library/ios/qa/qa2013/qa1812.html + for (UIView *subview in [self.subviews reverseObjectEnumerator]) { + CGPoint convertedPoint = [subview convertPoint:point fromView:self]; + hitSubview = [subview hitTest:convertedPoint withEvent:event]; + if (hitSubview != nil) { + break; + } + } + } + + UIView *hitView = (isPointInside ? self : nil); + + switch (_pointerEvents) { + case NativeRenderPointerEventsNone: + return nil; + case NativeRenderPointerEventsUnspecified: + return hitSubview ?: hitView; + case NativeRenderPointerEventsBoxOnly: + return hitView; + case NativeRenderPointerEventsBoxNone: + return hitSubview; + default: + HPLogError(@"Invalid pointer-events specified %ld on %@", (long)_pointerEvents, self); + return hitSubview ?: hitView; + } } #pragma mark Touch Event Listener Add Methods @@ -188,15 +234,21 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if (_pressInEventEnabled) { _pressInTimer = [NSTimer scheduledTimerWithTimeInterval:.1f target:self selector:@selector(handlePressInEvent) userInfo:nil repeats:NO]; } - OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchStart]; - if (listener) { - UITouch *touch = [touches anyObject]; - CGPoint point = [touch locationInView:[self NativeRenderRootView]]; - listener(point); - } - else { - [super touchesBegan:touches withEvent:event]; + if ([self tryToHandleEvent:event forEventType:NativeRenderViewEventTypeTouchStart]) { + OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchStart]; + if (listener) { + UITouch *touch = [touches anyObject]; + UIView *rootView = [self NativeRenderRootView]; + CGPoint point = [touch locationInView:rootView]; + const char *name = viewEventNameFromType(NativeRenderViewEventTypeTouchStart); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); + } } + [super touchesBegan:touches withEvent:event]; } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { @@ -205,28 +257,40 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { _pressInTimer = nil; } [self handlePressOutEvent]; - OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchEnd]; - if (listener) { - UITouch *touch = [touches anyObject]; - CGPoint point = [touch locationInView:[self NativeRenderRootView]]; - listener(point); - } - else { - [super touchesEnded:touches withEvent:event]; + if ([self tryToHandleEvent:event forEventType:NativeRenderViewEventTypeTouchEnd]) { + OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchEnd]; + if (listener) { + UITouch *touch = [touches anyObject]; + UIView *rootView = [self NativeRenderRootView]; + CGPoint point = [touch locationInView:rootView]; + const char *name = viewEventNameFromType(NativeRenderViewEventTypeTouchEnd); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); + } } + [super touchesEnded:touches withEvent:event]; } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { - OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchMove]; - if (listener) { - [self handlePressOutEvent]; - UITouch *touch = [touches anyObject]; - CGPoint point = [touch locationInView:[self NativeRenderRootView]]; - listener(point); - } - else { - [super touchesMoved:touches withEvent:event]; + if ([self tryToHandleEvent:event forEventType:NativeRenderViewEventTypeTouchMove]) { + OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchMove]; + if (listener) { + [self handlePressOutEvent]; + UITouch *touch = [touches anyObject]; + UIView *rootView = [self NativeRenderRootView]; + CGPoint point = [touch locationInView:rootView]; + const char *name = viewEventNameFromType(NativeRenderViewEventTypeTouchMove); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); + } } + [super touchesMoved:touches withEvent:event]; } - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { @@ -235,22 +299,68 @@ - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event _pressInTimer = nil; } [self handlePressOutEvent]; - OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchCancel]; - if (listener) { - UITouch *touch = [touches anyObject]; - CGPoint point = [touch locationInView:[self NativeRenderRootView]]; - listener(point); + if ([self tryToHandleEvent:event forEventType:NativeRenderViewEventTypeTouchCancel]) { + OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeTouchCancel]; + if (listener) { + UITouch *touch = [touches anyObject]; + UIView *rootView = [self NativeRenderRootView]; + CGPoint point = [touch locationInView:rootView]; + const char *name = viewEventNameFromType(NativeRenderViewEventTypeTouchCancel); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); + } } - else { - [super touchesCancelled:touches withEvent:event]; + [super touchesCancelled:touches withEvent:event]; +} + +- (BOOL)tryToHandleEvent:(UIEvent *)event forEventType:(NativeRenderViewEventType)eventType { + id responder = [event responderForType:eventType]; + if (self == responder) { + return YES; + } + if (nil == responder) { + // assume first responder is self + UIView *responder = nil; + // find out is there any parent view who can handle `eventType` and `onInterceptTouchEvent` is YES + UIView *testingView = self; + while (testingView) { + OnTouchEventHandler handler = [testingView eventListenerForEventType:eventType]; + if (!responder && handler) { + responder = testingView; + } + BOOL onInterceptTouchEvent = testingView.onInterceptTouchEvent; + if (handler && onInterceptTouchEvent) { + responder = testingView; + } + testingView = [testingView parentComponent]; + } + // set first responder for `eventType` + if (responder) { + [event setResponder:responder forType:eventType]; + } + else { + [event setResponder:[NSNull null] forType:eventType]; + } + if (responder == self) { + return YES; + } } + return NO; } - (void)handleClickEvent { OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypeClick]; if (listener) { CGPoint point = [_tapGestureRecognizer locationInView:[self NativeRenderRootView]]; - listener(point); + const char *name = viewEventNameFromType(NativeRenderViewEventTypeClick); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); } } @@ -259,7 +369,12 @@ - (void)handleLongClickEvent { if (listener) { if (_longGestureRecognizer.state == UIGestureRecognizerStateBegan) { CGPoint point = [_longGestureRecognizer locationInView:[self NativeRenderRootView]]; - listener(point); + const char *name = viewEventNameFromType(NativeRenderViewEventTypeLongClick); + listener(point, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); } } } @@ -269,14 +384,24 @@ - (void)handlePressInEvent { _pressInTimer = nil; OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypePressIn]; if (listener) { - listener(CGPointZero); + const char *name = viewEventNameFromType(NativeRenderViewEventTypePressIn); + listener(CGPointZero, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); } } - (void)handlePressOutEvent { OnTouchEventHandler listener = [self eventListenerForEventType:NativeRenderViewEventTypePressOut]; if (listener) { - listener(CGPointZero); + const char *name = viewEventNameFromType(NativeRenderViewEventTypePressOut); + listener(CGPointZero, + [self canCapture:name], + [self canBubble:name], + [self canBePreventedByInCapturing:name], + [self canBePreventInBubbling:name]); } } diff --git a/renderer/native/ios/renderer/component/view/NativeRenderView.h b/renderer/native/ios/renderer/component/view/NativeRenderView.h index b99c676c5eb..3881fb29b2f 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderView.h +++ b/renderer/native/ios/renderer/component/view/NativeRenderView.h @@ -22,7 +22,6 @@ #import -#import "HPConvert+NativeRender.h" #import "NativeRenderComponentProtocol.h" #import "NativeRenderTouchesView.h" @@ -30,11 +29,6 @@ @interface NativeRenderView : NativeRenderTouchesView -/** - * Used to control how touch events are processed. - */ -@property (nonatomic, assign) NativeRenderPointerEvents pointerEvents; - /** * z-index, used to override sibling order in didUpdateHippySubviews. This is * inherited from UIView+NativeRender, but we override it here to reduce the boxing diff --git a/renderer/native/ios/renderer/component/view/NativeRenderView.m b/renderer/native/ios/renderer/component/view/NativeRenderView.m index 12c0fba1e0e..a773fae4e74 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderView.m +++ b/renderer/native/ios/renderer/component/view/NativeRenderView.m @@ -20,12 +20,14 @@ * limitations under the License. */ -#import "NativeRenderView.h" -#import "NativeRenderBorderDrawing.h" #import "HPConvert.h" #import "HPToolUtils.h" -#import "UIView+NativeRender.h" +#import "NativeRenderBorderDrawing.h" #import "NativeRenderGradientObject.h" +#import "NativeRenderView.h" +#import "UIEvent+TouchResponder.h" +#import "UIView+DomEvent.h" +#import "UIView+NativeRender.h" static CGSize makeSizeConstrainWithType(CGSize originSize, CGSize constrainSize, NSString *resizeMode) { // width / height @@ -98,71 +100,6 @@ - (NSString *)accessibilityLabel { return NativeRenderRecursiveAccessibilityLabel(self); } -- (void)setPointerEvents:(NativeRenderPointerEvents)pointerEvents { - _pointerEvents = pointerEvents; - self.userInteractionEnabled = (pointerEvents != NativeRenderPointerEventsNone); - if (pointerEvents == NativeRenderPointerEventsBoxNone) { - self.accessibilityViewIsModal = NO; - } -} - -- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { - BOOL canReceiveTouchEvents = ([self isUserInteractionEnabled] && ![self isHidden]); - if (!canReceiveTouchEvents) { - return nil; - } - - // `hitSubview` is the topmost subview which was hit. The hit point can - // be outside the bounds of `view` (e.g., if -clipsToBounds is NO). - UIView *hitSubview = nil; - BOOL isPointInside = [self pointInside:point withEvent:event]; - BOOL needsHitSubview = !(_pointerEvents == NativeRenderPointerEventsNone || _pointerEvents == NativeRenderPointerEventsBoxOnly); - if (needsHitSubview && (![self clipsToBounds] || isPointInside)) { - // The default behaviour of UIKit is that if a view does not contain a point, - // then no subviews will be returned from hit testing, even if they contain - // the hit point. By doing hit testing directly on the subviews, we bypass - // the strict containment policy (i.e., UIKit guarantees that every ancestor - // of the hit view will return YES from -pointInside:withEvent:). See: - // - https://developer.apple.com/library/ios/qa/qa2013/qa1812.html - for (UIView *subview in [self.subviews reverseObjectEnumerator]) { - CGPoint convertedPoint = [subview convertPoint:point fromView:self]; - hitSubview = [subview hitTest:convertedPoint withEvent:event]; - if (hitSubview != nil) { - break; - } - } - } - - UIView *hitView = (isPointInside ? self : nil); - - switch (_pointerEvents) { - case NativeRenderPointerEventsNone: - return nil; - case NativeRenderPointerEventsUnspecified: - return hitSubview ?: hitView; - case NativeRenderPointerEventsBoxOnly: - return hitView; - case NativeRenderPointerEventsBoxNone: - return hitSubview; - default: - HPLogError(@"Invalid pointer-events specified %ld on %@", (long)_pointerEvents, self); - return hitSubview ?: hitView; - } -} - -- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event { - //require clickable when animating. - //we check presentationLayer frame. - //point inside presentationLayer means point inside view - if ([[self.layer animationKeys] count] > 0) { - CGRect presentationLayerFrame = self.layer.presentationLayer.frame; - CGRect convertPresentationLayerFrame = [self.superview convertRect:presentationLayerFrame toView:self]; - return CGRectContainsPoint(convertPresentationLayerFrame, point); - } - BOOL pointInside = [super pointInside:point withEvent:event]; - return pointInside; -} - - (NSString *)description { NSString *superDescription = super.description; NSRange semicolonRange = [superDescription rangeOfString:@";"]; diff --git a/renderer/native/ios/renderer/component/view/NativeRenderViewEventType.h b/renderer/native/ios/renderer/component/view/NativeRenderViewEventType.h index 779ff7fd0b6..bfe12d55ccf 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderViewEventType.h +++ b/renderer/native/ios/renderer/component/view/NativeRenderViewEventType.h @@ -45,4 +45,6 @@ typedef NS_ENUM(NSInteger, NativeRenderViewEventType) { NativeRenderViewEventTypeUnknown = -1, }; -HP_EXTERN NativeRenderViewEventType viewEventTypeFromName(const char *name); +HP_EXTERN NativeRenderViewEventType viewEventTypeFromName(const char * _Nullable name); + +HP_EXTERN const char *_Nullable viewEventNameFromType(NativeRenderViewEventType eventType); diff --git a/renderer/native/ios/renderer/component/view/NativeRenderViewEventType.mm b/renderer/native/ios/renderer/component/view/NativeRenderViewEventType.mm index e88ccfe6d7e..cd23870d428 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderViewEventType.mm +++ b/renderer/native/ios/renderer/component/view/NativeRenderViewEventType.mm @@ -24,7 +24,7 @@ #include "dom/dom_listener.h" -NativeRenderViewEventType viewEventTypeFromName(const char *name) { +NativeRenderViewEventType viewEventTypeFromName(const char * _Nullable name) { if (!name) { return NativeRenderViewEventTypeUnknown; } @@ -64,3 +64,45 @@ NativeRenderViewEventType viewEventTypeFromName(const char *name) { } return type; } + +const char * _Nullable viewEventNameFromType(NativeRenderViewEventType eventType) { + const char *name = nullptr; + switch (eventType) { + case NativeRenderViewEventTypeTouchStart: + name = hippy::kTouchStartEvent; + break; + case NativeRenderViewEventTypeTouchMove: + name = hippy::kTouchMoveEvent; + break; + case NativeRenderViewEventTypeTouchEnd: + name = hippy::kTouchEndEvent; + break; + case NativeRenderViewEventTypeTouchCancel: + name = hippy::kTouchCancelEvent; + break; + case NativeRenderViewEventTypePressIn: + name = hippy::kPressIn; + break; + case NativeRenderViewEventTypePressOut: + name = hippy::kPressOut; + break; + case NativeRenderViewEventLayout: + name = hippy::kLayoutEvent; + break; + case NativeRenderViewEventTypeShow: + name = hippy::kShowEvent; + break; + case NativeRenderViewEventTypeDismiss: + name = hippy::kDismissEvent; + break; + case NativeRenderViewEventTypeClick: + name = hippy::kClickEvent; + break; + case NativeRenderViewEventTypeLongClick: + name = hippy::kLongClickEvent; + break; + default: + break; + } + return name; +} diff --git a/renderer/native/ios/renderer/component/view/NativeRenderViewManager.mm b/renderer/native/ios/renderer/component/view/NativeRenderViewManager.mm index 80e73ceaa2e..43e83a4f683 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderViewManager.mm +++ b/renderer/native/ios/renderer/component/view/NativeRenderViewManager.mm @@ -218,7 +218,7 @@ - (void)measureInAppWindow:(NSNumber *)componentTag NATIVE_RENDER_EXPORT_VIEW_PROPERTY(backgroundPositionX, CGFloat) NATIVE_RENDER_EXPORT_VIEW_PROPERTY(backgroundPositionY, CGFloat) - +NATIVE_RENDER_EXPORT_VIEW_PROPERTY(onInterceptTouchEvent, BOOL) NATIVE_RENDER_CUSTOM_VIEW_PROPERTY(visibility, NSString, NativeRenderView) { if (json) { NSString *status = [HPConvert NSString:json]; diff --git a/renderer/native/ios/renderer/component/view/UIEvent+TouchResponder.h b/renderer/native/ios/renderer/component/view/UIEvent+TouchResponder.h new file mode 100644 index 00000000000..e694296f01a --- /dev/null +++ b/renderer/native/ios/renderer/component/view/UIEvent+TouchResponder.h @@ -0,0 +1,39 @@ +/*! + * iOS SDK + * + * Tencent is pleased to support the open source community by making + * NativeRender available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. + * All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import +#import "NativeRenderViewEventType.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface UIEvent (TouchResponder) + +- (void)setResponder:(__weak id)responder forType:(NativeRenderViewEventType)type; + +- (id)responderForType:(NativeRenderViewEventType)type; + +- (void)removeAllResponders; + +@end + +NS_ASSUME_NONNULL_END + diff --git a/renderer/native/ios/renderer/component/view/UIEvent+TouchResponder.m b/renderer/native/ios/renderer/component/view/UIEvent+TouchResponder.m new file mode 100644 index 00000000000..d7883f0b69f --- /dev/null +++ b/renderer/native/ios/renderer/component/view/UIEvent+TouchResponder.m @@ -0,0 +1,49 @@ +/*! + * iOS SDK + * + * Tencent is pleased to support the open source community by making + * NativeRender available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. + * All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#import "UIEvent+TouchResponder.h" +#import "objc/runtime.h" + +@implementation UIEvent (TouchResponder) + +- (NSMapTable *)respondersMap { + NSMapTable *map = objc_getAssociatedObject(self, _cmd); + if (!map) { + map = [NSMapTable strongToWeakObjectsMapTable]; + objc_setAssociatedObject(self, _cmd, map, OBJC_ASSOCIATION_RETAIN); + } + return map; +} + +- (void)setResponder:(__weak id)responder forType:(NativeRenderViewEventType)type { + [[self respondersMap] setObject:responder forKey:@(type)]; +} + +- (id)responderForType:(NativeRenderViewEventType)type { + return [[self respondersMap] objectForKey:@(type)]; +} + +- (void)removeAllResponders { + [[self respondersMap] removeAllObjects]; +} + +@end diff --git a/renderer/native/ios/renderer/component/view/UIView+DomEvent.h b/renderer/native/ios/renderer/component/view/UIView+DomEvent.h index 0391f536077..882de0c6b3b 100644 --- a/renderer/native/ios/renderer/component/view/UIView+DomEvent.h +++ b/renderer/native/ios/renderer/component/view/UIView+DomEvent.h @@ -36,6 +36,8 @@ NS_ASSUME_NONNULL_BEGIN @interface UIView(DomEvent) +@property(nonatomic, assign)BOOL onInterceptTouchEvent; + @property(nonatomic, readonly, copy)NSSet *propertyEventsName; /** diff --git a/renderer/native/ios/renderer/component/view/UIView+DomEvent.m b/renderer/native/ios/renderer/component/view/UIView+DomEvent.mm similarity index 73% rename from renderer/native/ios/renderer/component/view/UIView+DomEvent.m rename to renderer/native/ios/renderer/component/view/UIView+DomEvent.mm index 0ae63b29ddb..7521c4e181f 100644 --- a/renderer/native/ios/renderer/component/view/UIView+DomEvent.m +++ b/renderer/native/ios/renderer/component/view/UIView+DomEvent.mm @@ -24,9 +24,33 @@ #import #import "UIView+MountEvent.h" #import "UIView+NativeRender.h" +#import "UIEvent+TouchResponder.h" + +#include "dom/dom_listener.h" @implementation UIView(DomEvent) ++ (void)load { + if (self == [UIView self]) { + Method originMethod = class_getInstanceMethod([UIView class], @selector(hitTest:withEvent:)); + Method exchangeMethod = class_getInstanceMethod([UIView class], @selector(hippy_domEvent_hitTest:withEvent:)); + method_exchangeImplementations(originMethod, exchangeMethod); + } +} + +- (UIView *)hippy_domEvent_hitTest:(CGPoint)point withEvent:(UIEvent *)event { + [event removeAllResponders]; + return [self hippy_domEvent_hitTest:point withEvent:event]; +} + +- (void)setOnInterceptTouchEvent:(BOOL)onInterceptTouchEvent { + objc_setAssociatedObject(self, @selector(onInterceptTouchEvent), @(onInterceptTouchEvent), OBJC_ASSOCIATION_RETAIN); +} + +- (BOOL)onInterceptTouchEvent { + return [objc_getAssociatedObject(self, @selector(onInterceptTouchEvent)) boolValue]; +} + - (NSMutableSet *)_propertyEventsName { NSMutableSet *names = objc_getAssociatedObject(self, @selector(_propertyEventsName)); if (!names) { @@ -142,6 +166,37 @@ - (BOOL)canBePreventInBubbling:(const char *)name { return NO; } +static BOOL IsGestureEvent(const char *name) { + if (!name) { + return NO; + } + if (0 == strcmp(name, hippy::kClickEvent) || + 0 == strcmp(name, hippy::kLongClickEvent) || + 0 == strcmp(name, hippy::kPressIn) || + 0 == strcmp(name, hippy::kPressOut) || + 0 == strcmp(name, hippy::kTouchStartEvent) || + 0 == strcmp(name, hippy::kTouchEndEvent) || + 0 == strcmp(name, hippy::kTouchMoveEvent) || + 0 == strcmp(name, hippy::kTouchCancelEvent)) { + return YES; + } + return NO; +} + +- (BOOL)canCapture:(const char *)name { + if (!name) { + return YES; + } + return IsGestureEvent(name); +} + +- (BOOL)canBubble:(const char *)name { + if (!name) { + return YES; + } + return IsGestureEvent(name); +} + - (void)resetAllEvents {} @end diff --git a/renderer/native/ios/renderer/component/view/UIView+NativeRender.mm b/renderer/native/ios/renderer/component/view/UIView+NativeRender.mm index d1661403623..b16410f1667 100644 --- a/renderer/native/ios/renderer/component/view/UIView+NativeRender.mm +++ b/renderer/native/ios/renderer/component/view/UIView+NativeRender.mm @@ -174,8 +174,8 @@ - (void)resetNativeRenderSubviews { - (UIView *)NativeRenderRootView { UIView *candidateRootView = self; BOOL isRootView = [candidateRootView isNativeRenderRootView]; - while (!isRootView && !candidateRootView) { - candidateRootView = [candidateRootView superview]; + while (!isRootView && candidateRootView) { + candidateRootView = [candidateRootView parentComponent]; isRootView = [candidateRootView isNativeRenderRootView]; } return candidateRootView;