You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by da...@apache.org on 2017/08/24 08:25:07 UTC
[01/13] incubator-weex git commit: * [jsfm] upgrade
weex-rax-framework to v0.4.10
Repository: incubator-weex
Updated Branches:
refs/heads/0.16-dev 60c744e66 -> 53dfdbf20
* [jsfm] upgrade weex-rax-framework to v0.4.10
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/4accea5e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/4accea5e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/4accea5e
Branch: refs/heads/0.16-dev
Commit: 4accea5ed865a6accb4ffcf297cb20724892e201
Parents: 42285f3
Author: Hanks <zh...@gmail.com>
Authored: Wed Aug 16 22:51:07 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Wed Aug 16 22:51:07 2017 +0800
----------------------------------------------------------------------
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4accea5e/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 6fa9019..692b16f 100644
--- a/package.json
+++ b/package.json
@@ -104,7 +104,7 @@
"scroll-to": "0.0.2",
"semver": "^5.1.0",
"weex-picker": "^0.1.0",
- "weex-rax-framework": "0.4.7",
+ "weex-rax-framework": "0.4.10",
"weex-vue-framework": "2.4.2-weex.3"
},
"devDependencies": {
[09/13] incubator-weex git commit: * [jsfm] release v0.21.11
Posted by da...@apache.org.
* [jsfm] release v0.21.11
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/90fac505
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/90fac505
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/90fac505
Branch: refs/heads/0.16-dev
Commit: 90fac505195151f19e2afc4e5f283a4391ddd3de
Parents: a1136da
Author: Hanks <zh...@gmail.com>
Authored: Wed Aug 23 15:59:04 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Wed Aug 23 15:59:04 2017 +0800
----------------------------------------------------------------------
package.json | 2 +-
packages/weex-js-framework/index.js | 43902 +++++++++++++------------
packages/weex-js-framework/index.min.js | 9 +-
pre-build/native-bundle-main.js | 16 +-
4 files changed, 22056 insertions(+), 21873 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90fac505/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index e108bac..b0e0085 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "0.12.2",
"subversion": {
"browser": "0.5.0",
- "framework": "0.21.10",
+ "framework": "0.21.11",
"vue-render": "0.12.3",
"transformer": ">=0.1.5 <0.5"
},
[05/13] incubator-weex git commit: * [jsfm] upgrade
weex-rax-framework to v0.4.11
Posted by da...@apache.org.
* [jsfm] upgrade weex-rax-framework to v0.4.11
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/a1136da3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/a1136da3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/a1136da3
Branch: refs/heads/0.16-dev
Commit: a1136da36d4947523b1ac7f29ad43baaf374a051
Parents: f7a1805
Author: Hanks <zh...@gmail.com>
Authored: Wed Aug 23 15:37:48 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Wed Aug 23 15:37:48 2017 +0800
----------------------------------------------------------------------
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/a1136da3/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index de79d71..e108bac 100644
--- a/package.json
+++ b/package.json
@@ -104,7 +104,7 @@
"scroll-to": "0.0.2",
"semver": "^5.1.0",
"weex-picker": "^0.1.0",
- "weex-rax-framework": "0.4.10",
+ "weex-rax-framework": "0.4.11",
"weex-vue-framework": "2.4.2-weex.3"
},
"devDependencies": {
[11/13] incubator-weex git commit: Merge branch '0.16-dev' into
jsfm-feature-0.21
Posted by da...@apache.org.
Merge branch '0.16-dev' into jsfm-feature-0.21
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/96318083
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/96318083
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/96318083
Branch: refs/heads/0.16-dev
Commit: 9631808331e52f8c78106bac089d9e417698b671
Parents: d3541ae 849ed3e
Author: Hanks <zh...@gmail.com>
Authored: Wed Aug 23 17:23:01 2017 +0800
Committer: GitHub <no...@github.com>
Committed: Wed Aug 23 17:23:01 2017 +0800
----------------------------------------------------------------------
.../commons/adapter/FrescoImageComponent.java | 2 +-
.../java/com/taobao/weex/WXSDKInstance.java | 4 +-
.../taobao/weex/ui/component/WXComponent.java | 14 +-
.../com/taobao/weex/ui/component/WXImage.java | 75 ++++---
.../com/taobao/weex/ui/component/WXText.java | 52 ++++-
.../ui/component/list/BasicListComponent.java | 59 ++++-
.../com/taobao/weex/ui/view/WXImageView.java | 16 +-
.../ui/view/refresh/core/WXSwipeLayout.java | 2 +-
.../com/taobao/weex/utils/ImageDrawable.java | 17 +-
.../com/taobao/weex/utils/TypefaceUtil.java | 8 +
dangerfile.js | 22 +-
examples/vue/index.vue | 5 +-
examples/vue/showcase/a-node-click.vue | 74 +++++++
examples/vue/showcase/tap-penetrate.vue | 206 ++++++++++++++++++
examples/vue/transition.vue | 75 +++++++
html5/render/browser/extend/api/storage.js | 4 +-
html5/render/vue/core/node.js | 64 ++++--
html5/render/vue/utils/event.js | 32 ++-
html5/test/render/vue/core/node.js | 1 -
html5/test/render/vue/utils/event.js | 10 +
ios/playground/WeexDemo/WXExtModule.m | 7 +
ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m | 5 +-
.../Sources/Component/WXComponent_internal.h | 2 +
.../Sources/Component/WXImageComponent.m | 2 +-
.../WeexSDK/Sources/Component/WXListComponent.m | 52 ++---
.../WeexSDK/Sources/Component/WXTextComponent.m | 15 +-
ios/sdk/WeexSDK/Sources/Model/WXComponent.m | 6 +-
ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h | 7 +
.../WeexSDK/Sources/Module/WXAnimationModule.h | 4 -
.../WeexSDK/Sources/Module/WXAnimationModule.m | 8 -
ios/sdk/WeexSDK/Sources/Module/WXTransition.h | 2 -
ios/sdk/WeexSDK/Sources/Module/WXTransition.m | 216 +++++++++++++++++--
ios/sdk/WeexSDK/Sources/Utility/WXConvert.h | 1 +
ios/sdk/WeexSDK/Sources/Utility/WXConvert.m | 17 ++
.../Sources/View/WXComponent+ViewManagement.m | 11 +-
ios/sdk/WeexSDKTests/WXConvertTests.m | 21 +-
package.json | 2 +-
test/pages/components/switch-event.vue | 7 +-
test/pages/include/wxc-desc.vue | 27 ++-
test/pages/modules/vue_timer.vue | 8 +-
test/run.sh | 2 +-
test/scripts/attributes/compositing.test.js | 4 +-
test/scripts/components/hyperlink.test.js | 4 +-
test/scripts/components/iconfont.test.js | 4 +-
test/scripts/components/image-onload.test.js | 4 +-
test/scripts/components/input-event.test.js | 4 +-
test/scripts/components/recycler.test.js | 4 +-
test/scripts/components/refresh-loading.test.js | 4 +-
test/scripts/components/scroll-event.test.js | 8 +-
test/scripts/components/scroller-fixed.test.js | 4 +-
test/scripts/components/slider-common.test.js | 4 +-
test/scripts/components/slider-infinite.test.js | 4 +-
test/scripts/components/switch-event.test.js | 4 +-
test/scripts/components/text.test.js | 63 +++---
.../components/textarea-maxlength.test.js | 4 +-
test/scripts/components/web-event.test.js | 4 +-
test/scripts/css/border.test.js | 4 +-
test/scripts/dom.test.js | 9 +-
test/scripts/index.test.js | 4 +-
.../scripts/modules/animation-translate.test.js | 4 +-
test/scripts/modules/clipboard-event.test.js | 4 +-
test/scripts/modules/downgrade-event.test.js | 4 +-
test/scripts/modules/gesture-longpress.test.js | 4 +-
test/scripts/modules/globalEvent.test.js | 24 +--
test/scripts/modules/modal-event.test.js | 5 +-
test/scripts/modules/picker-event.test.js | 4 +-
test/scripts/modules/storage-event.test.js | 4 +-
test/scripts/modules/stream-result.test.js | 4 +-
test/scripts/modules/timer.test.js | 55 +++--
test/scripts/util.js | 2 +
test/scripts/zcover-generate.js | 4 +-
71 files changed, 1106 insertions(+), 316 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/96318083/package.json
----------------------------------------------------------------------
[10/13] incubator-weex git commit: * [build] fix conflicts
Posted by da...@apache.org.
* [build] fix conflicts
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/d3541aef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/d3541aef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/d3541aef
Branch: refs/heads/0.16-dev
Commit: d3541aef3c049fd1d6856f98e4b20b8f5e65885b
Parents: 90fac50 245ee61
Author: Hanks <zh...@gmail.com>
Authored: Wed Aug 23 17:22:01 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Wed Aug 23 17:22:01 2017 +0800
----------------------------------------------------------------------
HOW-TO-BUILD.md | 17 +-
SCRIPTS.md | 4 +-
.../java/com/taobao/weex/WXEnvironment.java | 2 +-
.../java/com/taobao/weex/WXSDKInstance.java | 37 +-
.../main/java/com/taobao/weex/WXSDKManager.java | 36 +-
.../taobao/weex/adapter/ITracingAdapter.java | 31 +
.../com/taobao/weex/bridge/WXBridgeManager.java | 66 +-
.../java/com/taobao/weex/common/Constants.java | 3 +
.../taobao/weex/dom/DOMActionContextImpl.java | 15 +-
.../com/taobao/weex/dom/RenderActionTask.java | 26 +-
.../java/com/taobao/weex/dom/WXDomHandler.java | 8 +-
.../java/com/taobao/weex/dom/WXDomManager.java | 16 +-
.../java/com/taobao/weex/dom/WXDomModule.java | 39 +-
.../java/com/taobao/weex/dom/WXDomObject.java | 24 +-
.../java/com/taobao/weex/dom/WXDomTask.java | 1 +
.../taobao/weex/dom/WXRecyclerDomObject.java | 9 +
.../dom/action/AbstractAddElementAction.java | 26 +-
.../dom/action/AbstractLayoutFinishAction.java | 3 +-
.../weex/dom/action/AddElementAction.java | 26 +
.../taobao/weex/dom/action/AddEventAction.java | 24 +-
.../weex/dom/action/CreateBodyAction.java | 19 +
.../weex/dom/action/CreateFinishAction.java | 6 +
.../weex/dom/action/RefreshFinishAction.java | 4 +
.../taobao/weex/dom/action/TraceableAction.java | 82 +
.../weex/dom/action/UpdateAttributeAction.java | 2 +-
.../weex/dom/action/UpdateStyleAction.java | 2 +-
.../java/com/taobao/weex/tracing/Stopwatch.java | 132 +
.../java/com/taobao/weex/tracing/WXTracing.java | 129 +
.../com/taobao/weex/ui/WXRenderManager.java | 26 +-
.../ui/component/AbstractEditComponent.java | 2 +-
.../taobao/weex/ui/component/WXComponent.java | 65 +-
.../com/taobao/weex/ui/component/WXSlider.java | 8 +-
.../taobao/weex/ui/component/WXVContainer.java | 18 +
.../ui/component/list/BasicListComponent.java | 1 +
.../weex/ui/view/WXBaseCircleIndicator.java | 3 +-
.../taobao/weex/ui/view/WXCircleViewPager.java | 57 +-
.../ui/view/refresh/core/WXSwipeLayout.java | 15 +-
.../ui/view/refresh/wrapper/BaseBounceView.java | 2 +-
.../java/com/taobao/weex/utils/WXLogUtils.java | 45 +-
.../com/taobao/weex/utils/WXLogUtilsTest.java | 1 -
build/build.js | 1 +
build/config.js | 21 +-
dangerfile.js | 5 +-
doc/source/_posts/arkit.md | 112 +
doc/source/_posts/cn/hello.md | 6 -
doc/source/_posts/hello_world.md | 7 -
doc/source/_posts/test.md | 14 -
doc/source/cn/blog/index.md | 4 -
.../cn/references/advanced/extend-to-ios.md | 4 +-
.../advanced/integrate-devtool-to-android.md | 86 +-
doc/source/cn/references/common-style.md | 2 +
doc/source/cn/references/components/text.md | 4 +-
doc/source/cn/references/modules/animation.md | 2 +-
doc/source/references/advanced/extend-to-ios.md | 5 +-
doc/source/references/common-style.md | 2 +
doc/source/references/components/text.md | 4 +-
doc/source/references/modules/animation.md | 2 +-
doc/themes/weex/layout/_partial/header.ejs | 1 +
.../weex/layout/_partial/post/summary.ejs | 1 +
doc/themes/weex/source/css/blog.scss | 3 +
doc/themes/weex/source/css/media-queries.scss | 1 +
doc/themes/weex/source/css/partial/header.scss | 6 +-
examples/vanilla/index.js | 4 +-
examples/vue/market/gcanvas.vue | 10 +-
html5/frameworks/vanilla/index.js | 32 +-
html5/render/native/setup.js | 2 +-
html5/runtime/api/config.js | 37 +
html5/runtime/api/init.js | 227 +
html5/runtime/api/service.js | 77 +
html5/runtime/bridge/CallbackManager.js | 58 +
html5/runtime/bridge/Handler.js | 91 +
html5/runtime/bridge/Listener.js | 220 +
html5/runtime/bridge/TaskCenter.js | 130 +
html5/runtime/bridge/normalize.js | 91 +
html5/runtime/callback-manager.js | 58 -
html5/runtime/config.js | 36 -
html5/runtime/handler.js | 91 -
html5/runtime/index.js | 11 +-
html5/runtime/init.js | 215 -
html5/runtime/listener.js | 227 -
html5/runtime/normalize.js | 98 -
html5/runtime/service.js | 77 -
html5/runtime/task-center.js | 130 -
html5/runtime/utils.js | 54 +
html5/runtime/vdom/Comment.js | 43 +
html5/runtime/vdom/Document.js | 188 +
html5/runtime/vdom/Element.js | 454 +
html5/runtime/vdom/Node.js | 47 +
html5/runtime/vdom/WeexElement.js | 84 +
html5/runtime/vdom/comment.js | 47 -
html5/runtime/vdom/directive.js | 69 +
html5/runtime/vdom/document.js | 194 -
html5/runtime/vdom/element-types.js | 83 -
html5/runtime/vdom/element.js | 459 -
html5/runtime/vdom/index.js | 16 +-
html5/runtime/vdom/node.js | 49 -
html5/runtime/vdom/operation.js | 8 -
html5/test/case/prepare.js | 4 +-
html5/test/unit/default/app/bundle.js | 98 +-
html5/test/unit/default/helper/document.js | 145 -
html5/test/unit/default/runtime.js | 485 -
html5/test/unit/default/vm/compiler.js | 614 -
html5/test/unit/default/vm/directive.js | 279 -
html5/test/unit/default/vm/dom-helper.js | 2 +-
html5/test/unit/default/vm/vm.js | 2 +-
html5/test/unit/runtime/legacy-framework.js | 353 +
html5/test/unit/runtime/runner/helper.js | 73 +
html5/test/unit/runtime/runner/vanilla.js | 59 +
html5/test/unit/runtime/runner/vue.js | 67 +
html5/test/unit/runtime/vdom/directive.js | 101 +
html5/test/unit/runtime/vdom/index.js | 639 +
html5/test/unit/runtime/vdom/listener.js | 381 +
html5/test/unit/runtime/vdom/node.js | 39 +
html5/test/unit/shared/BroadcastChannel.js | 7 -
html5/test/unit/shared/arrayFrom.js | 5 -
html5/test/unit/shared/index.js | 20 +-
html5/test/unit/vanilla/index.js | 13 -
html5/test/unit/vdom/index.js | 659 -
html5/test/unit/vdom/listener.js | 423 -
html5/test/unit/vdom/node.js | 39 -
ios/sdk/WeexSDK.xcodeproj/project.pbxproj | 24 +-
.../Sources/Component/WXComponent_internal.h | 12 +
.../WeexSDK/Sources/Component/WXListComponent.m | 4 +-
.../Sources/Display/WXComponent+Display.m | 16 +-
.../WeexSDK/Sources/Layout/WXComponent+Layout.m | 3 +-
ios/sdk/WeexSDK/Sources/Model/WXComponent.m | 67 +-
ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 9 +-
.../WeexSDK/Sources/Module/WXAnimationLayout.h | 49 -
.../WeexSDK/Sources/Module/WXAnimationLayout.m | 115 -
.../WeexSDK/Sources/Module/WXAnimationModule.h | 2 +
.../WeexSDK/Sources/Module/WXAnimationModule.m | 88 +-
ios/sdk/WeexSDK/Sources/Module/WXTransition.h | 43 +
ios/sdk/WeexSDK/Sources/Module/WXTransition.m | 311 +
.../Sources/Protocol/WXJSExceptionProtocol.h | 10 +
ios/sdk/WeexSDK/Sources/Utility/WXConvert.m | 3 +-
package.json | 9 +-
packages/weex-html5/index.js | 38779 +++++++++++++++++
packages/weex-html5/index.min.js | 1 +
packages/weex-js-runtime/index.js | 937 +-
packages/weex-js-runtime/index.min.js | 4 +
packages/weex-legacy-framework/index.js | 23 +-
packages/weex-legacy-framework/index.min.js | 2 +-
packages/weex-legacy-framework/package.json | 2 +-
packages/weex-vanilla-framework/.npmignore | 4 +
packages/weex-vanilla-framework/index.js | 136 +
packages/weex-vanilla-framework/index.min.js | 1 +
packages/weex-vanilla-framework/package.json | 21 +
scripts/build_from_source.sh | 10 +-
test/run.sh | 18 +-
149 files changed, 44829 insertions(+), 5423 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/d3541aef/package.json
----------------------------------------------------------------------
[13/13] incubator-weex git commit: Merge branch 'jsfm-feature-0.21'
of https://github.com/Hanks10100/incubator-weex into 0.16-dev
Posted by da...@apache.org.
Merge branch 'jsfm-feature-0.21' of https://github.com/Hanks10100/incubator-weex into 0.16-dev
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/53dfdbf2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/53dfdbf2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/53dfdbf2
Branch: refs/heads/0.16-dev
Commit: 53dfdbf20e2b8cd3a0b529fc8288af7e0736e682
Parents: 60c744e abdfac9
Author: MrRaindrop <te...@gmail.com>
Authored: Thu Aug 24 16:24:43 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Thu Aug 24 16:24:43 2017 +0800
----------------------------------------------------------------------
dangerfile.js | 1 +
html5/frameworks/legacy/app/differ.js | 2 +-
html5/frameworks/legacy/vm/directive.js | 2 +-
.../complex/component-append-tree.output.js | 22 +
.../complex/component-append-tree.source.js | 87 +
html5/test/case/tester.js | 19 +
package.json | 7 +-
packages/weex-js-framework/index.js | 43740 +++++++++--------
packages/weex-js-framework/index.min.js | 9 +-
pre-build/native-bundle-main.js | 16 +-
10 files changed, 22088 insertions(+), 21817 deletions(-)
----------------------------------------------------------------------
[04/13] incubator-weex git commit: * [jsfm] fix the unknown depth in
the differ of legacy framework
Posted by da...@apache.org.
* [jsfm] fix the unknown depth in the differ of legacy framework
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/f7a1805c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/f7a1805c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/f7a1805c
Branch: refs/heads/0.16-dev
Commit: f7a1805ce0c889a221cb43fd42b530da09ccd67f
Parents: 296ac47
Author: Hanks <zh...@gmail.com>
Authored: Wed Aug 23 15:35:48 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Wed Aug 23 15:35:48 2017 +0800
----------------------------------------------------------------------
html5/frameworks/legacy/app/differ.js | 2 +-
html5/frameworks/legacy/vm/directive.js | 2 +-
html5/test/case/tester.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f7a1805c/html5/frameworks/legacy/app/differ.js
----------------------------------------------------------------------
diff --git a/html5/frameworks/legacy/app/differ.js b/html5/frameworks/legacy/app/differ.js
index 9251d9f..61e25ef 100644
--- a/html5/frameworks/legacy/app/differ.js
+++ b/html5/frameworks/legacy/app/differ.js
@@ -25,7 +25,7 @@ export default class Differ {
isEmpty () {
return this.map.length === 0
}
- append (type, depth, ref, handler) {
+ append (type, depth = 0, ref, handler) {
if (!this.hasTimer) {
this.hasTimer = true
setTimeout(() => {
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f7a1805c/html5/frameworks/legacy/vm/directive.js
----------------------------------------------------------------------
diff --git a/html5/frameworks/legacy/vm/directive.js b/html5/frameworks/legacy/vm/directive.js
index 081a014..77ccd9a 100644
--- a/html5/frameworks/legacy/vm/directive.js
+++ b/html5/frameworks/legacy/vm/directive.js
@@ -348,7 +348,7 @@ function bindKey (vm, el, name, key, calc) {
}
const differ = vm && vm._app && vm._app.differ
if (differ) {
- differ.append('element', el.depth, el.ref, handler)
+ differ.append('element', el.depth || 0, el.ref, handler)
}
else {
handler()
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f7a1805c/html5/test/case/tester.js
----------------------------------------------------------------------
diff --git a/html5/test/case/tester.js b/html5/test/case/tester.js
index 3a1caf4..c885fef 100644
--- a/html5/test/case/tester.js
+++ b/html5/test/case/tester.js
@@ -196,7 +196,7 @@ describe('test input and output', function () {
app.$destroy()
})
- it.skip('use append tree and sub components', (done) => {
+ it('use append tree and sub components', (done) => {
const name = 'component-append-tree'
const sourceCode = readSource(name)
const outputCode = readOutput(name)
[08/13] incubator-weex git commit: * [jsfm] release v0.21.11
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90fac505/packages/weex-js-framework/index.js
----------------------------------------------------------------------
diff --git a/packages/weex-js-framework/index.js b/packages/weex-js-framework/index.js
index e868002..a05a400 100644
--- a/packages/weex-js-framework/index.js
+++ b/packages/weex-js-framework/index.js
@@ -1,6 +1,5 @@
-(this.nativeLog || function(s) {console.log(s)})('START JS FRAMEWORK 0.21.8, Build 2017-08-10 14:43.');
-;(this.getJSFMVersion = function(){return "0.21.8"});
-var global = this, process = { env: {} };var setTimeout = global.setTimeout;
+(this.nativeLog || function(s) {console.log(s)})('START JS FRAMEWORK 0.21.11, Build 2017-08-23 15:52.');
+(this.getJSFMVersion = function(){return "0.21.11"});var global = this, process = { env: {} };var setTimeout = global.setTimeout;
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
@@ -8,8 +7,6 @@ var global = this, process = { env: {} };var setTimeout = global.setTimeout;
(factory());
}(this, (function () { 'use strict';
-var subversion = {"browser":"0.5.0","framework":"0.21.8","vue-render":"0.12.3","transformer":">=0.1.5 <0.5"};
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -28,94 +25,119 @@ var subversion = {"browser":"0.5.0","framework":"0.21.8","vue-render":"0.12.3","
* specific language governing permissions and limitations
* under the License.
*/
+var config = {};
-/* eslint-disable */
+var instanceMap = {};
-// Production steps of ECMA-262, Edition 6, 22.1.2.1
-// Reference: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.from
+function init$1 (cfg) {
+ config.Document = cfg.Document;
+ config.Element = cfg.Element;
+ config.Comment = cfg.Comment;
+ config.sendTasks = cfg.sendTasks;
+}
-/* istanbul ignore if */
-if (!Array.from) {
- Array.from = (function() {
- var toStr = Object.prototype.toString;
- var isCallable = function(fn) {
- return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
- };
- var toInteger = function(value) {
- var number = Number(value);
- if (isNaN(number)) {
- return 0;
- }
- if (number === 0 || !isFinite(number)) {
- return number;
- }
- return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
- };
- var maxSafeInteger = Math.pow(2, 53) - 1;
- var toLength = function(value) {
- var len = toInteger(value);
- return Math.min(Math.max(len, 0), maxSafeInteger);
- };
+function registerComponents (components) {}
- // The length property of the from method is 1.
- return function from(arrayLike/*, mapFn, thisArg */) {
- // 1. Let C be the this value.
- var C = this;
+function registerModules (modules) {}
- // 2. Let items be ToObject(arrayLike).
- var items = Object(arrayLike);
+function registerMethods (apis) {}
- // 3. ReturnIfAbrupt(items).
- if (arrayLike == null) {
- throw new TypeError('Array.from requires an array-like object - not null or undefined');
- }
+function prepareInstance (id, options, data) {}
- // 4. If mapfn is undefined, then let mapping be false.
- var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
- var T;
- if (typeof mapFn !== 'undefined') {
- // 5. else
- // 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
- if (!isCallable(mapFn)) {
- throw new TypeError('Array.from: when provided, the second argument must be a function');
- }
+function createInstance (id, code, options, data, serviceObjects) {
+ var document = new config.Document(id, options.bundleUrl);
+ var callbacks = {};
- // 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
- if (arguments.length > 2) {
- T = arguments[2];
- }
- }
+ var lastCallbackId = 0;
+ document.addCallback = function (func) {
+ lastCallbackId++;
+ callbacks[lastCallbackId] = func;
+ return lastCallbackId
+ };
+ document.handleCallback = function (funcId, data, ifLast) {
+ var callback = callbacks[funcId];
+ if (ifLast) {
+ delete callbacks[funcId];
+ }
+ return callback(data)
+ };
+ instanceMap[id] = document;
- // 10. Let lenValue be Get(items, "length").
- // 11. Let len be ToLength(lenValue).
- var len = toLength(items.length);
+ var globalObjects = Object.assign({
+ Document: config.Document,
+ Element: config.Element,
+ Comment: config.Comment,
+ sendTasks: config.sendTasks,
+ id: id, options: options, data: data, document: document
+ }, serviceObjects);
- // 13. If IsConstructor(C) is true, then
- // 13. a. Let A be the result of calling the [[Construct]] internal method of C with an argument list containing the single item len.
- // 14. a. Else, Let A be ArrayCreate(len).
- var A = isCallable(C) ? Object(new C(len)) : new Array(len);
+ var globalKeys = [];
+ var globalValues = [];
+ for (var key in globalObjects) {
+ globalKeys.push(key);
+ globalValues.push(globalObjects[key]);
+ }
+ globalKeys.push(code);
- // 16. Let k be 0.
- var k = 0;
- // 17. Repeat, while k < len… (also steps a - h)
- var kValue;
- while (k < len) {
- kValue = items[k];
- if (mapFn) {
- A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
- } else {
- A[k] = kValue;
- }
- k += 1;
+ var result = new (Function.prototype.bind.apply( Function, [ null ].concat( globalKeys) ));
+ result.apply(void 0, globalValues);
+
+ return { document: document }
+}
+
+function refreshInstance (id, data) {}
+
+function destroyInstance (id) {
+ delete instanceMap[id];
+}
+
+function getRoot (id) {
+ return instanceMap[id].body.toJSON()
+}
+
+function receiveTasks (id, tasks) {
+ var jsHandlers = {
+ fireEvent: function (id, ref, type, data, domChanges) {
+ var document = instanceMap[id];
+ var el = document.getRef(ref);
+ return document.fireEvent(el, type, data, domChanges)
+ },
+
+ callback: function (id, funcId, data, ifLast) {
+ var document = instanceMap[id];
+ return document.handleCallback(funcId, data, ifLast)
+ }
+ };
+
+ var document = instanceMap[id];
+ if (document && Array.isArray(tasks)) {
+ var results = [];
+ tasks.forEach(function (task) {
+ var handler = jsHandlers[task.method];
+ var args = [].concat( task.args );
+ if (typeof handler === 'function') {
+ args.unshift(id);
+ results.push(handler.apply(void 0, args));
}
- // 18. Let putStatus be Put(A, "length", len, true).
- A.length = len;
- // 20. Return A.
- return A;
- };
- }());
+ });
+ return results
+ }
}
+
+var Vanilla = Object.freeze({
+ init: init$1,
+ registerComponents: registerComponents,
+ registerModules: registerModules,
+ registerMethods: registerMethods,
+ prepareInstance: prepareInstance,
+ createInstance: createInstance,
+ refreshInstance: refreshInstance,
+ destroyInstance: destroyInstance,
+ getRoot: getRoot,
+ receiveTasks: receiveTasks
+});
+
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -128,11562 +150,10097 @@ function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
-var _global = createCommonjsModule(function (module) {
-// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
-var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
-if (typeof __g == 'number') { __g = global; } // eslint-disable-line no-undef
-});
-
-var _core = createCommonjsModule(function (module) {
-var core = module.exports = { version: '2.5.0' };
-if (typeof __e == 'number') { __e = core; } // eslint-disable-line no-undef
-});
+var factory = createCommonjsModule(function (module) {
+'use strict';
-var _isObject = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
-};
+module.exports = function weexFactory (exports, renderer) {
-var isObject = _isObject;
-var _anObject = function (it) {
- if (!isObject(it)) { throw TypeError(it + ' is not an object!'); }
- return it;
-};
+/* */
-var _fails = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
-};
+// these helpers produces better vm code in JS engines due to their
+// explicitness and function inlining
+function isUndef (v) {
+ return v === undefined || v === null
+}
-// Thank's IE8 for his funny defineProperty
-var _descriptors = !_fails(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
-});
+function isDef (v) {
+ return v !== undefined && v !== null
+}
-var isObject$1 = _isObject;
-var document$1 = _global.document;
-// typeof document.createElement is 'object' in old IE
-var is = isObject$1(document$1) && isObject$1(document$1.createElement);
-var _domCreate = function (it) {
- return is ? document$1.createElement(it) : {};
-};
+function isTrue (v) {
+ return v === true
+}
-var _ie8DomDefine = !_descriptors && !_fails(function () {
- return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
-});
+function isFalse (v) {
+ return v === false
+}
-// 7.1.1 ToPrimitive(input [, PreferredType])
-var isObject$2 = _isObject;
-// instead of the ES6 spec version, we didn't implement @@toPrimitive case
-// and the second argument - flag - preferred type is a string
-var _toPrimitive = function (it, S) {
- if (!isObject$2(it)) { return it; }
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject$2(val = fn.call(it))) { return val; }
- if (typeof (fn = it.valueOf) == 'function' && !isObject$2(val = fn.call(it))) { return val; }
- if (!S && typeof (fn = it.toString) == 'function' && !isObject$2(val = fn.call(it))) { return val; }
- throw TypeError("Can't convert object to primitive value");
-};
+/**
+ * Check if value is primitive
+ */
+function isPrimitive (value) {
+ return (
+ typeof value === 'string' ||
+ typeof value === 'number' ||
+ typeof value === 'boolean'
+ )
+}
-var anObject = _anObject;
-var IE8_DOM_DEFINE = _ie8DomDefine;
-var toPrimitive = _toPrimitive;
-var dP$1 = Object.defineProperty;
+/**
+ * Quick object check - this is primarily used to tell
+ * Objects from primitive values when we know the value
+ * is a JSON-compliant type.
+ */
+function isObject (obj) {
+ return obj !== null && typeof obj === 'object'
+}
-var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) { try {
- return dP$1(O, P, Attributes);
- } catch (e) { /* empty */ } }
- if ('get' in Attributes || 'set' in Attributes) { throw TypeError('Accessors not supported!'); }
- if ('value' in Attributes) { O[P] = Attributes.value; }
- return O;
-};
+var _toString = Object.prototype.toString;
-var _objectDp = {
- f: f
-};
-
-var _propertyDesc = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
-};
-
-var dP = _objectDp;
-var createDesc = _propertyDesc;
-var _hide = _descriptors ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
-} : function (object, key, value) {
- object[key] = value;
- return object;
-};
+/**
+ * Strict object type check. Only returns true
+ * for plain JavaScript objects.
+ */
+function isPlainObject (obj) {
+ return _toString.call(obj) === '[object Object]'
+}
-var hasOwnProperty = {}.hasOwnProperty;
-var _has = function (it, key) {
- return hasOwnProperty.call(it, key);
-};
+function isRegExp (v) {
+ return _toString.call(v) === '[object RegExp]'
+}
-var id = 0;
-var px = Math.random();
-var _uid = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
-};
+/**
+ * Check if val is a valid array index.
+ */
+function isValidArrayIndex (val) {
+ var n = parseFloat(val);
+ return n >= 0 && Math.floor(n) === n && isFinite(val)
+}
-var _redefine = createCommonjsModule(function (module) {
-var global = _global;
-var hide = _hide;
-var has = _has;
-var SRC = _uid('src');
-var TO_STRING = 'toString';
-var $toString = Function[TO_STRING];
-var TPL = ('' + $toString).split(TO_STRING);
+/**
+ * Convert a value to a string that is actually rendered.
+ */
+function toString (val) {
+ return val == null
+ ? ''
+ : typeof val === 'object'
+ ? JSON.stringify(val, null, 2)
+ : String(val)
+}
-_core.inspectSource = function (it) {
- return $toString.call(it);
-};
+/**
+ * Convert a input value to a number for persistence.
+ * If the conversion fails, return original string.
+ */
+function toNumber (val) {
+ var n = parseFloat(val);
+ return isNaN(n) ? val : n
+}
-(module.exports = function (O, key, val, safe) {
- var isFunction = typeof val == 'function';
- if (isFunction) { has(val, 'name') || hide(val, 'name', key); }
- if (O[key] === val) { return; }
- if (isFunction) { has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); }
- if (O === global) {
- O[key] = val;
- } else if (!safe) {
- delete O[key];
- hide(O, key, val);
- } else if (O[key]) {
- O[key] = val;
- } else {
- hide(O, key, val);
+/**
+ * Make a map and return a function for checking if a key
+ * is in that map.
+ */
+function makeMap (
+ str,
+ expectsLowerCase
+) {
+ var map = Object.create(null);
+ var list = str.split(',');
+ for (var i = 0; i < list.length; i++) {
+ map[list[i]] = true;
}
-// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
-})(Function.prototype, TO_STRING, function toString() {
- return typeof this == 'function' && this[SRC] || $toString.call(this);
-});
-});
-
-var _aFunction = function (it) {
- if (typeof it != 'function') { throw TypeError(it + ' is not a function!'); }
- return it;
-};
+ return expectsLowerCase
+ ? function (val) { return map[val.toLowerCase()]; }
+ : function (val) { return map[val]; }
+}
-// optional / simple context binding
-var aFunction = _aFunction;
-var _ctx = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) { return fn; }
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
-};
+/**
+ * Check if a tag is a built-in tag.
+ */
+var isBuiltInTag = makeMap('slot,component', true);
-var global$1 = _global;
-var core = _core;
-var hide = _hide;
-var redefine = _redefine;
-var ctx = _ctx;
-var PROTOTYPE = 'prototype';
+/**
+ * Check if a attribute is a reserved attribute.
+ */
+var isReservedAttribute = makeMap('key,ref,slot,is');
-var $export$1 = function (type, name, source) {
- var IS_FORCED = type & $export$1.F;
- var IS_GLOBAL = type & $export$1.G;
- var IS_STATIC = type & $export$1.S;
- var IS_PROTO = type & $export$1.P;
- var IS_BIND = type & $export$1.B;
- var target = IS_GLOBAL ? global$1 : IS_STATIC ? global$1[name] || (global$1[name] = {}) : (global$1[name] || {})[PROTOTYPE];
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
- var key, own, out, exp;
- if (IS_GLOBAL) { source = name; }
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- // export native or passed
- out = (own ? target : source)[key];
- // bind timers to global for call from export context
- exp = IS_BIND && own ? ctx(out, global$1) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // extend global
- if (target) { redefine(target, key, out, type & $export$1.U); }
- // export
- if (exports[key] != out) { hide(exports, key, exp); }
- if (IS_PROTO && expProto[key] != out) { expProto[key] = out; }
+/**
+ * Remove an item from an array
+ */
+function remove (arr, item) {
+ if (arr.length) {
+ var index = arr.indexOf(item);
+ if (index > -1) {
+ return arr.splice(index, 1)
+ }
}
-};
-global$1.core = core;
-// type bitmap
-$export$1.F = 1; // forced
-$export$1.G = 2; // global
-$export$1.S = 4; // static
-$export$1.P = 8; // proto
-$export$1.B = 16; // bind
-$export$1.W = 32; // wrap
-$export$1.U = 64; // safe
-$export$1.R = 128; // real proto method for `library`
-var _export = $export$1;
-
-var toString$1 = {}.toString;
+}
-var _cof = function (it) {
- return toString$1.call(it).slice(8, -1);
-};
+/**
+ * Check whether the object has the property.
+ */
+var hasOwnProperty = Object.prototype.hasOwnProperty;
+function hasOwn (obj, key) {
+ return hasOwnProperty.call(obj, key)
+}
-// fallback for non-array-like ES3 and non-enumerable old V8 strings
-var cof = _cof;
-// eslint-disable-next-line no-prototype-builtins
-var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
-};
+/**
+ * Create a cached version of a pure function.
+ */
+function cached (fn) {
+ var cache = Object.create(null);
+ return (function cachedFn (str) {
+ var hit = cache[str];
+ return hit || (cache[str] = fn(str))
+ })
+}
-// 7.2.1 RequireObjectCoercible(argument)
-var _defined = function (it) {
- if (it == undefined) { throw TypeError("Can't call method on " + it); }
- return it;
-};
+/**
+ * Camelize a hyphen-delimited string.
+ */
+var camelizeRE = /-(\w)/g;
+var camelize = cached(function (str) {
+ return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
+});
-// to indexed object, toObject with fallback for non-array-like ES3 strings
-var IObject$1 = _iobject;
-var defined = _defined;
-var _toIobject = function (it) {
- return IObject$1(defined(it));
-};
+/**
+ * Capitalize a string.
+ */
+var capitalize = cached(function (str) {
+ return str.charAt(0).toUpperCase() + str.slice(1)
+});
-// 7.1.4 ToInteger
-var ceil = Math.ceil;
-var floor = Math.floor;
-var _toInteger = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
-};
+/**
+ * Hyphenate a camelCase string.
+ */
+var hyphenateRE = /([^-])([A-Z])/g;
+var hyphenate = cached(function (str) {
+ return str
+ .replace(hyphenateRE, '$1-$2')
+ .replace(hyphenateRE, '$1-$2')
+ .toLowerCase()
+});
-// 7.1.15 ToLength
-var toInteger = _toInteger;
-var min = Math.min;
-var _toLength = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
-};
+/**
+ * Simple bind, faster than native
+ */
+function bind (fn, ctx) {
+ function boundFn (a) {
+ var l = arguments.length;
+ return l
+ ? l > 1
+ ? fn.apply(ctx, arguments)
+ : fn.call(ctx, a)
+ : fn.call(ctx)
+ }
+ // record original fn length
+ boundFn._length = fn.length;
+ return boundFn
+}
-var toInteger$1 = _toInteger;
-var max = Math.max;
-var min$1 = Math.min;
-var _toAbsoluteIndex = function (index, length) {
- index = toInteger$1(index);
- return index < 0 ? max(index + length, 0) : min$1(index, length);
-};
+/**
+ * Convert an Array-like object to a real Array.
+ */
+function toArray (list, start) {
+ start = start || 0;
+ var i = list.length - start;
+ var ret = new Array(i);
+ while (i--) {
+ ret[i] = list[i + start];
+ }
+ return ret
+}
-// false -> Array#indexOf
-// true -> Array#includes
-var toIObject$1 = _toIobject;
-var toLength = _toLength;
-var toAbsoluteIndex = _toAbsoluteIndex;
-var _arrayIncludes = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject$1($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) { while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) { return true; }
- // Array#indexOf ignores holes, Array#includes - not
- } } else { for (;length > index; index++) { if (IS_INCLUDES || index in O) {
- if (O[index] === el) { return IS_INCLUDES || index || 0; }
- } } } return !IS_INCLUDES && -1;
- };
-};
+/**
+ * Mix properties into target object.
+ */
+function extend (to, _from) {
+ for (var key in _from) {
+ to[key] = _from[key];
+ }
+ return to
+}
-var global$2 = _global;
-var SHARED = '__core-js_shared__';
-var store = global$2[SHARED] || (global$2[SHARED] = {});
-var _shared = function (key) {
- return store[key] || (store[key] = {});
-};
+/**
+ * Merge an Array of Objects into a single Object.
+ */
+function toObject (arr) {
+ var res = {};
+ for (var i = 0; i < arr.length; i++) {
+ if (arr[i]) {
+ extend(res, arr[i]);
+ }
+ }
+ return res
+}
-var shared = _shared('keys');
-var uid = _uid;
-var _sharedKey = function (key) {
- return shared[key] || (shared[key] = uid(key));
-};
+/**
+ * Perform no operation.
+ * Stubbing args to make Flow happy without leaving useless transpiled code
+ * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)
+ */
+function noop (a, b, c) {}
-var has$1 = _has;
-var toIObject = _toIobject;
-var arrayIndexOf = _arrayIncludes(false);
-var IE_PROTO = _sharedKey('IE_PROTO');
+/**
+ * Always return false.
+ */
+var no = function (a, b, c) { return false; };
-var _objectKeysInternal = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) { if (key != IE_PROTO) { has$1(O, key) && result.push(key); } }
- // Don't enum bug & hidden keys
- while (names.length > i) { if (has$1(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- } }
- return result;
-};
+/**
+ * Return same value
+ */
+var identity = function (_) { return _; };
-// IE 8- don't enum bug keys
-var _enumBugKeys = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
-).split(',');
+/**
+ * Generate a static keys string from compiler modules.
+ */
-// 19.1.2.14 / 15.2.3.14 Object.keys(O)
-var $keys = _objectKeysInternal;
-var enumBugKeys = _enumBugKeys;
-var _objectKeys = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
-};
+/**
+ * Check if two values are loosely equal - that is,
+ * if they are plain objects, do they have the same shape?
+ */
+function looseEqual (a, b) {
+ if (a === b) { return true }
+ var isObjectA = isObject(a);
+ var isObjectB = isObject(b);
+ if (isObjectA && isObjectB) {
+ try {
+ var isArrayA = Array.isArray(a);
+ var isArrayB = Array.isArray(b);
+ if (isArrayA && isArrayB) {
+ return a.length === b.length && a.every(function (e, i) {
+ return looseEqual(e, b[i])
+ })
+ } else if (!isArrayA && !isArrayB) {
+ var keysA = Object.keys(a);
+ var keysB = Object.keys(b);
+ return keysA.length === keysB.length && keysA.every(function (key) {
+ return looseEqual(a[key], b[key])
+ })
+ } else {
+ /* istanbul ignore next */
+ return false
+ }
+ } catch (e) {
+ /* istanbul ignore next */
+ return false
+ }
+ } else if (!isObjectA && !isObjectB) {
+ return String(a) === String(b)
+ } else {
+ return false
+ }
+}
-var f$1 = Object.getOwnPropertySymbols;
+function looseIndexOf (arr, val) {
+ for (var i = 0; i < arr.length; i++) {
+ if (looseEqual(arr[i], val)) { return i }
+ }
+ return -1
+}
-var _objectGops = {
- f: f$1
-};
+/**
+ * Ensure a function is called only once.
+ */
+function once (fn) {
+ var called = false;
+ return function () {
+ if (!called) {
+ called = true;
+ fn.apply(this, arguments);
+ }
+ }
+}
-var f$2 = {}.propertyIsEnumerable;
+var SSR_ATTR = 'data-server-rendered';
-var _objectPie = {
- f: f$2
-};
+var ASSET_TYPES = [
+ 'component',
+ 'directive',
+ 'filter'
+];
-// 7.1.13 ToObject(argument)
-var defined$1 = _defined;
-var _toObject = function (it) {
- return Object(defined$1(it));
-};
+var LIFECYCLE_HOOKS = [
+ 'beforeCreate',
+ 'created',
+ 'beforeMount',
+ 'mounted',
+ 'beforeUpdate',
+ 'updated',
+ 'beforeDestroy',
+ 'destroyed',
+ 'activated',
+ 'deactivated'
+];
-// 19.1.2.1 Object.assign(target, source, ...)
-var getKeys = _objectKeys;
-var gOPS = _objectGops;
-var pIE = _objectPie;
-var toObject = _toObject;
-var IObject = _iobject;
-var $assign = Object.assign;
+/* */
-// should work with symbols and should have deterministic property order (V8 bug)
-var _objectAssign = !$assign || _fails(function () {
- var A = {};
- var B = {};
- // eslint-disable-next-line no-undef
- var S = Symbol();
- var K = 'abcdefghijklmnopqrst';
- A[S] = 7;
- K.split('').forEach(function (k) { B[k] = k; });
- return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
-}) ? function assign(target, source) {
- var arguments$1 = arguments;
- // eslint-disable-line no-unused-vars
- var T = toObject(target);
- var aLen = arguments.length;
- var index = 1;
- var getSymbols = gOPS.f;
- var isEnum = pIE.f;
- while (aLen > index) {
- var S = IObject(arguments$1[index++]);
- var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
- var length = keys.length;
- var j = 0;
- var key;
- while (length > j) { if (isEnum.call(S, key = keys[j++])) { T[key] = S[key]; } }
- } return T;
-} : $assign;
+var config = ({
+ /**
+ * Option merge strategies (used in core/util/options)
+ */
+ optionMergeStrategies: Object.create(null),
-// 19.1.3.1 Object.assign(target, source)
-var $export = _export;
+ /**
+ * Whether to suppress warnings.
+ */
+ silent: false,
-$export($export.S + $export.F, 'Object', { assign: _objectAssign });
+ /**
+ * Show production mode tip message on boot?
+ */
+ productionTip: "development" !== 'production',
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
+ /**
+ * Whether to enable devtools
+ */
+ devtools: "development" !== 'production',
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
+ /**
+ * Whether to record perf
+ */
+ performance: false,
-/* eslint-disable */
+ /**
+ * Error handler for watcher errors
+ */
+ errorHandler: null,
-// https://gist.github.com/WebReflection/5593554
+ /**
+ * Warn handler for watcher warns
+ */
+ warnHandler: null,
-/* istanbul ignore if */
-if (!Object.setPrototypeOf) {
- Object.setPrototypeOf = (function(Object, magic) {
- var set;
- function setPrototypeOf(O, proto) {
- set.call(O, proto);
- return O;
- }
- try {
- // this works already in Firefox and Safari
- set = Object.getOwnPropertyDescriptor(Object.prototype, magic).set;
- set.call({}, null);
- } catch (e) {
- if (
- // IE < 11 cannot be shimmed
- Object.prototype !== {}[magic] ||
- // neither can any browser that actually
- // implemented __proto__ correctly
- // (all but old V8 will return here)
- {__proto__: null}.__proto__ === void 0
- // this case means null objects cannot be passed
- // through setPrototypeOf in a reliable way
- // which means here a **Sham** is needed instead
- ) {
- return;
- }
- // nodejs 0.8 and 0.10 are (buggy and..) fine here
- // probably Chrome or some old Mobile stock browser
- set = function(proto) {
- this[magic] = proto;
- };
- // please note that this will **not** work
- // in those browsers that do not inherit
- // __proto__ by mistake from Object.prototype
- // in these cases we should probably throw an error
- // or at least be informed about the issue
- setPrototypeOf.polyfill = setPrototypeOf(
- setPrototypeOf({}, null),
- Object.prototype
- ) instanceof Object;
- // setPrototypeOf.polyfill === true means it works as meant
- // setPrototypeOf.polyfill === false means it's not 100% reliable
- // setPrototypeOf.polyfill === undefined
- // or
- // setPrototypeOf.polyfill == null means it's not a polyfill
- // which means it works as expected
- // we can even delete Object.prototype.__proto__;
- }
- return setPrototypeOf;
- }(Object, '__proto__'));
-}
+ /**
+ * Ignore certain custom elements
+ */
+ ignoredElements: [],
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
+ /**
+ * Custom user key aliases for v-on
+ */
+ keyCodes: Object.create(null),
-// fix Promise Problem on JSContext of iOS7~8
-// @see https://bugs.webkit.org/show_bug.cgi?id=135866
+ /**
+ * Check if a tag is reserved so that it cannot be registered as a
+ * component. This is platform-dependent and may be overwritten.
+ */
+ isReservedTag: no,
-var ref = commonjsGlobal;
-var WXEnvironment$1 = ref.WXEnvironment;
+ /**
+ * Check if an attribute is reserved so that it cannot be used as a component
+ * prop. This is platform-dependent and may be overwritten.
+ */
+ isReservedAttr: no,
-/* istanbul ignore next */
-if (WXEnvironment$1 && WXEnvironment$1.platform === 'iOS') {
- commonjsGlobal.Promise = undefined;
-}
+ /**
+ * Check if a tag is an unknown element.
+ * Platform-dependent.
+ */
+ isUnknownElement: no,
-var _wks = createCommonjsModule(function (module) {
-var store = _shared('wks');
-var uid = _uid;
-var Symbol = _global.Symbol;
-var USE_SYMBOL = typeof Symbol == 'function';
+ /**
+ * Get the namespace of an element
+ */
+ getTagNamespace: noop,
-var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
-};
+ /**
+ * Parse the real tag name for the specific platform.
+ */
+ parsePlatformTagName: identity,
-$exports.store = store;
+ /**
+ * Check if an attribute must be bound using property, e.g. value
+ * Platform-dependent.
+ */
+ mustUseProp: no,
+
+ /**
+ * Exposed for legacy reasons
+ */
+ _lifecycleHooks: LIFECYCLE_HOOKS
});
-// getting tag from 19.1.3.6 Object.prototype.toString()
-var cof$1 = _cof;
-var TAG = _wks('toStringTag');
-// ES3 wrong here
-var ARG = cof$1(function () { return arguments; }()) == 'Arguments';
+/* */
-// fallback for IE11 Script Access Denied error
-var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
-};
+var emptyObject = Object.freeze({});
-var _classof = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof$1(O)
- // ES3 arguments fallback
- : (B = cof$1(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
-};
+/**
+ * Check if a string starts with $ or _
+ */
+function isReserved (str) {
+ var c = (str + '').charCodeAt(0);
+ return c === 0x24 || c === 0x5F
+}
-// 19.1.3.6 Object.prototype.toString()
-var classof = _classof;
-var test = {};
-test[_wks('toStringTag')] = 'z';
-if (test + '' != '[object z]') {
- _redefine(Object.prototype, 'toString', function toString() {
- return '[object ' + classof(this) + ']';
- }, true);
+/**
+ * Define a property.
+ */
+function def (obj, key, val, enumerable) {
+ Object.defineProperty(obj, key, {
+ value: val,
+ enumerable: !!enumerable,
+ writable: true,
+ configurable: true
+ });
}
-var toInteger$2 = _toInteger;
-var defined$2 = _defined;
-// true -> String#at
-// false -> String#codePointAt
-var _stringAt = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined$2(that));
- var i = toInteger$2(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) { return TO_STRING ? '' : undefined; }
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
-};
+/**
+ * Parse simple path.
+ */
+var bailRE = /[^\w.$]/;
+function parsePath (path) {
+ if (bailRE.test(path)) {
+ return
+ }
+ var segments = path.split('.');
+ return function (obj) {
+ for (var i = 0; i < segments.length; i++) {
+ if (!obj) { return }
+ obj = obj[segments[i]];
+ }
+ return obj
+ }
+}
-var _library = false;
+/* */
-var _iterators = {};
+var warn = noop;
+var tip = noop;
+var formatComponentName = (null); // work around flow check
-var dP$2 = _objectDp;
-var anObject$2 = _anObject;
-var getKeys$1 = _objectKeys;
+{
+ var hasConsole = typeof console !== 'undefined';
+ var classifyRE = /(?:^|[-_])(\w)/g;
+ var classify = function (str) { return str
+ .replace(classifyRE, function (c) { return c.toUpperCase(); })
+ .replace(/[-_]/g, ''); };
-var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject$2(O);
- var keys = getKeys$1(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) { dP$2.f(O, P = keys[i++], Properties[P]); }
- return O;
-};
+ warn = function (msg, vm) {
+ var trace = vm ? generateComponentTrace(vm) : '';
-var document$2 = _global.document;
-var _html = document$2 && document$2.documentElement;
+ if (config.warnHandler) {
+ config.warnHandler.call(null, msg, vm, trace);
+ } else if (hasConsole && (!config.silent)) {
+ console.error(("[Vue warn]: " + msg + trace));
+ }
+ };
-// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
-var anObject$1 = _anObject;
-var dPs = _objectDps;
-var enumBugKeys$1 = _enumBugKeys;
-var IE_PROTO$1 = _sharedKey('IE_PROTO');
-var Empty = function () { /* empty */ };
-var PROTOTYPE$1 = 'prototype';
+ tip = function (msg, vm) {
+ if (hasConsole && (!config.silent)) {
+ console.warn("[Vue tip]: " + msg + (
+ vm ? generateComponentTrace(vm) : ''
+ ));
+ }
+ };
-// Create object with fake `null` prototype: use iframe Object with cleared prototype
-var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = _domCreate('iframe');
- var i = enumBugKeys$1.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- _html.appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) { delete createDict[PROTOTYPE$1][enumBugKeys$1[i]]; }
- return createDict();
-};
+ formatComponentName = function (vm, includeFile) {
+ if (vm.$root === vm) {
+ return '<Root>'
+ }
+ var name = typeof vm === 'string'
+ ? vm
+ : typeof vm === 'function' && vm.options
+ ? vm.options.name
+ : vm._isVue
+ ? vm.$options.name || vm.$options._componentTag
+ : vm.name;
-var _objectCreate = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE$1] = anObject$1(O);
- result = new Empty();
- Empty[PROTOTYPE$1] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO$1] = O;
- } else { result = createDict(); }
- return Properties === undefined ? result : dPs(result, Properties);
-};
+ var file = vm._isVue && vm.$options.__file;
+ if (!name && file) {
+ var match = file.match(/([^/\\]+)\.vue$/);
+ name = match && match[1];
+ }
-var def = _objectDp.f;
-var has$3 = _has;
-var TAG$1 = _wks('toStringTag');
+ return (
+ (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
+ (file && includeFile !== false ? (" at " + file) : '')
+ )
+ };
-var _setToStringTag = function (it, tag, stat) {
- if (it && !has$3(it = stat ? it : it.prototype, TAG$1)) { def(it, TAG$1, { configurable: true, value: tag }); }
-};
+ var repeat = function (str, n) {
+ var res = '';
+ while (n) {
+ if (n % 2 === 1) { res += str; }
+ if (n > 1) { str += str; }
+ n >>= 1;
+ }
+ return res
+ };
-var create$1 = _objectCreate;
-var descriptor = _propertyDesc;
-var setToStringTag$1 = _setToStringTag;
-var IteratorPrototype = {};
+ var generateComponentTrace = function (vm) {
+ if (vm._isVue && vm.$parent) {
+ var tree = [];
+ var currentRecursiveSequence = 0;
+ while (vm) {
+ if (tree.length > 0) {
+ var last = tree[tree.length - 1];
+ if (last.constructor === vm.constructor) {
+ currentRecursiveSequence++;
+ vm = vm.$parent;
+ continue
+ } else if (currentRecursiveSequence > 0) {
+ tree[tree.length - 1] = [last, currentRecursiveSequence];
+ currentRecursiveSequence = 0;
+ }
+ }
+ tree.push(vm);
+ vm = vm.$parent;
+ }
+ return '\n\nfound in\n\n' + tree
+ .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
+ ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
+ : formatComponentName(vm))); })
+ .join('\n')
+ } else {
+ return ("\n\n(found in " + (formatComponentName(vm)) + ")")
+ }
+ };
+}
-// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
-_hide(IteratorPrototype, _wks('iterator'), function () { return this; });
+/* */
-var _iterCreate = function (Constructor, NAME, next) {
- Constructor.prototype = create$1(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag$1(Constructor, NAME + ' Iterator');
-};
+function handleError (err, vm, info) {
+ if (config.errorHandler) {
+ config.errorHandler.call(null, err, vm, info);
+ } else {
+ {
+ warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
+ }
+ /* istanbul ignore else */
+ if (inBrowser && typeof console !== 'undefined') {
+ console.error(err);
+ } else {
+ throw err
+ }
+ }
+}
-// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
-var has$4 = _has;
-var toObject$1 = _toObject;
-var IE_PROTO$2 = _sharedKey('IE_PROTO');
-var ObjectProto = Object.prototype;
+/* */
+/* globals MutationObserver */
-var _objectGpo = Object.getPrototypeOf || function (O) {
- O = toObject$1(O);
- if (has$4(O, IE_PROTO$2)) { return O[IE_PROTO$2]; }
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
-};
+// can we use __proto__?
+var hasProto = '__proto__' in {};
-var LIBRARY = _library;
-var $export$2 = _export;
-var redefine$1 = _redefine;
-var hide$1 = _hide;
-var has$2 = _has;
-var Iterators = _iterators;
-var $iterCreate = _iterCreate;
-var setToStringTag = _setToStringTag;
-var getPrototypeOf = _objectGpo;
-var ITERATOR = _wks('iterator');
-var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
-var FF_ITERATOR = '@@iterator';
-var KEYS = 'keys';
-var VALUES = 'values';
+// Browser environment sniffing
+var inBrowser = typeof window !== 'undefined';
+var UA = inBrowser && window.navigator.userAgent.toLowerCase();
+var isIE = UA && /msie|trident/.test(UA);
+var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
+var isEdge = UA && UA.indexOf('edge/') > 0;
+var isAndroid = UA && UA.indexOf('android') > 0;
+var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);
+var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
-var returnThis = function () { return this; };
+// Firefix has a "watch" function on Object.prototype...
+var nativeWatch = ({}).watch;
-var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) { return proto[kind]; }
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && !has$2(IteratorPrototype, ITERATOR)) { hide$1(IteratorPrototype, ITERATOR, returnThis); }
+var supportsPassive = false;
+if (inBrowser) {
+ try {
+ var opts = {};
+ Object.defineProperty(opts, 'passive', ({
+ get: function get () {
+ /* istanbul ignore next */
+ supportsPassive = true;
+ }
+ })); // https://github.com/facebook/flow/issues/285
+ window.addEventListener('test-passive', null, opts);
+ } catch (e) {}
+}
+
+// this needs to be lazy-evaled because vue may be required before
+// vue-server-renderer can set VUE_ENV
+var _isServer;
+var isServerRendering = function () {
+ if (_isServer === undefined) {
+ /* istanbul ignore if */
+ if (!inBrowser && typeof commonjsGlobal !== 'undefined') {
+ // detect presence of vue-server-renderer and avoid
+ // Webpack shimming the process
+ _isServer = commonjsGlobal['process'].env.VUE_ENV === 'server';
+ } else {
+ _isServer = false;
}
}
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide$1(proto, ITERATOR, $default);
+ return _isServer
+};
+
+// detect devtools
+var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
+
+/* istanbul ignore next */
+function isNative (Ctor) {
+ return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
+}
+
+var hasSymbol =
+ typeof Symbol !== 'undefined' && isNative(Symbol) &&
+ typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
+
+/**
+ * Defer a task to execute it asynchronously.
+ */
+var nextTick = (function () {
+ var callbacks = [];
+ var pending = false;
+ var timerFunc;
+
+ function nextTickHandler () {
+ pending = false;
+ var copies = callbacks.slice(0);
+ callbacks.length = 0;
+ for (var i = 0; i < copies.length; i++) {
+ copies[i]();
+ }
}
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
+
+ // the nextTick behavior leverages the microtask queue, which can be accessed
+ // via either native Promise.then or MutationObserver.
+ // MutationObserver has wider support, however it is seriously bugged in
+ // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
+ // completely stops working after triggering a few times... so, if native
+ // Promise is available, we will use it:
+ /* istanbul ignore if */
+ if (typeof Promise !== 'undefined' && isNative(Promise)) {
+ var p = Promise.resolve();
+ var logError = function (err) { console.error(err); };
+ timerFunc = function () {
+ p.then(nextTickHandler).catch(logError);
+ // in problematic UIWebViews, Promise.then doesn't completely break, but
+ // it can get stuck in a weird state where callbacks are pushed into the
+ // microtask queue but the queue isn't being flushed, until the browser
+ // needs to do some other work, e.g. handle a timer. Therefore we can
+ // "force" the microtask queue to be flushed by adding an empty timer.
+ if (isIOS) { setTimeout(noop); }
+ };
+ } else if (typeof MutationObserver !== 'undefined' && (
+ isNative(MutationObserver) ||
+ // PhantomJS and iOS 7.x
+ MutationObserver.toString() === '[object MutationObserverConstructor]'
+ )) {
+ // use MutationObserver where native Promise is not available,
+ // e.g. PhantomJS IE11, iOS7, Android 4.4
+ var counter = 1;
+ var observer = new MutationObserver(nextTickHandler);
+ var textNode = document.createTextNode(String(counter));
+ observer.observe(textNode, {
+ characterData: true
+ });
+ timerFunc = function () {
+ counter = (counter + 1) % 2;
+ textNode.data = String(counter);
+ };
+ } else {
+ // fallback to setTimeout
+ /* istanbul ignore next */
+ timerFunc = function () {
+ setTimeout(nextTickHandler, 0);
};
- if (FORCED) { for (key in methods) {
- if (!(key in proto)) { redefine$1(proto, key, methods[key]); }
- } } else { $export$2($export$2.P + $export$2.F * (BUGGY || VALUES_BUG), NAME, methods); }
}
- return methods;
-};
-var $at = _stringAt(true);
+ return function queueNextTick (cb, ctx) {
+ var _resolve;
+ callbacks.push(function () {
+ if (cb) {
+ try {
+ cb.call(ctx);
+ } catch (e) {
+ handleError(e, ctx, 'nextTick');
+ }
+ } else if (_resolve) {
+ _resolve(ctx);
+ }
+ });
+ if (!pending) {
+ pending = true;
+ timerFunc();
+ }
+ if (!cb && typeof Promise !== 'undefined') {
+ return new Promise(function (resolve, reject) {
+ _resolve = resolve;
+ })
+ }
+ }
+})();
-// 21.1.3.27 String.prototype[@@iterator]()
-_iterDefine(String, 'String', function (iterated) {
- this._t = String(iterated); // target
- this._i = 0; // next index
-// 21.1.5.2.1 %StringIteratorPrototype%.next()
-}, function () {
- var O = this._t;
- var index = this._i;
- var point;
- if (index >= O.length) { return { value: undefined, done: true }; }
- point = $at(O, index);
- this._i += point.length;
- return { value: point, done: false };
-});
+var _Set;
+/* istanbul ignore if */
+if (typeof Set !== 'undefined' && isNative(Set)) {
+ // use native Set when available.
+ _Set = Set;
+} else {
+ // a non-standard Set polyfill that only works with primitive keys.
+ _Set = (function () {
+ function Set () {
+ this.set = Object.create(null);
+ }
+ Set.prototype.has = function has (key) {
+ return this.set[key] === true
+ };
+ Set.prototype.add = function add (key) {
+ this.set[key] = true;
+ };
+ Set.prototype.clear = function clear () {
+ this.set = Object.create(null);
+ };
-// 22.1.3.31 Array.prototype[@@unscopables]
-var UNSCOPABLES = _wks('unscopables');
-var ArrayProto = Array.prototype;
-if (ArrayProto[UNSCOPABLES] == undefined) { _hide(ArrayProto, UNSCOPABLES, {}); }
-var _addToUnscopables = function (key) {
- ArrayProto[UNSCOPABLES][key] = true;
+ return Set;
+ }());
+}
+
+/* */
+
+
+var uid$1 = 0;
+
+/**
+ * A dep is an observable that can have multiple
+ * directives subscribing to it.
+ */
+var Dep = function Dep () {
+ this.id = uid$1++;
+ this.subs = [];
};
-var _iterStep = function (done, value) {
- return { value: value, done: !!done };
+Dep.prototype.addSub = function addSub (sub) {
+ this.subs.push(sub);
};
-var addToUnscopables = _addToUnscopables;
-var step = _iterStep;
-var Iterators$2 = _iterators;
-var toIObject$2 = _toIobject;
+Dep.prototype.removeSub = function removeSub (sub) {
+ remove(this.subs, sub);
+};
-// 22.1.3.4 Array.prototype.entries()
-// 22.1.3.13 Array.prototype.keys()
-// 22.1.3.29 Array.prototype.values()
-// 22.1.3.30 Array.prototype[@@iterator]()
-var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
- this._t = toIObject$2(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
-// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
-}, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
+Dep.prototype.depend = function depend () {
+ if (Dep.target) {
+ Dep.target.addDep(this);
}
- if (kind == 'keys') { return step(0, index); }
- if (kind == 'values') { return step(0, O[index]); }
- return step(0, [index, O[index]]);
-}, 'values');
-
-// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
-Iterators$2.Arguments = Iterators$2.Array;
+};
-addToUnscopables('keys');
-addToUnscopables('values');
-addToUnscopables('entries');
+Dep.prototype.notify = function notify () {
+ // stabilize the subscriber list first
+ var subs = this.subs.slice();
+ for (var i = 0, l = subs.length; i < l; i++) {
+ subs[i].update();
+ }
+};
-var $iterators = es6_array_iterator;
-var getKeys$2 = _objectKeys;
-var redefine$2 = _redefine;
-var global$3 = _global;
-var hide$2 = _hide;
-var Iterators$1 = _iterators;
-var wks = _wks;
-var ITERATOR$1 = wks('iterator');
-var TO_STRING_TAG = wks('toStringTag');
-var ArrayValues = Iterators$1.Array;
+// the current target watcher being evaluated.
+// this is globally unique because there could be only one
+// watcher being evaluated at any time.
+Dep.target = null;
+var targetStack = [];
-var DOMIterables = {
- CSSRuleList: true, // TODO: Not spec compliant, should be false.
- CSSStyleDeclaration: false,
- CSSValueList: false,
- ClientRectList: false,
- DOMRectList: false,
- DOMStringList: false,
- DOMTokenList: true,
- DataTransferItemList: false,
- FileList: false,
- HTMLAllCollection: false,
- HTMLCollection: false,
- HTMLFormElement: false,
- HTMLSelectElement: false,
- MediaList: true, // TODO: Not spec compliant, should be false.
- MimeTypeArray: false,
- NamedNodeMap: false,
- NodeList: true,
- PaintRequestList: false,
- Plugin: false,
- PluginArray: false,
- SVGLengthList: false,
- SVGNumberList: false,
- SVGPathSegList: false,
- SVGPointList: false,
- SVGStringList: false,
- SVGTransformList: false,
- SourceBufferList: false,
- StyleSheetList: true, // TODO: Not spec compliant, should be false.
- TextTrackCueList: false,
- TextTrackList: false,
- TouchList: false
-};
+function pushTarget (_target) {
+ if (Dep.target) { targetStack.push(Dep.target); }
+ Dep.target = _target;
+}
-for (var collections = getKeys$2(DOMIterables), i = 0; i < collections.length; i++) {
- var NAME = collections[i];
- var explicit = DOMIterables[NAME];
- var Collection = global$3[NAME];
- var proto = Collection && Collection.prototype;
- var key;
- if (proto) {
- if (!proto[ITERATOR$1]) { hide$2(proto, ITERATOR$1, ArrayValues); }
- if (!proto[TO_STRING_TAG]) { hide$2(proto, TO_STRING_TAG, NAME); }
- Iterators$1[NAME] = ArrayValues;
- if (explicit) { for (key in $iterators) { if (!proto[key]) { redefine$2(proto, key, $iterators[key], true); } } }
- }
+function popTarget () {
+ Dep.target = targetStack.pop();
}
-var _anInstance = function (it, Constructor, name, forbiddenField) {
- if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
- throw TypeError(name + ': incorrect invocation!');
- } return it;
-};
+/*
+ * not type checking this file because flow doesn't play well with
+ * dynamically accessing methods on Array prototype
+ */
-// call something on iterator step with safe closing on error
-var anObject$3 = _anObject;
-var _iterCall = function (iterator, fn, value, entries) {
- try {
- return entries ? fn(anObject$3(value)[0], value[1]) : fn(value);
- // 7.4.6 IteratorClose(iterator, completion)
- } catch (e) {
- var ret = iterator['return'];
- if (ret !== undefined) { anObject$3(ret.call(iterator)); }
- throw e;
- }
-};
+var arrayProto = Array.prototype;
+var arrayMethods = Object.create(arrayProto);[
+ 'push',
+ 'pop',
+ 'shift',
+ 'unshift',
+ 'splice',
+ 'sort',
+ 'reverse'
+]
+.forEach(function (method) {
+ // cache original method
+ var original = arrayProto[method];
+ def(arrayMethods, method, function mutator () {
+ var arguments$1 = arguments;
-// check on default Array iterator
-var Iterators$3 = _iterators;
-var ITERATOR$2 = _wks('iterator');
-var ArrayProto$1 = Array.prototype;
+ var args = [], len = arguments.length;
+ while ( len-- ) { args[ len ] = arguments$1[ len ]; }
-var _isArrayIter = function (it) {
- return it !== undefined && (Iterators$3.Array === it || ArrayProto$1[ITERATOR$2] === it);
-};
+ var result = original.apply(this, args);
+ var ob = this.__ob__;
+ var inserted;
+ switch (method) {
+ case 'push':
+ case 'unshift':
+ inserted = args;
+ break
+ case 'splice':
+ inserted = args.slice(2);
+ break
+ }
+ if (inserted) { ob.observeArray(inserted); }
+ // notify change
+ ob.dep.notify();
+ return result
+ });
+});
-var classof$2 = _classof;
-var ITERATOR$3 = _wks('iterator');
-var Iterators$4 = _iterators;
-var core_getIteratorMethod = _core.getIteratorMethod = function (it) {
- if (it != undefined) { return it[ITERATOR$3]
- || it['@@iterator']
- || Iterators$4[classof$2(it)]; }
-};
+/* */
-var _forOf = createCommonjsModule(function (module) {
-var ctx = _ctx;
-var call = _iterCall;
-var isArrayIter = _isArrayIter;
-var anObject = _anObject;
-var toLength = _toLength;
-var getIterFn = core_getIteratorMethod;
-var BREAK = {};
-var RETURN = {};
-var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
- var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
- var f = ctx(fn, that, entries ? 2 : 1);
- var index = 0;
- var length, step, iterator, result;
- if (typeof iterFn != 'function') { throw TypeError(iterable + ' is not iterable!'); }
- // fast case for arrays with default iterator
- if (isArrayIter(iterFn)) { for (length = toLength(iterable.length); length > index; index++) {
- result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
- if (result === BREAK || result === RETURN) { return result; }
- } } else { for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
- result = call(iterator, f, step.value, entries);
- if (result === BREAK || result === RETURN) { return result; }
- } }
-};
-exports.BREAK = BREAK;
-exports.RETURN = RETURN;
-});
+var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
-// 7.3.20 SpeciesConstructor(O, defaultConstructor)
-var anObject$4 = _anObject;
-var aFunction$2 = _aFunction;
-var SPECIES = _wks('species');
-var _speciesConstructor = function (O, D) {
- var C = anObject$4(O).constructor;
- var S;
- return C === undefined || (S = anObject$4(C)[SPECIES]) == undefined ? D : aFunction$2(S);
+/**
+ * By default, when a reactive property is set, the new value is
+ * also converted to become reactive. However when passing down props,
+ * we don't want to force conversion because the value may be a nested value
+ * under a frozen data structure. Converting it would defeat the optimization.
+ */
+var observerState = {
+ shouldConvert: true
};
-// fast apply, http://jsperf.lnkit.com/fast-apply/5
-var _invoke = function (fn, args, that) {
- var un = that === undefined;
- switch (args.length) {
- case 0: return un ? fn()
- : fn.call(that);
- case 1: return un ? fn(args[0])
- : fn.call(that, args[0]);
- case 2: return un ? fn(args[0], args[1])
- : fn.call(that, args[0], args[1]);
- case 3: return un ? fn(args[0], args[1], args[2])
- : fn.call(that, args[0], args[1], args[2]);
- case 4: return un ? fn(args[0], args[1], args[2], args[3])
- : fn.call(that, args[0], args[1], args[2], args[3]);
- } return fn.apply(that, args);
+/**
+ * Observer class that are attached to each observed
+ * object. Once attached, the observer converts target
+ * object's property keys into getter/setters that
+ * collect dependencies and dispatches updates.
+ */
+var Observer = function Observer (value) {
+ this.value = value;
+ this.dep = new Dep();
+ this.vmCount = 0;
+ def(value, '__ob__', this);
+ if (Array.isArray(value)) {
+ var augment = hasProto
+ ? protoAugment
+ : copyAugment;
+ augment(value, arrayMethods, arrayKeys);
+ this.observeArray(value);
+ } else {
+ this.walk(value);
+ }
};
-var ctx$2 = _ctx;
-var invoke = _invoke;
-var html = _html;
-var cel = _domCreate;
-var global$5 = _global;
-var process$2 = global$5.process;
-var setTask = global$5.setImmediate;
-var clearTask = global$5.clearImmediate;
-var MessageChannel = global$5.MessageChannel;
-var Dispatch = global$5.Dispatch;
-var counter = 0;
-var queue = {};
-var ONREADYSTATECHANGE = 'onreadystatechange';
-var defer;
-var channel;
-var port;
-var run$1 = function () {
- var id = +this;
- // eslint-disable-next-line no-prototype-builtins
- if (queue.hasOwnProperty(id)) {
- var fn = queue[id];
- delete queue[id];
- fn();
+/**
+ * Walk through each property and convert them into
+ * getter/setters. This method should only be called when
+ * value type is Object.
+ */
+Observer.prototype.walk = function walk (obj) {
+ var keys = Object.keys(obj);
+ for (var i = 0; i < keys.length; i++) {
+ defineReactive$$1(obj, keys[i], obj[keys[i]]);
}
};
-var listener = function (event) {
- run$1.call(event.data);
-};
-// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
-if (!setTask || !clearTask) {
- setTask = function setImmediate(fn) {
- var arguments$1 = arguments;
- var args = [];
- var i = 1;
- while (arguments.length > i) { args.push(arguments$1[i++]); }
- queue[++counter] = function () {
- // eslint-disable-next-line no-new-func
- invoke(typeof fn == 'function' ? fn : Function(fn), args);
- };
- defer(counter);
- return counter;
- };
- clearTask = function clearImmediate(id) {
- delete queue[id];
- };
- // Node.js 0.8-
- if (_cof(process$2) == 'process') {
- defer = function (id) {
- process$2.nextTick(ctx$2(run$1, id, 1));
- };
- // Sphere (JS game engine) Dispatch API
- } else if (Dispatch && Dispatch.now) {
- defer = function (id) {
- Dispatch.now(ctx$2(run$1, id, 1));
- };
- // Browsers with MessageChannel, includes WebWorkers
- } else if (MessageChannel) {
- channel = new MessageChannel();
- port = channel.port2;
- channel.port1.onmessage = listener;
- defer = ctx$2(port.postMessage, port, 1);
- // Browsers with postMessage, skip WebWorkers
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
- } else if (global$5.addEventListener && typeof postMessage == 'function' && !global$5.importScripts) {
- defer = function (id) {
- global$5.postMessage(id + '', '*');
- };
- global$5.addEventListener('message', listener, false);
- // IE8-
- } else if (ONREADYSTATECHANGE in cel('script')) {
- defer = function (id) {
- html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
- html.removeChild(this);
- run$1.call(id);
- };
- };
- // Rest old browsers
- } else {
- defer = function (id) {
- setTimeout(ctx$2(run$1, id, 1), 0);
- };
+/**
+ * Observe a list of Array items.
+ */
+Observer.prototype.observeArray = function observeArray (items) {
+ for (var i = 0, l = items.length; i < l; i++) {
+ observe(items[i]);
}
-}
-var _task = {
- set: setTask,
- clear: clearTask
};
-var global$6 = _global;
-var macrotask = _task.set;
-var Observer = global$6.MutationObserver || global$6.WebKitMutationObserver;
-var process$3 = global$6.process;
-var Promise$1 = global$6.Promise;
-var isNode$1 = _cof(process$3) == 'process';
-
-var _microtask = function () {
- var head, last, notify;
+// helpers
- var flush = function () {
- var parent, fn;
- if (isNode$1 && (parent = process$3.domain)) { parent.exit(); }
- while (head) {
- fn = head.fn;
- head = head.next;
- try {
- fn();
- } catch (e) {
- if (head) { notify(); }
- else { last = undefined; }
- throw e;
- }
- } last = undefined;
- if (parent) { parent.enter(); }
- };
+/**
+ * Augment an target Object or Array by intercepting
+ * the prototype chain using __proto__
+ */
+function protoAugment (target, src, keys) {
+ /* eslint-disable no-proto */
+ target.__proto__ = src;
+ /* eslint-enable no-proto */
+}
- // Node.js
- if (isNode$1) {
- notify = function () {
- process$3.nextTick(flush);
- };
- // browsers with MutationObserver
- } else if (Observer) {
- var toggle = true;
- var node = document.createTextNode('');
- new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
- notify = function () {
- node.data = toggle = !toggle;
- };
- // environments with maybe non-completely correct, but existent Promise
- } else if (Promise$1 && Promise$1.resolve) {
- var promise = Promise$1.resolve();
- notify = function () {
- promise.then(flush);
- };
- // for other environments - macrotask based on:
- // - setImmediate
- // - MessageChannel
- // - window.postMessag
- // - onreadystatechange
- // - setTimeout
- } else {
- notify = function () {
- // strange IE + webpack dev server bug - use .call(global)
- macrotask.call(global$6, flush);
- };
+/**
+ * Augment an target Object or Array by defining
+ * hidden properties.
+ */
+/* istanbul ignore next */
+function copyAugment (target, src, keys) {
+ for (var i = 0, l = keys.length; i < l; i++) {
+ var key = keys[i];
+ def(target, key, src[key]);
}
-
- return function (fn) {
- var task = { fn: fn, next: undefined };
- if (last) { last.next = task; }
- if (!head) {
- head = task;
- notify();
- } last = task;
- };
-};
-
-// 25.4.1.5 NewPromiseCapability(C)
-var aFunction$3 = _aFunction;
-
-function PromiseCapability(C) {
- var resolve, reject;
- this.promise = new C(function ($$resolve, $$reject) {
- if (resolve !== undefined || reject !== undefined) { throw TypeError('Bad Promise constructor'); }
- resolve = $$resolve;
- reject = $$reject;
- });
- this.resolve = aFunction$3(resolve);
- this.reject = aFunction$3(reject);
}
-var f$3 = function (C) {
- return new PromiseCapability(C);
-};
-
-var _newPromiseCapability = {
- f: f$3
-};
-
-var _perform = function (exec) {
- try {
- return { e: false, v: exec() };
- } catch (e) {
- return { e: true, v: e };
+/**
+ * Attempt to create an observer instance for a value,
+ * returns the new observer if successfully observed,
+ * or the existing observer if the value already has one.
+ */
+function observe (value, asRootData) {
+ if (!isObject(value)) {
+ return
}
-};
-
-var newPromiseCapability$1 = _newPromiseCapability;
+ var ob;
+ if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
+ ob = value.__ob__;
+ } else if (
+ observerState.shouldConvert &&
+ !isServerRendering() &&
+ (Array.isArray(value) || isPlainObject(value)) &&
+ Object.isExtensible(value) &&
+ !value._isVue
+ ) {
+ ob = new Observer(value);
+ }
+ if (asRootData && ob) {
+ ob.vmCount++;
+ }
+ return ob
+}
-var _promiseResolve = function (C, x) {
- var promiseCapability = newPromiseCapability$1.f(C);
- var resolve = promiseCapability.resolve;
- resolve(x);
- return promiseCapability.promise;
-};
+/**
+ * Define a reactive property on an Object.
+ */
+function defineReactive$$1 (
+ obj,
+ key,
+ val,
+ customSetter,
+ shallow
+) {
+ var dep = new Dep();
-var redefine$3 = _redefine;
-var _redefineAll = function (target, src, safe) {
- for (var key in src) { redefine$3(target, key, src[key], safe); }
- return target;
-};
+ var property = Object.getOwnPropertyDescriptor(obj, key);
+ if (property && property.configurable === false) {
+ return
+ }
-var global$7 = _global;
-var dP$3 = _objectDp;
-var DESCRIPTORS = _descriptors;
-var SPECIES$1 = _wks('species');
+ // cater for pre-defined getter/setters
+ var getter = property && property.get;
+ var setter = property && property.set;
-var _setSpecies = function (KEY) {
- var C = global$7[KEY];
- if (DESCRIPTORS && C && !C[SPECIES$1]) { dP$3.f(C, SPECIES$1, {
+ var childOb = !shallow && observe(val);
+ Object.defineProperty(obj, key, {
+ enumerable: true,
configurable: true,
- get: function () { return this; }
- }); }
-};
-
-var ITERATOR$4 = _wks('iterator');
-var SAFE_CLOSING = false;
-
-try {
- var riter = [7][ITERATOR$4]();
- riter['return'] = function () { SAFE_CLOSING = true; };
- // eslint-disable-next-line no-throw-literal
- Array.from(riter, function () { throw 2; });
-} catch (e) { /* empty */ }
-
-var _iterDetect = function (exec, skipClosing) {
- if (!skipClosing && !SAFE_CLOSING) { return false; }
- var safe = false;
- try {
- var arr = [7];
- var iter = arr[ITERATOR$4]();
- iter.next = function () { return { done: safe = true }; };
- arr[ITERATOR$4] = function () { return iter; };
- exec(arr);
- } catch (e) { /* empty */ }
- return safe;
-};
-
-var LIBRARY$1 = _library;
-var global$4 = _global;
-var ctx$1 = _ctx;
-var classof$1 = _classof;
-var $export$3 = _export;
-var isObject$3 = _isObject;
-var aFunction$1 = _aFunction;
-var anInstance = _anInstance;
-var forOf = _forOf;
-var speciesConstructor = _speciesConstructor;
-var task = _task.set;
-var microtask = _microtask();
-var newPromiseCapabilityModule = _newPromiseCapability;
-var perform = _perform;
-var promiseResolve = _promiseResolve;
-var PROMISE = 'Promise';
-var TypeError$1 = global$4.TypeError;
-var process$1 = global$4.process;
-var $Promise = global$4[PROMISE];
-var isNode = classof$1(process$1) == 'process';
-var empty = function () { /* empty */ };
-var Internal;
-var newGenericPromiseCapability;
-var OwnPromiseCapability;
-var Wrapper;
-var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
-
-var USE_NATIVE = !!function () {
- try {
- // correct subclassing with @@species support
- var promise = $Promise.resolve(1);
- var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) {
- exec(empty, empty);
- };
- // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
- return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;
- } catch (e) { /* empty */ }
-}();
-
-// helpers
-var sameConstructor = LIBRARY$1 ? function (a, b) {
- // with library wrapper special case
- return a === b || a === $Promise && b === Wrapper;
-} : function (a, b) {
- return a === b;
-};
-var isThenable = function (it) {
- var then;
- return isObject$3(it) && typeof (then = it.then) == 'function' ? then : false;
-};
-var notify$1 = function (promise, isReject) {
- if (promise._n) { return; }
- promise._n = true;
- var chain = promise._c;
- microtask(function () {
- var value = promise._v;
- var ok = promise._s == 1;
- var i = 0;
- var run = function (reaction) {
- var handler = ok ? reaction.ok : reaction.fail;
- var resolve = reaction.resolve;
- var reject = reaction.reject;
- var domain = reaction.domain;
- var result, then;
- try {
- if (handler) {
- if (!ok) {
- if (promise._h == 2) { onHandleUnhandled(promise); }
- promise._h = 1;
- }
- if (handler === true) { result = value; }
- else {
- if (domain) { domain.enter(); }
- result = handler(value);
- if (domain) { domain.exit(); }
- }
- if (result === reaction.promise) {
- reject(TypeError$1('Promise-chain cycle'));
- } else if (then = isThenable(result)) {
- then.call(result, resolve, reject);
- } else { resolve(result); }
- } else { reject(value); }
- } catch (e) {
- reject(e);
- }
- };
- while (chain.length > i) { run(chain[i++]); } // variable length - can't use forEach
- promise._c = [];
- promise._n = false;
- if (isReject && !promise._h) { onUnhandled(promise); }
- });
-};
-var onUnhandled = function (promise) {
- task.call(global$4, function () {
- var value = promise._v;
- var unhandled = isUnhandled(promise);
- var result, handler, console;
- if (unhandled) {
- result = perform(function () {
- if (isNode) {
- process$1.emit('unhandledRejection', value, promise);
- } else if (handler = global$4.onunhandledrejection) {
- handler({ promise: promise, reason: value });
- } else if ((console = global$4.console) && console.error) {
- console.error('Unhandled promise rejection', value);
- }
- });
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
- promise._h = isNode || isUnhandled(promise) ? 2 : 1;
- } promise._a = undefined;
- if (unhandled && result.e) { throw result.v; }
- });
-};
-var isUnhandled = function (promise) {
- if (promise._h == 1) { return false; }
- var chain = promise._a || promise._c;
- var i = 0;
- var reaction;
- while (chain.length > i) {
- reaction = chain[i++];
- if (reaction.fail || !isUnhandled(reaction.promise)) { return false; }
- } return true;
-};
-var onHandleUnhandled = function (promise) {
- task.call(global$4, function () {
- var handler;
- if (isNode) {
- process$1.emit('rejectionHandled', promise);
- } else if (handler = global$4.onrejectionhandled) {
- handler({ promise: promise, reason: promise._v });
- }
- });
-};
-var $reject = function (value) {
- var promise = this;
- if (promise._d) { return; }
- promise._d = true;
- promise = promise._w || promise; // unwrap
- promise._v = value;
- promise._s = 2;
- if (!promise._a) { promise._a = promise._c.slice(); }
- notify$1(promise, true);
-};
-var $resolve = function (value) {
- var promise = this;
- var then;
- if (promise._d) { return; }
- promise._d = true;
- promise = promise._w || promise; // unwrap
- try {
- if (promise === value) { throw TypeError$1("Promise can't be resolved itself"); }
- if (then = isThenable(value)) {
- microtask(function () {
- var wrapper = { _w: promise, _d: false }; // wrap
- try {
- then.call(value, ctx$1($resolve, wrapper, 1), ctx$1($reject, wrapper, 1));
- } catch (e) {
- $reject.call(wrapper, e);
- }
- });
- } else {
- promise._v = value;
- promise._s = 1;
- notify$1(promise, false);
- }
- } catch (e) {
- $reject.call({ _w: promise, _d: false }, e); // wrap
- }
-};
-
-// constructor polyfill
-if (!USE_NATIVE) {
- // 25.4.3.1 Promise(executor)
- $Promise = function Promise(executor) {
- anInstance(this, $Promise, PROMISE, '_h');
- aFunction$1(executor);
- Internal.call(this);
- try {
- executor(ctx$1($resolve, this, 1), ctx$1($reject, this, 1));
- } catch (err) {
- $reject.call(this, err);
- }
- };
- // eslint-disable-next-line no-unused-vars
- Internal = function Promise(executor) {
- this._c = []; // <- awaiting reactions
- this._a = undefined; // <- checked in isUnhandled reactions
- this._s = 0; // <- state
- this._d = false; // <- done
- this._v = undefined; // <- value
- this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
- this._n = false; // <- notify
- };
- Internal.prototype = _redefineAll($Promise.prototype, {
- // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
- then: function then(onFulfilled, onRejected) {
- var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
- reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
- reaction.fail = typeof onRejected == 'function' && onRejected;
- reaction.domain = isNode ? process$1.domain : undefined;
- this._c.push(reaction);
- if (this._a) { this._a.push(reaction); }
- if (this._s) { notify$1(this, false); }
- return reaction.promise;
- },
- // 25.4.5.1 Promise.prototype.catch(onRejected)
- 'catch': function (onRejected) {
- return this.then(undefined, onRejected);
- }
- });
- OwnPromiseCapability = function () {
- var promise = new Internal();
- this.promise = promise;
- this.resolve = ctx$1($resolve, promise, 1);
- this.reject = ctx$1($reject, promise, 1);
- };
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
- return sameConstructor($Promise, C)
- ? new OwnPromiseCapability(C)
- : newGenericPromiseCapability(C);
- };
-}
-
-$export$3($export$3.G + $export$3.W + $export$3.F * !USE_NATIVE, { Promise: $Promise });
-_setToStringTag($Promise, PROMISE);
-_setSpecies(PROMISE);
-Wrapper = _core[PROMISE];
-
-// statics
-$export$3($export$3.S + $export$3.F * !USE_NATIVE, PROMISE, {
- // 25.4.4.5 Promise.reject(r)
- reject: function reject(r) {
- var capability = newPromiseCapability(this);
- var $$reject = capability.reject;
- $$reject(r);
- return capability.promise;
- }
-});
-$export$3($export$3.S + $export$3.F * (LIBRARY$1 || !USE_NATIVE), PROMISE, {
- // 25.4.4.6 Promise.resolve(x)
- resolve: function resolve(x) {
- // instanceof instead of internal slot check because we should fix it without replacement native Promise core
- if (x instanceof $Promise && sameConstructor(x.constructor, this)) { return x; }
- return promiseResolve(this, x);
- }
-});
-$export$3($export$3.S + $export$3.F * !(USE_NATIVE && _iterDetect(function (iter) {
- $Promise.all(iter)['catch'](empty);
-})), PROMISE, {
- // 25.4.4.1 Promise.all(iterable)
- all: function all(iterable) {
- var C = this;
- var capability = newPromiseCapability(C);
- var resolve = capability.resolve;
- var reject = capability.reject;
- var result = perform(function () {
- var values = [];
- var index = 0;
- var remaining = 1;
- forOf(iterable, false, function (promise) {
- var $index = index++;
- var alreadyCalled = false;
- values.push(undefined);
- remaining++;
- C.resolve(promise).then(function (value) {
- if (alreadyCalled) { return; }
- alreadyCalled = true;
- values[$index] = value;
- --remaining || resolve(values);
- }, reject);
- });
- --remaining || resolve(values);
- });
- if (result.e) { reject(result.v); }
- return capability.promise;
- },
- // 25.4.4.4 Promise.race(iterable)
- race: function race(iterable) {
- var C = this;
- var capability = newPromiseCapability(C);
- var reject = capability.reject;
- var result = perform(function () {
- forOf(iterable, false, function (promise) {
- C.resolve(promise).then(capability.resolve, reject);
- });
- });
- if (result.e) { reject(result.v); }
- return capability.promise;
- }
-});
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-/**
- * @fileOverview
- * This file will hack `console` methods by `WXEnvironment.logLevel`.
- * So we can control how many and which messages will be sent by change the log level.
- * Additionally in native platform the message content must be primitive values and
- * using `nativeLog(...args, logLevelMark)` so we create a new `console` object in
- * global add a format process for its methods.
- */
-
-var LEVELS = ['off', 'error', 'warn', 'info', 'log', 'debug'];
-var levelMap = {};
-
-var originalConsole = global.console;
-
-/**
- * Hack console for native environment.
- */
-function setNativeConsole () {
- generateLevelMap();
-
- /* istanbul ignore next */
- // mock console in native environment
- if (global.WXEnvironment && global.WXEnvironment.platform !== 'Web') {
- global.console = {
- debug: function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('debug')) { global.nativeLog.apply(global, format(args).concat( ['__DEBUG'] )); }
- },
- log: function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('log')) { global.nativeLog.apply(global, format(args).concat( ['__LOG'] )); }
- },
- info: function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('info')) { global.nativeLog.apply(global, format(args).concat( ['__INFO'] )); }
- },
- warn: function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('warn')) { global.nativeLog.apply(global, format(args).concat( ['__WARN'] )); }
- },
- error: function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('error')) { global.nativeLog.apply(global, format(args).concat( ['__ERROR'] )); }
- }
- };
- }
-
- // Web or Node
- else {
- var debug = console.debug;
- var log = console.log;
- var info = console.info;
- var warn = console.warn;
- var error = console.error;
- console.__ori__ = { debug: debug, log: log, info: info, warn: warn, error: error };
- console.debug = function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('debug')) { console.__ori__.debug.apply(console, args); }
- };
- console.log = function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('log')) { console.__ori__.log.apply(console, args); }
- };
- console.info = function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('info')) { console.__ori__.info.apply(console, args); }
- };
- console.warn = function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('warn')) { console.__ori__.warn.apply(console, args); }
- };
- console.error = function () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- if (checkLevel('error')) { console.__ori__.error.apply(console, args); }
- };
- }
-}
-
-/**
- * Reset hacked console to original.
- */
-/* istanbul ignore next */
-function resetNativeConsole () {
- levelMap = {};
- global.console = originalConsole;
-}
-
-/**
- * Generate map for which types of message will be sent in a certain message level
- * as the order of LEVELS.
- */
-function generateLevelMap () {
- LEVELS.forEach(function (level) {
- var levelIndex = LEVELS.indexOf(level);
- levelMap[level] = {};
- LEVELS.forEach(function (type) {
- var typeIndex = LEVELS.indexOf(type);
- if (typeIndex <= levelIndex) {
- levelMap[level][type] = true;
- }
- });
- });
-}
-
-/**
- * Check if a certain type of message will be sent in current log level of env.
- * @param {string} type
- * @return {boolean}
- */
-function checkLevel (type) {
- var logLevel = (global.WXEnvironment && global.WXEnvironment.logLevel) || 'log';
- return levelMap[logLevel] && levelMap[logLevel][type]
-}
-
-/**
- * Convert all log arguments into primitive values.
- * @param {array} args
- * @return {array}
- */
-/* istanbul ignore next */
-function format (args) {
- return args.map(function (v) {
- var type = Object.prototype.toString.call(v);
- if (type.toLowerCase() === '[object object]') {
- v = JSON.stringify(v);
- }
- else {
- v = String(v);
- }
- return v
- })
-}
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-/**
- * @fileOverview
- * Polyfill `setTimeout` on Android V8 using native method
- * `setTimeoutNative(callbackId, time)` and JS method
- * `setTimeoutCallback(callbackId)`.
- * This polyfill is only used in virtual-DOM diff & flush agorithm. Not
- * accessed by JS Bundle code (The timer APIs polyfill for JS Bundle is in
- * `html5/default/app/ctrl.js`).
- */
-
-var originalSetTimeout = global.setTimeout;
-var setTimeoutNative = global.setTimeoutNative;
-
-/**
- * Set up native timer
- */
-/* istanbul ignore next */
-function setNativeTimer () {
- if (typeof setTimeout === 'undefined' &&
- typeof setTimeoutNative === 'function') {
- var timeoutMap = {};
- var timeoutId = 0;
-
- global.setTimeout = function (cb, time) {
- timeoutMap[++timeoutId] = cb;
- setTimeoutNative(timeoutId.toString(), time);
- };
-
- global.setTimeoutCallback = function (id) {
- if (typeof timeoutMap[id] === 'function') {
- timeoutMap[id]();
- delete timeoutMap[id];
- }
- };
- }
-}
-
-/* istanbul ignore next */
-function resetNativeTimer () {
- global.setTimeout = originalSetTimeout;
- global.setTimeoutCallback = null;
-}
-
-setNativeTimer();
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-/**
- * Freeze the prototype of javascript build-in objects.
- */
-/* istanbul ignore next */
-function freezePrototype$1 () {
- Object.freeze(Object);
- Object.freeze(Array);
-
- // Object.freeze(Object.prototype)
- freezeObjectProto();
- Object.freeze(Array.prototype);
- Object.freeze(String.prototype);
- Object.freeze(Number.prototype);
- Object.freeze(Boolean.prototype);
-
- // Object.freeze(Error.prototype)
- freezeErrorProto();
- Object.freeze(Date.prototype);
- Object.freeze(RegExp.prototype);
-}
-
-function freezeObjectProto () {
- var proto = Object.prototype;
- var protoName = 'Object.prototype';
- freezeProtoProperty(proto, '__defineGetter__', protoName);
- freezeProtoProperty(proto, '__defineSetter__', protoName);
- freezeProtoProperty(proto, '__lookupGetter__', protoName);
- freezeProtoProperty(proto, '__lookupSetter__', protoName);
- freezeProtoProperty(proto, 'constructor', protoName);
- freezeProtoProperty(proto, 'hasOwnProperty', protoName);
- freezeProtoProperty(proto, 'isPrototypeOf', protoName);
- freezeProtoProperty(proto, 'propertyIsEnumerable', protoName);
- freezeProtoProperty(proto, 'toLocaleString', protoName);
- freezeProtoProperty(proto, 'toString', protoName);
- freezeProtoProperty(proto, 'valueOf', protoName);
- Object.seal(proto);
-}
-
-function freezeErrorProto () {
- var proto = Error.prototype;
- var protoName = 'Error.prototype';
- freezeProtoProperty(proto, 'name', protoName);
- freezeProtoProperty(proto, 'message', protoName);
- freezeProtoProperty(proto, 'toString', protoName);
- freezeProtoProperty(proto, 'constructor', protoName);
- Object.seal(proto);
-}
-
-function freezeProtoProperty (proto, propertyName, protoName) {
- if (!proto.hasOwnProperty(propertyName)) {
- return
- }
-
- var origin = proto[
<TRUNCATED>
[12/13] incubator-weex git commit: + [jsfm] add copyright header on
test cases
Posted by da...@apache.org.
+ [jsfm] add copyright header on test cases
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/abdfac96
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/abdfac96
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/abdfac96
Branch: refs/heads/0.16-dev
Commit: abdfac96da3c798cd3a801a17cb5d4c6c7269401
Parents: 9631808
Author: Hanks <zh...@gmail.com>
Authored: Thu Aug 24 14:46:02 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Thu Aug 24 14:46:02 2017 +0800
----------------------------------------------------------------------
dangerfile.js | 1 +
.../case/complex/component-append-tree.source.js | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/abdfac96/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index 2be4b60..4015fbb 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -250,6 +250,7 @@ const ignoreCopyrightVerifyPath = [
'test',
'packages',
'pre-build',
+ 'html5/test/case',
'android/playground/app/src/main/assets',
'android/sdk/assets',
'ios/playground/bundlejs',
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/abdfac96/html5/test/case/complex/component-append-tree.source.js
----------------------------------------------------------------------
diff --git a/html5/test/case/complex/component-append-tree.source.js b/html5/test/case/complex/component-append-tree.source.js
index 2f83adc..7088eea 100644
--- a/html5/test/case/complex/component-append-tree.source.js
+++ b/html5/test/case/complex/component-append-tree.source.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
define('@weex-component/sub', function(require, exports, module) {
;
[06/13] incubator-weex git commit: * [jsfm] release v0.21.11
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90fac505/pre-build/native-bundle-main.js
----------------------------------------------------------------------
diff --git a/pre-build/native-bundle-main.js b/pre-build/native-bundle-main.js
index ff851c8..462e4fc 100644
--- a/pre-build/native-bundle-main.js
+++ b/pre-build/native-bundle-main.js
@@ -1,8 +1,8 @@
-(this.nativeLog||function(e){console.log(e)})("START JS FRAMEWORK 0.21.9, Build 2017-08-11 16:29."),this.getJSFMVersion=function(){return"0.21.9"};var global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(e){Qn.Document=e.Document,Qn.Element=e.Element,Qn.Comment=e.Comment,Qn.sendTasks=e.sendTasks}function t(e){}function n(e){}function r(e){}function o(e,t,n){}function i(e,t,n,r,o){var i=new Qn.Document(e,n.bundleUrl),a={},s=0;i.addCallback=function(e){return s++,a[s]=e,s},i.handleCallback=function(e,t,n){var r=a[e];return n&&delete a[e],r(t)},Yn[e]=i;var u=Object.assign({Document:Qn.Document,Element:Qn.Element,Comment:Qn.Comment,sendTasks:Qn.sendTasks,id:e,options:n,data:r,document:i},o),c=[],l=[];for(var f in u)c.push(f),l.push(u[f]);return c.push(t),(new(Function.prototype.bind.apply(Function,[null].concat(c)))).apply
(void 0,l),{document:i}}function a(e,t){}function s(e){delete Yn[e]}function u(e){return Yn[e].body.toJSON()}function c(e,t){var n={fireEvent:function(e,t,n,r,o){var i=Yn[e],a=i.getRef(t);return i.fireEvent(a,n,r,o)},callback:function(e,t,n,r){return Yn[e].handleCallback(t,n,r)}};if(Yn[e]&&Array.isArray(t)){var r=[];return t.forEach(function(t){var o=n[t.method],i=[].concat(t.args);"function"==typeof o&&(i.unshift(e),r.push(o.apply(void 0,i)))}),r}}function l(e){return e&&e.__esModule?e.default:e}function f(e,t){return t={exports:{}},e(t,t.exports),t.exports}function d(e){console.warn("[JS Framework] Vm#$ is deprecated, please use Vm#$vm instead");var t=this._ids[e];if(t)return t.vm}function p(e){var t=this._ids[e];if(t)return t.el}function h(e){var t=this._ids[e];if(t)return t.vm}function v(e){return this._app.differ.then(function(){e()})}function y(e,t){console.warn("[JS Framework] Vm#$scrollTo is deprecated, please use \"require('@weex-module/dom').scrollTo(el, options)\" instead
");var n=this.$el(e);if(n){this._app.requireModule("dom").scrollToElement(n.ref,{offset:t})}}function m(e,t,n){var r=this,o=this.$el(e);if(o&&t&&t.styles){this._app.requireModule("animation").transition(o.ref,t,function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];r._setStyle(o,t.styles),n&&n.apply(void 0,e)})}}function _(e){var t=this._app.options;return"function"==typeof e&&(console.warn("[JS Framework] the callback of Vm#$getConfig(callback) is deprecated, this api now can directly RETURN config info."),e(t)),t}function g(e,t){console.warn("[JS Framework] Vm#$sendHttp is deprecated, please use \"require('@weex-module/stream').sendHttp(params, callback)\" instead"),this._app.requireModule("stream").sendHttp(e,t)}function b(e){console.warn("[JS Framework] Vm#$openURL is deprecated, please use \"require('@weex-module/event').openURL(url)\" instead"),this._app.requireModule("event").openURL(e)}function w(e){console.warn("[JS Framework] Vm#$setTitle is deprecated, please u
se \"require('@weex-module/pageInfo').setTitle(title)\" instead"),this._app.requireModule("pageInfo").setTitle(e)}function O(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];console.warn("[JS Framework] Vm#$call is deprecated, please use \"require('@weex-module/moduleName')\" instead");var o=this._app.requireModule(e);o&&o[t]&&o[t].apply(o,n)}function E(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"==typeof Object.assign)Object.assign.apply(Object,[e].concat(t));else{var r=t.shift();for(var o in r)e[o]=r[o];t.length&&E.apply(void 0,[e].concat(t))}return e}function x(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function S(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function C(e,t){return gr.call(e,t)}function k(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function j(e){return null!==e&&"object"==typeof e}functi
on A(e){return br.call(e)===wr}function T(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function I(){return"object"==typeof nativeSet?nativeSet.create():new Zn}function N(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1).toLowerCase()}function P(e){return e.replace(Er,"").replace(xr,"")}function M(e){return e.replace(Cr,"")}function $(){this.id=Ir++,this.subs=[]}function R(e){$.target&&Nr.push($.target),$.target=e}function D(){$.target=Nr.pop()}function F(){$.target=null,Nr=[]}function L(e,t,n,r){r&&E(this,r);var o="function"==typeof t;this.vm=e,e._watchers.push(this),this.expression=t,this.cb=n,this.id=++Pr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=I(),this.newDepIds=I(),o&&(this.getter=t),this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function U(e,t){var n,r,o,i;if(t||(t=Mr,t.clear()),o=Array.isArray(e),i=j(e),o||i){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(n=e.leng
th;n--;)U(e[n],t);else if(i)for(r=Object.keys(e),n=r.length;n--;)U(e[r[n]],t)}}function B(e){if(this.value=e,this.dep=new $,x(e,"__ob__",this),Array.isArray(e)){(Or?V:q)(e,Rr,Dr),this.observeArray(e)}else this.walk(e)}function V(e,t){e.__proto__=t}function q(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];x(e,i,t[i])}}function W(e,t){if(j(e)){var n;return C(e,"__ob__")&&e.__ob__ instanceof B?n=e.__ob__:(Array.isArray(e)||A(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new B(e)),n&&t&&n.addVm(t),n}}function z(e,t,n){var r=new $,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var i=o&&o.get,a=o&&o.set,s=W(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=i?i.call(e):n;if($.target&&(r.depend(),s&&s.dep.depend(),Array.isArray(t)))for(var o=void 0,a=0,u=t.length;a<u;a++)(o=t[a])&&o.__ob__&&o.__ob__.dep.depend();return t},set:function(t){t!==(i?i.call(e):n)&&(a?a.call(e,t):n=t,s=W(t),r.notify())}})}}function J(e,t,n){if(Array.isArray(e))ret
urn e.splice(t,1,n);if(C(e,t))return void(e[t]=n);if(e._isVue)return void J(e._data,t,n);var r=e.__ob__;if(!r)return void(e[t]=n);if(r.convert(t,n),r.dep.notify(),r.vms)for(var o=r.vms.length;o--;){var i=r.vms[o];G(i,t)}return n}function H(e,t){if(C(e,t)){delete e[t];var n=e.__ob__;if(!n)return void(e._isVue&&delete e._data[t]);if(n.dep.notify(),n.vms)for(var r=n.vms.length;r--;){var o=n.vms[r];X(o,t)}}}function G(e,t){(Fr.indexOf(t)>-1||!T(t))&&Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}function X(e,t){T(t)||delete e[t]}function K(e){e._watchers=[],Z(e),Y(e),te(e)}function Z(e){var t=e._data;A(t)||(t={});for(var n=Object.keys(t),r=n.length;r--;)G(e,n[r]);W(t,e)}function Q(){}function Y(e){var t=e._computed;if(t)for(var n in t){var r=t[n],o={enumerable:!0,configurable:!0};"function"==typeof r?(o.get=ee(r,e),o.set=Q):(o.get=r.get?!1!==r.cache?ee(r.get,e):k(r.get,e):Q,o.set=r.set?k(r.set,e):Q),Object.defin
eProperty(e,n,o)}}function ee(e,t){var n=new L(t,e,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),$.target&&n.depend(),n.value}}function te(e){var t=e._methods;if(t)for(var n in t)e[n]=t[n]}function ne(e){var t=e.type,n=Ur[t];if("object"==typeof n)for(var r in n)if(null==e[r])e[r]=n[r];else if("object"===N(e[r])&&"object"===N(n[r]))for(var o in n[r])null==e[r][o]&&(e[r][o]=n[r][o])}function re(e,t,n){ce(e,t,n.id,e),le(e,t,n.attr),de(e,t,n.classList),pe(e,t,n.style),ve(e,t,n.events)}function oe(e,t,n,r){t=t||{},n=n||{};var o=t._options||{},i=o.props;Array.isArray(i)&&(i=i.reduce(function(e,t){return e[t]=!0,e},{})),ae(r,i,e,t),ae(n.attr,i,e,t)}function ie(e,t,n,r){void 0===r&&(r={}),ue(n.classList,e,t),se(n.style,e,t),r.children?r.children[r.children.length-1]._vm=t:r._vm=t}function ae(e,t,n,r){if(e){for(var o in e)!function(o){if(!t||t[o]){var i=e[o];if("function"==typeof i){var a=_e(n,i,function(e){r[o]=e});r[o]=a}else r[o]=i}}(o)}}function se(e,t,n){for(var r in e)
!function(r){var o=e[r];if("function"==typeof o){var i=_e(t,o,function(e){n._rootEl&&n._rootEl.setStyle(r,e)});n._rootEl.setStyle(r,i)}else n._rootEl&&n._rootEl.setStyle(r,o)}(r)}function ue(e,t,n){function r(e,t){"array"===N(e)&&e.unshift(t)}var o=t._options&&t._options.style||{};if(n._rootEl){var i="@originalRootEl";if(o[i]=n._rootEl.classStyle,"function"==typeof e){var a=_e(t,e,function(e){r(e,i),fe(n._rootEl,o,e)});r(a,i),fe(n._rootEl,o,a)}else null!=e&&(r(e,i),fe(n._rootEl,o,e))}}function ce(e,t,n,r){var o=Object.create(null);if(Object.defineProperties(o,{vm:{value:r,writable:!1,configurable:!1},el:{get:function(){return t||r._rootEl},configurable:!1}}),"function"==typeof n){var i=n;n=i.call(e),(n||0===n)&&(e._ids[n]=o),_e(e,i,function(t){t&&(e._ids[t]=o)})}else n&&"string"==typeof n&&(e._ids[n]=o)}function le(e,t,n){ye(e,t,"attr",n)}function fe(e,t,n){"string"==typeof n&&(n=n.split(/\s+/)),n.forEach(function(e,t){n.splice.apply(n,[t,1].concat(e.split(/\s+/)))});for(var r={},o=
n.length,i=0;i<o;i++)!function(e){var o=t[n[e]];o&&Object.keys(o).forEach(function(e){r[e]=o[e]})}(i);e.setClassStyle(r)}function de(e,t,n){if("function"==typeof n||Array.isArray(n)){if(Array.isArray(n)&&!n.length)return void t.setClassStyle({});var r=e._options&&e._options.style||{};if("function"==typeof n){var o=_e(e,n,function(e){fe(t,r,e)});fe(t,r,o)}else fe(t,r,n)}}function pe(e,t,n){ye(e,t,"style",n)}function he(e,t,n,r){t.addEvent(n,k(r,e))}function ve(e,t,n){if(n)for(var r=Object.keys(n),o=r.length;o--;){var i=r[o],a=n[i];"string"==typeof a&&((a=e[a])||console.warn('[JS Framework] The event handler "'+a+'" is not defined.')),he(e,t,i,a)}}function ye(e,t,n,r){if(r)for(var o=Object.keys(r),i=o.length;i--;){var a=o[i],s=r[a];"function"==typeof s?me(e,t,n,a,s):t[Br[n]](a,s)}}function me(e,t,n,r,o){var i=Br[n],a=_e(e,o,function(n){function o(){t[i](r,n)}var a=e&&e._app&&e._app.differ;a?a.append("element",t.depth,t.ref,o):o()});t[i](r,a)}function _e(e,t,n){return e._static?t.call(
e,e):new L(e,t,function(e,t){"object"!=typeof e&&e===t||n(e)}).value}function ge(e,t){return e._app.doc.createBody(t)}function be(e,t){return e._app.doc.createElement(t)}function we(e,t){var n=Oe(e),r=Ee(e),o=Vr++;if(t.element){var i=t.updateMark;i?(i.element&&(i=i.end),t.element.insertAfter(r,i),t.element.insertAfter(n,i),t.updateMark=r):(t.element.insertBefore(n,t.end),t.element.insertBefore(r,t.end)),t=t.element}else t.appendChild(n),t.appendChild(r);return{start:n,end:r,element:t,blockId:o}}function Oe(e){return e._app.doc.createComment("start")}function Ee(e){return e._app.doc.createComment("end")}function xe(e,t,n){if(n.element){var r=n.end,o=n.updateMark;if(n.children&&n.children.push(t),o){var i=Se(e,t,o);return n.updateMark=t.element?t.end:t,i}if(!t.element)return n.element.insertBefore(t,r);n.element.insertBefore(t.start,r),n.element.insertBefore(t.end,r)}else{if(!t.element)return n.appendChild(t);n.appendChild(t.start),n.appendChild(t.end)}}function Se(e,t,n){return t.ele
ment?ke(t,n):Ce(t,n)}function Ce(e,t){var n=t.parentNode;if(n)return n.insertAfter(e,t)}function ke(e,t){var n=t.parentNode;if(n){for(var r,o=e.start,i=[o];o&&o!==e.end;)o=o.nextSibling,i.push(o);var a=t;return i.every(function(e){return r=n.insertAfter(e,a),a=e,-1!==r}),r}}function je(e,t,n){void 0===n&&(n=!1),t.element?Te(t,n):Ae(t),t._vm&&t._vm.$emit("hook:destroyed")}function Ae(e){var t=e.parentNode;t&&t.removeChild(e)}function Te(e,t){void 0===t&&(t=!1);for(var n=[],r=e.start.nextSibling;r&&r!==e.end;)n.push(r),r=r.nextSibling;t||Ae(e.start),n.forEach(function(e){Ae(e)}),t||Ae(e.end)}function Ie(e){var t=e._options||{},n=t.template||{};t.replace?n.children&&1===n.children.length?Ne(e,n.children[0],e._parentEl):Ne(e,n.children,e._parentEl):Ne(e,n,e._parentEl),console.debug('[JS Framework] "ready" lifecycle in Vm('+e._type+")"),e.$emit("hook:ready"),e._ready=!0}function Ne(e,t,n,r){if(-1!==(e._app||{}).lastSignal){if(t.attr&&t.attr.hasOwnProperty("static")&&(e._static=!0),Pe(t))
return void Le(e,t,n,r);if(r=r||{},Me(t))return console.debug('[JS Framework] compile "content" block by',t),void(e._content=we(e,n));if($e(t,r))return console.debug('[JS Framework] compile "repeat" logic by',t),void("document"===n.type?console.warn("[JS Framework] The root element does't support `repeat` directive!"):Ue(e,t,n));if(Re(t,r))return console.debug('[JS Framework] compile "if" logic by',t),void("document"===n.type?console.warn("[JS Framework] The root element does't support `if` directive!"):Be(e,t,n,r));var o=r.type||t.type;if(De(o,r))return void Ve(e,t,n,o,r);var i=o,a=Fe(e,t,i);if(a)return console.debug("[JS Framework] compile composed component by",t),void qe(e,a,t,n,i,r);console.debug("[JS Framework] compile native component by",t),We(e,t,n,i)}}function Pe(e){return Array.isArray(e)}function Me(e){return"content"===e.type||"slot"===e.type}function $e(e,t){return!t.hasOwnProperty("repeat")&&e.repeat}function Re(e,t){return!t.hasOwnProperty("shown")&&e.shown}function
De(e,t){return"function"==typeof e&&!t.hasOwnProperty("type")}function Fe(e,t,n){var r;return e._app&&e._app.customComponentMap&&(r=e._app.customComponentMap[n]),e._options&&e._options.components&&(r=e._options.components[n]),t.component&&(r=r||{}),r}function Le(e,t,n,r){var o=we(e,n);t.forEach(function(t){Ne(e,t,o,r)})}function Ue(e,t,n){var r=t.repeat,o="function"==typeof r,i=r.getter||r.expression||r;"function"!=typeof i&&(i=function(){return[]});var a=r.key||"$index",s=r.value||"$value",u=r.trackBy||t.trackBy||t.attr&&t.attr.trackBy,c=we(e,n);c.children=[],c.data=[],c.vms=[],Je(e,t,c,{getter:i,key:a,value:s,trackBy:u,oldStyle:o})}function Be(e,t,n,r){var o={shown:!0},i=we(e,n);n.element&&n.children&&n.children.push(i),r.repeat&&(o.repeat=r.repeat),He(e,t,i,o)}function Ve(e,t,n,r,o){var i=r.call(e),a=E({type:i},o),s=we(e,n);n.element&&n.children&&n.children.push(s),_e(e,r,function(n){var r=E({type:n},o);je(e,s,!0),Ne(e,t,s,r)}),Ne(e,t,s,a)}function qe(e,t,n,r,o,i){var a=e.constru
ctor,s=new a(o,t,e,r,void 0,{"hook:init":function(){e._static&&(this._static=e._static),ce(e,null,n.id,this),this._externalBinding={parent:e,template:n}},"hook:created":function(){oe(e,this,n,i.repeat)},"hook:ready":function(){this._content&&ze(e,n,this._content)}});ie(e,s,n,r)}function We(e,t,n,r){ne(t);var o;if("_documentElement"===n.ref?(console.debug("[JS Framework] compile to create body for "+r),o=ge(e,r)):(console.debug("[JS Framework] compile to create element for "+r),o=be(e,r)),!e._rootEl){e._rootEl=o;var i=e._externalBinding||{},a=i.template,s=i.parent;if(a&&a.events&&s&&o)for(var u in a.events){var c=s[a.events[u]];c&&o.addEvent(u,k(c,s))}}re(e,o,t),t.attr&&t.attr.append&&(t.append=t.attr.append),t.append&&(o.attr=o.attr||{},o.attr.append=t.append);var l="tree"===t.append,f=e._app||{};-1===f.lastSignal||l||(console.debug("[JS Framework] compile to append single node for",o),f.lastSignal=xe(e,o,n)),-1!==f.lastSignal&&ze(e,t,o),-1!==f.lastSignal&&l&&(console.debug("[JS Fra
mework] compile to append whole tree for",o),f.lastSignal=xe(e,o,n))}function ze(e,t,n){var r=e._app||{},o=t.children;o&&o.length&&o.every(function(t){return Ne(e,t,n),-1!==r.lastSignal})}function Je(e,t,n,r){function o(e,r,o){var a;c?(a=e,j(e)?(a[l]=r,a.hasOwnProperty("INDEX")||Object.defineProperty(a,"INDEX",{value:function(){console.warn('[JS Framework] "INDEX" in repeat is deprecated, please use "$index" instead')}})):(console.warn("[JS Framework] Each list item must be an object in old-style repeat, please use `repeat={{v in list}}` instead."),a={},a[l]=r,a[f]=e)):(a={},a[l]=r,a[f]=e);var s=Xe(o,a);i.push(s),Ne(s,t,n,{repeat:e})}var i=n.vms,a=n.children,s=r.getter,u=r.trackBy,c=r.oldStyle,l=r.key,f=r.value,d=Ge(e,n,s,"repeat",function(t){if(console.debug('[JS Framework] the "repeat" item has changed',t),n&&t){var r=a.slice(),s=i.slice(),d=n.data.slice(),p={},h={};t.forEach(function(e,t){var n=u?e[u]:c?e[l]:t;null!=n&&""!==n&&(p[n]=e)});var v=[];d.forEach(function(t,n){var o=u?t
[u]:c?t[l]:n;p.hasOwnProperty(o)?(h[o]={item:t,index:n,key:o,target:r[n],vm:s[n]},v.push(t)):je(e,r[n])}),a.length=0,i.length=0,n.data=t.slice(),n.updateMark=n.start,t.forEach(function(t,r){var s=u?t[u]:c?t[l]:r,d=h[s];d?(d.item===v[0]?v.shift():(v.$remove(d.item),Se(e,d.target,n.updateMark,!0)),a.push(d.target),i.push(d.vm),c?d.vm=t:d.vm[f]=t,d.vm[l]=r,n.updateMark=d.target):o(t,r,e)}),delete n.updateMark}});n.data=d.slice(0),d.forEach(function(t,n){o(t,n,e)})}function He(e,t,n,r){var o=Ge(e,n,t.shown,"shown",function(o){console.debug('[JS Framework] the "if" item was changed',o),n&&!!n.display!=!!o&&(n.display=!!o,o?Ne(e,t,n,r):je(e,n,!0))});n.display=!!o,o&&Ne(e,t,n,r)}function Ge(e,t,n,r,o){var i=e&&e._app&&e._app.differ,a={},s=(t.element.depth||0)+1;return _e(e,n,function(e){a.latestValue=e,i&&!a.recorded&&i.append(r,s,t.blockId,function(){var e=a.latestValue;o(e),a.recorded=!1,a.latestValue=void 0}),a.recorded=!0})}function Xe(e,t){var n=Object.create(e);return n._data=t,Z(n),
Y(n),n._realParent=e,e._static&&(n._static=e._static),n}function Ke(e,t){if(t instanceof Ke)return t;this.timestamp=Date.now(),this.detail=t,this.type=e;var n=!1;this.stop=function(){n=!0},this.hasStopped=function(){return n}}function Ze(e,t){var n=this,r=this._vmEvents,o=r[e];if(o){var i=new Ke(e,t);o.forEach(function(e){e.call(n,i)})}}function Qe(e,t){var n=new Ke(e,t);this.$emit(e,n),!n.hasStopped()&&this._parent&&this._parent.$dispatch&&this._parent.$dispatch(e,n)}function Ye(e,t){var n=new Ke(e,t);this.$emit(e,n),!n.hasStopped()&&this._childrenVms&&this._childrenVms.forEach(function(t){t.$broadcast(e,n)})}function et(e,t){if(e&&"function"==typeof t){var n=this._vmEvents,r=n[e]||[];r.push(t),n[e]=r,"hook:ready"===e&&this._ready&&this.$emit("hook:ready")}}function tt(e,t){if(e){var n=this._vmEvents;if(!t)return void delete n[e];var r=n[e];r&&r.$remove(t)}}function nt(e,t){var n=e._options||{},r=n.events||{};for(var o in r)e.$on(o,r[o]);for(var i in t)e.$on(i,t[i]);qr.forEach(func
tion(t){e.$on("hook:"+t,n[t])})}function rt(e,t,n,r,o,i){n=n||{},this._parent=n._realParent?n._realParent:n,this._app=n._app||{},n._childrenVms&&n._childrenVms.push(this),!t&&this._app.customComponentMap&&(t=this._app.customComponentMap[e]),t=t||{};var a=t.data||{};this._options=t,this._methods=t.methods||{},this._computed=t.computed||{},this._css=t.style||{},this._ids={},this._vmEvents={},this._childrenVms=[],this._type=e,nt(this,i),console.debug('[JS Framework] "init" lifecycle in Vm('+this._type+")"),this.$emit("hook:init"),this._inited=!0,this._data="function"==typeof a?a():a,o&&E(this._data,o),K(this),console.debug('[JS Framework] "created" lifecycle in Vm('+this._type+")"),this.$emit("hook:created"),this._created=!0,t.methods&&t.methods.ready&&(console.warn('"exports.methods.ready" is deprecated, please use "exports.created" instead'),t.methods.ready.call(this)),this._app.doc&&(this._parentEl=r||this._app.doc.documentElement,Ie(this))}function ot(e,t){for(var n in e)!function(
n){var r=Wr[n];r||(r={},Wr[n]=r),e[n].forEach(function(e){"string"==typeof e&&(e={name:e}),r[e.name]&&!t||(r[e.name]=e)})}(n)}function it(e,t){var n=e.prototype;for(var r in t)n.hasOwnProperty(r)||(n[r]=t[r])}function at(e,t){var n=Wr[t],r={};for(var o in n)!function(n){Object.defineProperty(r,n,{configurable:!0,enumerable:!0,get:function(){return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return e.callTasks({module:t,method:n,args:r})}},set:function(r){if("function"==typeof r)return e.callTasks({module:t,method:n,args:[r]})}})}(o);return r}function st(e,t){return e.customComponentMap[t]}function ut(e,t,n){var r=e.customComponentMap;if(r[t])return void console.error("[JS Framework] define a component("+t+") that already exists");r[t]=n}function ct(e){if(zr.valid(e))return e;e="string"==typeof e?e:"";for(var t=e.split("."),n=0,r=[];n<3;){var o="string"==typeof t[n]&&t[n]?t[n]:"0";r.push(o),n++}return r.join(".")}function lt(e,t,n){var r={isDowngrade:!0,errorTyp
e:1,code:1e3},o=e.toLowerCase();return r.errorMessage=function(e,t,n){return"Downgrade["+e+"] :: deviceInfo "+t+" matched criteria "+n}(e,t,n),o.indexOf("osversion")>=0?r.code=1001:o.indexOf("appversion")>=0?r.code=1002:o.indexOf("weexversion")>=0?r.code=1003:o.indexOf("devicemodel")>=0&&(r.code=1004),r}function ft(e,t){t=t||global.WXEnvironment,t=A(t)?t:{};var n={isDowngrade:!1};if("function"===N(e)){var r=e.call(this,t,{semver:zr,normalizeVersion:ct});r=!!r,n=r?lt("custom","","custom params"):n}else{e=A(e)?e:{};var o=t.platform||"unknow",i=o.toLowerCase(),a=e[i]||{};for(var s in t){var u=s,c=u.toLowerCase(),l=t[s],f=c.indexOf("version")>=0,d=c.indexOf("devicemodel")>=0,p=a[s];if(p&&f){var h=ct(p),v=ct(t[s]);if(zr.satisfies(v,h)){n=lt(u,l,p);break}}else if(d){var y="array"===N(p)?p:[p];if(y.indexOf(l)>=0){n=lt(u,l,p);break}}}}return n}function dt(e,t){if(void 0===t&&(t={}),e&&e.callTasks)return e.callTasks([{module:"meta",method:"setViewport",args:[t]}])}function pt(e,t,n,r){consol
e.debug("[JS Framework] bootstrap for "+t);var o;if(kr(t))o=P(t);else{if(!Tr(t))return new Error("Wrong component name: "+t);if(o=M(t),!st(e,o))return new Error("It's not a component: "+t)}if(n=A(n)?n:{},"string"==typeof n.transformerVersion&&"string"==typeof global.transformerVersion&&!zr.satisfies(n.transformerVersion,global.transformerVersion))return new Error("JS Bundle version: "+n.transformerVersion+" not compatible with "+global.transformerVersion);var i=ft(n.downgrade);if(i.isDowngrade)return e.callTasks([{module:"instanceWrap",method:"error",args:[i.errorType,i.code,i.errorMessage]}]),new Error("Downgrade["+i.code+"]: "+i.errorMessage);n.viewport&&dt(e,n.viewport),e.vm=new rt(o,null,{_app:e},null,r)}function ht(e,t,n){console.warn("[JS Framework] Register is deprecated, please install lastest transformer."),ut(e,t,n)}function vt(e,t){console.debug("[JS Framework] Refresh with",t,"in instance["+e.id+"]");var n=e.vm;return n&&t?("function"==typeof n.refreshData?n.refreshData(
t):E(n,t),e.differ.flush(),void e.doc.taskCenter.send("dom",{action:"refreshFinish"},[])):new Error('invalid data "'+t+'"')}function yt(e){console.debug("[JS Framework] Destory an instance("+e.id+")"),e.vm&&mt(e.vm),e.id="",e.options=null,e.blocks=null,e.vm=null,e.doc.taskCenter.destroyCallback(),e.doc.destroy(),e.doc=null,e.customComponentMap=null,e.commonModules=null}function mt(e){if(delete e._app,delete e._computed,delete e._css,delete e._data,delete e._ids,delete e._methods,delete e._options,delete e._parent,delete e._parentEl,delete e._rootEl,e._watchers){for(var t=e._watchers.length;t--;)e._watchers[t].teardown();delete e._watchers}if(e._childrenVms){for(var n=e._childrenVms.length;n--;)mt(e._childrenVms[n]);delete e._childrenVms}console.debug('[JS Framework] "destroyed" lifecycle in Vm('+e._type+")"),e.$emit("hook:destroyed"),delete e._type,delete e._vmEvents}function _t(e){var t=e.doc||{},n=t.body||{};return n.toJSON?n.toJSON():{}}function gt(e,t,n,r,o){if(console.debug('[J
S Framework] Fire a "'+n+'" event on an element('+t+") in instance("+e.id+")"),Array.isArray(t))return void t.some(function(t){return!1!==gt(e,t,n,r)});var i=e.doc.getRef(t);if(i){var a=e.doc.fireEvent(i,n,r,o);return e.differ.flush(),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),a}return new Error('invalid element reference "'+t+'"')}function bt(e,t,n,r){console.debug("[JS Framework] Invoke a callback("+t+") with",n,"in instance("+e.id+")");var o=e.doc.taskCenter.callback(t,n,r);return wt(e),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),o}function wt(e){e.differ.flush()}function Ot(e,t){var n;return"array"!==N(t)&&(t=[t]),t.forEach(function(t){n=e.doc.taskCenter.send("module",{module:t.module,method:t.method},t.args)}),n}function Et(e,t,n,r){console.debug("[JS Framework] Intialize an instance with:\n",n);var o,i=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Jr.apply(void 0,[e].concat(t))},a=function(t,r,i){o=pt(e,t,r,i||n),wt(e),e.doc.
listener.createFinish(),console.debug("[JS Framework] After intialized an instance("+e.id+")")},s=rt,u=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return ht.apply(void 0,[e].concat(t))},c=function(t,n){o=pt(e,t,{},n)},l=function(t){return function(n){o=pt(e,t,{},n)}},f=e.doc,d=function(t){return e.requireModule(P(t))},p={config:e.options,define:i,bootstrap:a,requireModule:d,document:f,Vm:s};Object.freeze(p);var h;"function"==typeof t?h=t.toString().substr(12):t&&(h=t.toString()),h='(function(global){\n\n"use strict";\n\n '+h+" \n\n})(Object.create(this))";var v=global.WXEnvironment,y={};if(v&&"Web"!==v.platform){var m=e.requireModule("timer");Object.assign(y,{setTimeout:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=function(){t[0].apply(t,t.slice(2))};return m.setTimeout(r,t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},setInterval:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=function(){t[0]
.apply(t,t.slice(2))};return m.setInterval(r,t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},clearTimeout:function(e){m.clearTimeout(e)},clearInterval:function(e){m.clearInterval(e)}})}var _=Object.assign({define:i,require:l,bootstrap:a,register:u,render:c,__weex_define__:i,__weex_bootstrap__:a,__weex_document__:f,__weex_require__:d,__weex_viewmodel__:s,weex:p},y,r);return St(_,h)||xt(_,h),o}function xt(e,t){var n=[],r=[];for(var o in e)n.push(o),r.push(e[o]);return n.push(t),(new(Function.prototype.bind.apply(Function,[null].concat(n)))).apply(void 0,r)}function St(e,t){if("function"!=typeof compileAndRunBundle)return!1;var n=void 0,r=!1,o="(function (",i=[],a=[];for(var s in e)i.push(s),a.push(e[s]);for(var u=0;u<i.length-1;++u)o+=i[u],o+=",";o+=i[i.length-1],o+=") {",o+=t,o+="} )";try{var c=e.weex||{},l=c.config||{};n=compileAndRunBundle(o,l.bundleUrl,l.bundleDigest,l.codeCachePath),n&&"function"==typeof n&&(n.apply(void 0,a),r=!0)}catch(e){console.error(e)}retu
rn r}function Ct(e,t){var n=e[t];for(var r in n)n[r]()}function kt(e,t){var n=e[t];for(var r in n){n[r].forEach(function(e){e()})}}function jt(e,t){this.id=e,this.options=t||{},this.vm=null,this.customComponentMap={},this.commonModules={},this.doc=new Lr.Document(e,this.options.bundleUrl,null,Lr.Listener),this.differ=new Hr(e)}function At(e,t,n,r,o){var i=o||{},a=i.services;F();var s=Gr[e];n=n||{};var u;return s?u=new Error('invalid instance id "'+e+'"'):(s=new jt(e,n),Gr[e]=s,u=Et(s,t,r,a)),u instanceof Error?u:s}function Tt(e){Lr.Document=e.Document,Lr.Element=e.Element,Lr.Comment=e.Comment,Lr.sendTasks=e.sendTasks,Lr.Listener=e.Listener}function It(e,t){var n=Gr[e];return n?vt(n,t):new Error('invalid instance id "'+e+'"')}function Nt(e){"function"==typeof markupState&&markupState(),F();var t=Gr[e];if(!t)return new Error('invalid instance id "'+e+'"');yt(t),delete Gr[e];var n=Math.round(e);if(n>0){n%18||"function"!=typeof notifyTrimMemory||notifyTrimMemory()}return Gr}function Pt(
e){Array.isArray(e)&&e.forEach(function(e){e&&("string"==typeof e?Xr[e]=!0:"object"==typeof e&&"string"==typeof e.type&&(Xr[e.type]=e))})}function Mt(e){"object"==typeof e&&ot(e)}function $t(e){"object"==typeof e&&it(rt,e)}function Rt(e,t){if(Gr[e]&&Array.isArray(t)){var n=[];return t.forEach(function(t){var r=Kr[t.method],o=[].concat(t.args);"function"==typeof r&&(o.unshift(e),n.push(r.apply(void 0,o)))}),n}return new Error('invalid instance id "'+e+'" or tasks')}function Dt(e){var t=Gr[e];return t?_t(t):new Error('invalid instance id "'+e+'"')}function Ft(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=Qs(t),this.reject=Qs(n)}function Lt(){if(Bt(),global.WXEnvironment&&"Web"!==global.WXEnvironment.platform)global.console={debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Vt("debug")&&global.nativeLog.apply(global,qt(e).concat(["__DEBUG"]))},log:function(){for(var e=[],t=ar
guments.length;t--;)e[t]=arguments[t];Vt("log")&&global.nativeLog.apply(global,qt(e).concat(["__LOG"]))},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Vt("info")&&global.nativeLog.apply(global,qt(e).concat(["__INFO"]))},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Vt("warn")&&global.nativeLog.apply(global,qt(e).concat(["__WARN"]))},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Vt("error")&&global.nativeLog.apply(global,qt(e).concat(["__ERROR"]))}};else{var e=console.debug,t=console.log,n=console.info,r=console.warn,o=console.error;console.__ori__={debug:e,log:t,info:n,warn:r,error:o},console.debug=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Vt("debug")&&console.__ori__.debug.apply(console,e)},console.log=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Vt("log")&&console.__ori__.log.apply(console,e)},console.info=function(){for(var e=[],t=arguments.length;t--;)e[t]=arg
uments[t];Vt("info")&&console.__ori__.info.apply(console,e)},console.warn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Vt("warn")&&console.__ori__.warn.apply(console,e)},console.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];Vt("error")&&console.__ori__.error.apply(console,e)}}}function Ut(){zu={},global.console=Ju}function Bt(){Wu.forEach(function(e){var t=Wu.indexOf(e);zu[e]={},Wu.forEach(function(n){Wu.indexOf(n)<=t&&(zu[e][n]=!0)})})}function Vt(e){var t=global.WXEnvironment&&global.WXEnvironment.logLevel||"log";return zu[t]&&zu[t][e]}function qt(e){return e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):String(e)})}function Wt(){if(void 0===setTimeout&&"function"==typeof Gu){var e={},t=0;global.setTimeout=function(n,r){e[++t]=n,Gu(t.toString(),r)},global.setTimeoutCallback=function(t){"function"==typeof e[t]&&(e[t](),delete e[t])}}}function zt(){global.setTimeout=Hu,glo
bal.setTimeoutCallback=null}function Jt(){Object.freeze(Object),Object.freeze(Array),Ht(),Object.freeze(Array.prototype),Object.freeze(String.prototype),Object.freeze(Number.prototype),Object.freeze(Boolean.prototype),Gt(),Object.freeze(Date.prototype),Object.freeze(RegExp.prototype)}function Ht(){var e=Object.prototype,t="Object.prototype";Xt(e,"__defineGetter__",t),Xt(e,"__defineSetter__",t),Xt(e,"__lookupGetter__",t),Xt(e,"__lookupSetter__",t),Xt(e,"constructor",t),Xt(e,"hasOwnProperty",t),Xt(e,"isPrototypeOf",t),Xt(e,"propertyIsEnumerable",t),Xt(e,"toLocaleString",t),Xt(e,"toString",t),Xt(e,"valueOf",t),Object.seal(e)}function Gt(){var e=Error.prototype,t="Error.prototype";Xt(e,"name",t),Xt(e,"message",t),Xt(e,"toString",t),Xt(e,"constructor",t),Object.seal(e)}function Xt(e,t,n){if(e.hasOwnProperty(t)){var r=e[t];Object.defineProperty(e,t,{get:function(){return r},set:function(r){if(this===e)throw Error("Cannot assign to read only property "+t+" of "+n);return Object.definePrope
rty(this,t,{value:r,writable:!0}),r}})}}function Kt(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function Zt(e){if("function"!=typeof btoa)return"";var t=Array.prototype.map.call(new Uint8Array(e),function(e){return String.fromCharCode(e)}).join("");return btoa(t)}function Qt(e){if("function"!=typeof atob)return new ArrayBuffer(0);var t=atob(e),n=new Uint8Array(t.length);return Array.prototype.forEach.call(t,function(e,t){n[t]=e.charCodeAt(0)}),n.buffer}function Yt(e){var t=Kt(e);switch(t){case"Undefined":case"Null":return"";case"RegExp":return e.toString();case"Date":return e.toISOString();case"Number":case"String":case"Boolean":case"Array":case"Object":return e;case"ArrayBuffer":return{"@type":"binary",dataType:t,base64:Zt(e)};case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return{"@type":"binary",dataType:t,base64:Zt(e.buffer)};defaul
t:return JSON.stringify(e)}}function en(e){if("Object"===Kt(e)){
-if(e["@type"]&&"binary"===e["@type"])return Qt(e.base64||"");var t={};for(var n in e)t[n]=en(e[n]);return t}return"Array"===Kt(e)?e.map(en):e}function tn(e,t){e&&(Ku[e]=t)}function nn(e){return Ku[e]}function rn(e){delete Ku[e]}function on(e){var t=Ku[e];return t&&t.taskCenter?t.taskCenter:null}function an(){return(Zu++).toString()}function sn(e,t,n){var r=e.documentElement;if(!(r.pureChildren.length>0||t.parentNode)){var o=r.children,i=o.indexOf(n);i<0?o.push(t):o.splice(i,0,t),1===t.nodeType?("body"===t.role?(t.docId=e.id,t.ownerDocument=e,t.parentNode=r,ln(t,r)):(t.children.forEach(function(e){e.parentNode=t}),cn(e,t),t.docId=e.id,t.ownerDocument=e,ln(t,r),delete e.nodeMap[t.nodeId]),r.pureChildren.push(t),un(e,t)):(t.parentNode=r,e.nodeMap[t.ref]=t)}}function un(e,t){var n=t.toJSON(),r=n.children;delete n.children;var o=e.taskCenter.send("dom",{action:"createBody"},[n]);return r&&r.forEach(function(t){o=e.taskCenter.send("dom",{action:"addElement"},[n.ref,t,-1])}),o}function cn(
e,t){t.role="body",t.depth=1,delete e.nodeMap[t.nodeId],t.ref="_root",e.nodeMap._root=t,e.body=t}function ln(e,t){e.parentNode=t,t.docId&&(e.docId=t.docId,e.ownerDocument=t.ownerDocument,e.ownerDocument.nodeMap[e.nodeId]=e,e.depth=t.depth+1),e.children.forEach(function(t){ln(t,e)})}function fn(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function dn(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function pn(e,t,n,r){n<0&&(n=0);var o=t[n-1],i=t[n];return t.splice(n,0,e),r&&(o&&(o.nextSibling=e),e.previousSibling=o,e.nextSibling=i,i&&(i.previousSibling=e)),n}function hn(e,t,n,r){var o=t.indexOf(e);if(o<0)return-1;if(r){var i=t[o-1],a=t[o+1];i&&(i.nextSibling=a),a&&(a.previousSibling=i)}t.splice(o,1);var s=n;o<=n&&(s=n-1);var u=t[s-1],c=t[s];return t.splice(s,0,e),r&&(u&&(u.nextSibling=e),e.previousSibling=u,e.nextSibling=c,c&&(c.previousSibling=e)),o===s?-1:n}function vn(e,t,n){var r=t.indexOf(e);if(!(r<0)){if(n){var o=t[r-1],i=t[r+1];o&&(o.nextSibling=i),i&&(i
.previousSibling=o)}t.splice(r,1)}}function yn(){this.nodeId=an(),this.ref=this.nodeId,this.children=[],this.pureChildren=[],this.parentNode=null,this.nextSibling=null,this.previousSibling=null}function mn(e,t){if(t&&t.length){var n=function(t){Qu.call(this,e,t,!0)};n.prototype=Object.create(Qu.prototype),Object.defineProperty(n.prototype,"constructor",{configurable:!1,enumerable:!1,writable:!1,value:Qu}),t.forEach(function(t){n.prototype[t]=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o=on(this.docId);if(o)return o.send("component",{ref:this.ref,component:e,method:t},n)}}),Yu[e]=n}}function _n(e,t,n){void 0===e&&(e=ec);var r=Yu[e];if(r&&!n)return new r(t);t=t||{},this.nodeType=1,this.nodeId=an(),this.ref=this.nodeId,this.type=e,this.attr=t.attr||{},this.style=t.style||{},this.classStyle=t.classStyle||{},this.event={},this.children=[],this.pureChildren=[]}function gn(e,t){nn(e).nodeMap[t.nodeId]=t}function bn(){var e={createFinish:global.callCreateFinish,upd
ateFinish:global.callUpdateFinish,refreshFinish:global.callRefreshFinish,createBody:global.callCreateBody,addElement:global.callAddElement,removeElement:global.callRemoveElement,moveElement:global.callMoveElement,updateAttrs:global.callUpdateAttrs,updateStyle:global.callUpdateStyle,addEvent:global.callAddEvent,removeEvent:global.callRemoveEvent},t=rc.prototype;for(var n in e)!function(n){var r=e[n];t[n]=r?function(e,t){return r.apply(void 0,[e].concat(t))}:function(e,t){return nc(e,[{module:"dom",method:n,args:t}],"-1")}}(n);t.componentHandler=global.callNativeComponent||function(e,t,n,r,o){return nc(e,[{component:o.component,ref:t,method:n,args:r}])},t.moduleHandler=global.callNativeModule||function(e,t,n,r){return nc(e,[{module:t,method:n,args:r}])}}function wn(e,t){En(e)?console.warn('Service "'+e+'" has been registered already!'):(t=Object.assign({},t),ac.push({name:e,options:t}))}function On(e){ac.some(function(t,n){if(t.name===e)return ac.splice(n,1),!0})}function En(e){return
xn(e)>=0}function xn(e){return ac.map(function(e){return e.name}).indexOf(e)}function Sn(e){var t,n=sc.exec(e);if(n)try{t=JSON.parse(n[1])}catch(e){}return t}function Cn(e,t,n){var r=Object.create(null);return r.service=Object.create(null),ac.forEach(function(o){var i=(o.name,o.options),a=i.create;if(a){var s=a(e,t,n);Object.assign(r.service,s),Object.assign(r,s.instance)}}),delete r.service.instance,Object.freeze(r.service),r}function kn(e,t,n,r){var o=uc[e];if(!o){o=Sn(t)||{},oc[o.framework]||(o.framework="Weex"),n=JSON.parse(JSON.stringify(n||{})),n.bundleVersion=o.version,n.env=JSON.parse(JSON.stringify(global.WXEnvironment||{})),console.debug("[JS Framework] create an "+o.framework+"@"+n.bundleVersion+" instance from "+n.bundleVersion);var i={info:o,config:n,created:Date.now(),framework:o.framework};return i.services=Cn(e,i,ic),uc[e]=i,oc[o.framework].createInstance(e,t,n,r,i)}return new Error('invalid instance id "'+e+'"')}function jn(e){cc[e]=function(){for(var t=[],n=argume
nts.length;n--;)t[n]=arguments[n];"registerComponents"===e&&An(t[0]);for(var r in oc){var o=oc[r];o&&o[e]&&o[e].apply(o,t)}}}function An(e){Array.isArray(e)&&e.forEach(function(e){e&&e.type&&e.methods&&mn(e.type,e.methods)})}function Tn(e){cc[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=uc[r];if(o&&oc[o.framework]){var i=(a=oc[o.framework])[e].apply(a,t);return"refreshInstance"===e?ac.forEach(function(e){var t=e.options.refresh;t&&t(r,{info:o,runtime:ic})}):"destroyInstance"===e&&(ac.forEach(function(e){var t=e.options.destroy;t&&t(r,{info:o,runtime:ic})}),delete uc[r]),i}return new Error('invalid instance id "'+r+'"');var a}}function In(e,t){cc[t]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=uc[r];return o&&oc[o.framework]?(i=oc[o.framework])[e].apply(i,t):new Error('invalid instance id "'+r+'"');var i}}function Nn(e){ic=e||{},oc=ic.frameworks||{},bn();for(var t in oc){oc[t].init(e)}return["registerComponents","
registerModules","registerMethods"].forEach(jn),["destroyInstance","refreshInstance","receiveTasks","getRoot"].forEach(Tn),In("receiveTasks","callJS"),cc}function Pn(e){this.nodeType=8,this.nodeId=an(),this.ref=this.nodeId,this.type="comment",this.value=e,this.children=[],this.pureChildren=[]}function Mn(e,t){this.id=e,this.batched=!1,this.updates=[],"function"==typeof t?Object.defineProperty(this,"handler",{configurable:!0,enumerable:!0,writable:!0,value:t}):console.error("[JS Runtime] invalid parameter, handler must be a function")}function $n(e,t){return void 0===t&&(t=[]),{module:"dom",method:e,args:t}}function Rn(e,t){var n=t||global.callNative;return"function"!=typeof n&&console.error("[JS Runtime] no default handler"),function(t){Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var o=Fn(e,t[r],n);if(-1===o)return o}}}function Dn(e,t){return"dom"===e&&lc[t]&&"function"==typeof global[lc[t]]}function Fn(e,t,n){var r=t.module,o=t.method,i=t.args;return Dn(r,o)?global[lc[o]]
.apply(global,[e].concat(i,["-1"])):n(e,[t],"-1")}function Ln(e,t,n){e=e?e.toString():"",this.id=e,this.URL=t,tn(e,this),this.nodeMap={};var r=Ln.Listener||Mn;this.listener=new r(e,n||Rn(e,Ln.handler)),this.taskCenter=new rc(e,n?function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return n.apply(void 0,t)}:Ln.handler),this.createDocumentElement()}function Un(e,t){var n=t.attrs||{};for(var r in n)e.setAttr(r,n[r],!0);var o=t.style||{};for(var i in o)e.setStyle(i,o[i],!0)}function Bn(){Jt(),Object.freeze(fc.Element),Object.freeze(fc.Comment),Object.freeze(fc.Listener),Object.freeze(fc.Document.prototype),Object.freeze(fc.Element.prototype),Object.freeze(fc.Comment.prototype),Object.freeze(fc.Listener.prototype)}function Vn(e,t){void 0===t&&(t={}),this.type=e||"message",this.data=t.data||null,this.origin=t.origin||"",this.source=t.source||null,this.ports=t.ports||[],this.target=null,this.timeStamp=Date.now()}function qn(){}function Wn(e,t,n,r){console.warn("[Upgrad
e Warning] $userTrack will be removed in the next version!"),console.warn("[JS Framework] Vm#$userTrack is deprecated, please use \"require('@weex-module/userTrack').commit(type, name, comName, param)\" instead"),this._app.requireModule("userTrack").commit(e,t,n,r)}function zn(e,t){if(console.warn("[Upgrade Warning] $sendMtop will be removed in the next version!"),console.warn("[JS Framework] Vm#$sendMtop is deprecated, please use \"require('@weex-module/stream').sendMtop(params, callback)\" instead"),"undefined"==typeof window){this._app.requireModule("windvane").call({class:"MtopWVPlugin",method:"send",data:e},t)}else{this._app.requireModule("stream").sendMtop(e,t)}}function Jn(e,t){console.warn("[Upgrade Warning] $callWindvane will be removed in the next version!"),console.warn("[JS Framework] Vm#$callWindvane is deprecated, please use \"require('@weex-module/windvane').call(params, callback)\" instead"),this._app.requireModule("windvane").call(e,t)}function Hn(e,t){console.warn(
"[Upgrade Warning] $setSpm will be removed in the next version!"),console.warn("[JS Framework] Vm#$setSpm is deprecated, please use \"require('@weex-module/pageInfo').setSpm(a, b)\" instead"),this._app.requireModule("pageInfo").setSpm(e,t)}function Gn(e){console.warn("[Upgrade Warning] $getUserInfo will be removed in the next version!"),console.warn("[JS Framework] Vm#$getUserInfo is deprecated, please use \"require('@weex-module/user').getUserInfo(callback)\" instead"),this._app.requireModule("user").getUserInfo(e)}function Xn(e){console.warn("[Upgrade Warning] $login will be removed in the next version!"),console.warn("[JS Framework] Vm#$login is deprecated, please use \"require('@weex-module/user').login(callback)\" instead"),this._app.requireModule("user").login(e)}function Kn(e){console.warn("[Upgrade Warning] $logout will be removed in the next version!"),console.warn("[JS Framework] Vm#$logout is deprecated, please use \"require('@weex-module/user').logout(callback)\" instead
"),this._app.requireModule("user").logout(e)}var Zn,Qn={},Yn={},er=Object.freeze({init:e,registerComponents:t,registerModules:n,registerMethods:r,prepareInstance:o,createInstance:i,refreshInstance:a,destroyInstance:s,getRoot:u,receiveTasks:c}),tr="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{},nr=f(function(e){e.exports=function(e,t){function n(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function i(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Object]"===kn.call(e)}function c(e){return"[object RegExp]"===kn.call(e)}function l(e){var t=parseFloat(e);return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Objec
t.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}function h(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function v(e,t){return An.call(e,t)}function y(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function m(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 _(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function g(e,t){for(var n in t)e[n]=t[n];return e}function b(e){for(var t={},n=0;n<e.length;n++)e[n]&&g(t,e[n]);return t}function w(e,t,n){}function O(e,t){if(e===t)return!0;var n=s(e),r=s(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 O(e,t[n])});if(o||i)return!1;var a=Object.keys(e),u=Object.keys(t);return a.length===u.length&
&a.every(function(n){return O(e[n],t[n])})}catch(e){return!1}}function E(e,t){for(var n=0;n<e.length;n++)if(O(e[n],t))return n;return-1}function x(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function S(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function C(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function k(e){if(!Vn.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}function j(e,t,n){if(Un.errorHandler)Un.errorHandler.call(null,e,t,n);else{if(!zn||"undefined"==typeof console)throw e;console.error(e)}}function A(e){return"function"==typeof e&&/native code/.test(e.toString())}function T(e){ar.target&&sr.push(ar.target),ar.target=e}function I(){ar.target=sr.pop()}function N(e,t,n){e.__proto__=t}function P(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];C(e,i,t[i])}}function M(e,t){if(s(e)){var n;return v(e,"__ob__")&&e.__ob__ instanceof dr?n=e.__ob__
:fr.shouldConvert&&!er()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new dr(e)),t&&n&&n.vmCount++,n}}function $(e,t,n,r,o){var i=new ar,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set,c=!o&&M(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ar.target&&(i.depend(),c&&c.dep.depend(),Array.isArray(t)&&F(t)),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||(u?u.call(e,t):n=t,c=!o&&M(t),i.notify())}})}}function R(e,t,n){if(Array.isArray(e)&&l(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(v(e,t))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?($(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function D(e,t){if(Array.isArray(e)&&l(t))return void e.splice(t,1);var n=e.__ob__;e._isVue||n&&n.vmCount||v(e,t)&&(delete e[t],n&&n.dep.notify())}function F(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Arra
y.isArray(t)&&F(t)}function L(e,t){if(!t)return e;for(var n,r,o,i=Object.keys(t),a=0;a<i.length;a++)n=i[a],r=e[n],o=t[n],v(e,n)?u(r)&&u(o)&&L(r,o):R(e,n,o);return e}function U(e,t,n){return n?e||t?function(){var r="function"==typeof t?t.call(n):t,o="function"==typeof e?e.call(n):void 0;return r?L(r,o):o}:void 0:t?e?function(){return L("function"==typeof t?t.call(this):t,"function"==typeof e?e.call(this):e)}:t:e}function B(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function V(e,t){var n=Object.create(e||null);return t?g(n,t):n}function q(e){var t=e.props;if(t){var n,r,o,i={};if(Array.isArray(t))for(n=t.length;n--;)"string"==typeof(r=t[n])&&(o=In(r),i[o]={type:null});else if(u(t))for(var a in t)r=t[a],o=In(a),i[o]=u(r)?r:{type:r};e.props=i}}function W(e){var t=e.inject;if(Array.isArray(t))for(var n=e.inject={},r=0;r<t.length;r++)n[t[r]]=t[r]}function z(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function J(e,t,n){func
tion r(r){var o=pr[r]||hr;u[r]=o(e[r],t[r],n,r)}"function"==typeof t&&(t=t.options),q(t),W(t),z(t);var o=t.extends;if(o&&(e=J(e,o,n)),t.mixins)for(var i=0,a=t.mixins.length;i<a;i++)e=J(e,t.mixins[i],n);var s,u={};for(s in e)r(s);for(s in t)v(e,s)||r(s);return u}function H(e,t,n,r){if("string"==typeof n){var o=e[t];if(v(o,n))return o[n];var i=In(n);if(v(o,i))return o[i];var a=Nn(i);if(v(o,a))return o[a];var s=o[n]||o[i]||o[a];return s}}function G(e,t,n,r){var o=t[e],i=!v(n,e),a=n[e];if(Z(Boolean,o.type)&&(i&&!v(o,"default")?a=!1:Z(String,o.type)||""!==a&&a!==Mn(e)||(a=!0)),void 0===a){a=X(r,o,e);var s=fr.shouldConvert;fr.shouldConvert=!0,M(a),fr.shouldConvert=s}return a}function X(e,t,n){if(v(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==K(t.type)?r.call(e):r}}function K(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Z(e,t){if(!Array.is
Array(t))return K(t)===K(e);for(var n=0,r=t.length;n<r;n++)if(K(t[n])===K(e))return!0;return!1}function Q(e){return new vr(void 0,void 0,void 0,String(e))}function Y(e){var t=new vr(e.tag,e.data,e.children,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.isCloned=!0,t}function ee(e){for(var t=e.length,n=new Array(t),r=0;r<t;r++)n[r]=Y(e[r]);return n}function te(e){function t(){var e=arguments,n=t.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var r=n.slice(),o=0;o<r.length;o++)r[o].apply(null,e)}return t.fns=e,t}function ne(e,t,r,o,i){var a,s,u,c;for(a in e)s=e[a],u=t[a],c=gr(a),n(s)||(n(u)?(n(s.fns)&&(s=e[a]=te(s)),r(c.name,s,c.once,c.capture,c.passive)):s!==u&&(u.fns=s,e[a]=u));for(a in t)n(e[a])&&(c=gr(a),o(c.name,t[a],c.capture))}function re(e,t,i){function a(){i.apply(this,arguments),h(s.fns,a)}var s,u=e[t];n(u)?s=te([a]):r(u.fns)&&o(u.merged)?(s=u,s.fns.push(a)):s=te([u,a]),s.mer
ged=!0,e[t]=s}function oe(e,t,o){var i=t.options.props;if(!n(i)){var a={},s=e.attrs,u=e.props;if(r(s)||r(u))for(var c in i){var l=Mn(c);ie(a,u,c,l,!0)||ie(a,s,c,l,!1)}return a}}function ie(e,t,n,o,i){if(r(t)){if(v(t,n))return e[n]=t[n],i||delete t[n],!0;if(v(t,o))return e[n]=t[o],i||delete t[o],!0}return!1}function ae(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function se(e){return a(e)?[Q(e)]:Array.isArray(e)?ce(e):void 0}function ue(e){return r(e)&&r(e.text)&&i(e.isComment)}function ce(e,t){var i,s,u,c=[];for(i=0;i<e.length;i++)s=e[i],n(s)||"boolean"==typeof s||(u=c[c.length-1],Array.isArray(s)?c.push.apply(c,ce(s,(t||"")+"_"+i)):a(s)?ue(u)?u.text+=String(s):""!==s&&c.push(Q(s)):ue(s)&&ue(u)?c[c.length-1]=Q(u.text+s.text):(o(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+i+"__"),c.push(s)));return c}function le(e,t){return e.__esModule&&e.default&&(e=e.default),s(e)?t.extend(e):e}function fe(e,t,n,r,o){var
i=_r();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function de(e,t,i){if(o(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;if(o(e.loading)&&r(e.loadingComp))return e.loadingComp;if(!r(e.contexts)){var a=e.contexts=[i],u=!0,c=function(){for(var e=0,t=a.length;e<t;e++)a[e].$forceUpdate()},l=x(function(n){e.resolved=le(n,t),u||c()}),f=x(function(t){r(e.errorComp)&&(e.error=!0,c())}),d=e(l,f);return s(d)&&("function"==typeof d.then?n(e.resolved)&&d.then(l,f):r(d.component)&&"function"==typeof d.component.then&&(d.component.then(l,f),r(d.error)&&(e.errorComp=le(d.error,t)),r(d.loading)&&(e.loadingComp=le(d.loading,t),0===d.delay?e.loading=!0:setTimeout(function(){n(e.resolved)&&n(e.error)&&(e.loading=!0,c())},d.delay||200)),r(d.timeout)&&setTimeout(function(){n(e.resolved)&&f(null)},d.timeout))),u=!1,e.loading?e.loadingComp:e.resolved}e.contexts.push(i)}function pe(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];
if(r(n)&&r(n.componentOptions))return n}}function he(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&me(e,t)}function ve(e,t,n){n?mr.$once(e,t):mr.$on(e,t)}function ye(e,t){mr.$off(e,t)}function me(e,t,n){mr=e,ne(t,n||{},ve,ye,e)}function _e(e,t){var n={};if(!e)return n;for(var r=[],o=0,i=e.length;o<i;o++){var a=e[o];if(a.context!==t&&a.functionalContext!==t||!a.data||null==a.data.slot)r.push(a);else{var s=a.data.slot,u=n[s]||(n[s]=[]);"template"===a.tag?u.push.apply(u,a.children):u.push(a)}}return r.every(ge)||(n.default=r),n}function ge(e){return e.isComment||" "===e.text}function be(e,t){t=t||{};for(var n=0;n<e.length;n++)Array.isArray(e[n])?be(e[n],t):t[e[n].key]=e[n].fn;return t}function we(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._i
sDestroyed=!1,e._isBeingDestroyed=!1}function Oe(e,t,n){e.$el=t,e.$options.render||(e.$options.render=_r),ke(e,"beforeMount");var r;return r=function(){e._update(e._render(),n)},e._watcher=new jr(e,r,w),n=!1,null==e.$vnode&&(e._isMounted=!0,ke(e,"mounted")),e}function Ee(e,t,n,r,o){var i=!!(o||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==Bn);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data&&r.data.attrs,e.$listeners=n,t&&e.$options.props){fr.shouldConvert=!1;for(var a=e._props,s=e.$options._propKeys||[],u=0;u<s.length;u++){var c=s[u];a[c]=G(c,e.$options.props,t,e)}fr.shouldConvert=!0,e.$options.propsData=t}if(n){var l=e.$options._parentListeners;e.$options._parentListeners=n,me(e,n,l)}i&&(e.$slots=_e(o,r.context),e.$forceUpdate())}function xe(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Se(e,t){if(t){if(e._directInactive=!1,xe(e))return}else if(e._directInactive)return;if(e._
inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Se(e.$children[n]);ke(e,"activated")}}function Ce(e,t){if(!(t&&(e._directInactive=!0,xe(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Ce(e.$children[n]);ke(e,"deactivated")}}function ke(e,t){var n=e.$options[t];if(n)for(var r=0,o=n.length;r<o;r++)try{n[r].call(e)}catch(n){j(n,e,t+" hook")}e._hasHookEvent&&e.$emit("hook:"+t)}function je(){Cr=wr.length=Or.length=0,Er={},xr=Sr=!1}function Ae(){Sr=!0;var e,t;for(wr.sort(function(e,t){return e.id-t.id}),Cr=0;Cr<wr.length;Cr++)e=wr[Cr],t=e.id,Er[t]=null,e.run();var n=Or.slice(),r=wr.slice();je(),Ne(n),Te(r),nr&&Un.devtools&&nr.emit("flush")}function Te(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&ke(r,"updated")}}function Ie(e){e._inactive=!1,Or.push(e)}function Ne(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Se(e[t],!0)}function Pe(e){var t=e.id;if(null==Er[t]){if(Er[t]=!0,Sr){for(var n=wr.length-1;
n>Cr&&wr[n].id>e.id;)n--;wr.splice(n+1,0,e)}else wr.push(e);xr||(xr=!0,or(Ae))}}function Me(e){Ar.clear(),$e(e,Ar)}function $e(e,t){var n,r,o=Array.isArray(e);if((o||s(e))&&Object.isExtensible(e)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(o)for(n=e.length;n--;)$e(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)$e(e[r[n]],t)}}function Re(e,t,n){Tr.get=function(){return this[t][n]},Tr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tr)}function De(e){e._watchers=[];var t=e.$options;t.props&&Fe(e,t.props),t.methods&&We(e,t.methods),t.data?Le(e):M(e._data={},!0),t.computed&&Be(e,t.computed),t.watch&&t.watch!==Xn&&ze(e,t.watch)}function Fe(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;fr.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=G(i,t,n,e);$(r,i,a),i in e||Re(e,"_props",i)}(a);fr.shouldConvert=!0}function Le(e){var t=e.$options.data;t=e._data="function"==typeof t?Ue(t,e):t||{},u(t)||(t={});for(
var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);o--;){var i=n[o];r&&v(r,i)||S(i)||Re(e,"_data",i)}M(t,!0)}function Ue(e,t){try{return e.call(t)}catch(e){return j(e,t,"data()"),{}}}function Be(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;n[r]=new jr(e,i||w,w,Ir),r in e||Ve(e,r,o)}}function Ve(e,t,n){"function"==typeof n?(Tr.get=qe(t),Tr.set=w):(Tr.get=n.get?!1!==n.cache?qe(t):n.get:w,Tr.set=n.set?n.set:w),Object.defineProperty(e,t,Tr)}function qe(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ar.target&&t.depend(),t.value}}function We(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?w:m(t[n],e)}function ze(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)Je(e,n,r[o]);else Je(e,n,r)}}function Je(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function He(e){var t=e.
$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function Ge(e){var t=Xe(e.$options.inject,e);t&&(fr.shouldConvert=!1,Object.keys(t).forEach(function(n){$(e,n,t[n])}),fr.shouldConvert=!0)}function Xe(e,t){if(e){for(var n=Object.create(null),r=rr?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++)for(var i=r[o],a=e[i],s=t;s;){if(s._provided&&a in s._provided){n[i]=s._provided[a];break}s=s.$parent}return n}}function Ke(e,t,n,o,i){var a={},s=e.options.props;if(r(s))for(var u in s)a[u]=G(u,s,t||{});else r(n.attrs)&&Ze(a,n.attrs),r(n.props)&&Ze(a,n.props);var c=Object.create(o),l=function(e,t,n,r){return rt(c,e,t,n,r,!0)},f=e.options.render.call(null,l,{data:n,props:a,children:i,parent:o,listeners:n.on||{},injections:Xe(e.options.inject,o),slots:function(){return _e(i,o)}});return f instanceof vr&&(f.functionalContext=o,f.functionalOptions=e.options,n.slot&&((f.data||(f.data={})).slot=n.slot)),f}function Ze(e,t){for(var n in t)e[In(n)]=t[n]}function Qe(e,t,i,a,u){if(!
n(e)){var c=i.$options._base;if(s(e)&&(e=c.extend(e)),"function"==typeof e){var l;if(n(e.cid)&&(l=e,void 0===(e=de(l,c,i))))return fe(l,t,i,a,u);t=t||{},_t(e),r(t.model)&&nt(e.options,t);var f=oe(t,e,u);if(o(e.options.functional))return Ke(e,f,t,i,a);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var p=t.slot;t={},p&&(t.slot=p)}et(t);var h=e.options.name||u;return new vr("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,i,{Ctor:e,propsData:f,listeners:d,tag:u,children:a},l)}}}function Ye(e,t,n,o){var i=e.componentOptions,a={_isComponent:!0,parent:t,propsData:i.propsData,_componentTag:i.tag,_parentVnode:e,_parentListeners:i.listeners,_renderChildren:i.children,_parentElm:n||null,_refElm:o||null},s=e.data.inlineTemplate;return r(s)&&(a.render=s.render,a.staticRenderFns=s.staticRenderFns),new i.Ctor(a)}function et(e){e.hook||(e.hook={});for(var t=0;t<Pr.length;t++){var n=Pr[t],r=e.hook[n],o=Nr[n];e.hook[n]=r?tt(o,r):o}}function tt(e,t){return function(n,r,o,i){e(n,r,o,i)
,t(n,r,o,i)}}function nt(e,t){var n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});r(i[o])?i[o]=[t.model.callback].concat(i[o]):i[o]=t.model.callback}function rt(e,t,n,r,i,s){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o(s)&&(i=$r),ot(e,t,n,r,i)}function ot(e,t,n,o,i){if(r(n)&&r(n.__ob__))return _r();if(r(n)&&r(n.is)&&(t=n.is),!t)return _r();Array.isArray(o)&&"function"==typeof o[0]&&(n=n||{},n.scopedSlots={default:o[0]},o.length=0),i===$r?o=se(o):i===Mr&&(o=ae(o));var a,s;if("string"==typeof t){var u;s=Un.getTagNamespace(t),a=Un.isReservedTag(t)?new vr(Un.parsePlatformTagName(t),n,o,void 0,void 0,e):r(u=H(e.$options,"components",t))?Qe(u,n,e,o,t):new vr(t,n,o,void 0,void 0,e)}else a=Qe(t,n,e,o);return r(a)?(s&&it(a,s),a):_r()}function it(e,t){if(e.ns=t,"foreignObject"!==e.tag&&r(e.children))for(var o=0,i=e.children.length;o<i;o++){var a=e.children[o];r(a.tag)&&n(a.ns)&&it(a,t)}}function at(e,t){
var n,o,i,a,u;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,i=e.length;o<i;o++)n[o]=t(e[o],o);else if("number"==typeof e)for(n=new Array(e),o=0;o<e;o++)n[o]=t(o+1,o);else if(s(e))for(a=Object.keys(e),n=new Array(a.length),o=0,i=a.length;o<i;o++)u=a[o],n[o]=t(e[u],u,o);return r(n)&&(n._isVList=!0),n}function st(e,t,n,r){var o=this.$scopedSlots[e];if(o)return n=n||{},r&&(n=g(g({},r),n)),o(n)||t;var i=this.$slots[e];return i||t}function ut(e){return H(this.$options,"filters",e,!0)||Rn}function ct(e,t,n){var r=Un.keyCodes[t]||n;return Array.isArray(r)?-1===r.indexOf(e):r!==e}function lt(e,t,n,r,o){if(n)if(s(n)){Array.isArray(n)&&(n=b(n));var i;for(var a in n)!function(a){if("class"===a||"style"===a||jn(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||Un.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}if(!(a in i)&&(i[a]=n[a],o)){(e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}}}(a)}else;return e}function ft(e,t){var n=this._staticTrees[e];retur
n n&&!t?Array.isArray(n)?ee(n):Y(n):(n=this._staticTrees[e]=this.$options.staticRenderFns[e].call(this._renderProxy),pt(n,"__static__"+e,!1),n)}function dt(e,t,n){return pt(e,"__once__"+t+(n?"_"+n:""),!0),e}function pt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&ht(e[r],t+"_"+r,n);else ht(e,t,n)}function ht(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function vt(e,t){if(t)if(u(t)){var n=e.on=e.on?g({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(i,o):i}}else;return e}function yt(e){e._vnode=null,e._staticTrees=null;var t=e.$vnode=e.$options._parentVnode,n=t&&t.context;e.$slots=_e(e.$options._renderChildren,n),e.$scopedSlots=Bn,e._c=function(t,n,r,o){return rt(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return rt(e,t,n,r,o,!0)};var r=t&&t.data;$(e,"$attrs",r&&r.attrs,null,!0),$(e,"$listeners",e.$options._parentListeners,null,!0)}function mt(e,t){var n=e.$options=Object.create(e.constructor.options);n.parent=t.parent,n.propsData=
t.propsData,n._parentVnode=t._parentVnode,n._parentListeners=t._parentListeners,n._renderChildren=t._renderChildren,n._componentTag=t._componentTag,n._parentElm=t._parentElm,n._refElm=t._refElm,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function _t(e){var t=e.options;if(e.super){var n=_t(e.super);if(n!==e.superOptions){e.superOptions=n;var r=gt(e);r&&g(e.extendOptions,r),t=e.options=J(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function gt(e){var t,n=e.options,r=e.extendOptions,o=e.sealedOptions;for(var i in n)n[i]!==o[i]&&(t||(t={}),t[i]=bt(n[i],r[i],o[i]));return t}function bt(e,t,n){if(Array.isArray(e)){var r=[];n=Array.isArray(n)?n:[n],t=Array.isArray(t)?t:[t];for(var o=0;o<e.length;o++)(t.indexOf(e[o])>=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function wt(e){this._init(e)}function Ot(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=_(arguments,1);return n.uns
hift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Et(e){e.mixin=function(e){return this.options=J(this.options,e),this}}function xt(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=J(n.options,e),a.super=n,a.options.props&&St(a),a.options.computed&&Ct(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Fn.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=g({},a.options),o[r]=a,a}}function St(e){var t=e.options.props;for(var n in t)Re(e.prototype,"_props",n)}function Ct(e){var t=e.options.computed;for(var n in t)Ve(e.prototype,n,t[n])}function kt(e){Fn.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.na
me||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]}})}function jt(e){return e&&(e.Ctor.options.name||e.tag)}function At(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!c(e)&&e.test(t)}function Tt(e,t,n){for(var r in e){var o=e[r];if(o){var i=jt(o.componentOptions);i&&!n(i)&&(o!==t&&It(o),e[r]=null)}}}function It(e){e&&e.componentInstance.$destroy()}function Nt(e){return new t.Element(e)}function Pt(e,n){return new t.Element(e+":"+n)}function Mt(e){return new t.TextNode(e)}function $t(e){return new t.Comment(e)}function Rt(e,t,n){if(3!==t.nodeType)e.insertBefore(t,n);else if("text"===e.type)e.setAttr("value",t.text),t.parentNode=e;else{var r=Nt("text");r.setAttr("value",t.text),e.insertBefore(r,n)}}function Dt(e,t){if(3===t.nodeType)return void e.setAttr("value","");e.removeChild(t)}function Ft(e,t){if(3!==t.nodeType)e.appendChild(t);else if(
"text"===e.type)e.setAttr("value",t.text),t.parentNode=e;else{var n=Nt("text")
-;n.setAttr("value",t.text),e.appendChild(n)}}function Lt(e){return e.parentNode}function Ut(e){return e.nextSibling}function Bt(e){return e.type}function Vt(e,t){e.parentNode.setAttr("value",t)}function qt(e,t,n){e.setAttr(t,n)}function Wt(e,t){var n=e.data.ref;if(n){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?h(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}}function zt(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Jt(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function Jt(e,t){if("input"!==e.tag)return!0;var n;return(r(n=e.data)&&r(n=n.attrs)&&n.type)===(r(n=t.data)&&r(n=n.attrs)&&n.type)}function Ht(e,t,n){var o,i,a={};for(o=t;o<=n;++o)i=e[o].key,r(i)&&(a[i]=o);return a}function Gt(e,t){(e.data.directives||t.data.directives)&&Xt(e,t)}function Xt(e,t){var n,r,o,i=e===Wr,a=t===Wr,s=Kt(e.data
.directives,e.context),u=Kt(t.data.directives,t.context),c=[],l=[];for(n in u)r=s[n],o=u[n],r?(o.oldValue=r.value,Qt(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(Qt(o,"bind",t,e),o.def&&o.def.inserted&&c.push(o));if(c.length){var f=function(){for(var n=0;n<c.length;n++)Qt(c[n],"inserted",t,e)};i?re(t.data.hook||(t.data.hook={}),"insert",f):f()}if(l.length&&re(t.data.hook||(t.data.hook={}),"postpatch",function(){for(var n=0;n<l.length;n++)Qt(l[n],"componentUpdated",t,e)}),!i)for(n in s)u[n]||Qt(s[n],"unbind",e,e,a)}function Kt(e,t){var n=Object.create(null);if(!e)return n;var r,o;for(r=0;r<e.length;r++)o=e[r],o.modifiers||(o.modifiers=Hr),n[Zt(o)]=o,o.def=H(t.$options,"directives",o.name,!0);return n}function Zt(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Qt(e,t,n,r,o){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){j(r,n.context,"directive "+e.name+" "+t+" hook")}}function Yt(e,t){if(e.data.attrs||t.data.attrs){var n,r,o=t.e
lm,i=e.data.attrs||{},a=t.data.attrs||{};a.__ob__&&(a=t.data.attrs=g({},a));for(n in a)r=a[n],i[n]!==r&&o.setAttr(n,r);for(n in i)null==a[n]&&o.setAttr(n)}}function en(e,t){var n=t.elm,r=t.context,o=t.data,i=e.data;if(o.staticClass||o.class||i&&(i.staticClass||i.class)){var a=[],s=i.staticClass;s&&a.push.apply(a,s),i.class&&a.push.apply(a,i.class);var u=[],c=o.staticClass;c&&u.push.apply(u,c),o.class&&u.push.apply(u,o.class);var l=tn(a,u,r);for(var f in l)n.setStyle(f,l[f])}}function tn(e,t,n){var r=n.$options.style||{},o={};return t.forEach(function(e){g(o,r[e])}),e.forEach(function(e){var t=r[e];for(var n in t)o.hasOwnProperty(n)||(o[n]="")}),o}function nn(e,t,n,r){if(r)return void console.log("Weex do not support event in bubble phase.");if(n){var o=t,i=Ur;t=function(t){null!==(1===arguments.length?o(t):o.apply(null,arguments))&&rn(e,null,null,i)}}Ur.addEvent(e,t)}function rn(e,t,n,r){(r||Ur).removeEvent(e)}function on(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on
||{};Ur=t.elm,ne(n,r,nn,rn,t.context)}}function an(e,t){if(!t.data.staticStyle)return void sn(e,t);var n=t.elm,r=t.data.staticStyle;for(var o in r)r[o]&&n.setStyle(Qr(o),r[o]);sn(e,t)}function sn(e,t){if(e.data.style||t.data.style){var n,r,o=t.elm,i=e.data.style||{},a=t.data.style||{},s=a.__ob__;Array.isArray(a)&&(a=t.data.style=un(a)),s&&(a=t.data.style=g({},a));for(r in i)a[r]||o.setStyle(Qr(r),"");for(r in a)n=a[r],o.setStyle(Qr(r),n)}}function un(e){for(var t={},n=0;n<e.length;n++)e[n]&&g(t,e[n]);return t}function cn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&g(t,eo(e.name||"v")),g(t,e),t}return"string"==typeof e?eo(e):void 0}}function ln(e,t){var n=t.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=cn(t.data.transition);if(r&&!n._enterCb){for(var o=r.enterClass,i=r.enterToClass,a=r.enterActiveClass,s=r.appearClass,u=r.appearToClass,c=r.appearActiveClass,l=r.beforeEnter,f=r.enter,d=r.afterEnter,p=r.enterCancelled,h=r.beforeAppear,v=r.appear,y=r.afterA
ppear,m=r.appearCancelled,_=br,g=br.$vnode;g&&g.parent;)g=g.parent,_=g.context;var b=!_._isMounted||!t.isRootInsert;if(!b||v||""===v){var O=b?s:o,E=b?u:i,S=b?c:a,C=b?h||l:l,k=b&&"function"==typeof v?v:f,j=b?y||d:d,A=b?m||p:p,T=k&&(k._length||k.length)>1,I=t.context.$options.style||{},N=I[O],P=I["@TRANSITION"]&&I["@TRANSITION"][S]||{},M=dn(n,I,O,E,S,t.context),$=Object.keys(M).length>0,R=n._enterCb=x(function(){R.cancelled?A&&A(n):j&&j(n),n._enterCb=null});if(setTimeout(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];if(r&&r.context===t.context&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),k&&k(n,R),$){t.context.$requireWeexModule("animation").transition(n.ref,{styles:M,duration:P.duration||0,delay:P.delay||0,timingFunction:P.timingFunction||"linear"},T?w:R)}else T||R()},16),C&&C(n),N)for(var D in N)n.setStyle(D,N[D]);$||T||R()}}}function fn(e,t){function n(){function t(){n.transition(r.ref,{styles:y,duration:m.duration||0,delay:m.delay||0,timingFunction:m.timingF
unction||"linear"},p?w:_)}var n=e.context.$requireWeexModule("animation");_.cancelled||(e.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),u&&u(r),v?n.transition(r.ref,{styles:v},t):t(),c&&c(r,_),y||p||_())}var r=e.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var o=cn(e.data.transition);if(!o)return t();if(!r._leaveCb){var i=o.leaveClass,a=o.leaveToClass,s=o.leaveActiveClass,u=o.beforeLeave,c=o.leave,l=o.afterLeave,f=o.leaveCancelled,d=o.delayLeave,p=c&&(c._length||c.length)>1,h=e.context.$options.style||{},v=h[i],y=h[a]||h[s],m=h["@TRANSITION"]&&h["@TRANSITION"][s]||{},_=r._leaveCb=x(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),_.cancelled?f&&f(r):(t(),l&&l(r)),r._leaveCb=null});d?d(n):n()}}function dn(e,t,n,r,o,i){var a={},s=t[n],u=t[r],c=t[o];if(s)for(var l in s)a[l]=e.style[l];if(c)for(var f in c)0!==f.indexOf("transition")&&(a[f]=c[f]);return u&&g(a,u),a}function pn(e){return e.tag?e.tag.replace(/vue\-com
ponent\-(\d+\-)?/,""):""}function hn(e){return e.children&&1===e.children.length&&!e.children[0].tag}function vn(e){var t=String(e).match(ao);return t?Number(t[1]):e}function yn(e){if(e&&e.data){var t=e.data,n=t.staticStyle,r=t.staticClass;if(e.data.style||e.data.class||n||r){var o=Object.assign({},n,e.data.style),i=e.context.$options.style||{};[].concat(r,e.data.class).forEach(function(e){e&&i[e]&&Object.assign(o,i[e])});for(var a in o)o[a]=vn(o[a]);return o}}}function mn(e){if(e.length)return e.map(function(e){var t=pn(e),n={type:t};if(t){if(n.style=yn(e),e.data&&(n.attr=e.data.attrs,e.data.on&&(n.events=e.data.on)),"span"===t&&hn(e))return n.attr=n.attr||{},n.attr.value=e.children[0].text.trim(),n}else n.type="span",n.attr={value:(e.text||"").trim()};return e.children&&e.children.length&&(n.children=mn(e.children)),n})}function _n(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?_n(pe(t.children)):e}function gn(e){var t={},n=e.$options;for(var r in n.propsData)t[r
]=e[r];var o=n._parentListeners;for(var i in o)t[In(i)]=o[i];return t}function bn(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function wn(e){for(;e=e.parent;)if(e.data.transition)return!0}function On(e,t){return t.key===e.key&&t.tag===e.tag}function En(e){return e.isComment&&e.asyncFactory}function xn(){}function Sn(){}function Cn(e,n){var r=new t.Comment("root");return r.hasAttribute=r.removeAttribute=function(){},n.documentElement.appendChild(r),r}var kn=Object.prototype.toString,jn=(p("slot,component",!0),p("key,ref,slot,is")),An=Object.prototype.hasOwnProperty,Tn=/-(\w)/g,In=y(function(e){return e.replace(Tn,function(e,t){return t?t.toUpperCase():""})}),Nn=y(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Pn=/([^-])([A-Z])/g,Mn=y(function(e){return e.replace(Pn,"$1-$2").replace(Pn,"$1-$2").toLowerCase()}),$n=function(e,t,n){return!1},Rn=function(e){return e},Dn="data-server-rendered",Fn=["component","directive","filt
er"],Ln=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],Un={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:$n,isReservedAttr:$n,isUnknownElement:$n,getTagNamespace:w,parsePlatformTagName:Rn,mustUseProp:$n,_lifecycleHooks:Ln},Bn=Object.freeze({}),Vn=/[^\w.$]/,qn=w,Wn="__proto__"in{},zn="undefined"!=typeof window,Jn=zn&&window.navigator.userAgent.toLowerCase(),Hn=(Jn&&/msie|trident/.test(Jn),Jn&&Jn.indexOf("msie 9.0"),Jn&&Jn.indexOf("edge/")>0),Gn=(Jn&&Jn.indexOf("android"),Jn&&/iphone|ipad|ipod|ios/.test(Jn)),Xn=(Jn&&/chrome\/\d+/.test(Jn),{}.watch),Kn=!1;if(zn)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Kn=!0}}),window.addEventListener("test-passive",null,Zn)}catch(e){}var Qn,Yn,er=function(){return void 0===Qn&&(Qn=!zn&&void 0!==tr&&"ser
ver"===tr.process.env.VUE_ENV),Qn},nr=zn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,rr="undefined"!=typeof Symbol&&A(Symbol)&&"undefined"!=typeof Reflect&&A(Reflect.ownKeys),or=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t<e.length;t++)e[t]()}var t,n=[],r=!1;if("undefined"!=typeof Promise&&A(Promise)){var o=Promise.resolve(),i=function(e){console.error(e)};t=function(){o.then(e).catch(i),Gn&&setTimeout(w)}}else if("undefined"==typeof MutationObserver||!A(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())t=function(){setTimeout(e,0)};else{var a=1,s=new MutationObserver(e),u=document.createTextNode(String(a));s.observe(u,{characterData:!0}),t=function(){a=(a+1)%2,u.data=String(a)}}return function(e,o){var i;if(n.push(function(){if(e)try{e.call(o)}catch(e){j(e,o,"nextTick")}else i&&i(o)}),r||(r=!0,t()),!e&&"undefined"!=typeof Promise)return new Promise(function(e,t){i=e})}}();Yn="undefined"!=typeof Set&&A(Set)?Set:function(){func
tion e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ir=0,ar=function(){this.id=ir++,this.subs=[]};ar.prototype.addSub=function(e){this.subs.push(e)},ar.prototype.removeSub=function(e){h(this.subs,e)},ar.prototype.depend=function(){ar.target&&ar.target.addDep(this)},ar.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},ar.target=null;var sr=[],ur=Array.prototype,cr=Object.create(ur);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=ur[e];C(cr,e,function(){for(var n=arguments,r=[],o=arguments.length;o--;)r[o]=n[o];var i,a=t.apply(this,r),s=this.__ob__;switch(e){case"push":case"unshift":i=r;break;case"splice":i=r.slice(2)}return i&&s.observeArray(i),s.dep.notify(),a})});var lr=Object.getOwnPropertyNames(cr),fr={shouldConvert:!0},dr=function(e){if(this.val
ue=e,this.dep=new ar,this.vmCount=0,C(e,"__ob__",this),Array.isArray(e)){(Wn?N:P)(e,cr,lr),this.observeArray(e)}else this.walk(e)};dr.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)$(e,t[n],e[t[n]])},dr.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)M(e[t])};var pr=Un.optionMergeStrategies;pr.data=function(e,t,n){return n?U(e,t,n):t&&"function"!=typeof t?e:U.call(this,e,t)},Ln.forEach(function(e){pr[e]=B}),Fn.forEach(function(e){pr[e+"s"]=V}),pr.watch=function(e,t){if(e===Xn&&(e=void 0),t===Xn&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var n={};g(n,e);for(var r in t){var o=n[r],i=t[r];o&&!Array.isArray(o)&&(o=[o]),n[r]=o?o.concat(i):Array.isArray(i)?i:[i]}return n},pr.props=pr.methods=pr.inject=pr.computed=function(e,t){if(!e)return t;var n=Object.create(null);return g(n,e),t&&g(n,t),n},pr.provide=U;var hr=function(e,t){return void 0===t?e:t},vr=function(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,th
is.elm=o,this.ns=void 0,this.context=i,this.functionalContext=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},yr={child:{}};yr.child.get=function(){return this.componentInstance},Object.defineProperties(vr.prototype,yr);var mr,_r=function(e){void 0===e&&(e="");var t=new vr;return t.text=e,t.isComment=!0,t},gr=y(function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}),br=null,wr=[],Or=[],Er={},xr=!1,Sr=!1,Cr=0,kr=0,jr=function(e,t,n,r){this.vm=e,e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++kr,this.active=!0,this.dirty=this.lazy,
this.deps=[],this.newDeps=[],this.depIds=new Yn,this.newDepIds=new Yn,this.expression="","function"==typeof t?this.getter=t:(this.getter=k(t),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};jr.prototype.get=function(){T(this);var e,t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;j(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Me(e),I(),this.cleanupDeps()}return e},jr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},jr.prototype.cleanupDeps=function(){for(var e=this,t=this.deps.length;t--;){var n=e.deps[t];e.newDepIds.has(n.id)||n.removeSub(e)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},jr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Pe(this)},jr.prototype.run=function(){if(thi
s.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){j(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},jr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},jr.prototype.depend=function(){for(var e=this,t=this.deps.length;t--;)e.deps[t].depend()},jr.prototype.teardown=function(){var e=this;if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var t=this.deps.length;t--;)e.deps[t].removeSub(e);this.active=!1}};var Ar=new Yn,Tr={enumerable:!0,configurable:!0,get:w,set:w},Ir={lazy:!0},Nr={init:function(e,t,n,r){if(!e.componentInstance||e.componentInstance._isDestroyed){(e.componentInstance=Ye(e,br,n,r)).$mount(t?e.elm:void 0,t)}else if(e.data.keepAlive){var o=e;Nr.prepatch(o,o)}},prepatch:function(e,t){var n=t.componentOptions;Ee(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:funct
ion(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,ke(n,"mounted")),e.data.keepAlive&&(t._isMounted?Ie(n):Se(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Ce(t,!0):t.$destroy())}},Pr=Object.keys(Nr),Mr=1,$r=2,Rr=0;!function(e){e.prototype._init=function(e){var t=this;t._uid=Rr++,t._isVue=!0,e&&e._isComponent?mt(t,e):t.$options=J(_t(t.constructor),e||{},t),t._renderProxy=t,t._self=t,we(t),he(t),yt(t),ke(t,"beforeCreate"),Ge(t),De(t),He(t),ke(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(wt),function(e){var t={};t.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=R,e.prototype.$delete=D,e.prototype.$watch=function(e,t,n){var r=this;if(u(t))return Je(r,e,t,n);n=n||{},n.user=!0;var o=new jr(r,e,t,n);return n.immediate&&t.call(r,o.value),function(){o.teardown()}}}(wt),function(e
){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this,o=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(o._events[e]||(o._events[e]=[])).push(n),t.test(e)&&(o._hasHookEvent=!0);return o},e.prototype.$once=function(e,t){function n(){r.$off(e,n),t.apply(r,arguments)}var r=this;return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var n=this,r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(e)){for(var o=0,i=e.length;o<i;o++)n.$off(e[o],t);return r}var a=r._events[e];if(!a)return r;if(1===arguments.length)return r._events[e]=null,r;for(var s,u=a.length;u--;)if((s=a[u])===t||s.fn===t){a.splice(u,1);break}return r},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?_(n):n;for(var r=_(arguments,1),o=0,i=n.length;o<i;o++)try{n[o].apply(t,r)}catch(n){j(n,t,'event handler for "'+e+'"')}}return t}}(wt),function(e){e.prototype._update=function(e,t){var n=this;n._isMounted&&ke(n,"beforeUpdate");var r=n
.$el,o=n._vnode,i=br;br=n,n._vnode=e,o?n.$el=n.__patch__(o,e):(n.$el=n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),br=i,r&&(r.__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(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){ke(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||h(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),ke(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null)}}}(wt),function(e){e.prototype.$nextTick=function(e){return or(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t.staticRenderFns,o=t._parentVnode;if(e._isM
ounted)for(var i in e.$slots)e.$slots[i]=ee(e.$slots[i]);e.$scopedSlots=o&&o.data.scopedSlots||Bn,r&&!e._staticTrees&&(e._staticTrees=[]),e.$vnode=o;var a;try{a=n.call(e._renderProxy,e.$createElement)}catch(t){j(t,e,"render function"),a=e._vnode}return a instanceof vr||(a=_r()),a.parent=o,a},e.prototype._o=dt,e.prototype._n=d,e.prototype._s=f,e.prototype._l=at,e.prototype._t=st,e.prototype._q=O,e.prototype._i=E,e.prototype._m=ft,e.prototype._f=ut,e.prototype._k=ct,e.prototype._b=lt,e.prototype._v=Q,e.prototype._e=_r,e.prototype._u=be,e.prototype._g=vt}(wt);var Dr=[String,RegExp,Array],Fr={name:"keep-alive",abstract:!0,props:{include:Dr,exclude:Dr},created:function(){this.cache=Object.create(null)},destroyed:function(){var e=this;for(var t in e.cache)It(e.cache[t])},watch:{include:function(e){Tt(this.cache,this._vnode,function(t){return At(e,t)})},exclude:function(e){Tt(this.cache,this._vnode,function(t){return!At(e,t)})}},render:function(){var e=pe(this.$slots.default),t=e&&e.compon
entOptions;if(t){var n=jt(t);if(n&&(this.include&&!At(this.include,n)||this.exclude&&At(this.exclude,n)))return e;var r=null==e.key?t.Ctor.cid+(t.tag?"::"+t.tag:""):e.key;this.cache[r]?e.componentInstance=this.cache[r].componentInstance:this.cache[r]=e,e.data.keepAlive=!0}return e}},Lr={KeepAlive:Fr};!function(e){var t={};t.get=function(){return Un},Object.defineProperty(e,"config",t),e.util={warn:qn,extend:g,mergeOptions:J,defineReactive:$},e.set=R,e.delete=D,e.nextTick=or,e.options=Object.create(null),Fn.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,g(e.options.components,Lr),Ot(e),Et(e),xt(e),kt(e)}(wt),Object.defineProperty(wt.prototype,"$isServer",{get:er}),Object.defineProperty(wt.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),wt.version="2.4.2";var Ur,Br={},Vr=Object.freeze({namespaceMap:Br,createElement:Nt,createElementNS:Pt,createTextNode:Mt,createComment:$t,insertBefore:Rt,removeChild:Dt,appendChild:Ft,p
arentNode:Lt,nextSibling:Ut,tagName:Bt,setTextContent:Vt,setAttribute:qt}),qr={create:function(e,t){Wt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Wt(e,!0),Wt(t))},destroy:function(e){Wt(e,!0)}},Wr=new vr("",{},[]),zr=["create","activate","update","remove","destroy"],Jr={create:Gt,update:Gt,destroy:function(e){Gt(e,Wr)}},Hr=Object.create(null),Gr=[qr,Jr],Xr={create:Yt,update:Yt},Kr={create:en,update:en},Zr={create:on,update:on},Qr=y(In),Yr={create:an,update:sn},eo=y(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),to=(zn&&window.requestAnimationFrame&&window.requestAnimationFrame.bind(window),{create:ln,activate:ln,remove:fn}),no=[Xr,Kr,Zr,Yr,to],ro=no.concat(Gr),oo=function(e){function t(e){return new vr(T.tagName(e).toLowerCase(),{},[],void 0,e)}function i(e,t){function n(){0==--n.listeners&&s(e)}return n.listeners=t,n}function s(e){va
r t=T.parentNode(e);r(t)&&T.removeChild(t,e)}function u(e,t,n,i,a){if(e.isRootInsert=!a,!c(e,t,n,i)){var s=e.data,u=e.children,l=e.tag;if(r(l)){e.elm=e.ns?T.createElementNS(e.ns,l):T.createElement(l,e),m(e);var f=r(s)&&o(s.appendAsTree);f||(r(s)&&y(e,t),d(n,e.elm,i)),h(e,u,t),f&&(r(s)&&y(e,t),d(n,e.elm,i))}else o(e.isComment)?(e.elm=T.createComment(e.text),d(n,e.elm,i)):(e.elm=T.createTextNode(e.text),d(n,e.elm,i))}}function c(e,t,n,i){var a=e.data;if(r(a)){var s=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1,n,i),r(e.componentInstance))return l(e,t),o(s)&&f(e,t,n,i),!0}}function l(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,v(e)?(y(e,t),m(e)):(Wt(e),t.push(e))}function f(e,t,n,o){for(var i,a=e;a.componentInstance;)if(a=a.componentInstance._vnode,r(i=a.data)&&r(i=i.transition)){for(i=0;i<j.activate.length;++i)j.activate[i](Wr,a);t.push(a);break}d(n,e.elm,o)}function d(e,t,n){r(e
)&&(r(n)?n.parentNode===e&&T.insertBefore(e,t,n):T.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)u(t[r],n,e.elm,null,!0);else a(e.text)&&T.appendChild(e.elm,T.createTextNode(e.text))}function v(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return r(e.tag)}function y(e,t){for(var n=0;n<j.create.length;++n)j.create[n](Wr,e);C=e.data.hook,r(C)&&(r(C.create)&&C.create(Wr,e),r(C.insert)&&t.push(e))}function m(e){for(var t,n=e;n;)r(t=n.context)&&r(t=t.$options._scopeId)&&T.setAttribute(e.elm,t,""),n=n.parent;r(t=br)&&t!==e.context&&r(t=t.$options._scopeId)&&T.setAttribute(e.elm,t,"")}function _(e,t,n,r,o,i){for(;r<=o;++r)u(n[r],i,e,t)}function g(e){var t,n,o=e.data;if(r(o))for(r(t=o.hook)&&r(t=t.destroy)&&t(e),t=0;t<j.destroy.length;++t)j.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)g(e.children[n])}function b(e,t,n,o){for(;n<=o;++n){var i=t[n];r(i)&&(r(i.tag)?(w(i),g(i)):s(i.elm))}}function w(e,t){if(r(t)||r(e.data)){va
r n,o=j.remove.length+1;for(r(t)?t.listeners+=o:t=i(e.elm,o),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,t),n=0;n<j.remove.length;++n)j.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else s(e.elm)}function O(e,t,o,i,a){for(var s,c,l,f,d=0,p=0,h=t.length-1,v=t[0],y=t[h],m=o.length-1,g=o[0],w=o[m],O=!a;d<=h&&p<=m;)n(v)?v=t[++d]:n(y)?y=t[--h]:zt(v,g)?(E(v,g,i),v=t[++d],g=o[++p]):zt(y,w)?(E(y,w,i),y=t[--h],w=o[--m]):zt(v,w)?(E(v,w,i),O&&T.insertBefore(e,v.elm,T.nextSibling(y.elm)),v=t[++d],w=o[--m]):zt(y,g)?(E(y,g,i),O&&T.insertBefore(e,y.elm,v.elm),y=t[--h],g=o[++p]):(n(s)&&(s=Ht(t,d,h)),c=r(g.key)?s[g.key]:null,n(c)?(u(g,i,e,v.elm),g=o[++p]):(l=t[c],zt(l,g)?(E(l,g,i),t[c]=void 0,O&&T.insertBefore(e,l.elm,v.elm),g=o[++p]):(u(g,i,e,v.elm),g=o[++p])));d>h?(f=n(o[m+1])?null:o[m+1].elm,_(e,f,o,p,m,i)):p>m&&b(e,t,d,h)}function E(e,t,i,a){if(e!==t){var s=t.elm=e.elm;if(o(e.isAsyncPlaceholder))return void(r(t.asyncFactory.resolved)?S(e.elm,t,i):t.isAsyncPlaceholder=!0);
if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))return void(t.componentInstance=e.componentInstance);var u,c=t.data;r(c)&&r(u=c.hook)&&r(u=u.prepatch)&&u(e,t);var l=e.children,f=t.children;if(r(c)&&v(t)){for(u=0;u<j.update.length;++u)j.update[u](e,t);r(u=c.hook)&&r(u=u.update)&&u(e,t)}n(t.text)?r(l)&&r(f)?l!==f&&O(s,l,f,i,a):r(f)?(r(e.text)&&T.setTextContent(s,""),_(s,null,f,0,f.length-1,i)):r(l)?b(s,l,0,l.length-1):r(e.text)&&T.setTextContent(s,""):e.text!==t.text&&T.setTextContent(s,t.text),r(c)&&r(u=c.hook)&&r(u=u.postpatch)&&u(e,t)}}function x(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}function S(e,t,n){if(o(t.isComment)&&r(t.asyncFactory))return t.elm=e,t.isAsyncPlaceholder=!0,!0;t.elm=e;var i=t.tag,a=t.data,s=t.children;if(r(a)&&(r(C=a.hook)&&r(C=C.init)&&C(t,!0),r(C=t.componentInstance)))return l(t,n),!0;if(r(i)){if(r(s))if(e.hasChildNodes()){for(var u=!0,c=e.firstChild,f=0
;f<s.length;f++){if(!c||!S(c,s[f],n)){u=!1;break}c=c.nextSibling}if(!u||c)return!1}else h(t,s,n);if(r(a))for(var d in a)if(!I(d)){y(t,n);break}}else e.data!==t.text&&(e.data=t.text);return!0}var C,k,j={},A=e.modules,T=e.nodeOps;for(C=0;
<TRUNCATED>
[03/13] incubator-weex git commit: + [test] add test case for using
append tree in child components
Posted by da...@apache.org.
+ [test] add test case for using append tree in child components
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/296ac477
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/296ac477
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/296ac477
Branch: refs/heads/0.16-dev
Commit: 296ac477922814c800ad42aa208ed895e1b12d4b
Parents: faca556
Author: Hanks <zh...@gmail.com>
Authored: Wed Aug 23 15:33:15 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Wed Aug 23 15:33:15 2017 +0800
----------------------------------------------------------------------
.../complex/component-append-tree.output.js | 22 +++++++
.../complex/component-append-tree.source.js | 68 ++++++++++++++++++++
html5/test/case/tester.js | 19 ++++++
3 files changed, 109 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/296ac477/html5/test/case/complex/component-append-tree.output.js
----------------------------------------------------------------------
diff --git a/html5/test/case/complex/component-append-tree.output.js b/html5/test/case/complex/component-append-tree.output.js
new file mode 100644
index 0000000..6c036ec
--- /dev/null
+++ b/html5/test/case/complex/component-append-tree.output.js
@@ -0,0 +1,22 @@
+{
+ type: 'scroller',
+ children: [{
+ type: 'div',
+ attr: { "append": "node" },
+ children: [{
+ type: 'text',
+ attr: {
+ value: 'ready'
+ }
+ }]
+ }, {
+ type: 'div',
+ attr: { "append": "tree" },
+ children: [{
+ type: 'text',
+ attr: {
+ value: 'ready'
+ }
+ }]
+ }]
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/296ac477/html5/test/case/complex/component-append-tree.source.js
----------------------------------------------------------------------
diff --git a/html5/test/case/complex/component-append-tree.source.js b/html5/test/case/complex/component-append-tree.source.js
new file mode 100644
index 0000000..2f83adc
--- /dev/null
+++ b/html5/test/case/complex/component-append-tree.source.js
@@ -0,0 +1,68 @@
+define('@weex-component/sub', function(require, exports, module) {
+
+ ;
+ module.exports = {
+ data: function() {
+ return {
+ str: '-----'
+ }
+ },
+ ready: function() {
+ this.str = 'ready'
+ setTimeout(() => {
+ this.str = 'timeout'
+ }, 100)
+ }
+ }
+
+
+ ;
+ module.exports.style = {}
+
+ ;
+ module.exports.template = {
+ "type": "text",
+ "attr": {
+ "value": function() {
+ return this.str
+ }
+ }
+ }
+
+ ;
+ })
+
+ // module
+
+ define('@weex-component/ad164d40f42747f598b56eccfd0eae8e', function(require, exports, module) {
+
+ ;
+
+ ;
+ module.exports.style = {}
+
+ ;
+ module.exports.template = {
+ "type": "scroller",
+ "children": [{
+ "type": "div",
+ "append": "node",
+ "children": [{
+ "type": "sub"
+ }]
+ }, {
+ "type": "div",
+ "append": "tree",
+ "children": [{
+ "type": "sub"
+ }]
+ }]
+ }
+
+ ;
+ })
+
+ // require module
+ bootstrap('@weex-component/ad164d40f42747f598b56eccfd0eae8e', {
+ "transformerVersion": "0.4.3"
+ })
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/296ac477/html5/test/case/tester.js
----------------------------------------------------------------------
diff --git a/html5/test/case/tester.js b/html5/test/case/tester.js
index 373a421..3a1caf4 100644
--- a/html5/test/case/tester.js
+++ b/html5/test/case/tester.js
@@ -196,6 +196,25 @@ describe('test input and output', function () {
app.$destroy()
})
+ it.skip('use append tree and sub components', (done) => {
+ const name = 'component-append-tree'
+ const sourceCode = readSource(name)
+ const outputCode = readOutput(name)
+
+ app.$create(sourceCode)
+ const expected = eval('(' + outputCode + ')')
+ const actual = app.getRealRoot()
+ expect(actual).eql(expected)
+
+ setTimeout(() => {
+ const actual2 = app.getRealRoot()
+ expect(actual2.children[0].children[0].attr.value).eql('timeout')
+ expect(actual2.children[1].children[0].attr.value).eql('timeout')
+ app.$destroy()
+ done()
+ }, 200)
+ })
+
it('repeat with array track-by case', () => {
const name = 'repeat-track-by'
const sourceCode = readSource(name)
[02/13] incubator-weex git commit: * [jsfm] release v0.21.10
Posted by da...@apache.org.
* [jsfm] release v0.21.10
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/faca5562
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/faca5562
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/faca5562
Branch: refs/heads/0.16-dev
Commit: faca5562b8f595e0f95693f35757b6d04ae71b9f
Parents: 4accea5
Author: Hanks <zh...@gmail.com>
Authored: Thu Aug 17 12:37:13 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Thu Aug 17 12:37:13 2017 +0800
----------------------------------------------------------------------
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/faca5562/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 692b16f..de79d71 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "0.12.2",
"subversion": {
"browser": "0.5.0",
- "framework": "0.21.9",
+ "framework": "0.21.10",
"vue-render": "0.12.3",
"transformer": ">=0.1.5 <0.5"
},
[07/13] incubator-weex git commit: * [jsfm] release v0.21.11
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90fac505/packages/weex-js-framework/index.min.js
----------------------------------------------------------------------
diff --git a/packages/weex-js-framework/index.min.js b/packages/weex-js-framework/index.min.js
index c383a95..462e4fc 100644
--- a/packages/weex-js-framework/index.min.js
+++ b/packages/weex-js-framework/index.min.js
@@ -1 +1,8 @@
-(this.nativeLog||function(e){console.log(e)})("START JS FRAMEWORK 0.21.8, Build 2017-08-10 14:43."),this.getJSFMVersion=function(){return"0.21.8"};var global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(e){return e&&e.__esModule?e.default:e}function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=qi(t),this.reject=qi(n)}function r(){Ma.forEach(function(e){var t=Ma.indexOf(e);$a[e]={},Ma.forEach(function(n){Ma.indexOf(n)<=t&&($a[e][n]=!0)})})}function o(e){var t=global.WXEnvironment&&global.WXEnvironment.logLevel||"log";return $a[t]&&$a[t][e]}function i(e){return e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringi
fy(e):String(e)})}function a(){if(void 0===setTimeout&&"function"==typeof Fa){var e={},t=0;global.setTimeout=function(n,r){e[++t]=n,Fa(t.toString(),r)},global.setTimeoutCallback=function(t){"function"==typeof e[t]&&(e[t](),delete e[t])}}}function s(){Object.freeze(Object),Object.freeze(Array),u(),Object.freeze(Array.prototype),Object.freeze(String.prototype),Object.freeze(Number.prototype),Object.freeze(Boolean.prototype),c(),Object.freeze(Date.prototype),Object.freeze(RegExp.prototype)}function u(){var e=Object.prototype,t="Object.prototype";l(e,"__defineGetter__",t),l(e,"__defineSetter__",t),l(e,"__lookupGetter__",t),l(e,"__lookupSetter__",t),l(e,"constructor",t),l(e,"hasOwnProperty",t),l(e,"isPrototypeOf",t),l(e,"propertyIsEnumerable",t),l(e,"toLocaleString",t),l(e,"toString",t),l(e,"valueOf",t),Object.seal(e)}function c(){var e=Error.prototype,t="Error.prototype";l(e,"name",t),l(e,"message",t),l(e,"toString",t),l(e,"constructor",t),Object.seal(e)}function l(e,t,n){if(e.hasOwnPro
perty(t)){var r=e[t];Object.defineProperty(e,t,{get:function(){return r},set:function(r){if(this===e)throw Error("Cannot assign to read only property "+t+" of "+n);return Object.defineProperty(this,t,{value:r,writable:!0}),r}})}}function f(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function p(e){if("function"!=typeof btoa)return"";var t=Array.prototype.map.call(new Uint8Array(e),function(e){return String.fromCharCode(e)}).join("");return btoa(t)}function d(e){if("function"!=typeof atob)return new ArrayBuffer(0);var t=atob(e),n=new Uint8Array(t.length);return Array.prototype.forEach.call(t,function(e,t){n[t]=e.charCodeAt(0)}),n.buffer}function h(e){var t=f(e);switch(t){case"Undefined":case"Null":return"";case"RegExp":return e.toString();case"Date":return e.toISOString();case"Number":case"String":case"Boolean":return e;case"Array":return e.map(h);case"Object":var n={};for(var r in e)n[r]=h(e[r]);return n;case"ArrayBuffer":return{"@type":"binary",dataTy
pe:t,base64:p(e)};case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return{"@type":"binary",dataType:t,base64:p(e.buffer)};default:return JSON.stringify(e)}}function v(e){if("Object"===f(e)){if(e["@type"]&&"binary"===e["@type"])return d(e.base64||"");var t={};for(var n in e)t[n]=v(e[n]);return t}return"Array"===f(e)?e.map(v):e}function y(e,t){e&&(Ba[e]=t)}function m(e){return Ba[e]}function _(e){delete Ba[e]}function g(e){var t=Ba[e];return t&&t.taskCenter?t.taskCenter:null}function b(){return(Ua++).toString()}function w(e,t,n){var r=e.documentElement;if(!(r.pureChildren.length>0||t.parentNode)){var o=r.children,i=o.indexOf(n);i<0?o.push(t):o.splice(i,0,t),1===t.nodeType?("body"===t.role?(t.docId=e.id,t.ownerDocument=e,t.parentNode=r,C(t,r)):(t.children.forEach(function(e){e.parentNode=t}),O(e,t),t.docId=e.id,t.ownerDocument=e,C(t,r),delete e.nodeMap[t.nodeId]),r.pureCh
ildren.push(t),E(e,t)):(t.parentNode=r,e.nodeMap[t.ref]=t)}}function E(e,t){var n=t.toJSON(),r=n.children;delete n.children;var o=e.taskCenter.send("dom",{action:"createBody"},[n]);return r&&r.forEach(function(t){o=e.taskCenter.send("dom",{action:"addElement"},[n.ref,t,-1])}),o}function O(e,t){t.role="body",t.depth=1,delete e.nodeMap[t.nodeId],t.ref="_root",e.nodeMap._root=t,e.body=t}function C(e,t){e.parentNode=t,t.docId&&(e.docId=t.docId,e.ownerDocument=t.ownerDocument,e.ownerDocument.nodeMap[e.nodeId]=e,e.depth=t.depth+1),e.children.forEach(function(t){C(t,e)})}function S(e){for(;e;){if(1===e.nodeType)return e;e=e.nextSibling}}function x(e){for(;e;){if(1===e.nodeType)return e;e=e.previousSibling}}function k(e,t,n,r){n<0&&(n=0);var o=t[n-1],i=t[n];return t.splice(n,0,e),r&&(o&&(o.nextSibling=e),e.previousSibling=o,e.nextSibling=i,i&&(i.previousSibling=e)),n}function j(e,t,n,r){var o=t.indexOf(e);if(o<0)return-1;if(r){var i=t[o-1],a=t[o+1];i&&(i.nextSibling=a),a&&(a.previousSibling
=i)}t.splice(o,1);var s=n;o<=n&&(s=n-1);var u=t[s-1],c=t[s];return t.splice(s,0,e),r&&(u&&(u.nextSibling=e),e.previousSibling=u,e.nextSibling=c,c&&(c.previousSibling=e)),o===s?-1:n}function A(e,t,n){var r=t.indexOf(e);if(!(r<0)){if(n){var o=t[r-1],i=t[r+1];o&&(o.nextSibling=i),i&&(i.previousSibling=o)}t.splice(r,1)}}function T(){this.nodeId=b(),this.ref=this.nodeId,this.children=[],this.pureChildren=[],this.parentNode=null,this.nextSibling=null,this.previousSibling=null}function I(e,t){if(t&&t.length){var n=function(t){Va.call(this,e,t,!0)};n.prototype=Object.create(Va.prototype),Object.defineProperty(n.prototype,"constructor",{configurable:!1,enumerable:!1,writable:!1,value:Va}),t.forEach(function(t){n.prototype[t]=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o=g(this.docId);if(o)return o.send("component",{ref:this.ref,component:e,method:t},n)}}),za[e]=n}}function N(e,t,n){void 0===e&&(e=Wa);var r=za[e];if(r&&!n)return new r(t);t=t||{},this.nodeType=1,this.
nodeId=b(),this.ref=this.nodeId,this.type=e,this.attr=t.attr||{},this.style=t.style||{},this.classStyle=t.classStyle||{},this.event={},this.children=[],this.pureChildren=[]}function P(e,t){m(e).nodeMap[t.nodeId]=t}function M(){var e={createFinish:global.callCreateFinish,updateFinish:global.callUpdateFinish,refreshFinish:global.callRefreshFinish,createBody:global.callCreateBody,addElement:global.callAddElement,removeElement:global.callRemoveElement,moveElement:global.callMoveElement,updateAttrs:global.callUpdateAttrs,updateStyle:global.callUpdateStyle,addEvent:global.callAddEvent,removeEvent:global.callRemoveEvent},t=Ha.prototype;for(var n in e)!function(n){var r=e[n];t[n]=r?function(e,t){return r.apply(void 0,[e].concat(t))}:function(e,t){return Ja(e,[{module:"dom",method:n,args:t}],"-1")}}(n);t.componentHandler=global.callNativeComponent||function(e,t,n,r,o){return Ja(e,[{component:o.component,ref:t,method:n,args:r}])},t.moduleHandler=global.callNativeModule||function(e,t,n,r){retu
rn Ja(e,[{module:t,method:n,args:r}])}}function $(e,t){D(e)?console.warn('Service "'+e+'" has been registered already!'):(t=Object.assign({},t),Ka.push({name:e,options:t}))}function R(e){Ka.some(function(t,n){if(t.name===e)return Ka.splice(n,1),!0})}function D(e){return F(e)>=0}function F(e){return Ka.map(function(e){return e.name}).indexOf(e)}function L(e){var t,n=Za.exec(e);if(n)try{t=JSON.parse(n[1])}catch(e){}return t}function B(e,t,n){var r=Object.create(null);return r.service=Object.create(null),Ka.forEach(function(o){o.name;var i=o.options.create;if(i){var a=i(e,t,n);Object.assign(r.service,a),Object.assign(r,a.instance)}}),delete r.service.instance,Object.freeze(r.service),r}function U(e){Ya[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];"registerComponents"===e&&V(t[0]);for(var r in Ga){var o=Ga[r];o&&o[e]&&o[e].apply(o,t)}}}function V(e){Array.isArray(e)&&e.forEach(function(e){e&&e.type&&e.methods&&I(e.type,e.methods)})}function z(e){Ya[e]=function(){
for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=Qa[r];if(o&&Ga[o.framework]){var i=(a=Ga[o.framework])[e].apply(a,t);return"refreshInstance"===e?Ka.forEach(function(e){var t=e.options.refresh;t&&t(r,{info:o,runtime:Xa})}):"destroyInstance"===e&&(Ka.forEach(function(e){var t=e.options.destroy;t&&t(r,{info:o,runtime:Xa})}),delete Qa[r]),i}return new Error('invalid instance id "'+r+'"');var a}}function W(e,t){Ya[t]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=Qa[r];return o&&Ga[o.framework]?(i=Ga[o.framework])[e].apply(i,t):new Error('invalid instance id "'+r+'"');var i}}function q(e){this.nodeType=8,this.nodeId=b(),this.ref=this.nodeId,this.type="comment",this.value=e,this.children=[],this.pureChildren=[]}function J(e,t){this.id=e,this.batched=!1,this.updates=[],"function"==typeof t?Object.defineProperty(this,"handler",{configurable:!0,enumerable:!0,writable:!0,value:t}):console.error("[JS Runtime] invalid parameter, handler must b
e a function")}function H(e,t){return void 0===t&&(t=[]),{module:"dom",method:e,args:t}}function G(e,t){var n=t||global.callNative;return"function"!=typeof n&&console.error("[JS Runtime] no default handler"),function(t){Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var o=K(e,t[r],n);if(-1===o)return o}}}function X(e,t){return"dom"===e&&es[t]&&"function"==typeof global[es[t]]}function K(e,t,n){var r=t.module,o=t.method,i=t.args;return X(r,o)?global[es[o]].apply(global,[e].concat(i,["-1"])):n(e,[t],"-1")}function Z(e,t,n){e=e?e.toString():"",this.id=e,this.URL=t,y(e,this),this.nodeMap={};var r=Z.Listener||J;this.listener=new r(e,n||G(e,Z.handler)),this.taskCenter=new Ha(e,n?function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return n.apply(void 0,t)}:Z.handler),this.createDocumentElement()}function Q(e,t){var n=t.attrs||{};for(var r in n)e.setAttr(r,n[r],!0);var o=t.style||{};for(var i in o)e.setStyle(i,o[i],!0)}function Y(e,t){void 0===t&&(t={}),this.typ
e=e||"message",this.data=t.data||null,this.origin=t.origin||"",this.source=t.source||null,this.ports=t.ports||[],this.target=null,this.timeStamp=Date.now()}function ee(){}function te(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"==typeof Object.assign)Object.assign.apply(Object,[e].concat(t));else{var r=t.shift();for(var o in r)e[o]=r[o];t.length&&te.apply(void 0,[e].concat(t))}return e}function ne(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function re(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function oe(e,t){return ks.call(e,t)}function ie(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function ae(e){return null!==e&&"object"==typeof e}function se(e){return js.call(e)===As}function ue(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function ce(){return"object"==typeof nativeSet?nativeSet.create():new is}function le(e){v
ar t=Object.prototype.toString.call(e);return t.substring(8,t.length-1).toLowerCase()}function fe(e){return e.replace(Is,"").replace(Ns,"")}function pe(e){return e.replace(Ms,"")}function de(){this.id=Ls++,this.subs=[]}function he(e){de.target&&Bs.push(de.target),de.target=e}function ve(){de.target=Bs.pop()}function ye(){de.target=null,Bs=[]}function me(e,t,n,r){r&&te(this,r);var o="function"==typeof t;this.vm=e,e._watchers.push(this),this.expression=t,this.cb=n,this.id=++Us,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=ce(),this.newDepIds=ce(),o&&(this.getter=t),this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function _e(e,t){var n,r,o,i;if(t||(t=Vs).clear(),o=Array.isArray(e),i=ae(e),o||i){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(n=e.length;n--;)_e(e[n],t);else if(i)for(n=(r=Object.keys(e)).length;n--;)_e(e[r[n]],t)}}function ge(e){this.value=e,this.dep=new de,ne(e,"__ob__",this),Array.isArray(e)?((Ts
?be:we)(e,Ws,qs),this.observeArray(e)):this.walk(e)}function be(e,t){e.__proto__=t}function we(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];ne(e,i,t[i])}}function Ee(e,t){if(ae(e)){var n;return oe(e,"__ob__")&&e.__ob__ instanceof ge?n=e.__ob__:(Array.isArray(e)||se(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new ge(e)),n&&t&&n.addVm(t),n}}function Oe(e,t,n){var r=new de,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var i=o&&o.get,a=o&&o.set,s=Ee(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=i?i.call(e):n;if(de.target&&(r.depend(),s&&s.dep.depend(),Array.isArray(t)))for(var o=void 0,a=0,u=t.length;a<u;a++)(o=t[a])&&o.__ob__&&o.__ob__.dep.depend();return t},set:function(t){t!==(i?i.call(e):n)&&(a?a.call(e,t):n=t,s=Ee(t),r.notify())}})}}function Ce(e,t,n){if(Array.isArray(e))return e.splice(t,1,n);if(oe(e,t))e[t]=n;else if(e._isVue)Ce(e._data,t,n);else{var r=e.__ob__;if(r){if(r.convert(t,n),r.dep.notify(),r.vms)for(var o=r.vms
.length;o--;)Se(r.vms[o],t);return n}e[t]=n}}function Se(e,t){(Js.indexOf(t)>-1||!ue(t))&&Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}function xe(e,t){ue(t)||delete e[t]}function ke(e){e._watchers=[],je(e),Te(e),Ne(e)}function je(e){var t=e._data;se(t)||(t={});for(var n=Object.keys(t),r=n.length;r--;)Se(e,n[r]);Ee(t,e)}function Ae(){}function Te(e){var t=e._computed;if(t)for(var n in t){var r=t[n],o={enumerable:!0,configurable:!0};"function"==typeof r?(o.get=Ie(r,e),o.set=Ae):(o.get=r.get?!1!==r.cache?Ie(r.get,e):ie(r.get,e):Ae,o.set=r.set?ie(r.set,e):Ae),Object.defineProperty(e,n,o)}}function Ie(e,t){var n=new me(t,e,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),de.target&&n.depend(),n.value}}function Ne(e){var t=e._methods;if(t)for(var n in t)e[n]=t[n]}function Pe(e){var t=e.type,n=Gs[t];if("object"==typeof n)for(var r in n)if(null==e[r])e[r]=n[r];else if("object"===le(e[r])&&"object"==
=le(n[r]))for(var o in n[r])null==e[r][o]&&(e[r][o]=n[r][o])}function Me(e,t,n){Be(e,t,n.id,e),Ue(e,t,n.attr),ze(e,t,n.classList),We(e,t,n.style),Je(e,t,n.events)}function $e(e,t,n,r){t=t||{},n=n||{};var o=(t._options||{}).props;Array.isArray(o)&&(o=o.reduce(function(e,t){return e[t]=!0,e},{})),De(r,o,e,t),De(n.attr,o,e,t)}function Re(e,t,n,r){void 0===r&&(r={}),Le(n.classList,e,t),Fe(n.style,e,t),r.children?r.children[r.children.length-1]._vm=t:r._vm=t}function De(e,t,n,r){if(e){for(var o in e)!function(o){if(!t||t[o]){var i=e[o];if("function"==typeof i){var a=Xe(n,i,function(e){r[o]=e});r[o]=a}else r[o]=i}}(o)}}function Fe(e,t,n){for(var r in e)!function(r){var o=e[r];if("function"==typeof o){var i=Xe(t,o,function(e){n._rootEl&&n._rootEl.setStyle(r,e)});n._rootEl.setStyle(r,i)}else n._rootEl&&n._rootEl.setStyle(r,o)}(r)}function Le(e,t,n){function r(e,t){"array"===le(e)&&e.unshift(t)}var o=t._options&&t._options.style||{};if(n._rootEl){var i="@originalRootEl";if(o[i]=n._rootEl.cla
ssStyle,"function"==typeof e){var a=Xe(t,e,function(e){r(e,i),Ve(n._rootEl,o,e)});r(a,i),Ve(n._rootEl,o,a)}else null!=e&&(r(e,i),Ve(n._rootEl,o,e))}}function Be(e,t,n,r){var o=Object.create(null);if(Object.defineProperties(o,{vm:{value:r,writable:!1,configurable:!1},el:{get:function(){return t||r._rootEl},configurable:!1}}),"function"==typeof n){var i=n;((n=i.call(e))||0===n)&&(e._ids[n]=o),Xe(e,i,function(t){t&&(e._ids[t]=o)})}else n&&"string"==typeof n&&(e._ids[n]=o)}function Ue(e,t,n){He(e,t,"attr",n)}function Ve(e,t,n){"string"==typeof n&&(n=n.split(/\s+/)),n.forEach(function(e,t){n.splice.apply(n,[t,1].concat(e.split(/\s+/)))});for(var r={},o=n.length,i=0;i<o;i++)!function(e){var o=t[n[e]];o&&Object.keys(o).forEach(function(e){r[e]=o[e]})}(i);e.setClassStyle(r)}function ze(e,t,n){if("function"==typeof n||Array.isArray(n))if(!Array.isArray(n)||n.length){var r=e._options&&e._options.style||{};if("function"==typeof n){var o=Xe(e,n,function(e){Ve(t,r,e)});Ve(t,r,o)}else Ve(t,r,n)}e
lse t.setClassStyle({})}function We(e,t,n){He(e,t,"style",n)}function qe(e,t,n,r){t.addEvent(n,ie(r,e))}function Je(e,t,n){if(n)for(var r=Object.keys(n),o=r.length;o--;){var i=r[o],a=n[i];"string"==typeof a&&((a=e[a])||console.warn('[JS Framework] The event handler "'+a+'" is not defined.')),qe(e,t,i,a)}}function He(e,t,n,r){if(r)for(var o=Object.keys(r),i=o.length;i--;){var a=o[i],s=r[a];"function"==typeof s?Ge(e,t,n,a,s):t[Xs[n]](a,s)}}function Ge(e,t,n,r,o){var i=Xs[n],a=Xe(e,o,function(n){function o(){t[i](r,n)}var a=e&&e._app&&e._app.differ;a?a.append("element",t.depth,t.ref,o):o()});t[i](r,a)}function Xe(e,t,n){return e._static?t.call(e,e):new me(e,t,function(e,t){"object"!=typeof e&&e===t||n(e)}).value}function Ke(e,t){return e._app.doc.createBody(t)}function Ze(e,t){return e._app.doc.createElement(t)}function Qe(e,t){var n=Ye(e),r=et(e),o=Ks++;if(t.element){var i=t.updateMark;i?(i.element&&(i=i.end),t.element.insertAfter(r,i),t.element.insertAfter(n,i),t.updateMark=r):(t.ele
ment.insertBefore(n,t.end),t.element.insertBefore(r,t.end)),t=t.element}else t.appendChild(n),t.appendChild(r);return{start:n,end:r,element:t,blockId:o}}function Ye(e){return e._app.doc.createComment("start")}function et(e){return e._app.doc.createComment("end")}function tt(e,t,n){if(n.element){var r=n.end,o=n.updateMark;if(n.children&&n.children.push(t),o){var i=nt(e,t,o);return n.updateMark=t.element?t.end:t,i}if(!t.element)return n.element.insertBefore(t,r);n.element.insertBefore(t.start,r),n.element.insertBefore(t.end,r)}else{if(!t.element)return n.appendChild(t);n.appendChild(t.start),n.appendChild(t.end)}}function nt(e,t,n){return t.element?ot(t,n):rt(t,n)}function rt(e,t){var n=t.parentNode;if(n)return n.insertAfter(e,t)}function ot(e,t){var n=t.parentNode;if(n){for(var r,o=e.start,i=[o];o&&o!==e.end;)o=o.nextSibling,i.push(o);var a=t;return i.every(function(e){return r=n.insertAfter(e,a),a=e,-1!==r}),r}}function it(e,t,n){void 0===n&&(n=!1),t.element?st(t,n):at(t),t._vm&&t._
vm.$emit("hook:destroyed")}function at(e){var t=e.parentNode;t&&t.removeChild(e)}function st(e,t){void 0===t&&(t=!1);for(var n=[],r=e.start.nextSibling;r&&r!==e.end;)n.push(r),r=r.nextSibling;t||at(e.start),n.forEach(function(e){at(e)}),t||at(e.end)}function ut(e){var t=e._options||{},n=t.template||{};t.replace?n.children&&1===n.children.length?ct(e,n.children[0],e._parentEl):ct(e,n.children,e._parentEl):ct(e,n,e._parentEl),console.debug('[JS Framework] "ready" lifecycle in Vm('+e._type+")"),e.$emit("hook:ready"),e._ready=!0}function ct(e,t,n,r){if(-1!==(e._app||{}).lastSignal)if(t.attr&&t.attr.hasOwnProperty("static")&&(e._static=!0),lt(t))yt(e,t,n,r);else{if(r=r||{},ft(t))return console.debug('[JS Framework] compile "content" block by',t),void(e._content=Qe(e,n));if(pt(t,r))return console.debug('[JS Framework] compile "repeat" logic by',t),void("document"===n.type?console.warn("[JS Framework] The root element does't support `repeat` directive!"):mt(e,t,n));if(dt(t,r))return consol
e.debug('[JS Framework] compile "if" logic by',t),void("document"===n.type?console.warn("[JS Framework] The root element does't support `if` directive!"):_t(e,t,n,r));var o=r.type||t.type;if(ht(o,r))gt(e,t,n,o,r);else{var i=o,a=vt(e,t,i);if(a)return console.debug("[JS Framework] compile composed component by",t),void bt(e,a,t,n,i,r);console.debug("[JS Framework] compile native component by",t),wt(e,t,n,i)}}}function lt(e){return Array.isArray(e)}function ft(e){return"content"===e.type||"slot"===e.type}function pt(e,t){return!t.hasOwnProperty("repeat")&&e.repeat}function dt(e,t){return!t.hasOwnProperty("shown")&&e.shown}function ht(e,t){return"function"==typeof e&&!t.hasOwnProperty("type")}function vt(e,t,n){var r;return e._app&&e._app.customComponentMap&&(r=e._app.customComponentMap[n]),e._options&&e._options.components&&(r=e._options.components[n]),t.component&&(r=r||{}),r}function yt(e,t,n,r){var o=Qe(e,n);t.forEach(function(t){ct(e,t,o,r)})}function mt(e,t,n){var r=t.repeat,o="fu
nction"==typeof r,i=r.getter||r.expression||r;"function"!=typeof i&&(i=function(){return[]});var a=r.key||"$index",s=r.value||"$value",u=r.trackBy||t.trackBy||t.attr&&t.attr.trackBy,c=Qe(e,n);c.children=[],c.data=[],c.vms=[],Ot(e,t,c,{getter:i,key:a,value:s,trackBy:u,oldStyle:o})}function _t(e,t,n,r){var o={shown:!0},i=Qe(e,n);n.element&&n.children&&n.children.push(i),r.repeat&&(o.repeat=r.repeat),Ct(e,t,i,o)}function gt(e,t,n,r,o){var i=te({type:r.call(e)},o),a=Qe(e,n);n.element&&n.children&&n.children.push(a),Xe(e,r,function(n){var r=te({type:n},o);it(e,a,!0),ct(e,t,a,r)}),ct(e,t,a,i)}function bt(e,t,n,r,o,i){var a=new(0,e.constructor)(o,t,e,r,void 0,{"hook:init":function(){e._static&&(this._static=e._static),Be(e,null,n.id,this),this._externalBinding={parent:e,template:n}},"hook:created":function(){$e(e,this,n,i.repeat)},"hook:ready":function(){this._content&&Et(e,n,this._content)}});Re(e,a,n,r)}function wt(e,t,n,r){Pe(t);var o;if("_documentElement"===n.ref?(console.debug("[JS Fr
amework] compile to create body for "+r),o=Ke(e,r)):(console.debug("[JS Framework] compile to create element for "+r),o=Ze(e,r)),!e._rootEl){e._rootEl=o;var i=e._externalBinding||{},a=i.template,s=i.parent;if(a&&a.events&&s&&o)for(var u in a.events){var c=s[a.events[u]];c&&o.addEvent(u,ie(c,s))}}Me(e,o,t),t.attr&&t.attr.append&&(t.append=t.attr.append),t.append&&(o.attr=o.attr||{},o.attr.append=t.append);var l="tree"===t.append,f=e._app||{};-1===f.lastSignal||l||(console.debug("[JS Framework] compile to append single node for",o),f.lastSignal=tt(e,o,n)),-1!==f.lastSignal&&Et(e,t,o),-1!==f.lastSignal&&l&&(console.debug("[JS Framework] compile to append whole tree for",o),f.lastSignal=tt(e,o,n))}function Et(e,t,n){var r=e._app||{},o=t.children;o&&o.length&&o.every(function(t){return ct(e,t,n),-1!==r.lastSignal})}function Ot(e,t,n,r){function o(e,r,o){var a;c?(a=e,ae(e)?(a[l]=r,a.hasOwnProperty("INDEX")||Object.defineProperty(a,"INDEX",{value:function(){console.warn('[JS Framework] "IN
DEX" in repeat is deprecated, please use "$index" instead')}})):(console.warn("[JS Framework] Each list item must be an object in old-style repeat, please use `repeat={{v in list}}` instead."),(a={})[l]=r,a[f]=e)):((a={})[l]=r,a[f]=e);var s=xt(o,a);i.push(s),ct(s,t,n,{repeat:e})}var i=n.vms,a=n.children,s=r.getter,u=r.trackBy,c=r.oldStyle,l=r.key,f=r.value,p=St(e,n,s,"repeat",function(t){if(console.debug('[JS Framework] the "repeat" item has changed',t),n&&t){var r=a.slice(),s=i.slice(),p=n.data.slice(),d={},h={};t.forEach(function(e,t){var n=u?e[u]:c?e[l]:t;null!=n&&""!==n&&(d[n]=e)});var v=[];p.forEach(function(t,n){var o=u?t[u]:c?t[l]:n;d.hasOwnProperty(o)?(h[o]={item:t,index:n,key:o,target:r[n],vm:s[n]},v.push(t)):it(e,r[n])}),a.length=0,i.length=0,n.data=t.slice(),n.updateMark=n.start,t.forEach(function(t,r){var s=u?t[u]:c?t[l]:r,p=h[s];p?(p.item===v[0]?v.shift():(v.$remove(p.item),nt(e,p.target,n.updateMark,!0)),a.push(p.target),i.push(p.vm),c?p.vm=t:p.vm[f]=t,p.vm[l]=r,n.upda
teMark=p.target):o(t,r,e)}),delete n.updateMark}});n.data=p.slice(0),p.forEach(function(t,n){o(t,n,e)})}function Ct(e,t,n,r){var o=St(e,n,t.shown,"shown",function(o){console.debug('[JS Framework] the "if" item was changed',o),n&&!!n.display!=!!o&&(n.display=!!o,o?ct(e,t,n,r):it(e,n,!0))});n.display=!!o,o&&ct(e,t,n,r)}function St(e,t,n,r,o){var i=e&&e._app&&e._app.differ,a={},s=(t.element.depth||0)+1;return Xe(e,n,function(e){a.latestValue=e,i&&!a.recorded&&i.append(r,s,t.blockId,function(){var e=a.latestValue;o(e),a.recorded=!1,a.latestValue=void 0}),a.recorded=!0})}function xt(e,t){var n=Object.create(e);return n._data=t,je(n),Te(n),n._realParent=e,e._static&&(n._static=e._static),n}function kt(e,t){if(t instanceof kt)return t;this.timestamp=Date.now(),this.detail=t,this.type=e;var n=!1;this.stop=function(){n=!0},this.hasStopped=function(){return n}}function jt(e,t){var n=this,r=this._vmEvents[e];if(r){var o=new kt(e,t);r.forEach(function(e){e.call(n,o)})}}function At(e,t){var n=ne
w kt(e,t);this.$emit(e,n),!n.hasStopped()&&this._parent&&this._parent.$dispatch&&this._parent.$dispatch(e,n)}function Tt(e,t){var n=new kt(e,t);this.$emit(e,n),!n.hasStopped()&&this._childrenVms&&this._childrenVms.forEach(function(t){t.$broadcast(e,n)})}function It(e,t){if(e&&"function"==typeof t){var n=this._vmEvents,r=n[e]||[];r.push(t),n[e]=r,"hook:ready"===e&&this._ready&&this.$emit("hook:ready")}}function Nt(e,t){if(e){var n=this._vmEvents;if(t){var r=n[e];r&&r.$remove(t)}else delete n[e]}}function Pt(e,t){var n=e._options||{},r=n.events||{};for(var o in r)e.$on(o,r[o]);for(var i in t)e.$on(i,t[i]);Zs.forEach(function(t){e.$on("hook:"+t,n[t])})}function Mt(e,t,n,r,o,i){n=n||{},this._parent=n._realParent?n._realParent:n,this._app=n._app||{},n._childrenVms&&n._childrenVms.push(this),!t&&this._app.customComponentMap&&(t=this._app.customComponentMap[e]);var a=(t=t||{}).data||{};this._options=t,this._methods=t.methods||{},this._computed=t.computed||{},this._css=t.style||{},this._ids
={},this._vmEvents={},this._childrenVms=[],this._type=e,Pt(this,i),console.debug('[JS Framework] "init" lifecycle in Vm('+this._type+")"),this.$emit("hook:init"),this._inited=!0,this._data="function"==typeof a?a():a,o&&te(this._data,o),ke(this),console.debug('[JS Framework] "created" lifecycle in Vm('+this._type+")"),this.$emit("hook:created"),this._created=!0,t.methods&&t.methods.ready&&(console.warn('"exports.methods.ready" is deprecated, please use "exports.created" instead'),t.methods.ready.call(this)),this._app.doc&&(this._parentEl=r||this._app.doc.documentElement,ut(this))}function $t(e,t){for(var n in e)!function(n){var r=Qs[n];r||(r={},Qs[n]=r),e[n].forEach(function(e){"string"==typeof e&&(e={name:e}),r[e.name]&&!t||(r[e.name]=e)})}(n)}function Rt(e,t){var n=e.prototype;for(var r in t)n.hasOwnProperty(r)||(n[r]=t[r])}function Dt(e,t){var n=Qs[t],r={};for(var o in n)!function(n){Object.defineProperty(r,n,{configurable:!0,enumerable:!0,get:function(){return function(){for(var
r=[],o=arguments.length;o--;)r[o]=arguments[o];return e.callTasks({module:t,method:n,args:r})}},set:function(r){if("function"==typeof r)return e.callTasks({module:t,method:n,args:[r]})}})}(o);return r}function Ft(e,t){return e.customComponentMap[t]}function Lt(e,t,n){var r=e.customComponentMap;r[t]?console.error("[JS Framework] define a component("+t+") that already exists"):r[t]=n}function Bt(e){if(Ys.valid(e))return e;for(var t=(e="string"==typeof e?e:"").split("."),n=0,r=[];n<3;){var o="string"==typeof t[n]&&t[n]?t[n]:"0";r.push(o),n++}return r.join(".")}function Ut(e,t,n){var r={isDowngrade:!0,errorType:1,code:1e3},o=e.toLowerCase();return r.errorMessage=function(e,t,n){return"Downgrade["+e+"] :: deviceInfo "+t+" matched criteria "+n}(e,t,n),o.indexOf("osversion")>=0?r.code=1001:o.indexOf("appversion")>=0?r.code=1002:o.indexOf("weexversion")>=0?r.code=1003:o.indexOf("devicemodel")>=0&&(r.code=1004),r}function Vt(e,t){t=se(t=t||global.WXEnvironment)?t:{};var n={isDowngrade:!1};if
("function"===le(e)){var r=e.call(this,t,{semver:Ys,normalizeVersion:Bt});n=(r=!!r)?Ut("custom","","custom params"):n}else{var o=(e=se(e)?e:{})[(t.platform||"unknow").toLowerCase()]||{};for(var i in t){var a=i,s=a.toLowerCase(),u=t[i],c=s.indexOf("version")>=0,l=s.indexOf("devicemodel")>=0,f=o[i];if(f&&c){var p=Bt(f),d=Bt(t[i]);if(Ys.satisfies(d,p)){n=Ut(a,u,f);break}}else if(l&&("array"===le(f)?f:[f]).indexOf(u)>=0){n=Ut(a,u,f);break}}}return n}function zt(e,t){if(void 0===t&&(t={}),e&&e.callTasks)return e.callTasks([{module:"meta",method:"setViewport",args:[t]}])}function Wt(e,t,n,r){console.debug("[JS Framework] bootstrap for "+t);var o;if($s(t))o=fe(t);else{if(!Fs(t))return new Error("Wrong component name: "+t);if(o=pe(t),!Ft(e,o))return new Error("It's not a component: "+t)}if("string"==typeof(n=se(n)?n:{}).transformerVersion&&"string"==typeof global.transformerVersion&&!Ys.satisfies(n.transformerVersion,global.transformerVersion))return new Error("JS Bundle version: "+n.transf
ormerVersion+" not compatible with "+global.transformerVersion);var i=Vt(n.downgrade);if(i.isDowngrade)return e.callTasks([{module:"instanceWrap",method:"error",args:[i.errorType,i.code,i.errorMessage]}]),new Error("Downgrade["+i.code+"]: "+i.errorMessage);n.viewport&&zt(e,n.viewport),e.vm=new Mt(o,null,{_app:e},null,r)}function qt(e,t,n){console.warn("[JS Framework] Register is deprecated, please install lastest transformer."),Lt(e,t,n)}function Jt(e,t){console.debug("[JS Framework] Refresh with",t,"in instance["+e.id+"]");var n=e.vm;return n&&t?("function"==typeof n.refreshData?n.refreshData(t):te(n,t),e.differ.flush(),void e.doc.taskCenter.send("dom",{action:"refreshFinish"},[])):new Error('invalid data "'+t+'"')}function Ht(e){console.debug("[JS Framework] Destory an instance("+e.id+")"),e.vm&&Gt(e.vm),e.id="",e.options=null,e.blocks=null,e.vm=null,e.doc.taskCenter.destroyCallback(),e.doc.destroy(),e.doc=null,e.customComponentMap=null,e.commonModules=null}function Gt(e){if(delet
e e._app,delete e._computed,delete e._css,delete e._data,delete e._ids,delete e._methods,delete e._options,delete e._parent,delete e._parentEl,delete e._rootEl,e._watchers){for(var t=e._watchers.length;t--;)e._watchers[t].teardown();delete e._watchers}if(e._childrenVms){for(var n=e._childrenVms.length;n--;)Gt(e._childrenVms[n]);delete e._childrenVms}console.debug('[JS Framework] "destroyed" lifecycle in Vm('+e._type+")"),e.$emit("hook:destroyed"),delete e._type,delete e._vmEvents}function Xt(e){var t=(e.doc||{}).body||{};return t.toJSON?t.toJSON():{}}function Kt(e,t,n,r,o){console.debug('[JS Framework] Fire a "'+n+'" event on an element('+t+") in instance("+e.id+")");{if(!Array.isArray(t)){var i=e.doc.getRef(t);if(i){var a=e.doc.fireEvent(i,n,r,o);return e.differ.flush(),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),a}return new Error('invalid element reference "'+t+'"')}t.some(function(t){return!1!==Kt(e,t,n,r)})}}function Zt(e,t,n,r){console.debug("[JS Framework] Invoke
a callback("+t+") with",n,"in instance("+e.id+")");var o=e.doc.taskCenter.callback(t,n,r);return Qt(e),e.doc.taskCenter.send("dom",{action:"updateFinish"},[]),o}function Qt(e){e.differ.flush()}function Yt(e,t){var n;return"array"!==le(t)&&(t=[t]),t.forEach(function(t){n=e.doc.taskCenter.send("module",{module:t.module,method:t.method},t.args)}),n}function en(e,t,n,r){console.debug("[JS Framework] Intialize an instance with:\n",n);var o,i=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return eu.apply(void 0,[e].concat(t))},a=function(t,r,i){o=Wt(e,t,r,i||n),Qt(e),e.doc.listener.createFinish(),console.debug("[JS Framework] After intialized an instance("+e.id+")")},s=Mt,u=e.doc,c=function(t){return e.requireModule(fe(t))},l={config:e.options,define:i,bootstrap:a,requireModule:c,document:u,Vm:s};Object.freeze(l);var f;"function"==typeof t?f=t.toString().substr(12):t&&(f=t.toString()),f='(function(global){\n\n"use strict";\n\n '+f+" \n\n})(Object.create(this))";var p=gl
obal.WXEnvironment,d={};if(p&&"Web"!==p.platform){var h=e.requireModule("timer");Object.assign(d,{setTimeout:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return h.setTimeout(function(){t[0].apply(t,t.slice(2))},t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},setInterval:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return h.setInterval(function(){t[0].apply(t,t.slice(2))},t[1]),e.doc.taskCenter.callbackManager.lastCallbackId.toString()},clearTimeout:function(e){h.clearTimeout(e)},clearInterval:function(e){h.clearInterval(e)}})}var v=Object.assign({define:i,require:function(t){return function(n){o=Wt(e,t,{},n)}},bootstrap:a,register:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return qt.apply(void 0,[e].concat(t))},render:function(t,n){o=Wt(e,t,{},n)},__weex_define__:i,__weex_bootstrap__:a,__weex_document__:u,__weex_require__:c,__weex_viewmodel__:s,weex:l},d,r);return nn(v,f)||tn(v,f),o}function tn(e,t){v
ar n=[],r=[];for(var o in e)n.push(o),r.push(e[o]);return n.push(t),(new(Function.prototype.bind.apply(Function,[null].concat(n)))).apply(void 0,r)}function nn(e,t){if("function"!=typeof compileAndRunBundle)return!1;var n=void 0,r=!1,o="(function (",i=[],a=[];for(var s in e)i.push(s),a.push(e[s]);for(var u=0;u<i.length-1;++u)o+=i[u],o+=",";o+=i[i.length-1],o+=") {",o+=t,o+="} )";try{var c=(e.weex||{}).config||{};(n=compileAndRunBundle(o,c.bundleUrl,c.bundleDigest,c.codeCachePath))&&"function"==typeof n&&(n.apply(void 0,a),r=!0)}catch(e){console.error(e)}return r}function rn(e,t){var n=e[t];for(var r in n)n[r]()}function on(e,t){var n=e[t];for(var r in n)n[r].forEach(function(e){e()})}function an(e,t){this.id=e,this.options=t||{},this.vm=null,this.customComponentMap={},this.commonModules={},this.doc=new Hs.Document(e,this.options.bundleUrl,null,Hs.Listener),this.differ=new tu(e)}function sn(e){"object"==typeof e&&Rt(Mt,e)}var un={browser:"0.5.0",framework:"0.21.8","vue-render":"0.12.
3",transformer:">=0.1.5 <0.5"};Array.from||(Array.from=function(){var e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t},r=Math.pow(2,53)-1,o=function(e){var t=n(e);return Math.min(Math.max(t,0),r)};return function(e){var n=this,r=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2])}for(var s,u=o(r.length),c=t(n)?Object(new n(u)):new Array(u),l=0;l<u;)s=r[l],c[l]=a?void 0===i?a(s,l):a.call(i,s,l):s,l+=1;return c.length=u,c}}());var cn="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{},ln=t(function(e){var t=e.exports="undefined"!=typeof windo
w&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),fn=t(function(e){var t=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=t)}),pn=function(e){return"object"==typeof e?null!==e:"function"==typeof e},dn=pn,hn=function(e){if(!dn(e))throw TypeError(e+" is not an object!");return e},vn=function(e){try{return!!e()}catch(e){return!0}},yn=!vn(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),mn=pn,_n=ln.document,gn=mn(_n)&&mn(_n.createElement),bn=function(e){return gn?_n.createElement(e):{}},wn=!yn&&!vn(function(){return 7!=Object.defineProperty(bn("div"),"a",{get:function(){return 7}}).a}),En=pn,On=hn,Cn=wn,Sn=function(e,t){if(!En(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!En(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!En(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!En(r=n.call(e)))return r;throw TypeError("Can't conver
t object to primitive value")},xn=Object.defineProperty,kn={f:yn?Object.defineProperty:function(e,t,n){if(On(e),t=Sn(t,!0),On(n),Cn)try{return xn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},jn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},An=kn,Tn=jn,In=yn?function(e,t,n){return An.f(e,t,Tn(1,n))}:function(e,t,n){return e[t]=n,e},Nn={}.hasOwnProperty,Pn=function(e,t){return Nn.call(e,t)},Mn=0,$n=Math.random(),Rn=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++Mn+$n).toString(36))},Dn=t(function(e){var t=ln,n=In,r=Pn,o=Rn("src"),i=Function.toString,a=(""+i).split("toString");fn.inspectSource=function(e){return i.call(e)},(e.exports=function(e,i,s,u){var c="function"==typeof s;c&&(r(s,"name")||n(s,"name",i)),e[i]!==s&&(c&&(r(s,o)||n(s,o,e[i]?""+e[i]:a.join(String(i)))),e===t?e[i]=s:u?e[i]?e[i]=s:n(e,i,s):(delete e[i],n(e,i,s)))})(Function.prototype,"toString
",function(){return"function"==typeof this&&this[o]||i.call(this)})}),Fn=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},Ln=Fn,Bn=function(e,t,n){if(Ln(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},Un=ln,Vn=fn,zn=In,Wn=Dn,qn=Bn,Jn=function(e,t,n){var r,o,i,a,s=e&Jn.F,u=e&Jn.G,c=e&Jn.S,l=e&Jn.P,f=e&Jn.B,p=u?Un:c?Un[t]||(Un[t]={}):(Un[t]||{}).prototype,d=u?Vn:Vn[t]||(Vn[t]={}),h=d.prototype||(d.prototype={});u&&(n=t);for(r in n)i=((o=!s&&p&&void 0!==p[r])?p:n)[r],a=f&&o?qn(i,Un):l&&"function"==typeof i?qn(Function.call,i):i,p&&Wn(p,r,i,e&Jn.U),d[r]!=i&&zn(d,r,a),l&&h[r]!=i&&(h[r]=i)};Un.core=Vn,Jn.F=1,Jn.G=2,Jn.S=4,Jn.P=8,Jn.B=16,Jn.W=32,Jn.U=64,Jn.R=128;var Hn=Jn,Gn={}.toString,Xn=function(e){return Gn.call(e).slice(8,-1)},Kn=Xn,Zn=Object("z").propertyIsEnumerable
(0)?Object:function(e){return"String"==Kn(e)?e.split(""):Object(e)},Qn=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},Yn=Zn,er=Qn,tr=function(e){return Yn(er(e))},nr=Math.ceil,rr=Math.floor,or=function(e){return isNaN(e=+e)?0:(e>0?rr:nr)(e)},ir=or,ar=Math.min,sr=function(e){return e>0?ar(ir(e),9007199254740991):0},ur=or,cr=Math.max,lr=Math.min,fr=tr,pr=sr,dr=function(e,t){return(e=ur(e))<0?cr(e+t,0):lr(e,t)},hr=ln,vr=hr["__core-js_shared__"]||(hr["__core-js_shared__"]={}),yr=function(e){return vr[e]||(vr[e]={})},mr=yr("keys"),_r=Rn,gr=function(e){return mr[e]||(mr[e]=_r(e))},br=Pn,wr=tr,Er=function(e){return function(t,n,r){var o,i=fr(t),a=pr(i.length),s=dr(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}}(!1),Or=gr("IE_PROTO"),Cr="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Sr=function(e,t){var n,r=wr(e),o=0,i=[];f
or(n in r)n!=Or&&br(r,n)&&i.push(n);for(;t.length>o;)br(r,n=t[o++])&&(~Er(i,n)||i.push(n));return i},xr=Cr,kr=Object.keys||function(e){return Sr(e,xr)},jr=Qn,Ar=function(e){return Object(jr(e))},Tr=kr,Ir={f:Object.getOwnPropertySymbols},Nr={f:{}.propertyIsEnumerable},Pr=Ar,Mr=Zn,$r=Object.assign,Rr=!$r||vn(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=$r({},e)[n]||Object.keys($r({},t)).join("")!=r})?function(e,t){for(var n=arguments,r=Pr(e),o=arguments.length,i=1,a=Ir.f,s=Nr.f;o>i;)for(var u,c=Mr(n[i++]),l=a?Tr(c).concat(a(c)):Tr(c),f=l.length,p=0;f>p;)s.call(c,u=l[p++])&&(r[u]=c[u]);return r}:$r,Dr=Hn;Dr(Dr.S+Dr.F,"Object",{assign:Rr}),Object.setPrototypeOf||(Object.setPrototypeOf=function(e,t){function n(e,t){return r.call(e,t),e}var r;try{(r=e.getOwnPropertyDescriptor(e.prototype,"__proto__").set).call({},null)}catch(t){if(e.prototype!=={}.__proto__||void 0==={__proto__:null}.__proto__)return;r=function(e){t
his.__proto__=e},n.polyfill=n(n({},null),e.prototype)instanceof e}return n}(Object));var Fr=cn.WXEnvironment;Fr&&"iOS"===Fr.platform&&(cn.Promise=void 0);var Lr=t(function(e){var t=yr("wks"),n=Rn,r=ln.Symbol,o="function"==typeof r;(e.exports=function(e){return t[e]||(t[e]=o&&r[e]||(o?r:n)("Symbol."+e))}).store=t}),Br=Xn,Ur=Lr("toStringTag"),Vr="Arguments"==Br(function(){return arguments}()),zr=function(e,t){try{return e[t]}catch(e){}},Wr=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=zr(t=Object(e),Ur))?n:Vr?Br(t):"Object"==(r=Br(t))&&"function"==typeof t.callee?"Arguments":r},qr=Wr,Jr={};Jr[Lr("toStringTag")]="z",Jr+""!="[object z]"&&Dn(Object.prototype,"toString",function(){return"[object "+qr(this)+"]"},!0);var Hr=or,Gr=Qn,Xr={},Kr=kn,Zr=hn,Qr=kr,Yr=yn?Object.defineProperties:function(e,t){Zr(e);for(var n,r=Qr(t),o=r.length,i=0;o>i;)Kr.f(e,n=r[i++],t[n]);return e},eo=ln.document,to=eo&&eo.documentElement,no=hn,ro=Yr,oo=Cr,io=gr("IE_PROTO"),
ao=function(){},so=function(){var e,t=bn("iframe"),n=oo.length;for(t.style.display="none",to.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),so=e.F;n--;)delete so.prototype[oo[n]];return so()},uo=Object.create||function(e,t){var n;return null!==e?(ao.prototype=no(e),n=new ao,ao.prototype=null,n[io]=e):n=so(),void 0===t?n:ro(n,t)},co=kn.f,lo=Pn,fo=Lr("toStringTag"),po=function(e,t,n){e&&!lo(e=n?e:e.prototype,fo)&&co(e,fo,{configurable:!0,value:t})},ho=uo,vo=jn,yo=po,mo={};In(mo,Lr("iterator"),function(){return this});var _o=Pn,go=Ar,bo=gr("IE_PROTO"),wo=Object.prototype,Eo=Object.getPrototypeOf||function(e){return e=go(e),_o(e,bo)?e[bo]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?wo:null},Oo=Hn,Co=Dn,So=In,xo=Pn,ko=Xr,jo=function(e,t,n){e.prototype=ho(mo,{next:vo(1,n)}),yo(e,t+" Iterator")},Ao=po,To=Eo,Io=Lr("iterator"),No=!([].keys&&"next"in[].
keys()),Po=function(){return this},Mo=function(e,t,n,r,o,i,a){jo(n,t,r);var s,u,c,l=function(e){if(!No&&e in h)return h[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},f=t+" Iterator",p="values"==o,d=!1,h=e.prototype,v=h[Io]||h["@@iterator"]||o&&h[o],y=v||l(o),m=o?p?l("entries"):y:void 0,_="Array"==t?h.entries||v:v;if(_&&(c=To(_.call(new e)))!==Object.prototype&&c.next&&(Ao(c,f,!0),xo(c,Io)||So(c,Io,Po)),p&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),(No||d||!h[Io])&&So(h,Io,y),ko[t]=y,ko[f]=Po,o)if(s={values:p?y:l("values"),keys:i?y:l("keys"),entries:m},a)for(u in s)u in h||Co(h,u,s[u]);else Oo(Oo.P+Oo.F*(No||d),t,s);return s},$o=function(e){return function(t,n){var r,o,i=String(Gr(t)),a=Hr(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}}(!0);Mo(String,"Stri
ng",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=$o(t,n),this._i+=e.length,{value:e,done:!1})});var Ro=Lr("unscopables"),Do=Array.prototype;void 0==Do[Ro]&&In(Do,Ro,{});var Fo=function(e){Do[Ro][e]=!0},Lo=function(e,t){return{value:t,done:!!e}},Bo=Xr,Uo=tr,Vo=Mo(Array,"Array",function(e,t){this._t=Uo(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,Lo(1)):"keys"==t?Lo(0,n):"values"==t?Lo(0,e[n]):Lo(0,[n,e[n]])},"values");Bo.Arguments=Bo.Array,Fo("keys"),Fo("values"),Fo("entries");for(var zo=Vo,Wo=kr,qo=Dn,Jo=ln,Ho=In,Go=Xr,Xo=Lr,Ko=Xo("iterator"),Zo=Xo("toStringTag"),Qo=Go.Array,Yo={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,Name
dNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},ei=Wo(Yo),ti=0;ti<ei.length;ti++){var ni,ri=ei[ti],oi=Yo[ri],ii=Jo[ri],ai=ii&&ii.prototype;if(ai&&(ai[Ko]||Ho(ai,Ko,Qo),ai[Zo]||Ho(ai,Zo,ri),Go[ri]=Qo,oi))for(ni in zo)ai[ni]||qo(ai,ni,zo[ni],!0)}var si,ui,ci,li=hn,fi=function(e,t,n,r){try{return r?t(li(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&li(o.call(e)),t}},pi=Xr,di=Lr("iterator"),hi=Array.prototype,vi=function(e){return void 0!==e&&(pi.Array===e||hi[di]===e)},yi=Wr,mi=Lr("iterator"),_i=Xr,gi=fn.getIteratorMethod=function(e){if(void 0!=e)return e[mi]||e["@@iterator"]||_i[yi(e)]},bi=t(function(e){var t=Bn,n=fi,r=vi,o=hn,i=sr,a=gi,s={},u={},c=e.exports=function(e,c,l,f,p){var d,h,v,y,m=p?function(){return e}:a(e),_=t(l,f,c?2:1),g=0;if("function"!=typeof m
)throw TypeError(e+" is not iterable!");if(r(m)){for(d=i(e.length);d>g;g++)if((y=c?_(o(h=e[g])[0],h[1]):_(e[g]))===s||y===u)return y}else for(v=m.call(e);!(h=v.next()).done;)if((y=n(v,_,h.value,c))===s||y===u)return y};c.BREAK=s,c.RETURN=u}),wi=hn,Ei=Fn,Oi=Lr("species"),Ci=Bn,Si=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)},xi=to,ki=bn,ji=ln,Ai=ji.process,Ti=ji.setImmediate,Ii=ji.clearImmediate,Ni=ji.MessageChannel,Pi=ji.Dispatch,Mi=0,$i={},Ri=function(){var e=+this;if($i.hasOwnProperty(e)){var t=$i[e];delete $i[e],t()}},Di=function(e){Ri.call(e.data)};Ti&&Ii||(Ti=function(e){for(var t=arguments,n=[],r=1;arguments.length>r;)n.push(t[r++]);return $i[++Mi]=function(){Si("function"==typeof e?e:Function(e),n)},si(Mi),Mi}
,Ii=function(e){delete $i[e]},"process"==Xn(Ai)?si=function(e){Ai.nextTick(Ci(Ri,e,1))}:Pi&&Pi.now?si=function(e){Pi.now(Ci(Ri,e,1))}:Ni?(ci=(ui=new Ni).port2,ui.port1.onmessage=Di,si=Ci(ci.postMessage,ci,1)):ji.addEventListener&&"function"==typeof postMessage&&!ji.importScripts?(si=function(e){ji.postMessage(e+"","*")},ji.addEventListener("message",Di,!1)):si="onreadystatechange"in ki("script")?function(e){xi.appendChild(ki("script")).onreadystatechange=function(){xi.removeChild(this),Ri.call(e)}}:function(e){setTimeout(Ci(Ri,e,1),0)});var Fi={set:Ti,clear:Ii},Li=ln,Bi=Fi.set,Ui=Li.MutationObserver||Li.WebKitMutationObserver,Vi=Li.process,zi=Li.Promise,Wi="process"==Xn(Vi),qi=Fn,Ji={f:function(e){return new n(e)}},Hi=Ji,Gi=Dn,Xi=ln,Ki=kn,Zi=yn,Qi=Lr("species"),Yi=Lr("iterator"),ea=!1;try{var ta=[7][Yi]();ta.return=function(){ea=!0},Array.from(ta,function(){throw 2})}catch(e){}var na,ra,oa,ia=ln,aa=Bn,sa=Wr,ua=Hn,ca=pn,la=Fn,fa=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r i
n e)throw TypeError(n+": incorrect invocation!");return e},pa=bi,da=function(e,t){var n,r=wi(e).constructor;return void 0===r||void 0==(n=wi(r)[Oi])?t:Ei(n)},ha=Fi.set,va=function(){var e,t,n,r=function(){var r,o;for(Wi&&(r=Vi.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(Wi)n=function(){Vi.nextTick(r)};else if(Ui){var o=!0,i=document.createTextNode("");new Ui(r).observe(i,{characterData:!0}),n=function(){i.data=o=!o}}else if(zi&&zi.resolve){var a=zi.resolve();n=function(){a.then(r)}}else n=function(){Bi.call(Li,r)};return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}(),ya=Ji,ma=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},_a=function(e,t){var n=Hi.f(e);return(0,n.resolve)(t),n.promise},ga=ia.TypeError,ba=ia.process,wa=ia.Promise,Ea="process"==sa(ba),Oa=function(){},Ca=ra=ya.f,Sa=!!function(){try{var e=wa.resolve(1),t=(e.constructor={})[Lr("species")]=function(e){e(Oa,Oa)};return(Ea|
|"function"==typeof PromiseRejectionEvent)&&e.then(Oa)instanceof t}catch(e){}}(),xa=function(e,t){return e===t},ka=function(e){var t;return!(!ca(e)||"function"!=typeof(t=e.then))&&t},ja=function(e,t){if(!e._n){e._n=!0;var n=e._c;va(function(){for(var r=e._v,o=1==e._s,i=0;n.length>i;)!function(t){var n,i,a=o?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{a?(o||(2==e._h&&Ia(e),e._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===t.promise?u(ga("Promise-chain cycle")):(i=ka(n))?i.call(n,s,u):s(n)):u(r)}catch(e){u(e)}}(n[i++]);e._c=[],e._n=!1,t&&!e._h&&Aa(e)})}},Aa=function(e){ha.call(ia,function(){var t,n,r,o=e._v,i=Ta(e);if(i&&(t=ma(function(){Ea?ba.emit("unhandledRejection",o,e):(n=ia.onunhandledrejection)?n({promise:e,reason:o}):(r=ia.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=Ea||Ta(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},Ta=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if((t=n[r++]).fail||!Ta(t.promise))return!1;return!0},Ia=
function(e){ha.call(ia,function(){var t;Ea?ba.emit("rejectionHandled",e):(t=ia.onrejectionhandled)&&t({promise:e,reason:e._v})})},Na=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),ja(t,!0))},Pa=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw ga("Promise can't be resolved itself");(t=ka(e))?va(function(){var r={_w:n,_d:!1};try{t.call(e,aa(Pa,r,1),aa(Na,r,1))}catch(e){Na.call(r,e)}}):(n._v=e,n._s=1,ja(n,!1))}catch(e){Na.call({_w:n,_d:!1},e)}}};Sa||(wa=function(e){fa(this,wa,"Promise","_h"),la(e),na.call(this);try{e(aa(Pa,this,1),aa(Na,this,1))}catch(e){Na.call(this,e)}},(na=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var r in t)Gi(e,r,t[r],n);return e}(wa.prototype,{then:function(e,t){var n=Ca(da(this,wa));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Ea?ba.domain:void 0,this._c.push(n),this._a&&this._a.push(n
),this._s&&ja(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),oa=function(){var e=new na;this.promise=e,this.resolve=aa(Pa,e,1),this.reject=aa(Na,e,1)},ya.f=Ca=function(e){return xa(wa,e)?new oa(e):ra(e)}),ua(ua.G+ua.W+ua.F*!Sa,{Promise:wa}),po(wa,"Promise"),function(e){var t=Xi[e];Zi&&t&&!t[Qi]&&Ki.f(t,Qi,{configurable:!0,get:function(){return this}})}("Promise"),fn.Promise,ua(ua.S+ua.F*!Sa,"Promise",{reject:function(e){var t=Ca(this);return(0,t.reject)(e),t.promise}}),ua(ua.S+ua.F*!Sa,"Promise",{resolve:function(e){return e instanceof wa&&xa(e.constructor,this)?e:_a(this,e)}}),ua(ua.S+ua.F*!(Sa&&function(e,t){if(!t&&!ea)return!1;var n=!1;try{var r=[7],o=r[Yi]();o.next=function(){return{done:n=!0}},r[Yi]=function(){return o},e(r)}catch(e){}return n}(function(e){wa.all(e).catch(Oa)})),"Promise",{all:function(e){var t=this,n=Ca(t),r=n.resolve,o=n.reject,i=ma(function(){var n=[],i=0,a=1;pa(e,!1,function(e){var s=i++,u=!1;n.push(void 0),a++,t.resolve(e).then(functio
n(e){u||(u=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=Ca(t),r=n.reject,o=ma(function(){pa(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}});var Ma=["off","error","warn","info","log","debug"],$a={},Ra=global.console,Da=global.setTimeout,Fa=global.setTimeoutNative;a();var La=function(e){this.instanceId=e,this.lastCallbackId=0,this.callbacks={}};La.prototype.add=function(e){return this.lastCallbackId++,this.callbacks[this.lastCallbackId]=e,this.lastCallbackId},La.prototype.remove=function(e){var t=this.callbacks[e];return delete this.callbacks[e],t},La.prototype.consume=function(e,t,n){var r=this.callbacks[e];return void 0!==n&&!1!==n||delete this.callbacks[e],"function"==typeof r?r(v(t)):new Error('invalid callback id "'+e+'"')},La.prototype.close=function(){this.callbacks={}};var Ba={},Ua=1;T.prototype.destroy=function(){var e=m(this.docId);e&&(delete this.docId,delete e.nodeMap[this.nodeId]),th
is.children.forEach(function(e){e.destroy()})};var Va,za={},Wa="div",qa=["click","longpress","touchstart","touchmove","touchend","panstart","panmove","panend","horizontalpan","verticalpan","swipe"];(N.prototype=Object.create(T.prototype)).constructor=N,function(e){Va=e}(N),Object.assign(N.prototype,{appendChild:function(e){if(!e.parentNode||e.parentNode===this)if(e.parentNode){if(j(e,this.children,this.children.length,!0),1===e.nodeType){var t=j(e,this.pureChildren,this.pureChildren.length),n=g(this.docId);if(n&&t>=0)return n.send("dom",{action:"moveElement"},[e.ref,this.ref,t])}}else if(C(e,this),k(e,this.children,this.children.length,!0),this.docId&&P(this.docId,e),1===e.nodeType){k(e,this.pureChildren,this.pureChildren.length);var r=g(this.docId);if(r)return r.send("dom",{action:"addElement"},[this.ref,e.toJSON(),-1])}},insertBefore:function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.nextSibling&&e.nextSibling===t))if(e.parentNode){if(j(e,this.children,this.children.in
dexOf(t),!0),1===e.nodeType){var n=S(t),r=j(e,this.pureChildren,n?this.pureChildren.indexOf(n):this.pureChildren.length),o=g(this.docId);if(o&&r>=0)return o.send("dom",{action:"moveElement"},[e.ref,this.ref,r])}}else if(C(e,this),k(e,this.children,this.children.indexOf(t),!0),this.docId&&P(this.docId,e),1===e.nodeType){var i=S(t),a=k(e,this.pureChildren,i?this.pureChildren.indexOf(i):this.pureChildren.length),s=g(this.docId);if(s)return s.send("dom",{action:"addElement"},[this.ref,e.toJSON(),a])}},insertAfter:function(e,t){if(!(e.parentNode&&e.parentNode!==this||e===t||e.previousSibling&&e.previousSibling===t))if(e.parentNode){if(j(e,this.children,this.children.indexOf(t)+1,!0),1===e.nodeType){var n=j(e,this.pureChildren,this.pureChildren.indexOf(x(t))+1),r=g(this.docId);if(r&&n>=0)return r.send("dom",{action:"moveElement"},[e.ref,this.ref,n])}}else if(C(e,this),k(e,this.children,this.children.indexOf(t)+1,!0),this.docId&&P(this.docId,e),1===e.nodeType){var o=k(e,this.pureChildren,t
his.pureChildren.indexOf(x(t))+1),i=g(this.docId);if(i)return i.send("dom",{action:"addElement"},[this.ref,e.toJSON(),o])}},removeChild:function(e,t){if(e.parentNode&&(A(e,this.children,!0),1===e.nodeType)){A(e,this.pureChildren);var n=g(this.docId);n&&n.send("dom",{action:"removeElement"},[e.ref])}t||e.destroy()},clear:function(){var e=g(this.docId);e&&this.pureChildren.forEach(function(t){e.send("dom",{action:"removeElement"},[t.ref])}),this.children.forEach(function(e){e.destroy()}),this.children.length=0,this.pureChildren.length=0},setAttr:function(e,t,n){if(this.attr[e]!==t||!1===n){this.attr[e]=t;var r=g(this.docId);if(!n&&r){var o={};o[e]=t,r.send("dom",{action:"updateAttrs"},[this.ref,o])}}},setStyle:function(e,t,n){if(this.style[e]!==t||!1===n){this.style[e]=t;var r=g(this.docId);if(!n&&r){var o={};o[e]=t,r.send("dom",{action:"updateStyle"},[this.ref,o])}}},setClassStyle:function(e){var t=this;for(var n in this.classStyle)t.classStyle[n]="";Object.assign(this.classStyle,e);
var r=g(this.docId);r&&r.send("dom",{action:"updateStyle"},[this.ref,this.toStyle()])},addEvent:function(e,t){if(!this.event[e]){this.event[e]=t;var n=g(this.docId);n&&n.send("dom",{action:"addEvent"},[this.ref,e])}},removeEvent:function(e){if(this.event[e]){delete this.event[e];var t=g(this.docId);t&&t.send("dom",{action:"removeEvent"},[this.ref,e])}},fireEvent:function(e,t,n){var r=null,o=!1,i=this.event[e];return i&&t&&(t.stopPropagation=function(){o=!0},r=i.call(this,t)),!o&&n&&qa.includes(e)&&this.parentNode&&this.parentNode.fireEvent&&(t.currentTarget=this.parentNode,this.parentNode.fireEvent(e,t,n)),r},toStyle:function(){return Object.assign({},this.classStyle,this.style)},toJSON:function(){var e={ref:this.ref.toString(),type:this.type,attr:this.attr,style:this.toStyle()},t=Object.keys(this.event);return t.length&&(e.event=t),this.pureChildren.length&&(e.children=this.pureChildren.map(function(e){return e.toJSON()})),e},toString:function(){return"<"+this.type+" attr="+JSON.st
ringify(this.attr)+" style="+JSON.stringify(this.toStyle())+">"+this.pureChildren.map(function(e){return e.toString()}).join("")+"</"+this.type+">"}});var Ja=function(){},Ha=function(e,t){Object.defineProperty(this,"instanceId",{enumerable:!0,value:e}),Object.defineProperty(this,"callbackManager",{enumerable:!0,value:new La(e)}),Ja=t||function(){}};Ha.prototype.callback=function(e,t,n){return this.callbackManager.consume(e,t,n)},Ha.prototype.destroyCallback=function(){return this.callbackManager.close()},Ha.prototype.normalize=function(e){var t=f(e);return e&&e instanceof N?e.ref:e&&e._isVue&&e.$el instanceof N?e.$el.ref:"Function"===t?this.callbackManager.add(e).toString():h(e)},Ha.prototype.send=function(e,t,n,r){var o=this,i=t.action,a=t.component,s=t.ref,u=t.module,c=t.method;switch(n=n.map(function(e){return o.normalize(e)}),e){case"dom":return this[i](this.instanceId,n);case"component":return this.componentHandler(this.instanceId,s,c,n,Object.assign({component:a},r));default:r
eturn this.moduleHandler(this.instanceId,u,c,n,r)}},Ha.prototype.callDOM=function(e,t){return this[e](this.instanceId,t)},Ha.prototype.callComponent=function(e,t,n,r){return this.componentHandler(this.instanceId,e,t,n,r)},Ha.prototype.callModule=function(e,t,n,r){return this.moduleHandler(this.instanceId,e,t,n,r)};var Ga,Xa,Ka=[],Za=/^\s*\/\/ *(\{[^}]*\}) *\r?\n/,Qa={},Ya={createInstance:function(e,t,n,r){var o=Qa[e];if(!o){o=L(t)||{},Ga[o.framework]||(o.framework="Weex"),(n=JSON.parse(JSON.stringify(n||{}))).bundleVersion=o.version,n.env=JSON.parse(JSON.stringify(global.WXEnvironment||{})),console.debug("[JS Framework] create an "+o.framework+"@"+n.bundleVersion+" instance from "+n.bundleVersion);var i={info:o,config:n,created:Date.now(),framework:o.framework};return i.services=B(e,i,Xa),Qa[e]=i,Ga[o.framework].createInstance(e,t,n,r,i)}return new Error('invalid instance id "'+e+'"')},registerService:$,unregisterService:R};(q.prototype=Object.create(T.prototype)).constructor=q,q.pr
ototype.toString=function(){return"\x3c!-- "+this.value+" --\x3e"},Object.assign(J.prototype,{createFinish:function(e){return(0,this.handler)([H("createFinish")],e)},updateFinish:function(e){return(0,this.handler)([H("updateFinish")],e)},refreshFinish:function(e){return(0,this.handler)([H("refreshFinish")],e)},createBody:function(e){var t=e.toJSON(),n=t.children;delete t.children;var r=[H("createBody",[t])];return n&&r.push.apply(r,n.map(function(e){return H("addElement",[t.ref,e,-1])})),this.addActions(r)},addElement:function(e,t,n){return n>=0||(n=-1),this.addActions(H("addElement",[t,e.toJSON(),n]))},removeElement:function(e){if(Array.isArray(e)){var t=e.map(function(e){return H("removeElement",[e])});return this.addActions(t)}return this.addActions(H("removeElement",[e]))},moveElement:function(e,t,n){return this.addActions(H("moveElement",[e,t,n]))},setAttr:function(e,t,n){var r={};return r[t]=n,this.addActions(H("updateAttrs",[e,r]))},setStyle:function(e,t,n){var r={};return r[
t]=n,this.addActions(H("updateStyle",[e,r]))},setStyles:function(e,t){return this.addActions(H("updateStyle",[e,t]))},addEvent:function(e,t){return this.addActions(H("addEvent",[e,t]))},removeEvent:function(e,t){return this.addActions(H("removeEvent",[e,t]))},handler:function(e,t){return t&&t()},addActions:function(e){var t=this.updates,n=this.handler;if(Array.isArray(e)||(e=[e]),!this.batched)return n(e);t.push.apply(t,e)}});var es={createBody:"callCreateBody",addElement:"callAddElement",removeElement:"callRemoveElement",moveElement:"callMoveElement",updateAttrs:"callUpdateAttrs",updateStyle:"callUpdateStyle",addEvent:"callAddEvent",removeEvent:"callRemoveEvent"};Z.handler=null,Object.assign(Z.prototype,{getRef:function(e){return this.nodeMap[e]},open:function(){this.listener.batched=!1},close:function(){this.listener.batched=!0},createDocumentElement:function(){var e=this;if(!this.documentElement){var t=new N("document");t.docId=this.id,t.ownerDocument=this,t.role="documentElement
",t.depth=0,t.ref="_documentElement",this.nodeMap._documentElement=t,this.documentElement=t,Object.defineProperty(t,"appendChild",{configurable:!0,enumerable:!0,writable:!0,value:function(t){w(e,t)}}),Object.defineProperty(t,"insertBefore",{configurable:!0,enumerable:!0,writable:!0,value:function(t,n){w(e,t,n)}})}return this.documentElement},createBody:function(e,t){return this.body||O(this,new N(e,t)),this.body},createElement:function(e,t){return new N(e,t)},createComment:function(e){return new q(e)},fireEvent:function(e,t,n,r){if(e){(n=n||{}).type=t,n.target=e,n.currentTarget=e,n.timestamp=Date.now(),r&&Q(e,r);var o="true"===this.getRef("_root").attr.bubble;return e.fireEvent(t,n,o)}},destroy:function(){this.taskCenter.destroyCallback(),delete this.listener,delete this.nodeMap,delete this.taskCenter,_(this.id)}});var ts={Document:Z,Element:N,Comment:q,Listener:J,TaskCenter:Ha,sendTasks:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return"function"==typeof callN
ative?callNative.apply(void 0,e):(global.callNative||function(){}).apply(void 0,e)}};Z.handler=ts.sendTasks;var ns={setNativeConsole:function(){if(r(),global.WXEnvironment&&"Web"!==global.WXEnvironment.platform)global.console={debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("debug")&&global.nativeLog.apply(global,i(e).concat(["__DEBUG"]))},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("log")&&global.nativeLog.apply(global,i(e).concat(["__LOG"]))},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("info")&&global.nativeLog.apply(global,i(e).concat(["__INFO"]))},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("warn")&&global.nativeLog.apply(global,i(e).concat(["__WARN"]))},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("error")&&global.nativeLog.apply(global,i(e).concat(["__ERROR"]))}};else{var e=console.debug,t=console.log,n=console.info,a=console.warn,s=conso
le.error;console.__ori__={debug:e,log:t,info:n,warn:a,error:s},console.debug=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("debug")&&console.__ori__.debug.apply(console,e)},console.log=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("log")&&console.__ori__.log.apply(console,e)},console.info=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("info")&&console.__ori__.info.apply(console,e)},console.warn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("warn")&&console.__ori__.warn.apply(console,e)},console.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];o("error")&&console.__ori__.error.apply(console,e)}}},resetNativeConsole:function(){$a={},global.console=Ra},setNativeTimer:a,resetNativeTimer:function(){global.setTimeout=Da,global.setTimeoutCallback=null},service:{register:$,unregister:R,has:D},freezePrototype:function(){s(),Object.freeze(ts.Element),Object.freeze(ts.Comment),Object.f
reeze(ts.Listener),Object.freeze(ts.Document.prototype),Object.freeze(ts.Element.prototype),Object.freeze(ts.Comment.prototype),Object.freeze(ts.Listener.prototype)},init:function(e){Ga=(Xa=e||{}).frameworks||{},M();for(var t in Ga)Ga[t].init(e);return["registerComponents","registerModules","registerMethods"].forEach(U),["destroyInstance","refreshInstance","receiveTasks","getRoot"].forEach(z),W("receiveTasks","callJS"),Ya},config:ts},rs={},os={};ee.prototype.postMessage=function(e){var t=this;if(this._closed)throw new Error('BroadcastChannel "'+this.name+'" is closed.');var n=rs[this.name];if(n&&n.length)for(var r=0;r<n.length;++r){var o=n[r];o._closed||o===t||"function"==typeof o.onmessage&&o.onmessage(new Y("message",{data:e}))}},ee.prototype.close=function(){var e=this;if(!this._closed&&(this._closed=!0,rs[this.name])){var t=rs[this.name].filter(function(t){return t!==e});t.length?rs[this.name]=t:delete rs[this.name]}};var is,as={BroadcastChannel:{create:function(e,t,n){if(os[e]=
[],"function"==typeof global.BroadcastChannel)return{};var r={BroadcastChannel:function(t){Object.defineProperty(this,"name",{configurable:!1,enumerable:!0,writable:!1,value:String(t)}),this._closed=!1,this.onmessage=null,rs[this.name]||(rs[this.name]=[]),rs[this.name].push(this),os[e].push(this)}};return r.BroadcastChannel.prototype=ee.prototype,{instance:r}},destroy:function(e,t){os[e].forEach(function(e){return e.close()}),delete os[e]}}},ss={},us={},cs=Object.freeze({init:function(e){ss.Document=e.Document,ss.Element=e.Element,ss.Comment=e.Comment,ss.sendTasks=e.sendTasks},registerComponents:function(e){},registerModules:function(e){},registerMethods:function(e){},prepareInstance:function(e,t,n){},createInstance:function(e,t,n,r,o){var i=new ss.Document(e,n.bundleUrl),a={},s=0;i.addCallback=function(e){return s++,a[s]=e,s},i.handleCallback=function(e,t,n){var r=a[e];return n&&delete a[e],r(t)},us[e]=i;var u=Object.assign({Document:ss.Document,Element:ss.Element,Comment:ss.Commen
t,sendTasks:ss.sendTasks,id:e,options:n,data:r,document:i},o),c=[],l=[];for(var f in u)c.push(f),l.push(u[f]);return c.push(t),(new(Function.prototype.bind.apply(Function,[null].concat(c)))).apply(void 0,l),{document:i}},refreshInstance:function(e,t){},destroyInstance:function(e){delete us[e]},getRoot:function(e){return us[e].body.toJSON()},receiveTasks:function(e,t){var n={fireEvent:function(e,t,n,r,o){var i=us[e],a=i.getRef(t);return i.fireEvent(a,n,r,o)},callback:function(e,t,n,r){return us[e].handleCallback(t,n,r)}};if(us[e]&&Array.isArray(t)){var r=[];return t.forEach(function(t){var o=n[t.method],i=[].concat(t.args);"function"==typeof o&&(i.unshift(e),r.push(o.apply(void 0,i)))}),r}}}),ls=t(function(e){e.exports=function(e,t){function n(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function i(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"objec
t"==typeof e}function u(e){return"[object Object]"===dn.call(e)}function c(e){return"[object RegExp]"===dn.call(e)}function l(e){var t=parseFloat(e);return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function p(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<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}function h(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function v(e,t){return vn.call(e,t)}function y(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function m(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 _(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function g(e,t){for(var n in t)e[n]=t[n];return e}function b(e){for(var t={},n=
0;n<e.length;n++)e[n]&&g(t,e[n]);return t}function w(e,t,n){}function E(e,t){if(e===t)return!0;var n=s(e),r=s(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 E(e,t[n])});if(o||i)return!1;var a=Object.keys(e),u=Object.keys(t);return a.length===u.length&&a.every(function(n){return E(e[n],t[n])})}catch(e){return!1}}function O(e,t){for(var n=0;n<e.length;n++)if(E(e[n],t))return n;return-1}function C(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function S(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function x(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function k(e){if(!jn.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}function j(e,t,n){if(xn.errorHandler)xn.errorHandler.call(null,e,t,n);else{if(!In||"undefined"==typeof console)throw e;console.e
rror(e)}}function A(e){return"function"==typeof e&&/native code/.test(e.toString())}function T(e){qn.target&&Jn.push(qn.target),qn.target=e}function I(){qn.target=Jn.pop()}function N(e,t,n){e.__proto__=t}function P(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];x(e,i,t[i])}}function M(e,t){if(s(e)){var n;return v(e,"__ob__")&&e.__ob__ instanceof Zn?n=e.__ob__:Kn.shouldConvert&&!Bn()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Zn(e)),t&&n&&n.vmCount++,n}}function $(e,t,n,r,o){var i=new qn,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set,c=!o&&M(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return qn.target&&(i.depend(),c&&c.dep.depend(),Array.isArray(t)&&F(t)),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||(u?u.call(e,t):n=t,c=!o&&M(t),i.notify())}})}}function R(e,t,n){if(Array.isArray(e)&&l(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(
v(e,t))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?($(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function D(e,t){if(Array.isArray(e)&&l(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||v(e,t)&&(delete e[t],n&&n.dep.notify())}}function F(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&F(t)}function L(e,t){if(!t)return e;for(var n,r,o,i=Object.keys(t),a=0;a<i.length;a++)r=e[n=i[a]],o=t[n],v(e,n)?u(r)&&u(o)&&L(r,o):R(e,n,o);return e}function B(e,t,n){return n?e||t?function(){var r="function"==typeof t?t.call(n):t,o="function"==typeof e?e.call(n):void 0;return r?L(r,o):o}:void 0:t?e?function(){return L("function"==typeof t?t.call(this):t,"function"==typeof e?e.call(this):e)}:t:e}function U(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function V(e,t){var n=Object.create(e||null);return t?g(n,t):n}function z(e){var t=e.props;if(t){var n,r,o={};if(Array.isArray(t))for(n=t.length;n--;)"string"==ty
peof(r=t[n])&&(o[mn(r)]={type:null});else if(u(t))for(var i in t)r=t[i],o[mn(i)]=u(r)?r:{type:r};e.props=o}}function W(e){var t=e.inject;if(Array.isArray(t))for(var n=e.inject={},r=0;r<t.length;r++)n[t[r]]=t[r]}function q(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function J(e,t,n){function r(r){var o=Qn[r]||Yn;u[r]=o(e[r],t[r],n,r)}"function"==typeof t&&(t=t.options),z(t),W(t),q(t);var o=t.extends;if(o&&(e=J(e,o,n)),t.mixins)for(var i=0,a=t.mixins.length;i<a;i++)e=J(e,t.mixins[i],n);var s,u={};for(s in e)r(s);for(s in t)v(e,s)||r(s);return u}function H(e,t,n,r){if("string"==typeof n){var o=e[t];if(v(o,n))return o[n];var i=mn(n);if(v(o,i))return o[i];var a=_n(i);if(v(o,a))return o[a];var s=o[n]||o[i]||o[a];return s}}function G(e,t,n,r){var o=t[e],i=!v(n,e),a=n[e];if(Z(Boolean,o.type)&&(i&&!v(o,"default")?a=!1:Z(String,o.type)||""!==a&&a!==bn(e)||(a=!0)),void 0===a){a=X(r,o,e);var s=Kn.shouldConvert;Kn.shouldConvert=!0,M(a),K
n.shouldConvert=s}return a}function X(e,t,n){if(v(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==K(t.type)?r.call(e):r}}function K(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Z(e,t){if(!Array.isArray(t))return K(t)===K(e);for(var n=0,r=t.length;n<r;n++)if(K(t[n])===K(e))return!0;return!1}function Q(e){return new er(void 0,void 0,void 0,String(e))}function Y(e){var t=new er(e.tag,e.data,e.children,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.isCloned=!0,t}function ee(e){for(var t=e.length,n=new Array(t),r=0;r<t;r++)n[r]=Y(e[r]);return n}function te(e){function t(){var e=arguments,n=t.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var r=n.slice(),o=0;o<r.length;o++)r[o].apply(null,e)}return t.fns=e,t}function ne(e,t,r,o,i){var a,s,u,c
;for(a in e)s=e[a],u=t[a],c=or(a),n(s)||(n(u)?(n(s.fns)&&(s=e[a]=te(s)),r(c.name,s,c.once,c.capture,c.passive)):s!==u&&(u.fns=s,e[a]=u));for(a in t)n(e[a])&&o((c=or(a)).name,t[a],c.capture)}function re(e,t,i){function a(){i.apply(this,arguments),h(s.fns,a)}var s,u=e[t];n(u)?s=te([a]):r(u.fns)&&o(u.merged)?(s=u).fns.push(a):s=te([u,a]),s.merged=!0,e[t]=s}function oe(e,t,o){var i=t.options.props;if(!n(i)){var a={},s=e.attrs,u=e.props;if(r(s)||r(u))for(var c in i){var l=bn(c);ie(a,u,c,l,!0)||ie(a,s,c,l,!1)}return a}}function ie(e,t,n,o,i){if(r(t)){if(v(t,n))return e[n]=t[n],i||delete t[n],!0;if(v(t,o))return e[n]=t[o],i||delete t[o],!0}return!1}function ae(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function se(e){return a(e)?[Q(e)]:Array.isArray(e)?ce(e):void 0}function ue(e){return r(e)&&r(e.text)&&i(e.isComment)}function ce(e,t){var i,s,u,c=[];for(i=0;i<e.length;i++)n(s=e[i])||"boolean"==typeof s||(u=c[c.length-1],Array.isA
rray(s)?c.push.apply(c,ce(s,(t||"")+"_"+i)):a(s)?ue(u)?u.text+=String(s):""!==s&&c.push(Q(s)):ue(s)&&ue(u)?c[c.length-1]=Q(u.text+s.text):(o(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+i+"__"),c.push(s)));return c}function le(e,t){return e.__esModule&&e.default&&(e=e.default),s(e)?t.extend(e):e}function fe(e,t,n,r,o){var i=rr();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function pe(e,t,i){if(o(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;if(o(e.loading)&&r(e.loadingComp))return e.loadingComp;if(!r(e.contexts)){var a=e.contexts=[i],u=!0,c=function(){for(var e=0,t=a.length;e<t;e++)a[e].$forceUpdate()},l=C(function(n){e.resolved=le(n,t),u||c()}),f=C(function(t){r(e.errorComp)&&(e.error=!0,c())}),p=e(l,f);return s(p)&&("function"==typeof p.then?n(e.resolved)&&p.then(l,f):r(p.component)&&"function"==typeof p.component.then&&(p.component.then(l,f),r(p.error)&&(e.errorComp=le(p.error,t)),r(p.loading)&&(e.loa
dingComp=le(p.loading,t),0===p.delay?e.loading=!0:setTimeout(function(){n(e.resolved)&&n(e.error)&&(e.loading=!0,c())},p.delay||200)),r(p.timeout)&&setTimeout(function(){n(e.resolved)&&f(null)},p.timeout))),u=!1,e.loading?e.loadingComp:e.resolved}e.contexts.push(i)}function de(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&r(n.componentOptions))return n}}function he(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&me(e,t)}function ve(e,t,n){n?nr.$once(e,t):nr.$on(e,t)}function ye(e,t){nr.$off(e,t)}function me(e,t,n){nr=e,ne(t,n||{},ve,ye,e)}function _e(e,t){var n={};if(!e)return n;for(var r=[],o=0,i=e.length;o<i;o++){var a=e[o];if(a.context!==t&&a.functionalContext!==t||!a.data||null==a.data.slot)r.push(a);else{var s=a.data.slot,u=n[s]||(n[s]=[]);"template"===a.tag?u.push.apply(u,a.children):u.push(a)}}return r.every(ge)||(n.default=r),n}function ge(e){return e.isComment||" "===e.text}function be(e,t){t=t||{};for(var n=
0;n<e.length;n++)Array.isArray(e[n])?be(e[n],t):t[e[n].key]=e[n].fn;return t}function we(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}function Ee(e,t,n){e.$el=t,e.$options.render||(e.$options.render=rr),ke(e,"beforeMount");var r;return r=function(){e._update(e._render(),n)},e._watcher=new dr(e,r,w),n=!1,null==e.$vnode&&(e._isMounted=!0,ke(e,"mounted")),e}function Oe(e,t,n,r,o){var i=!!(o||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==kn);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data&&r.data.attrs,e.$listeners=n,t&&e.$options.props){Kn.shouldConvert=!1;for(var a=e._props,s=e.$options._propKeys||[],u=0;u<s.length;u++){var c=s[u];a[c]=G(c,e.$options.props,t,e)}
Kn.shouldConvert=!0,e.$options.propsData=t}if(n){var l=e.$options._parentListeners;e.$options._parentListeners=n,me(e,n,l)}i&&(e.$slots=_e(o,r.context),e.$forceUpdate())}function Ce(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Se(e,t){if(t){if(e._directInactive=!1,Ce(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Se(e.$children[n]);ke(e,"activated")}}function xe(e,t){if(!(t&&(e._directInactive=!0,Ce(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)xe(e.$children[n]);ke(e,"deactivated")}}function ke(e,t){var n=e.$options[t];if(n)for(var r=0,o=n.length;r<o;r++)try{n[r].call(e)}catch(n){j(n,e,t+" hook")}e._hasHookEvent&&e.$emit("hook:"+t)}function je(){fr=ar.length=sr.length=0,ur={},cr=lr=!1}function Ae(){lr=!0;var e,t;for(ar.sort(function(e,t){return e.id-t.id}),fr=0;fr<ar.length;fr++)t=(e=ar[fr]).id,ur[t]=null,e.run();var n=sr.slice(),r=ar.slice();je(),Ne(n
),Te(r),Un&&xn.devtools&&Un.emit("flush")}function Te(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&ke(r,"updated")}}function Ie(e){e._inactive=!1,sr.push(e)}function Ne(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Se(e[t],!0)}function Pe(e){var t=e.id;if(null==ur[t]){if(ur[t]=!0,lr){for(var n=ar.length-1;n>fr&&ar[n].id>e.id;)n--;ar.splice(n+1,0,e)}else ar.push(e);cr||(cr=!0,zn(Ae))}}function Me(e){hr.clear(),$e(e,hr)}function $e(e,t){var n,r,o=Array.isArray(e);if((o||s(e))&&Object.isExtensible(e)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(o)for(n=e.length;n--;)$e(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)$e(e[r[n]],t)}}function Re(e,t,n){vr.get=function(){return this[t][n]},vr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,vr)}function De(e){e._watchers=[];var t=e.$options;t.props&&Fe(e,t.props),t.methods&&We(e,t.methods),t.data?Le(e):M(e._data={},!0),t.computed&&Ue(e,t.computed),t.watch&&t.watch!==$n&&qe(e,t
.watch)}function Fe(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;Kn.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=G(i,t,n,e);$(r,i,a),i in e||Re(e,"_props",i)}(a);Kn.shouldConvert=!0}function Le(e){var t=e.$options.data;u(t=e._data="function"==typeof t?Be(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);o--;){var i=n[o];r&&v(r,i)||S(i)||Re(e,"_data",i)}M(t,!0)}function Be(e,t){try{return e.call(t)}catch(e){return j(e,t,"data()"),{}}}function Ue(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;n[r]=new dr(e,i||w,w,yr),r in e||Ve(e,r,o)}}function Ve(e,t,n){"function"==typeof n?(vr.get=ze(t),vr.set=w):(vr.get=n.get?!1!==n.cache?ze(t):n.get:w,vr.set=n.set?n.set:w),Object.defineProperty(e,t,vr)}function ze(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),qn.target&
&t.depend(),t.value}}function We(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?w:m(t[n],e)}function qe(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)Je(e,n,r[o]);else Je(e,n,r)}}function Je(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function He(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function Ge(e){var t=Xe(e.$options.inject,e);t&&(Kn.shouldConvert=!1,Object.keys(t).forEach(function(n){$(e,n,t[n])}),Kn.shouldConvert=!0)}function Xe(e,t){if(e){for(var n=Object.create(null),r=Vn?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++)for(var i=r[o],a=e[i],s=t;s;){if(s._provided&&a in s._provided){n[i]=s._provided[a];break}s=s.$parent}return n}}function Ke(e,t,n,o,i){var a={},s=e.options.props;if(r(s))for(var u in s)a[u]=G(u,s,t||{});else r(n.attrs)&&Ze(a,n.attrs),r(n.props)&&Ze(a,n.props);var c=Object.create(o),l=e.options.render.call(null,function(e,t,n,r){return rt(c,
e,t,n,r,!0)},{data:n,props:a,children:i,parent:o,listeners:n.on||{},injections:Xe(e.options.inject,o),slots:function(){return _e(i,o)}});return l instanceof er&&(l.functionalContext=o,l.functionalOptions=e.options,n.slot&&((l.data||(l.data={})).slot=n.slot)),l}function Ze(e,t){for(var n in t)e[mn(n)]=t[n]}function Qe(e,t,i,a,u){if(!n(e)){var c=i.$options._base;if(s(e)&&(e=c.extend(e)),"function"==typeof e){var l;if(n(e.cid)&&(l=e,void 0===(e=pe(l,c,i))))return fe(l,t,i,a,u);t=t||{},_t(e),r(t.model)&&nt(e.options,t);var f=oe(t,e,u);if(o(e.options.functional))return Ke(e,f,t,i,a);var p=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}et(t);var h=e.options.name||u;return new er("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,i,{Ctor:e,propsData:f,listeners:p,tag:u,children:a},l)}}}function Ye(e,t,n,o){var i=e.componentOptions,a={_isComponent:!0,parent:t,propsData:i.propsData,_componentTag:i.tag,_parentVnode:e,_parentListeners:i.listeners,_render
Children:i.children,_parentElm:n||null,_refElm:o||null},s=e.data.inlineTemplate;return r(s)&&(a.render=s.render,a.staticRenderFns=s.staticRenderFns),new i.Ctor(a)}function et(e){e.hook||(e.hook={});for(var t=0;t<_r.length;t++){var n=_r[t],r=e.hook[n],o=mr[n];e.hook[n]=r?tt(o,r):o}}function tt(e,t){return function(n,r,o,i){e(n,r,o,i),t(n,r,o,i)}}function nt(e,t){var n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});r(i[o])?i[o]=[t.model.callback].concat(i[o]):i[o]=t.model.callback}function rt(e,t,n,r,i,s){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o(s)&&(i=br),ot(e,t,n,r,i)}function ot(e,t,n,o,i){if(r(n)&&r(n.__ob__))return rr();if(r(n)&&r(n.is)&&(t=n.is),!t)return rr();Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0),i===br?o=se(o):i===gr&&(o=ae(o));var a,s;if("string"==typeof t){var u;s=xn.getTagNamespace(t),a=xn.isReservedTag(t)?new er(xn.parsePlatfor
mTagName(t),n,o,void 0,void 0,e):r(u=H(e.$options,"components",t))?Qe(u,n,e,o,t):new er(t,n,o,void 0,void 0,e)}else a=Qe(t,n,e,o);return r(a)?(s&&it(a,s),a):rr()}function it(e,t){if(e.ns=t,"foreignObject"!==e.tag&&r(e.children))for(var o=0,i=e.children.length;o<i;o++){var a=e.children[o];r(a.tag)&&n(a.ns)&&it(a,t)}}function at(e,t){var n,o,i,a,u;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,i=e.length;o<i;o++)n[o]=t(e[o],o);else if("number"==typeof e)for(n=new Array(e),o=0;o<e;o++)n[o]=t(o+1,o);else if(s(e))for(a=Object.keys(e),n=new Array(a.length),o=0,i=a.length;o<i;o++)u=a[o],n[o]=t(e[u],u,o);return r(n)&&(n._isVList=!0),n}function st(e,t,n,r){var o=this.$scopedSlots[e];if(o)return n=n||{},r&&(n=g(g({},r),n)),o(n)||t;var i=this.$slots[e];return i||t}function ut(e){return H(this.$options,"filters",e,!0)||En}function ct(e,t,n){var r=xn.keyCodes[t]||n;return Array.isArray(r)?-1===r.indexOf(e):r!==e}function lt(e,t,n,r,o){if(n)if(s(n)){Array.isArray(n)&&(n=b(n
));var i;for(var a in n)!function(a){if("class"===a||"style"===a||hn(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||xn.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}a in i||(i[a]=n[a],o&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))}(a)}else;return e}function ft(e,t){var n=this._staticTrees[e];return n&&!t?Array.isArray(n)?ee(n):Y(n):(n=this._staticTrees[e]=this.$options.staticRenderFns[e].call(this._renderProxy),dt(n,"__static__"+e,!1),n)}function pt(e,t,n){return dt(e,"__once__"+t+(n?"_"+n:""),!0),e}function dt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&ht(e[r],t+"_"+r,n);else ht(e,t,n)}function ht(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function vt(e,t){if(t)if(u(t)){var n=e.on=e.on?g({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(i,o):i}}else;return e}function yt(e){e._vnode=null,e._staticTrees=null;var t=e.$vnode=e.$options._parentVnode,n=t&&t.context;e.$slots=_e(e.$options._renderChildren,n),e
.$scopedSlots=kn,e._c=function(t,n,r,o){return rt(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return rt(e,t,n,r,o,!0)};var r=t&&t.data;$(e,"$attrs",r&&r.attrs,null,!0),$(e,"$listeners",e.$options._parentListeners,null,!0)}function mt(e,t){var n=e.$options=Object.create(e.constructor.options);n.parent=t.parent,n.propsData=t.propsData,n._parentVnode=t._parentVnode,n._parentListeners=t._parentListeners,n._renderChildren=t._renderChildren,n._componentTag=t._componentTag,n._parentElm=t._parentElm,n._refElm=t._refElm,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function _t(e){var t=e.options;if(e.super){var n=_t(e.super);if(n!==e.superOptions){e.superOptions=n;var r=gt(e);r&&g(e.extendOptions,r),(t=e.options=J(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function gt(e){var t,n=e.options,r=e.extendOptions,o=e.sealedOptions;for(var i in n)n[i]!==o[i]&&(t||(t={}),t[i]=bt(n[i],r[i],o[i]));return t}function bt(e,t,n){if(Array.isArray(e)){var r=[];n=Ar
ray.isArray(n)?n:[n],t=Array.isArray(t)?t:[t];for(var o=0;o<e.length;o++)(t.indexOf(e[o])>=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function wt(e){this._init(e)}function Et(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=_(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}}function Ot(e){e.mixin=function(e){return this.options=J(this.options,e),this}}function Ct(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=J(n.options,e),a.super=n,a.options.props&&St(a),a.options.computed&&xt(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Cn.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=
n.options,a.extendOptions=e,a.sealedOptions=g({},a.options),o[r]=a,a}}function St(e){var t=e.options.props;for(var n in t)Re(e.prototype,"_props",n)}function xt(e){var t=e.options.computed;for(var n in t)Ve(e.prototype,n,t[n])}function kt(e){Cn.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&u(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]}})}function jt(e){return e&&(e.Ctor.options.name||e.tag)}function At(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!c(e)&&e.test(t)}function Tt(e,t,n){for(var r in e){var o=e[r];if(o){var i=jt(o.componentOptions);i&&!n(i)&&(o!==t&&It(o),e[r]=null)}}}function It(e){e&&e.componentInstance.$destroy()}function Nt(e){return new t.Element(e)}function Pt(e,t){var n=e.data.ref;if(n){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?h(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}}function Mt(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&$t(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function $t(e,t){if("input"!==e.tag)return!0;var n;return(r(n=e.data)&&r(n=n.attrs)&&n.type)===(r(n=t.data)&&r(n=n.attrs)&&n.type)}function Rt(e,t,n){var o,i,a={};for(o=t;o<=n;++o)r(i=e[o].key)&&(a[i]=o);return a}function Dt(e,t){(e.data.directives||t.data.directives)&&Ft(e,t)}function Ft(e,t){var n,r,o,i=e===jr,a=t===jr,s=Lt(e.data.directives,e.context),u=Lt(t.data.directives,t.context),c=[],l=[];for(n in u)r=s[n],o=u[n],r?(o.oldValue=r.value,Ut(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(Ut(o,"bind",t,e),o.def&&o.def.inserted&&c.push(o));if(c.length){var f=function(){for(var n=0;n<c.length;n++)Ut(c[n],"inserted",t,e)};i?re(t.data.hook||(t.data.hook={}),"insert",f):f()}if(l
.length&&re(t.data.hook||(t.data.hook={}),"postpatch",function(){for(var n=0;n<l.length;n++)Ut(l[n],"componentUpdated",t,e)}),!i)for(n in s)u[n]||Ut(s[n],"unbind",e,e,a)}function Lt(e,t){var n=Object.create(null);if(!e)return n;var r,o;for(r=0;r<e.length;r++)(o=e[r]).modifiers||(o.modifiers=Ir),n[Bt(o)]=o,o.def=H(t.$options,"directives",o.name,!0);return n}function Bt(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Ut(e,t,n,r,o){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){j(r,n.context,"directive "+e.name+" "+t+" hook")}}function Vt(e,t){if(e.data.attrs||t.data.attrs){var n,r,o=t.elm,i=e.data.attrs||{},a=t.data.attrs||{};a.__ob__&&(a=t.data.attrs=g({},a));for(n in a)r=a[n],i[n]!==r&&o.setAttr(n,r);for(n in i)null==a[n]&&o.setAttr(n)}}function zt(e,t){var n=t.elm,r=t.context,o=t.data,i=e.data;if(o.staticClass||o.class||i&&(i.staticClass||i.class)){var a=[],s=i.staticClass;s&&a.push.apply(a,s),i.class&&a.push.apply(a,i.class);var u=[],c=o.s
taticClass;c&&u.push.apply(u,c),o.class&&u.push.apply(u,o.class);var l=Wt(a,u,r);for(var f in l)n.setStyle(f,l[f])}}function Wt(e,t,n){var r=n.$options.style||{},o={};return t.forEach(function(e){g(o,r[e])}),e.forEach(function(e){var t=r[e];for(var n in t)o.hasOwnProperty(n)||(o[n]="")}),o}function qt(e,t,n,r){if(r)console.log("Weex do not support event in bubble phase.");else{if(n){var o=t,i=Cr;t=function(t){null!==(1===arguments.length?o(t):o.apply(null,arguments))&&Jt(e,null,null,i)}}Cr.addEvent(e,t)}}function Jt(e,t,n,r){(r||Cr).removeEvent(e)}function Ht(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};Cr=t.elm,ne(n,r,qt,Jt,t.context)}}function Gt(e,t){if(e.data.style||t.data.style){var n,r,o=t.elm,i=e.data.style||{},a=t.data.style||{},s=a.__ob__;Array.isArray(a)&&(a=t.data.style=Xt(a)),s&&(a=t.data.style=g({},a));for(r in i)a[r]||o.setStyle(Rr(r),"");for(r in a)n=a[r],o.setStyle(Rr(r),n)}}function Xt(e){for(var t={},n=0;n<e.length;n++)e[n]&&g(t,e[n]);return t}
function Kt(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&g(t,Fr(e.name||"v")),g(t,e),t}return"string"==typeof e?Fr(e):void 0}}function Zt(e,t){var n=t.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Kt(t.data.transition);if(r&&!n._enterCb){for(var o=r.enterClass,i=r.enterToClass,a=r.enterActiveClass,s=r.appearClass,
<TRUNCATED>