@tarojs/components 3.3.14 → 3.5.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/dist/cjs/{index-cde74e58.js → index-b9715722.js} +0 -0
  2. package/dist/cjs/{index-7464647f.js → index-dd4b7ba3.js} +0 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
  7. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-components.cjs.js +2 -2
  11. package/dist/cjs/taro-cover-image-core.cjs.entry.js +18 -4
  12. package/dist/cjs/taro-cover-view-core.cjs.entry.js +50 -4
  13. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
  16. package/dist/cjs/taro-image-core.cjs.entry.js +2 -2
  17. package/dist/cjs/taro-input-core.cjs.entry.js +5 -5
  18. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
  22. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  23. package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
  24. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-picker-view-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +2 -2
  28. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -2
  31. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -2
  33. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  34. package/dist/cjs/taro-tabbar.cjs.entry.js +70 -22
  35. package/dist/cjs/taro-text-core.cjs.entry.js +2 -2
  36. package/dist/cjs/taro-textarea-core.cjs.entry.js +64 -4
  37. package/dist/cjs/taro-video-control_3.cjs.entry.js +183 -100
  38. package/dist/cjs/taro-view-core.cjs.entry.js +2 -2
  39. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  40. package/dist/collection/collection-manifest.json +1 -1
  41. package/dist/collection/components/cover-image/cover-image.js +94 -0
  42. package/dist/collection/components/cover-image/style/index.css +5 -0
  43. package/dist/collection/components/cover-view/cover-view.js +166 -4
  44. package/dist/collection/components/cover-view/style/cover-view.css +3 -0
  45. package/dist/collection/components/input/input.js +4 -4
  46. package/dist/collection/components/tabbar/tabbar.js +72 -20
  47. package/dist/collection/components/textarea/style/index.css +6 -2
  48. package/dist/collection/components/textarea/textarea.js +98 -3
  49. package/dist/collection/components/video/video-control.js +39 -22
  50. package/dist/collection/components/video/video-danmu.js +52 -39
  51. package/dist/collection/components/video/video.js +60 -37
  52. package/dist/esm/{index-85e10859.js → index-3c78bcaf.js} +0 -0
  53. package/dist/esm/{index-165a6222.js → index-5bd7cbab.js} +0 -0
  54. package/dist/esm/loader.js +2 -2
  55. package/dist/esm/taro-audio-core.entry.js +1 -1
  56. package/dist/esm/taro-block-core.entry.js +1 -1
  57. package/dist/esm/taro-button-core.entry.js +2 -2
  58. package/dist/esm/taro-camera-core.entry.js +1 -1
  59. package/dist/esm/taro-canvas-core.entry.js +1 -1
  60. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  61. package/dist/esm/taro-components.js +2 -2
  62. package/dist/esm/taro-cover-image-core.entry.js +18 -4
  63. package/dist/esm/taro-cover-view-core.entry.js +50 -4
  64. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  65. package/dist/esm/taro-form-core.entry.js +1 -1
  66. package/dist/esm/taro-icon-core.entry.js +2 -2
  67. package/dist/esm/taro-image-core.entry.js +2 -2
  68. package/dist/esm/taro-input-core.entry.js +5 -5
  69. package/dist/esm/taro-label-core.entry.js +1 -1
  70. package/dist/esm/taro-movable-area-core.entry.js +1 -1
  71. package/dist/esm/taro-movable-view-core.entry.js +1 -1
  72. package/dist/esm/taro-navigator-core.entry.js +2 -2
  73. package/dist/esm/taro-open-data-core.entry.js +1 -1
  74. package/dist/esm/taro-picker-core_2.entry.js +2 -2
  75. package/dist/esm/taro-picker-view-column-core.entry.js +1 -1
  76. package/dist/esm/taro-picker-view-core.entry.js +1 -1
  77. package/dist/esm/taro-progress-core.entry.js +1 -1
  78. package/dist/esm/taro-pull-to-refresh.entry.js +2 -2
  79. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  80. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  81. package/dist/esm/taro-scroll-view-core.entry.js +2 -2
  82. package/dist/esm/taro-slider-core.entry.js +1 -1
  83. package/dist/esm/taro-swiper-core_2.entry.js +2 -2
  84. package/dist/esm/taro-switch-core.entry.js +1 -1
  85. package/dist/esm/taro-tabbar.entry.js +70 -22
  86. package/dist/esm/taro-text-core.entry.js +2 -2
  87. package/dist/esm/taro-textarea-core.entry.js +64 -4
  88. package/dist/esm/taro-video-control_3.entry.js +183 -100
  89. package/dist/esm/taro-view-core.entry.js +2 -2
  90. package/dist/esm/taro-web-view-core.entry.js +1 -1
  91. package/dist/esm-es5/{index-85e10859.js → index-3c78bcaf.js} +0 -0
  92. package/dist/esm-es5/{index-165a6222.js → index-5bd7cbab.js} +0 -0
  93. package/dist/esm-es5/loader.js +1 -1
  94. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  95. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  96. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  97. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  98. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  99. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  100. package/dist/esm-es5/taro-components.js +1 -1
  101. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  102. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  103. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  104. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  105. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  106. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  107. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  108. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  109. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  110. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  111. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  112. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  113. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  114. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
  115. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
  116. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  117. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  118. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  119. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  120. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  121. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  122. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  123. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  124. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  125. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  126. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  127. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  128. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  129. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  130. package/dist/taro-components/{p-3e2d4793.entry.js → p-06bffead.entry.js} +1 -1
  131. package/dist/taro-components/{p-b685a487.system.entry.js → p-10a6c489.system.entry.js} +1 -1
  132. package/dist/taro-components/p-11932905.entry.js +1 -0
  133. package/dist/taro-components/{p-2ef4681b.system.entry.js → p-12638ebc.system.entry.js} +1 -1
  134. package/dist/taro-components/p-12ae0a33.entry.js +1 -0
  135. package/dist/taro-components/{p-8d905ff5.system.entry.js → p-13c1404f.system.entry.js} +1 -1
  136. package/dist/taro-components/{p-d6269b5e.system.entry.js → p-17039974.system.entry.js} +1 -1
  137. package/dist/taro-components/{p-7a5be745.entry.js → p-17cf8b5b.entry.js} +1 -1
  138. package/dist/taro-components/{p-5a13bd63.system.entry.js → p-1b790eb0.system.entry.js} +1 -1
  139. package/dist/taro-components/{p-2eda9121.system.entry.js → p-1e4f1702.system.entry.js} +1 -1
  140. package/dist/taro-components/p-2438fcd4.system.entry.js +1 -0
  141. package/dist/taro-components/{p-00328ebf.system.entry.js → p-264b7229.system.entry.js} +1 -1
  142. package/dist/taro-components/p-33ee636a.system.js +1 -0
  143. package/dist/taro-components/{p-1507bcbf.entry.js → p-3633bb84.entry.js} +1 -1
  144. package/dist/taro-components/{p-2ce9bc65.system.entry.js → p-3643d8f7.system.entry.js} +1 -1
  145. package/dist/taro-components/{p-6967e577.js → p-37cfdd8f.js} +0 -0
  146. package/dist/taro-components/{p-098f4931.system.entry.js → p-3aac5746.system.entry.js} +1 -1
  147. package/dist/taro-components/{p-d52009d1.system.entry.js → p-3eebeb1c.system.entry.js} +1 -1
  148. package/dist/taro-components/p-431197bc.entry.js +1 -0
  149. package/dist/taro-components/{p-2de1a146.system.entry.js → p-43de2f12.system.entry.js} +1 -1
  150. package/dist/taro-components/{p-69be8189.system.entry.js → p-46cf6431.system.entry.js} +1 -1
  151. package/dist/taro-components/{p-f4158e42.entry.js → p-4dbed323.entry.js} +1 -1
  152. package/dist/taro-components/{p-bd922592.system.entry.js → p-50066d5e.system.entry.js} +1 -1
  153. package/dist/taro-components/p-554e1039.entry.js +1 -0
  154. package/dist/taro-components/{p-0da88b1b.entry.js → p-55b0a30b.entry.js} +1 -1
  155. package/dist/taro-components/p-5c420456.entry.js +1 -0
  156. package/dist/taro-components/{p-d12592f1.entry.js → p-5f8b5f62.entry.js} +1 -1
  157. package/dist/taro-components/p-627a5064.system.entry.js +1 -0
  158. package/dist/taro-components/{p-8cf16235.entry.js → p-64993f48.entry.js} +1 -1
  159. package/dist/taro-components/p-66237ac0.entry.js +1 -0
  160. package/dist/taro-components/{p-923c6e08.entry.js → p-6965567d.entry.js} +1 -1
  161. package/dist/taro-components/{p-a34988ff.system.entry.js → p-703dfad8.system.entry.js} +1 -1
  162. package/dist/taro-components/p-71de9bd6.entry.js +1 -0
  163. package/dist/taro-components/p-74540410.entry.js +1 -0
  164. package/dist/taro-components/{p-0fb7f599.entry.js → p-7a64a3d2.entry.js} +1 -1
  165. package/dist/taro-components/{p-1ed219a6.system.entry.js → p-7d848382.system.entry.js} +1 -1
  166. package/dist/taro-components/{p-ca67c759.entry.js → p-83dedaa2.entry.js} +1 -1
  167. package/dist/taro-components/{p-81588c19.entry.js → p-865c21b5.entry.js} +1 -1
  168. package/dist/taro-components/{p-26c08f44.entry.js → p-8a5e67cb.entry.js} +1 -1
  169. package/dist/taro-components/p-8bc82aaa.entry.js +1 -0
  170. package/dist/taro-components/p-8db237e0.entry.js +1 -0
  171. package/dist/taro-components/{p-5c8ba192.system.entry.js → p-8f90fca9.system.entry.js} +1 -1
  172. package/dist/taro-components/{p-696f0d1c.system.js → p-94c20f60.system.js} +0 -0
  173. package/dist/taro-components/p-95529dc0.entry.js +1 -0
  174. package/dist/taro-components/p-964692f7.system.entry.js +1 -0
  175. package/dist/taro-components/p-99ed3ed2.system.entry.js +1 -0
  176. package/dist/taro-components/{p-ce49e2f4.system.entry.js → p-9a618935.system.entry.js} +1 -1
  177. package/dist/taro-components/p-9d0ab7c4.entry.js +1 -0
  178. package/dist/taro-components/{p-9e807bd6.system.entry.js → p-9fc88fc1.system.entry.js} +1 -1
  179. package/dist/taro-components/p-a1423df9.entry.js +1 -0
  180. package/dist/taro-components/{p-93748645.system.js → p-b2d01686.system.js} +0 -0
  181. package/dist/taro-components/p-b75d8a65.entry.js +1 -0
  182. package/dist/taro-components/{p-5d84eaf0.entry.js → p-b8e0ad7d.entry.js} +1 -1
  183. package/dist/taro-components/p-b9280444.entry.js +1 -0
  184. package/dist/taro-components/{p-4462dca4.system.entry.js → p-bd3fa355.system.entry.js} +1 -1
  185. package/dist/taro-components/p-c218c298.entry.js +1 -0
  186. package/dist/taro-components/p-c362734b.entry.js +1 -0
  187. package/dist/taro-components/{p-d52bf5f5.system.entry.js → p-cea9a198.system.entry.js} +1 -1
  188. package/dist/taro-components/{p-321aeeec.system.entry.js → p-cfbdd4e3.system.entry.js} +1 -1
  189. package/dist/taro-components/p-d394a61f.system.entry.js +1 -0
  190. package/dist/taro-components/{p-7b021c48.entry.js → p-d567b95e.entry.js} +1 -1
  191. package/dist/taro-components/{p-de3a4828.entry.js → p-d5971476.entry.js} +1 -1
  192. package/dist/taro-components/{p-26d8c60a.system.entry.js → p-e0af1d0d.system.entry.js} +1 -1
  193. package/dist/taro-components/p-e27798a4.entry.js +1 -0
  194. package/dist/taro-components/{p-37cfef64.entry.js → p-e6298500.entry.js} +1 -1
  195. package/dist/taro-components/{p-49ae5efb.js → p-f05e1558.js} +0 -0
  196. package/dist/taro-components/p-f98e0224.entry.js +1 -0
  197. package/dist/taro-components/{p-5e6feca6.system.entry.js → p-fb0959c1.system.entry.js} +1 -1
  198. package/dist/taro-components/{p-4168e24d.system.entry.js → p-fb2252b7.system.entry.js} +1 -1
  199. package/dist/taro-components/{p-5412a1d2.system.entry.js → p-fc4939c6.system.entry.js} +1 -1
  200. package/dist/taro-components/{p-9d6a7a70.system.entry.js → p-fd8312e5.system.entry.js} +1 -1
  201. package/dist/taro-components/{p-7ffcfb05.system.entry.js → p-fdd73355.system.entry.js} +1 -1
  202. package/dist/taro-components/{p-016f56cc.system.entry.js → p-fde3a009.system.entry.js} +1 -1
  203. package/dist/taro-components/{p-9e912454.system.entry.js → p-fe156231.system.entry.js} +1 -1
  204. package/dist/taro-components/{p-2b6a2449.system.entry.js → p-ffe63ce9.system.entry.js} +1 -1
  205. package/dist/taro-components/taro-components.esm.js +1 -1
  206. package/dist/taro-components/taro-components.js +1 -1
  207. package/dist/types/components/cover-image/cover-image.d.ts +11 -0
  208. package/dist/types/components/cover-view/cover-view.d.ts +14 -2
  209. package/dist/types/components/tabbar/tabbar.d.ts +20 -1
  210. package/dist/types/components/textarea/textarea.d.ts +6 -0
  211. package/dist/types/components.d.ts +18 -0
  212. package/dist-h5/vue/createComponent.js +4 -0
  213. package/dist-h5/vue/createFormsComponent.js +8 -1
  214. package/dist-h5/vue/simpleComponents.js +1 -1
  215. package/package.json +4 -4
  216. package/dist/collection/components/cover-view/cover-image.js +0 -11
  217. package/dist/taro-components/p-17c0731f.entry.js +0 -1
  218. package/dist/taro-components/p-2c5d57af.entry.js +0 -1
  219. package/dist/taro-components/p-30bfacb9.system.js +0 -1
  220. package/dist/taro-components/p-3554df41.entry.js +0 -1
  221. package/dist/taro-components/p-382cabbc.system.entry.js +0 -1
  222. package/dist/taro-components/p-4a2ffc1c.entry.js +0 -1
  223. package/dist/taro-components/p-4ff67760.entry.js +0 -1
  224. package/dist/taro-components/p-6daacf48.entry.js +0 -1
  225. package/dist/taro-components/p-70f40e3a.entry.js +0 -1
  226. package/dist/taro-components/p-72f2b6f5.entry.js +0 -1
  227. package/dist/taro-components/p-76c00960.entry.js +0 -1
  228. package/dist/taro-components/p-7f3e5f09.entry.js +0 -1
  229. package/dist/taro-components/p-9767491b.entry.js +0 -1
  230. package/dist/taro-components/p-a895db87.entry.js +0 -1
  231. package/dist/taro-components/p-af9ec312.system.entry.js +0 -1
  232. package/dist/taro-components/p-b6e0dca6.entry.js +0 -1
  233. package/dist/taro-components/p-c221cebb.system.entry.js +0 -1
  234. package/dist/taro-components/p-c5722042.entry.js +0 -1
  235. package/dist/taro-components/p-ce093936.entry.js +0 -1
  236. package/dist/taro-components/p-d6a37b93.entry.js +0 -1
  237. package/dist/taro-components/p-f6c7f07c.system.entry.js +0 -1
  238. package/dist/taro-components/p-f7b6c1a6.entry.js +0 -1
  239. package/dist/taro-components/p-f8d0dabb.entry.js +0 -1
  240. package/dist/taro-components/p-f9013b36.system.entry.js +0 -1
  241. package/dist/taro-components/p-f991bc7b.entry.js +0 -1
  242. package/dist/types/components/cover-view/cover-image.d.ts +0 -4
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,o){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function s(t){try{l(o.next(t))}catch(t){n(t)}}function a(t){try{l(o["throw"](t))}catch(t){n(t)}}function l(t){t.done?i(t.value):r(t.value).then(s,a)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,r&&(n=s[0]&2?r["return"]:s[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;if(r=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];r=0}finally{o=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t};System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(t){"use strict";var e,i,o,r,n,s;return{setters:[function(t){e=t.r;i=t.h;o=t.H;r=t.g;n=t.c},function(t){s=t.c}],execute:function(){var a=function(t){if(t==null)return"";var e=Math.round(t%60);var i=Math.round((t-e)/60);return(i<10?"0"+i:i)+":"+(e<10?"0"+e:e)};var l=function(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))};var u=function(t){return Math.max(-1,Math.min(t,1))};var c=function(t,e){var i=0;return function(){var o=Date.now();if(o-i>e){t.apply(this,arguments);i=o}}};var d=function(){var t;var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var i=["webkitEnterFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"];var o=0;var r=e.length;var n={};for(;o<r;o++){t=e[o];if(t&&t[1]in document){for(o=0;o<t.length;o++){n[e[0][o]]=t[o]}return n}}if(!n[e[0][0]]){for(o=0;o<i.length;o++){n[e[0][o]]=i[o]}}return n}();var h=t("taro_video_control",function(){function t(t){var i=this;e(this,t);this.visible=false;this.isDraggingProgressBall=false;this.percentage=0;this.progressDimentions={left:0,width:0};this.calcPercentage=function(t){var e=t-i.progressDimentions.left;e=Math.max(e,0);e=Math.min(e,i.progressDimentions.width);return e/i.progressDimentions.width};this.onDragProgressBallStart=function(){i.isDraggingProgressBall=true;i.hideControlsTimer&&clearTimeout(i.hideControlsTimer)};this.onClickProgress=function(t){t.stopPropagation();var e=i.calcPercentage(t.pageX);i.seekFunc(e*i.duration);i.toggleVisibility(true)}}t.prototype.onDocumentTouchMove=function(t){if(!this.isDraggingProgressBall)return;var e=t.touches[0].pageX;this.percentage=this.calcPercentage(e);this.setProgressBall(this.percentage);this.setCurrentTime(this.percentage*this.duration)};t.prototype.onDocumentTouchEnd=function(){if(!this.isDraggingProgressBall)return;this.isDraggingProgressBall=false;this.seekFunc(this.percentage*this.duration);this.toggleVisibility(true)};t.prototype.setProgressBall=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.progressBallRef){this.progressBallRef.style.left=t*100+"%"}return[2]}))}))};t.prototype.toggleVisibility=function(t){return __awaiter(this,void 0,void 0,(function(){var e;var i=this;return __generator(this,(function(o){e=t===undefined?!this.visible:t;if(e){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer);if(this.isPlaying){this.hideControlsTimer=setTimeout((function(){i.toggleVisibility(false)}),2e3)}this.controlsRef.style.visibility="visible"}else{this.controlsRef.style.visibility="hidden"}this.visible=!!e;return[2]}))}))};t.prototype.getIsDraggingProgressBall=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.isDraggingProgressBall]}))}))};t.prototype.setCurrentTime=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.currentTimeRef.innerHTML=a(t);return[2]}))}))};t.prototype.render=function(){var t=this;var e=this,r=e.controls,n=e.currentTime,s=e.duration,l=e.isPlaying,u=e.pauseFunc,c=e.playFunc,d=e.showPlayBtn,h=e.showProgress;var g=a(s);var f;if(!d){f=null}else if(l){f=i("div",{class:"taro-video-control-button taro-video-control-button-pause",onClick:u})}else{f=i("div",{class:"taro-video-control-button taro-video-control-button-play",onClick:c})}return i(o,{class:"taro-video-bar taro-video-bar-full"},r&&i("div",{class:"taro-video-controls"},f,h&&i("div",{class:"taro-video-current-time",ref:function(e){return t.currentTimeRef=e}},a(n)),h&&i("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},i("div",{class:"taro-video-progress",ref:function(e){if(!e)return;var i=e.getBoundingClientRect();t.progressDimentions.left=i.left;t.progressDimentions.width=i.width}},i("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),i("div",{class:"taro-video-ball",ref:function(e){return t.progressBallRef=e},onTouchStart:this.onDragProgressBallStart,style:{left:(g?this.currentTime/s*100:0)+"%"}},i("div",{class:"taro-video-inner"})))),h&&i("div",{class:"taro-video-duration"},g)),i("slot",null))};Object.defineProperty(t.prototype,"controlsRef",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());var g='.taro-video{width:100%;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}.taro-video[hidden]{display:none}.taro-video-container{width:100%;height:100%;background-color:#000;display:inline-block;position:absolute;top:0;left:0;overflow:hidden;-o-object-position:inherit;object-position:inherit}.taro-video-container.taro-video-type-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left{-webkit-transform:translate(-50%, -50%) rotate(-90deg);transform:translate(-50%, -50%) rotate(-90deg)}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right{-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.taro-video-video{width:100%;height:100%;-o-object-position:inherit;object-position:inherit}.taro-video-cover{position:absolute;top:0;left:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:rgba(1, 1, 1, 0.5);z-index:1}.taro-video-cover-play-button{width:40px;height:40px;background-size:50%;background-repeat:no-repeat;background-position:50% 50%}.taro-video-cover-duration{color:#fff;font-size:16px;line-height:1;margin-top:10px}.taro-video-bar{visibility:hidden;height:44px;background-color:rgba(0, 0, 0, 0.5);overflow:hidden;position:absolute;bottom:0;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 10px;z-index:1}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px}.taro-video-control-button{width:13px;height:15px;padding:14.5px 12.5px 14.5px 12.5px;margin-left:-8.5px;-webkit-box-sizing:content-box;box-sizing:content-box}.taro-video-control-button:after{content:"";display:block;width:100%;height:100%;background-size:100%;background-position:50% 50%;background-repeat:no-repeat}.taro-video-control-button.taro-video-control-button-play:after,.taro-video-cover-play-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==)}.taro-video-control-button.taro-video-control-button-pause:after{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC)}.taro-video-current-time,.taro-video-duration{height:14.5px;line-height:14.5px;margin-top:15px;margin-bottom:14.5px;font-size:12px;color:#cbcbcb}.taro-video-progress-container{-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;position:relative}.taro-video-progress{height:2px;margin:21px 12px;background-color:rgba(255, 255, 255, 0.4);position:relative}.taro-video-progress-buffered{position:absolute;left:0;top:0;width:0;height:100%;-webkit-transition:width 0.1s;transition:width 0.1s;background-color:rgba(255, 255, 255, 0.8)}.taro-video-ball{width:16px;height:16px;padding:14px;position:absolute;top:-21px;-webkit-box-sizing:content-box;box-sizing:content-box;left:0;margin-left:-22px}.taro-video-inner{width:100%;height:100%;background-color:#fff;border-radius:50%}.taro-video-danmu-button{white-space:nowrap;line-height:1;padding:2px 10px;border:1px solid #fff;border-radius:5px;font-size:13px;color:#fff;margin:0 8.5px}.taro-video-danmu-button.taro-video-danmu-button-active{border-color:#48c23d;color:#48c23d}.taro-video-fullscreen,.taro-video-mute{width:17px;height:17px;padding:8.5px;-webkit-box-sizing:content-box;box-sizing:content-box;background-size:50%;background-position:50% 50%;background-repeat:no-repeat}.taro-video-fullscreen{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAhUlEQVRYR+2WSwrAMAhEnZO3PfmULLooGEFTiIXJ2s/kRY2wzQeb85sE9CRA8jSzY1YfAFzhJBnU1AVgxH2dSiArCnD9QgGzRNnOech48SRABHoSyFb5in3PSbhyo6yvCPQkEM3u7BsPe/0FIvBfAh/vhKmVbO9SWun1qk/PSVi9TcVPBG6R1YIhgWwNpQAAAABJRU5ErkJggg==)}.taro-video-fullscreen.taro-video-type-fullscreen{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABPUlEQVRYR+2Xu0pDURBF1/ZLxNcHKNiIlfhA7C0UBSEE8RNEBNFPUEQEEbGxFiSSSrCwEHsf5E/ccsSUuWfUhKQ40947+y42Z8+ZK/pcinzf9hhwD1xJ2q/qsb0JHAOzkl5y+lGAGnCWICQtZgAS6DxQk3TeLYA6cAo0JSXxjmW7CcwBdUkJurKiDhSA4kBvHbA9CqwBQx2O7BSw8ssU3ALPFRF4knT3nQLbr8B4LjLBOdAAFgJaLUkjbYC9n+zm+i4kXWbmwCqwnRMCHiXthuZAQOzPrxSA4kBxYDAcsH0EzATCfCLpJjOINoCtgFZabg7bk7AFDAeaGpKWgitZTu5N0kQbYBmYrujo9mX0CVxL+gidAdu9vY5zXhWA4sAgOND3X7NJ4AHYCaxkB8B62gslvecSFpoDOZH/PP8Cnt7hIaM5xCEAAAAASUVORK5CYII=)}.taro-video-mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzen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ElEQVRYhc2XPWsVQRSGnxPjF4oGRfxoRQKGWCU2Ft7CykrQWosEyf/If0hhIPgHDEmbNJZqCFxiQEgTUGxsBUVEHgvnyrjZZJO92V1fGIaZnTPvszPszNlQ6VIjnbr/DwCoDLMNak/dUVfUK0f2rQugnlcX/FevWgFQH6gf3autRgHUC+piiXHzAOmtPx9gXgug8itQx9SXwDpw47AGKXZWvXvQmNFCwE3gCXA2dY0Az4GrRzHONA9cU/vAbERsllEOyh31e8USV2mrMPdG9uyn+rDom2/BHHCm5puWKiKmgdtAnz+rvaxO5mNygEvHaZ5BfADuARvAaWBpP4DGFBHfgBngFzClTrUKkCDeA+9S837rAEnbqb7VFcCpVJ/oCmCw959aB1AfAROpudYqgDoOLKRmPyLelAF8bcD4pPoMeAtcB34AT4uDBqXXwFG8XXUU/72MIuK1OgE8Bs6l7mEvo8up7lN1Ge0n9aK6VHMFZvJTr9S3CiALaCQhqZOSvegMIAvu2UVSWpigLC1fbQ0gm6in7qpfLCQbhwGIYcyPQ53/G3YO8BtUtd35bvKcVwAAAABJRU5ErkJggg==)}.taro-video-mute.taro-video-type-mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi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NagFJPU9qv5u47toLmW1HnoR8Q5oAK1CVQu4FBHj/wUkaXsb+4pzpVaQFPqXrN7Be4Fx9VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC)}.taro-video-danmu{position:absolute;top:0;left:0;bottom:0;width:100%;margin-top:14px;margin-bottom:44px;font-size:14px;line-height:14px;overflow:visible}.taro-video-danmu-item{line-height:1;position:absolute;color:#fff;white-space:nowrap;left:100%;-webkit-transform:translatex(0);transform:translatex(0);-webkit-transition-property:left, -webkit-transform;transition-property:left, -webkit-transform;transition-property:left, transform;transition-property:left, transform, -webkit-transform;-webkit-transition-duration:3s;transition-duration:3s;-webkit-transition-timing-function:linear;transition-timing-function:linear}.taro-video-toast{pointer-events:none;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border-radius:5px;background-color:rgba(255, 255, 255, 0.8);color:#000;display:block;visibility:hidden}.taro-video-toast.taro-video-toast-volume{width:100px;height:100px;display:block}.taro-video-toast-volume .taro-video-toast-title{width:100%;font-size:12px;line-height:16px;text-align:center;margin-top:10px;display:block}.taro-video-toast-volume .taro-video-toast-icon{fill:#000;width:50%;height:50%;margin-left:25%;display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFhklEQVR4Xu2aeaxfQxTHP1VBES0NIQitWtpaaxeCUkQtaYVa0tiClAq1ExIiQTVppaWxt8RWSa2tWkJQRGgtQaSIpUKEpG0ssbbk28yV2+mZO/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ZbiWA/idA++deY2DVTZ0Jh5UJPsFQtD/wDaAHGWl5EzgwaUi2gK4UXS11S0cTIjrMFBtYQdAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+OOB540FdeipNKbUWFrUtn06o5xOij4KyDuqU0IE3Obl/rLA63pTzm9XA8jKACjdniZAaSKFmUpB1yUhAlTsUEpMh913wEkuTe7rKTzPAHqO44vpKPkFhH3cWWBVV6ogJVYZUgz/tXtIYelzI3Ct0fExIGx6j7iKWBUUveyYBehv1RIjIEsfqziq8Xp4pSBJOYTVJFQcVY3wCFeKUjVGyYfQWB00+5bEVBECrNS+qsOKBpVHNCVWHs+LS7H5PV5pOu9v0+OKEOAXR39w1e1C7wM6AkJ1eLmkRcrpRQiQrqobXO5S3vL3/4kBKMsCknV0k+iasVLUMV3UX5SAPGtED8EOT+L9YENnCasUIXNO2goChFWHqAIRyxXN4qI1BCQg9dJESYq8LnbrCBAR8t50Lig6i0krCRBoVWhVlt45wkBrCRBuRZyPuAguxIPe9lXqhpd9DcZMXOvdkPF0Xu/8dohNUmZ/1QQkuitXr+d4fryuFx3jywQYm6suAqSX8vLTXKJDt4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==);background-size:50%;background-position:50% 50%;background-repeat:no-repeat}.taro-video-toast-volume .taro-video-toast-value{width:80px;height:5px;margin-top:5px;margin-left:10px}.taro-video-toast-volume .taro-video-toast-value>.taro-video-toast-value-content{overflow:hidden}.taro-video-toast-volume-grids{width:80px;height:5px}.taro-video-toast-volume-grids-item{float:left;width:7.1px;height:5px;background-color:#000}.taro-video-toast-volume-grids-item:not(:first-child){margin-left:1px}.taro-video-toast.taro-video-toast-progress{background-color:rgba(0, 0, 0, 0.8);color:#fff;font-size:14px;line-height:18px;padding:6px}';var f=t("taro_video_core",function(){function t(t){var i=this;e(this,t);this.onPlay=n(this,"play",7);this.onPause=n(this,"pause",7);this.onEnded=n(this,"ended",7);this.onTimeUpdate=n(this,"timeupdate",7);this.onError=n(this,"error",7);this.onFullScreenChange=n(this,"fullscreenchange",7);this.onProgress=n(this,"progress",7);this.onLoadedMetaData=n(this,"loadedmetadata",7);this.currentTime=0;this.isDraggingProgress=false;this.gestureType="none";this.controls=true;this.autoplay=false;this.loop=false;this.muted=false;this.initialTime=0;this.objectFit="contain";this.showProgress=true;this.showFullscreenBtn=true;this.showPlayBtn=true;this.showCenterPlayBtn=true;this.showMuteBtn=false;this.danmuBtn=false;this.enableDanmu=false;this.enablePlayGesture=false;this.enableProgressGesture=true;this.vslideGesture=false;this.vslideGestureInFullscreen=true;this.nativeProps={};this._enableDanmu=false;this.isPlaying=false;this.isFirst=true;this.isFullScreen=false;this.fullScreenTimestamp=(new Date).getTime();this.isMute=false;this.analyseGesture=function(t){var e;var o={type:"none"};var r=t.touches[0].screenX;var n=t.touches[0].screenY;var s=r-i.lastTouchScreenX;var a=n-i.lastTouchScreenY;var c=i.isFullScreen?i.vslideGestureInFullscreen:i.vslideGesture;if(i.gestureType==="none"){var d=l(s,a);if(d<10)return o;if(Math.abs(a)>=Math.abs(s)){if(c){i.gestureType="adjustVolume";i.lastVolume=i.videoRef.volume}else{return o}}else if(Math.abs(a)<Math.abs(s)){if(i.enableProgressGesture){i.gestureType="adjustProgress";i.lastPercentage=i.currentTime/((e=i.duration)!==null&&e!==void 0?e:i._duration)}else{return o}}}o.type=i.gestureType;o.dataX=u(s/200);o.dataY=u(a/200);return o};this.handlePlay=function(){i.isPlaying=true;i.isFirst=false;i.controlsRef.toggleVisibility(true);i.onPlay.emit()};this.handlePause=function(){i.isPlaying=false;i.controlsRef.toggleVisibility(true);i.onPause.emit()};this.handleEnded=function(){i.isFirst=true;i.pause();i.controlsRef.toggleVisibility();i.onEnded.emit()};this.handleTimeUpdate=c((function(t){return __awaiter(i,void 0,void 0,(function(){var e,i,o,r;return __generator(this,(function(n){switch(n.label){case 0:this.currentTime=this.videoRef.currentTime;o=this.duration||this._duration;return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:r=n.sent();if(this.controls&&this.showProgress){if(!r&&!this.isDraggingProgress){this.controlsRef.setProgressBall(this.currentTime/o);this.controlsRef.setCurrentTime(this.currentTime)}}this.danmuRef.tick(this.currentTime);this.onTimeUpdate.emit({duration:(e=t.target)===null||e===void 0?void 0:e.duration,currentTime:(i=t.target)===null||i===void 0?void 0:i.currentTime});if(this.duration){if(this.currentTime>=this.duration){this.seek(0);this.handleEnded()}}return[2]}}))}))}),250);this.handleError=function(t){var e,o;i.onError.emit({errMsg:(o=(e=t.target)===null||e===void 0?void 0:e.error)===null||o===void 0?void 0:o.message})};this.handleDurationChange=function(){i._duration=i.videoRef.duration};this.handleProgress=function(){i.onProgress.emit()};this.handleLoadedMetaData=function(t){var e=t.target;i.onLoadedMetaData.emit({width:e.videoWidth,height:e.videoHeight,duration:e.duration})};this._play=function(){return i.videoRef.play()};this._pause=function(){return i.videoRef.pause()};this._stop=function(){i.videoRef.pause();i._seek(0)};this._seek=function(t){i.videoRef.currentTime=t};this.onTouchStartContainer=function(t){i.lastTouchScreenX=t.touches[0].screenX;i.lastTouchScreenY=t.touches[0].screenY};this.onClickContainer=function(){if(i.enablePlayGesture){var t=Date.now();if(t-i.lastClickedTime<300){i.isPlaying?i.pause():i.play()}i.lastClickedTime=t}i.controlsRef.toggleVisibility()};this.onClickFullScreenBtn=function(t){t.stopPropagation();i.toggleFullScreen()};this.handleFullScreenChange=function(t){var e=(new Date).getTime();if(!t.detail&&i.isFullScreen&&!document[d.fullscreenElement]&&e-i.fullScreenTimestamp>100){i.toggleFullScreen(false)}};this.toggleFullScreen=function(t){if(t===void 0){t=!i.isFullScreen}i.isFullScreen=t;i.controlsRef.toggleVisibility(true);i.fullScreenTimestamp=(new Date).getTime();i.onFullScreenChange.emit({fullScreen:i.isFullScreen,direction:"vertical"});if(i.isFullScreen&&!document[d.fullscreenElement]){setTimeout((function(){i.videoRef[d.requestFullscreen]({navigationUI:"show"})}),0)}};this.toggleMute=function(t){t.stopPropagation();i.videoRef.muted=!i.isMute;i.controlsRef.toggleVisibility(true);i.isMute=!i.isMute};this.toggleDanmu=function(t){t.stopPropagation();i.controlsRef.toggleVisibility(true);i._enableDanmu=!i._enableDanmu}}t.prototype.componentWillLoad=function(){this._enableDanmu=this.enableDanmu};t.prototype.componentDidLoad=function(){if(this.initialTime){this.videoRef.currentTime=this.initialTime}this.danmuRef.sendDanmu(this.danmuList);if(document.addEventListener){document.addEventListener(d.fullscreenchange,this.handleFullScreenChange)}};t.prototype.componentDidRender=function(){};t.prototype.disconnectedCallback=function(){if(document.removeEventListener){document.removeEventListener(d.fullscreenchange,this.handleFullScreenChange)}};t.prototype.watchEnableDanmu=function(t){this._enableDanmu=t};t.prototype.onDocumentTouchMove=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,o;return __generator(this,(function(r){switch(r.label){case 0:if(this.lastTouchScreenX===undefined||this.lastTouchScreenY===undefined)return[2];return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:if(r.sent())return[2];e=this.analyseGesture(t);if(e.type==="adjustVolume"){this.toastVolumeRef.style.visibility="visible";i=Math.max(Math.min(this.lastVolume-e.dataY,1),0);this.videoRef.volume=i;this.toastVolumeBarRef.style.width=i*100+"%"}else if(e.type==="adjustProgress"){this.isDraggingProgress=true;this.nextPercentage=Math.max(Math.min(this.lastPercentage+e.dataX,1),0);if(this.controls&&this.showProgress){this.controlsRef.setProgressBall(this.nextPercentage);this.controlsRef.toggleVisibility(true)}o=this.duration||this._duration;this.toastProgressTitleRef.innerHTML=a(this.nextPercentage*o)+" / "+a(o);this.toastProgressRef.style.visibility="visible"}return[2]}}))}))};t.prototype.onDocumentTouchEnd=function(){var t;if(this.gestureType==="adjustVolume"){this.toastVolumeRef.style.visibility="hidden"}else if(this.gestureType==="adjustProgress"){this.toastProgressRef.style.visibility="hidden"}if(this.isDraggingProgress){this.isDraggingProgress=false;this.seek(this.nextPercentage*((t=this.duration)!==null&&t!==void 0?t:this._duration))}this.gestureType="none";this.lastTouchScreenX=undefined;this.lastTouchScreenY=undefined};t.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._play();return[2]}))}))};t.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._pause();return[2]}))}))};t.prototype.stop=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._stop();return[2]}))}))};t.prototype.seek=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._seek(t);return[2]}))}))};t.prototype.requestFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.toggleFullScreen(true);return[2]}))}))};t.prototype.exitFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.toggleFullScreen(false);return[2]}))}))};t.prototype.render=function(){var t=this;var e=this,r=e.src,n=e.controls,l=e.autoplay,u=e.loop,c=e.muted,d=e.poster,h=e.objectFit,g=e.isFirst,f=e.isMute,A=e.isFullScreen,p=e.duration,v=e._duration,b=e.showCenterPlayBtn,m=e.isPlaying,y=e._enableDanmu,w=e.showMuteBtn,E=e.danmuBtn,k=e.showFullscreenBtn,x=e.nativeProps;var T=a(p||v||null);return i(o,{class:s("taro-video-container",{"taro-video-type-fullscreen":A}),onTouchStart:this.onTouchStartContainer,onClick:this.onClickContainer},i("video",Object.assign({class:"taro-video-video",style:{"object-fit":h},ref:function(e){if(e){t.videoRef=e}},src:r,autoplay:l,loop:u,muted:c,poster:n?d:undefined,playsinline:true,"webkit-playsinline":true,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onTimeUpdate:this.handleTimeUpdate,onError:this.handleError,onDurationChange:this.handleDurationChange,onProgress:this.handleProgress,onLoadedMetaData:this.handleLoadedMetaData},x),"暂时不支持播放该视频"),i("taro-video-danmu",{ref:function(e){if(e){t.danmuRef=e}},enable:y}),g&&b&&!m&&i("div",{class:"taro-video-cover"},i("div",{class:"taro-video-cover-play-button",onClick:function(){return t.play()}}),i("p",{class:"taro-video-cover-duration"},T)),i("taro-video-control",{ref:function(e){if(e){t.controlsRef=e}},controls:n,currentTime:this.currentTime,duration:this.duration||this._duration||undefined,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},w&&i("div",{class:s("taro-video-mute",{"taro-video-type-mute":f}),onClick:this.toggleMute}),E&&i("div",{class:s("taro-video-danmu-button",{"taro-video-danmu-button-active":y}),onClick:this.toggleDanmu},"弹幕"),k&&i("div",{class:s("taro-video-fullscreen",{"taro-video-type-fullscreen":A}),onClick:this.onClickFullScreenBtn})),i("div",{class:"taro-video-toast taro-video-toast-volume",ref:function(e){if(e){t.toastVolumeRef=e}}},i("div",{class:"taro-video-toast-title"},"音量"),i("div",{class:"taro-video-toast-icon"}),i("div",{class:"taro-video-toast-value"},i("div",{class:"taro-video-toast-value-content",ref:function(e){if(e){t.toastVolumeBarRef=e}}},i("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((function(){return i("div",{class:"taro-video-toast-volume-grids-item"})})))))),i("div",{class:"taro-video-toast taro-video-toast-progress",ref:function(e){if(e){t.toastProgressRef=e}}},i("div",{class:"taro-video-toast-title",ref:function(e){if(e){t.toastProgressTitleRef=e}}})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{enableDanmu:["watchEnableDanmu"]}},enumerable:false,configurable:true});return t}());f.style=g;var A=t("taro_video_danmu",function(){function t(t){e(this,t);this.list=[];this.danmuElList=[];this.currentTime=0;this.enable=false;this.danmuList=[]}t.prototype.ensureProperties=function(t){var e=Object.assign({},t);if(!("time"in t)){e.time=this.currentTime}e.key=Math.random();e.bottom=Math.random()*90+5+"%";return e};t.prototype.sendDanmu=function(t){if(t===void 0){t=[]}return __awaiter(this,void 0,void 0,(function(){var e;var i=this;return __generator(this,(function(o){if(Array.isArray(t)){this.list=__spreadArray(__spreadArray([],this.list),t.map((function(t){return i.ensureProperties(t)})))}else{e=t;this.list=__spreadArray(__spreadArray([],this.list),[Object.assign({},this.ensureProperties(e))])}return[2]}))}))};t.prototype.tick=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,o,r;return __generator(this,(function(n){this.currentTime=t;if(!this.enable)return[2];e=this.list;i=e.filter((function(e){var i=e.time;return t-i<4&&t>i}));o=false;r=this.danmuList;if(i.length!==r.length){o=true}else{o=i.some((function(t){var e=t.key;return r.every((function(t){return e!==t.key}))}))}if(o){this.danmuList=i}return[2]}))}))};t.prototype.componentDidUpdate=function(){var t=this;requestAnimationFrame((function(){setTimeout((function(){var e=t.danmuElList.splice(0);e.forEach((function(t){t.style.left="0";t.style.webkitTransform="translateX(-100%)";t.style.transform="translateX(-100%)"}))}))}))};t.prototype.render=function(){var t=this;if(!this.enable)return"";return i(o,{class:"taro-video-danmu"},this.danmuList.map((function(e){var o=e.text,r=e.color,n=e.bottom,s=e.key;return i("p",{class:"taro-video-danmu-item",key:s,style:{color:r,bottom:n},ref:function(e){if(e){t.danmuElList.push(e)}}},o)})))};return t}())}}}));
@@ -1 +0,0 @@
1
- import{r as e,h as o,H as r}from"./p-49ae5efb.js";let a=class{constructor(o){e(this,o)}componentDidLoad(){console.error("H5 暂不支持 MovableView 组件!")}render(){return o(r,null)}};export{a as taro_movable_view_core}
@@ -1 +0,0 @@
1
- import{r as e,h as o,H as r}from"./p-49ae5efb.js";let s=class{constructor(o){e(this,o)}componentDidLoad(){console.error("H5 暂不支持 CoverView 组件!")}render(){return o(r,null)}};export{s as taro_cover_view_core}
@@ -1 +0,0 @@
1
- System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(e){"use strict";var t,a,r,o,n,i;return{setters:[function(e){t=e.h;a=e.r;r=e.c;o=e.H;n=e.g},function(e){i=e.c}],execute:function(){function s(e){return e.charAt(0)==="/"}function l(e,t){for(var a=t,r=a+1,o=e.length;r<o;a+=1,r+=1){e[a]=e[r]}e.pop()}function b(e,t){if(t===undefined)t="";var a=e&&e.split("/")||[];var r=t&&t.split("/")||[];var o=e&&s(e);var n=t&&s(t);var i=o||n;if(e&&s(e)){r=a}else if(a.length){r.pop();r=r.concat(a)}if(!r.length)return"/";var b;if(r.length){var d=r[r.length-1];b=d==="."||d===".."||d===""}else{b=false}var h=0;for(var f=r.length;f>=0;f--){var c=r[f];if(c==="."){l(r,f)}else if(c===".."){l(r,f);h++}else if(h){l(r,f);h--}}if(!i)for(;h--;h)r.unshift("..");if(i&&r[0]!==""&&(!r[0]||!s(r[0])))r.unshift("");var u=r.join("/");if(b&&u.substr(-1)!=="/")u+="/";return u}var d=function(e){var t=e||"";var a;var r={path:null,query:null,fragment:null};a=t.indexOf("#");if(a>-1){r.fragment=t.substring(a+1);t=t.substring(0,a)}a=t.indexOf("?");if(a>-1){r.query=t.substring(a+1);t=t.substring(0,a)}r.path=t;return r};var h=function(e){var a=e.index,r=e.isSelected,o=r===void 0?false:r,n=e.textColor,s=e.iconPath,l=e.badgeText,b=e.showRedDot,d=b===void 0?false:b,h=e.text,f=e.onSelect;var c=i("weui-tabbar__item",{"weui-bar__item_on":o});var u={position:"absolute",top:"-2px",right:"-13px"};var v={position:"absolute",top:"0",right:"-6px"};function g(){f(a)}return t("a",{key:a,href:"javascript:;",class:c,onClick:g},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:s,alt:"",class:"weui-tabbar__icon"}),!!l&&t("span",{class:"weui-badge taro-tabbar-badge",style:u},l),d&&t("span",{class:"weui-badge weui-badge_dot",style:v})),t("p",{class:"weui-tabbar__label",style:{color:n}},h))};var f="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;height:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.taro-tabbar__panel{-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}.taro-tabbar__tabbar{position:relative;height:50px;width:100%;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var c=require("@tarojs/taro");var u=function(e){return e[0]==="/"?e:"/"+e};var v=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var g=function(e,t){return v(e,t)?e.substr(t.length):e};var p=0;var _=1;var T=2;var m="taro-tabbar__tabbar";var B="taro-tabbar__tabbar-hide";var w="taro-tabbar__tabbar-slideout";var x=e("taro_tabbar",function(){function e(e){var t=this;a(this,e);this.onLongPress=r(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.selectedIndex=-1;this.status=p;this.getOriginUrl=function(e){var a=t.customRoutes.filter((function(t){var a=t[1];var r=d(a).path;var o=d(e).path;return r===o}));return a.length?a[0][0]:e};this.getSelectedIndex=function(e){var a=-1;t.list.forEach((function(t,r){var o=t.pagePath;var n=d(e).path;var i=d(o).path;if(n===i){a=r}}));return a};this.switchTab=function(e){t.selectedIndex=e;c.switchTab({url:t.list[e].pagePath})};this.switchTabHandler=function(e){var a=e.url,r=e.successHandler,o=e.errorHandler;var n=t.getOriginUrl(t.getCurrentUrl()||t.homePage);var i=b(a,n);var s=t.getSelectedIndex(i);if(s>-1){t.switchTab(s);r({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'+i+'" is not found'})}};this.routerChangeHandler=function(e){var a;var r;if(e){a=e.toLocation}if(a&&a.path){var o=u(a.path);r=g(o==="/"?t.homePage:o,t.conf.basename||"/")}else{r=t.getCurrentUrl()}t.selectedIndex=t.getSelectedIndex(t.getOriginUrl(r))};this.setTabBarBadgeHandler=function(e){var a=e.index,r=e.text,o=e.errorHandler;var n=t.list;if(a in n){t.list[a].showRedDot=false;t.list[a].badgeText=r}else{o({errMsg:"setTabBarBadge:fail tabbar item not found"})}};this.removeTabBarBadgeHandler=function(e){var a=e.index,r=e.successHandler,o=e.errorHandler;var n=t.list;if(a in n){t.list[a].badgeText=null;t.list[a].badgeText=null;r({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}};this.showTabBarRedDotHandler=function(e){var a=e.index,r=e.successHandler,o=e.errorHandler;var n=t.list;if(a in n){n[a].badgeText=null;n[a].showRedDot=true;r({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}};this.hideTabBarRedDotHandler=function(e){var a=e.index,r=e.successHandler,o=e.errorHandler;var n=t.list;if(a in n){n[a].showRedDot=false;r({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}};this.showTabBarHandler=function(e){var a=e.successHandler;t.status=p;a({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var a=e.animation,r=e.successHandler;t.status=a?T:_;r({errMsg:"hideTabBar:ok"})};var o=this.conf.list;var n=this.conf.customRoutes;if(Object.prototype.toString.call(o)!=="[object Array]"||o.length<2||o.length>5){throw new Error("tabBar 配置错误")}this.homePage=u(this.conf.homePage);for(var i in n){this.customRoutes.push([i,n[i]])}o.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=o}e.prototype.getCurrentUrl=function(){var e=this.conf.mode;var t=this.conf.basename||"/";var a;if(e==="hash"){var r=window.location.href;var o=r.indexOf("#");a=o===-1?"":r.substring(o+1)}else{a=location.pathname}var n=u(g(a,t));return n==="/"?this.homePage:n};e.prototype.bindEvent=function(){c.eventCenter.on("__taroRouterChange",this.routerChangeHandler);c.eventCenter.on("__taroSwitchTab",this.switchTabHandler);c.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);c.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);c.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);c.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);c.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);c.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler)};e.prototype.removeEvent=function(){c.eventCenter.off("__taroRouterChange",this.routerChangeHandler);c.eventCenter.off("__taroSwitchTab",this.switchTabHandler);c.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);c.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);c.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);c.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);c.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);c.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,a;var r=this;var n=this,s=n.conf,l=n.tabbarPos,b=l===void 0?"bottom":l;var d=this.status;var f=i("weui-tabbar",(e={},e["taro-tabbar__border-"+(s.borderStyle||"black")]=true,e));var c=this.selectedIndex===-1||d===_;var u=d===T;return t(o,{class:i(m,m+"-"+b,(a={},a[B]=c,a[w]=u,a))},t("div",{class:f,style:{backgroundColor:s.backgroundColor||""}},this.list.map((function(e,a){var o=r.selectedIndex===a;var n;var i;if(o){n=s.selectedColor;i=e.selectedIconPath}else{n=s.color||"";i=e.iconPath}return t(h,{index:a,onSelect:r.switchTab.bind(r),isSelected:o,textColor:n,iconPath:i,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());x.style=f}}}));
@@ -1 +0,0 @@
1
- import{r as o,h as e,H as r}from"./p-49ae5efb.js";let a=class{constructor(e){o(this,e)}componentDidLoad(){console.error("H5 暂不支持 OpenData 组件!")}render(){return e(r,null)}};export{a as taro_open_data_core}
@@ -1,4 +0,0 @@
1
- export declare class CoverImage {
2
- componentDidLoad(): void;
3
- render(): any;
4
- }